/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #f0f8f0;
    background: linear-gradient(135deg, #1a2f2a 0%, #2d4a3d 50%, #3d5a4d 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

/* Light Theme */
body.light-theme {
    color: #2c2c2c;
    background: linear-gradient(135deg, #f5f3f0 0%, #f0ede8 50%, #ebe8e0 100%);
}

/* Theme Toggle Button */
.theme-toggle {
    background: rgba(64, 224, 144, 0.15);
    border: 1px solid rgba(64, 224, 144, 0.4);
    color: #40e090;
    padding: 6px 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 10px;
    margin: 0;
    width: auto;
    min-width: 28px;
    height: 28px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:focus {
    outline: none;
    background: rgba(64, 224, 144, 0.15);
    color: #40e090;
}

.theme-toggle:hover {
    background: rgba(64, 224, 144, 0.25);
    transform: translateY(-2px);
    color: #40e090;
}

body.light-theme .theme-toggle {
    background: rgba(218, 165, 32, 0.1);
    border: 1px solid rgba(218, 165, 32, 0.3);
    color: #daa520;
}

body.light-theme .theme-toggle:hover {
    background: rgba(218, 165, 32, 0.2);
    color: #daa520;
}

body.light-theme .theme-toggle:focus {
    background: rgba(218, 165, 32, 0.1);
    color: #daa520;
}

/* Language Dropdown */
.language-dropdown {
    position: relative;
    margin: 0;
    width: 100%;
}

.lang-toggle {
    background: rgba(64, 224, 144, 0.15);
    border: 1px solid rgba(64, 224, 144, 0.4);
    color: #40e090;
    padding: 2px 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: auto;
    min-width: 35px;
    height: 22px;
}

.lang-toggle:focus {
    outline: none;
    background: rgba(64, 224, 144, 0.15);
    color: #40e090;
}

.lang-toggle:hover {
    background: rgba(64, 224, 144, 0.25);
    transform: translateY(-2px);
    color: #40e090;
}

body.light-theme .lang-toggle {
    background: rgba(218, 165, 32, 0.1);
    border: 1px solid rgba(218, 165, 32, 0.3);
    color: #daa520;
}

body.light-theme .lang-toggle:hover {
    background: rgba(218, 165, 32, 0.2);
    color: #daa520;
}

body.light-theme .lang-toggle:focus {
    background: rgba(218, 165, 32, 0.1);
    color: #daa520;
}

.lang-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(26, 47, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(64, 224, 144, 0.4);
    border-radius: 15px;
    padding: 8px 0;
    margin-top: 8px;
    min-width: 80px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.lang-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

body.light-theme .lang-menu {
    background: rgba(245, 243, 240, 0.95);
    border: 1px solid rgba(218, 165, 32, 0.3);
}

.lang-option {
    background: none;
    border: none;
    color: #f0f0f0;
    padding: 8px 16px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.lang-option:hover {
    background: rgba(64, 224, 144, 0.25);
    color: #40e090;
}

.lang-option.active {
    background: rgba(64, 224, 144, 0.35);
    color: #40e090;
}

body.light-theme .lang-option {
    color: #2c2c2c;
}

body.light-theme .lang-option:hover,
body.light-theme .lang-option.active {
    background: rgba(218, 165, 32, 0.2);
    color: #8b6914;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(64, 224, 144, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(64, 224, 144, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(64, 224, 144, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    transition: all 0.3s ease;
}

body.light-theme::before {
    background: 
        radial-gradient(circle at 20% 80%, rgba(218, 165, 32, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(218, 165, 32, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(218, 165, 32, 0.05) 0%, transparent 50%);
}

header {
    background-color: lightgray;
    display: none;
}

nav {
    background: rgba(75, 85, 135, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(120, 130, 180, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: #e8e8e8;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 200px;
    text-align: center;
    padding: 20px 10px;
    border-right: 1px solid rgba(120, 130, 180, 0.25);
    border-radius: 0 24px 24px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9999;
}

body.light-theme nav {
    background: rgba(255, 255, 255, 0.85);
    color: #2c2c2c;
    border-right: 1px solid rgba(218, 165, 32, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 
                0 0 0 1px rgba(218, 165, 32, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

nav::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(218, 165, 32, 0.8), transparent);
}
nav img {
    width: 100%;
    border-radius: 15px;
    border: 3px solid rgba(64, 224, 144, 0.6);
    box-shadow: 
        0 8px 25px rgba(64, 224, 144, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

nav img:hover {
    transform: scale(1.02);
    border-color: rgba(64, 224, 144, 0.8);
    box-shadow: 
        0 12px 35px rgba(64, 224, 144, 0.3),
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
nav ul{
    list-style: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    margin: 0;
    padding: 0;
    min-height: calc(100vh - 40px);
}

.nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    flex: 1;
    margin-bottom: 20px;
}

.nav-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(64, 224, 144, 0.3);
}
nav li {
    padding: 0;
    text-align: center;
    font-size: 1em;
    margin: 0;
    width: 100%;
}
nav a {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.9);
    display: block;
    text-decoration: none;
    padding: 12px 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 15px;
    margin: 2px 0;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    text-align: center;
}

body.light-theme nav a {
    color: rgba(44, 44, 44, 0.9);
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

nav a:hover::before {
    left: 100%;
}

nav a:hover {
    background: linear-gradient(135deg, rgba(80, 200, 120, 0.2) 0%, rgba(47, 79, 79, 0.2) 100%);
    color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(80, 200, 120, 0.4), 0 0 0 1px rgba(80, 200, 120, 0.2);
    backdrop-filter: blur(10px);
}

main {
    background-color: transparent;
    margin-left: 200px;
    padding: 40px 20px;
    position: relative;
    transition: all 0.3s ease;
    z-index: 1;
}

main::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(80, 200, 120, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(47, 79, 79, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: floatingOrbs 20s ease-in-out infinite;
    transition: all 0.3s ease;
}

body.light-theme main::before {
    background: 
        radial-gradient(circle at 10% 20%, rgba(80, 200, 120, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(47, 79, 79, 0.10) 0%, transparent 50%);
}

@keyframes floatingOrbs {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

section {
    margin-bottom: 50px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 
                0 0 0 1px rgba(80, 200, 120, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(80, 200, 120, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

body.light-theme section {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(80, 200, 120, 0.25);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 
                0 0 0 1px rgba(80, 200, 120, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    color: #2c2c2c;
}

body.light-theme .section_title {
    color: #2c2c2c;
}

body.light-theme .section_title h1 {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #2c2c2c !important;
    background-clip: unset !important;
    color: #2c2c2c !important;
}

body.light-theme .card b {
    color: #2c2c2c !important;
    text-shadow: none !important;
}

body.light-theme .card i {
    color: rgba(44, 44, 44, 0.7) !important;
}

body.light-theme .card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(80, 200, 120, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    color: #2c2c2c;
}

body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme h4,
body.light-theme h5,
body.light-theme h6,
body.light-theme p,
body.light-theme li,
body.light-theme span,
body.light-theme div {
    color: #2c2c2c !important;
}

body.light-theme nav,
body.light-theme nav *:not(.theme-toggle):not(.lang-toggle):not(.lang-option) {
    color: #ffffff !important;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(80, 200, 120, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

section:hover::before {
    opacity: 1;
}

.section_title {
    background: transparent;
    color: #ffffff;
    padding: 25px;
    text-align: center;
    position: relative;
}

.section_title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #50C878, #2F4F4F);
    border-radius: 2px;
    opacity: 0.9;
}

.section_title h1 {
    color: #ffffff;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) 1;
    padding-bottom: 20px;
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px) saturate(180%);
    line-height: 1.9;
    margin: 30px;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.3px;
    z-index: 3;
}

/* Emoji and visual elements styling */
.card p:first-child {
    font-size: 1.1em;
}

.card p[data-translate*="desc"] {
    position: relative;
    padding-left: 8px;
    transition: all 0.3s ease;
}

.card p[data-translate*="desc"]:hover {
    transform: translateX(5px);
    color: rgba(255, 255, 255, 0.95);
}



.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(120, 119, 198, 0.1), transparent);
    transition: left 0.8s ease;
}

.card:hover::before {
    left: 100%;
}
.card a {
    color: #DAA520;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.card a:hover {
    color: #FFD700;
    text-decoration: none;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.card a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #DAA520, #FFD700);
    transition: width 0.3s ease;
}

.card a:hover::after {
    width: 100%;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

section:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.card b {
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    font-size: 1.05em;
    letter-spacing: 0.5px;
}

.card i {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    font-weight: 400;
    font-size: 0.95em;
    letter-spacing: 0.2px;
}

.card ul {
    margin: 15px 0;
    padding-left: 25px;
    position: relative;
}

.card ul::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #DAA520, transparent, #FFD700);
    opacity: 0.4;
}

.card li {
    margin: 12px 0;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding-left: 12px;
    font-size: 1.02em;
    line-height: 1.7;
    transition: all 0.3s ease;
}

.card li:hover {
    color: rgba(255, 255, 255, 1);
    transform: translateX(4px);
}

.card li::before {
    content: '◆';
    position: absolute;
    left: -8px;
    color: #DAA520;
    font-weight: bold;
    font-size: 0.8em;
    transition: all 0.3s ease;
}

.card li:hover::before {
    color: #FFD700;
    transform: scale(1.2);
}
.card > b {
    font-size: 1.15em;
    display: block;
    margin-bottom: 16px;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.card > ul {
    padding: 15px;
}

.card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.02em;
    line-height: 1.8;
    margin: 16px 0;
    text-align: justify;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.card p:first-of-type {
    margin-top: 0;
}

.card p:last-of-type {
    margin-bottom: 0;
}

.profile-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: #ffd700;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.6), 
        0 0 0 3px rgba(255, 215, 0, 0.3),
        0 0 0 6px rgba(255, 215, 0, 0.1),
        0 0 20px rgba(255, 215, 0, 0.4),
        inset 0 0 20px rgba(255, 215, 0, 0.1);
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.profile-image::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #DAA520, #FFD700, #B8860B, #DAA520);
    background-size: 400% 400%;
    border-radius: 50%;
    z-index: -1;
    animation: gradientRotate 3s ease-in-out infinite;
}

@keyframes gradientRotate {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

body.light-theme .profile-image {
    background: linear-gradient(45deg, #f5f3f0, #ebe8e0, #f5f3f0);
    color: #8b6914;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.15), 
        0 0 0 3px rgba(218, 165, 32, 0.3),
        0 0 0 6px rgba(218, 165, 32, 0.1),
        0 0 20px rgba(218, 165, 32, 0.3),
        inset 0 0 20px rgba(218, 165, 32, 0.1);
}

body.light-theme .profile-image::after {
    background: linear-gradient(45deg, #DAA520, #B8860B, #8B6914, #DAA520);
}

.profile-image:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 0 4px rgba(255, 215, 0, 0.5);
}

body.light-theme .profile-image:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(218, 165, 32, 0.5);
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

/* Skills Section Styles */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 20px;
}

.skills-grid .skill-category:first-child {
    grid-column: 1 / -1;
}

.skills-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.skill-category {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(80, 200, 120, 0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.skill-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(80, 200, 120, 0.4);
}

.skill-category h3 {
    color: #ffffff;
    font-size: 1.4em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(80, 200, 120, 0.3);
    font-weight: 600;
}

.skill-subcategory {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.skill-subcategory:last-child {
    margin-bottom: 0;
}

.skill-subcategory h4 {
    color: #ffffff;
    font-size: 1.1em;
    margin-bottom: 12px;
    font-weight: 500;
    opacity: 0.9;
}

.skill-subcategory ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-subcategory li {
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 0;
    font-size: 0.95em;
    line-height: 1.5;
    transition: all 0.2s ease;
}

.skill-subcategory li:hover {
    color: rgba(255, 255, 255, 1);
    transform: translateX(4px);
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(80, 200, 120, 0.1);
}

.language-item:last-child {
    border-bottom: none;
}

.language-item span {
    color: rgba(255, 255, 255, 0.9);
}

.proficiency {
    font-size: 0.9em;
    opacity: 0.8;
}

/* Light theme styles for skills */
body.light-theme .skill-category {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(80, 200, 120, 0.3);
}

body.light-theme .skill-category h3,
body.light-theme .skill-subcategory h4,
body.light-theme .skill-subcategory li,
body.light-theme .language-item span {
    color: #2c2c2c !important;
}

body.light-theme .skill-subcategory li:hover {
    color: #1a1a1a !important;
}

@media only screen and (max-width: 900px) {
    nav {
        height: 400px;
        width: 100%;
    }
    nav img {
        float: left;
        height: 100%;
        width: auto;
    }
    nav ul {
        float: right;
        width: 200px;
        margin-right: 20px;
    }
    nav li {
        padding-top: 5px;
        padding-bottom: 5px;
        text-align: right;
    }
    nav a {
        padding: 10px;
    }
    
    main {
        margin-top: 400px;
        margin-left: 0px;
    }

    section {
        scroll-margin-top: 400px;
      }
  }

@media (max-width: 1024px) {
    main {
        margin-left: 0;
        padding: 20px 15px;
    }
    
    nav {
        position: relative;
        width: 100%;
        background: rgba(15, 15, 35, 0.95);
        backdrop-filter: blur(25px);
        padding: 12px 0;
    }
    
    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 20px;
    }
    
    .nav-links {
        gap: 10px;
    }
    
    nav li {
        margin: 5px 3px;
    }
    
    nav a {
        padding: 6px 12px;
        font-size: 14px;
        border-radius: 10px;
        margin: 0 5px;
    }
    
    .lang-toggle {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .theme-toggle {
        padding: 6px 10px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    nav {
        padding: 10px 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .nav-controls {
        gap: 10px;
    }
    
    nav li {
        margin: 3px 0;
        width: 100%;
    }
    
    nav a {
        padding: 5px 8px;
        margin: 0 4px;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
        font-size: 13px;
    }
    
    .lang-toggle {
        padding: 5px 8px;
        font-size: 11px;
        gap: 4px;
    }
    
    .theme-toggle {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    main {
        margin-top: 0;
        padding: 15px 10px;
        padding-top: 120px;
    }
    
    section {
        padding: 25px 20px;
        margin-bottom: 30px;
        border-radius: 20px;
    }
    
    .card {
        margin: 20px 0;
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .section_title {
        padding: 15px 20px;
    }
    
    .section_title h1 {
        font-size: 2em;
        margin-bottom: 20px;
    }
    
    .card li {
        font-size: 0.95em;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    nav ul {
        padding: 0 10px;
    }
    
    .nav-links {
        gap: 5px;
    }
    
    nav a {
        padding: 4px 6px;
        font-size: 11px;
        margin: 0 2px;
    }
    
    .lang-toggle {
        padding: 4px 6px;
        font-size: 10px;
        gap: 3px;
    }
    
    .lang-toggle .current-lang {
        display: none;
    }
    
    .theme-toggle {
        padding: 4px 6px;
        font-size: 10px;
    }
    
    main {
        padding-top: 140px;
        padding-left: 8px;
        padding-right: 8px;
    }
    
    section {
        padding: 20px 15px;
        margin-bottom: 25px;
    }
    
    .card {
        padding: 20px 15px;
        margin: 15px 0;
    }
    
    .card h2, .card h3 {
        font-size: 1.1rem;
    }
    
    .card p, .card li {
        font-size: 0.9rem;
    }
    
    .section_title h1 {
        font-size: 1.8em;
    }
}