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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: var(--dark-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: none;
}

.cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.12s ease-out, background 0.2s ease;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
    transform: translate(-50%, -50%);
}

.cursor::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
}

.cursor.hover {
    transform: translate(-50%, -50%) scale(1.6);
    background: rgba(255, 255, 255, 0.18);
}

.cursor.click {
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(255, 255, 255, 0.22);
}

[data-theme="light"] .particles .particle {
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 18px rgba(15, 23, 42, 0.18);
}

[data-theme="light"] .cursor {
    border-color: rgba(15, 23, 42, 0.95);
    background: rgba(15, 23, 42, 0.08);
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.18);
}

[data-theme="light"] .cursor::before {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 12px rgba(15, 23, 42, 0.35);
}

[data-theme="light"] .cursor.hover {
    background: rgba(15, 23, 42, 0.14);
}

[data-theme="light"] .cursor.click {
    background: rgba(15, 23, 42, 0.18);
}


:root {
    --primary-color: #ffffff;
    --secondary-color: #e5e5e5;
    --accent-color: #d4d4d4;
    --dark-color: #0a0a0a;
    --light-color: #1a1a1a;
    --white: #ffffff;
    --gray-100: #333333;
    --gray-200: #404040;
    --gray-300: #4a4a4a;
    --gray-400: #6b6b6b;
    --gray-500: #808080;
    --gray-600: #999999;
    --gray-700: #1a1a1a;
    --gray-800: #0f0f0f;
    --gray-900: #050505;
    --success-color: #ffffff; 
    --warning-color: #ffffff; 
    --error-color: #ffcccc; 
    --container-max-width: 1200px;
    --section-padding: 80px 0;
    --border-radius: 20px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.7), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    --transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --glow: 0 0 20px rgba(255, 255, 255, 0.15);

    --light-primary-color: #ffffff;
    --light-secondary-color: #e5e5e5;
    --light-accent-color: #d4d4d4;
    --light-bg-color: #ffffff;
    --light-surface-color: #f1f5f9;
    --light-text-color: #0F172A;
    --light-text-secondary: #475569;
}


[data-theme="light"] {
    --primary-color: #0F172A;
    --secondary-color: #475569;
    --accent-color: #64748b;
    --dark-color: #ffffff;
    --light-color: #f1f5f9;
    --white: #0F172A;
    --gray-100: #e2e8f0;
    --gray-200: #cbd5e1;
    --gray-300: #94a3b8;
    --gray-400: #64748b;
    --gray-500: #475569;
    --gray-600: #334155;
    --gray-700: #1e293b;
    --gray-800: #0f172a;
    --gray-900: #0F172A;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    --glow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
    background: var(--dark-color);
}

.section__title {
    font-size: 2.8rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--white);
    position: relative;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--white), rgba(200, 200, 200, 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.3));
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.text-primary {
    color: var(--secondary-color);
    text-shadow: none;
}

.text-success {
    color: #10b981;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.btn--primary {
    background: linear-gradient(135deg, #ffffff 0%, #e5e5e5 100%);
    color: #000000;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    position: relative;
}

.btn--success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    position: relative;
}

.btn--success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn--success:hover {
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.6);
    transform: translateY(-2px);
}

.btn--success:hover::before {
    left: 0;
}

.btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #d4d4d4 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn--primary:hover {
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn--primary:hover::before {
    left: 0;
}

.btn--secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.btn--secondary:hover {
    background: linear-gradient(135deg, #ffffff 0%, #e5e5e5 100%);
    color: #000000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    border-color: transparent;
}

.btn--full {
    width: 100%;
}

.btn__loading {
    display: none;
}

.btn.loading .btn__text {
    display: none;
}

.btn.loading .btn__loading {
    display: inline;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: var(--transition);
    padding: 0.5rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    width: 44px;
    height: 44px;
    background: #ffffff;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 900;
    font-size: 1.3rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.logo-text:hover {
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.logo-name {
    color: var(--white);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 1px;
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav__link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__link:hover,
.nav__link.active {
    color: var(--white);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    transition: var(--transition);
}

.nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(138, 43, 226, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 60% 70%, rgba(30, 144, 255, 0.03) 0%, transparent 50%);
    animation: gradient-shift 12s ease-in-out infinite;
    opacity: 1;
}

@keyframes gradient-shift {
    0%, 100% {
        filter: hue-rotate(0deg) brightness(1);
        transform: scale(1);
    }
    33% {
        filter: hue-rotate(120deg) brightness(1.1);
        transform: scale(1.05);
    }
    66% {
        filter: hue-rotate(240deg) brightness(0.9);
        transform: scale(0.95);
    }
}

.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: -150px;
    right: -150px;
    animation: float 8s ease-in-out infinite;
    filter: blur(1px);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-40px) rotate(180deg);
        opacity: 1;
    }
    75% {
        transform: translateY(-20px) rotate(270deg);
        opacity: 0.8;
    }
}

/* Animated particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.25);
    animation: particle-float 12s linear infinite;
}

.particle:nth-child(1) { width: 3px; height: 3px; left: 5%; animation-delay: 0s; animation-duration: 14s; }
.particle:nth-child(2) { width: 5px; height: 5px; left: 12%; animation-delay: 1.1s; animation-duration: 11.4s; }
.particle:nth-child(3) { width: 4px; height: 4px; left: 20%; animation-delay: 2.2s; animation-duration: 13.7s; }
.particle:nth-child(4) { width: 6px; height: 6px; left: 27%; animation-delay: 3.4s; animation-duration: 15.2s; }
.particle:nth-child(5) { width: 3px; height: 3px; left: 34%; animation-delay: 4.6s; animation-duration: 12.3s; }
.particle:nth-child(6) { width: 5px; height: 5px; left: 42%; animation-delay: 5.8s; animation-duration: 14.1s; }
.particle:nth-child(7) { width: 4px; height: 4px; left: 51%; animation-delay: 7s; animation-duration: 13.5s; }
.particle:nth-child(8) { width: 6px; height: 6px; left: 59%; animation-delay: 8.1s; animation-duration: 12.9s; }
.particle:nth-child(9) { width: 5px; height: 5px; left: 67%; animation-delay: 9.3s; animation-duration: 14.4s; }
.particle:nth-child(10) { width: 4px; height: 4px; left: 75%; animation-delay: 10.5s; animation-duration: 13.8s; }
.particle:nth-child(11) { width: 5px; height: 5px; left: 83%; animation-delay: 11.7s; animation-duration: 12.6s; }
.particle:nth-child(12) { width: 3px; height: 3px; left: 90%; animation-delay: 12.8s; animation-duration: 15.1s; }
.particle:nth-child(13) { width: 4px; height: 4px; left: 18%; animation-delay: 14s; animation-duration: 14.3s; }
.particle:nth-child(14) { width: 5px; height: 5px; left: 38%; animation-delay: 15.2s; animation-duration: 11.9s; }
.particle:nth-child(15) { width: 4px; height: 4px; left: 68%; animation-delay: 16.4s; animation-duration: 13.2s; }

@keyframes particle-float {
    0% {
        transform: translateY(100vh) translateX(0) scale(0.6);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    50% {
        transform: translateY(45vh) translateX(24px) scale(1);
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(-120px) translateX(-12px) scale(0.8);
        opacity: 0;
    }
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__title {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--white), rgba(200, 200, 200, 0.6));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInLeft 0.8s ease-out 0.2s backwards, title-glow 4s ease-in-out infinite alternate;
    position: relative;
    z-index: 2;
}

@keyframes title-glow {
    0% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
        filter: brightness(1);
    }
    50% {
        text-shadow: 0 0 40px rgba(255, 255, 255, 0.6), 0 0 80px rgba(255, 255, 255, 0.3);
        filter: brightness(1.1);
    }
    100% {
        text-shadow: 0 0 60px rgba(255, 255, 255, 0.8), 0 0 120px rgba(255, 255, 255, 0.4);
        filter: brightness(1.05);
    }
}

.hero__subtitle {
    font-size: 1.3rem;
    color: rgba(200, 200, 200, 0.7);
    margin-bottom: 2rem;
    line-height: 1.7;
    animation: slideInLeft 0.8s ease-out 0.4s backwards;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideInLeft 0.8s ease-out 0.6s backwards;
}

.hero__code {
    background: rgba(10, 10, 10, 0.5);
    color: rgba(200, 200, 200, 0.8);
    padding: 2rem;
    border-radius: var(--border-radius);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    animation: slideInRight 0.8s ease-out 0.5s backwards;
}

.hero__code:hover {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 25px 60px rgba(255, 255, 255, 0.1);
}

.hero__code::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    opacity: 0.7;
}

.hero__code::after {
    content: '● ● ●';
    position: absolute;
    top: 12px;
    left: 16px;
    font-size: 12px;
    color: var(--secondary-color);
}

.code-line {
    margin-bottom: 0.5rem;
    padding-top: 0.5rem;
}

.code-line:first-child {
    padding-top: 2rem;
}

.code-tag {
    color: rgba(200, 200, 200, 0.8);
}

.code-text {
    color: var(--white);
}

.code-indent {
    color: rgba(200, 200, 200, 0.7);
}

/* SUCCESS THEME STYLES */
.success-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.success-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    animation: gradient-shift 8s ease-in-out infinite;
    opacity: 1;
}

.success-hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.success-code {
    background: rgba(10, 10, 10, 0.5);
    border: 2px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.2);
}

.success-code:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 25px 60px rgba(16, 185, 129, 0.3);
}

.success-code::before {
    background: linear-gradient(90deg, #10b981, #059669, #047857);
    opacity: 0.8;
}

.code-success {
    color: #10b981;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.about {
    background: linear-gradient(135deg, var(--light-color) 0%, rgba(20, 20, 20, 0.8) 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -200px;
    right: -200px;
    animation: float 8s ease-in-out infinite;
}

.about__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about__text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.about__skills {
    margin-top: 2rem;
}

.skill {
    margin-bottom: 1.5rem;
}

.skill__name {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.skill__bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.skill__percentage {
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.4));
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.about__image {
    position: relative;
}

.about__img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
    position: relative;
}

.about__img:hover {
    transform: scale(1.05) rotate(-2deg);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.services {
    background: var(--dark-color);
}

.services__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service__card {
    background: rgba(30, 30, 30, 0.3);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateZ(0);
}

.service__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: var(--border-radius);
    opacity: 0;
    z-index: -1;
    transition: all 0.4s ease;
}

.service__card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: none;
}

.service__card:hover::before {
    opacity: 1;
}

.service__card:hover::after {
    opacity: 1;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.service__card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-15px) scale(1.02);
    background: rgba(30, 30, 30, 0.6);
    box-shadow: 0 25px 60px rgba(255, 255, 255, 0.15), 0 0 100px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.service__icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.service__card:hover .service__icon {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.service__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.service__description {
    color: rgba(200, 200, 200, 0.7);
    line-height: 1.6;
}

.portfolio {
    background: var(--dark-color);
}

.portfolio__container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* two columns for left/right layout */
    grid-auto-rows: auto;
    gap: 2rem;
}

.portfolio__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: rgba(30, 30, 30, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transform: translateZ(0);
}

.portfolio__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.portfolio__item:hover::before {
    opacity: 1;
}

.portfolio__item:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-20px) scale(1.03);
    box-shadow: 0 30px 60px rgba(255, 255, 255, 0.15), 0 0 120px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.portfolio__img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: none;
    transition: var(--transition);
    filter: brightness(0.9);
}

.portfolio__item:hover .portfolio__img {
    transform: scale(1.1) rotate(2deg);
    filter: brightness(1.1);
}

.portfolio__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
    text-align: center;
}

.portfolio__item:hover .portfolio__overlay {
    opacity: 1;
}

.portfolio__title {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1rem;
    animation: fadeIn 0.6s ease-out;
}

.portfolio__description {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    animation: fadeIn 0.8s ease-out 0.1s backwards;
}

.portfolio__tech {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.portfolio__item:hover .tech-tag {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

[data-theme="light"] .portfolio__overlay {
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.98) 0%, rgba(226, 232, 240, 0.98) 100%);
    backdrop-filter: blur(5px);
}

[data-theme="light"] .portfolio {
    background: #ffffff;
}

[data-theme="light"] .portfolio__title {
    color: var(--gray-900);
    font-weight: 800;
}

[data-theme="light"] .portfolio__description {
    color: var(--gray-900);
}

[data-theme="light"] .tech-tag {
    background: rgba(15, 23, 42, 0.08);
    color: #0F172A;
    border: 1px solid rgba(15, 23, 42, 0.25);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .portfolio__item:hover .tech-tag {
    background: rgba(15, 23, 42, 0.15);
    border-color: rgba(15, 23, 42, 0.4);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

/* LIGHT THEME OVERRIDES */
[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .logo-text {
    background: #0F172A;
    color: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .logo-text:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .nav__link {
    color: rgba(15, 23, 42, 0.6);
}

[data-theme="light"] .nav__link::after {
    background: rgba(15, 23, 42, 0.8);
}

[data-theme="light"] .nav__link:hover,
[data-theme="light"] .nav__link.active {
    color: var(--white);
}

[data-theme="light"] .nav__toggle span {
    background: var(--white);
}

[data-theme="light"] .hero {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 50%, #f5f5f5 100%);
}

[data-theme="light"] .hero::before {
    background: radial-gradient(circle at 20% 50%, rgba(15, 23, 42, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(15, 23, 42, 0.03) 0%, transparent 50%);
}

[data-theme="light"] .hero::after {
    background: radial-gradient(circle, rgba(15, 23, 42, 0.05) 0%, transparent 70%);
}

[data-theme="light"] .hero__title {
    background: linear-gradient(135deg, var(--white), rgba(71, 85, 105, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .hero__subtitle {
    color: rgba(15, 23, 42, 0.85);
}

[data-theme="light"] .hero__code {
    background: rgba(255, 255, 255, 0.6);
    color: rgba(15, 23, 42, 0.8);
    border: 2px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .hero__code:hover {
    border-color: rgba(15, 23, 42, 0.25);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .hero__code::before {
    background: linear-gradient(90deg, #0F172A, #475569, #64748b);
    opacity: 0.9;
}

[data-theme="light"] .hero__code::after {
    color: #0F172A;
}

[data-theme="light"] .code-tag,
[data-theme="light"] .code-text,
[data-theme="light"] .code-indent {
    color: #0F172A;
}

[data-theme="light"] .btn--primary {
    background: linear-gradient(135deg, #0F172A 0%, #1e293b 100%);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .btn--primary::before {
    background: linear-gradient(135deg, #1a202c 0%, #334155 100%);
}

[data-theme="light"] .btn--primary:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .btn--secondary {
    background: rgba(15, 23, 42, 0.05);
    color: var(--white);
    border: 2px solid rgba(15, 23, 42, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .btn--secondary:hover {
    background: linear-gradient(135deg, #0F172A 0%, #1e293b 100%);
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

[data-theme="light"] .section__title {
    background: linear-gradient(135deg, var(--white), rgba(71, 85, 105, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .section__title::after {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.2));
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .text-primary {
    color: #3b82f6;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

[data-theme="light"] .about {
    background: linear-gradient(135deg, #f1f5f9 0%, rgba(241, 245, 249, 0.8) 100%);
}

[data-theme="light"] .about::before {
    background: radial-gradient(circle, rgba(15, 23, 42, 0.05) 0%, transparent 70%);
}

[data-theme="light"] .about__text {
    color: rgba(15, 23, 42, 0.8);
}

[data-theme="light"] .skill__name {
    color: rgba(15, 23, 42, 0.8);
}

[data-theme="light"] .skill__bar {
    background: rgba(15, 23, 42, 0.1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .skill__percentage {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.4));
    box-shadow: 0 0 20px rgba(15, 23, 42, 0.2);
}

[data-theme="light"] .about__img {
    border: 3px solid rgba(15, 23, 42, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .about__img:hover {
    border-color: rgba(15, 23, 42, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .service__card {
    background: rgba(241, 245, 249, 0.5);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .service__card:hover {
    border-color: rgba(15, 23, 42, 0.2);
    background: rgba(241, 245, 249, 0.8);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .service__card::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.08));
}

[data-theme="light"] .service__card:hover::before {
    opacity: 0.15;
}

[data-theme="light"] .service__icon {
    background: rgba(15, 23, 42, 0.08);
    border: 2px solid rgba(15, 23, 42, 0.15);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .service__card:hover .service__icon {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    background: rgba(15, 23, 42, 0.15);
    border-color: rgba(15, 23, 42, 0.3);
}

[data-theme="light"] .service__title {
    color: var(--white);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}

[data-theme="light"] .service__description {
    color: rgba(15, 23, 42, 0.8);
}

[data-theme="light"] .portfolio__item {
    background: #f1f5f9;
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .portfolio__item:hover {
    border-color: rgba(15, 23, 42, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}



[data-theme="light"] .contact {
    background: #ffffff;
}

[data-theme="light"] .contact__subtitle {
    color: var(--white);
}

[data-theme="light"] .contact__text {
    color: rgba(15, 23, 42, 0.7);
}

[data-theme="light"] .contact__icon {
    background: rgba(15, 23, 42, 0.08);
    border: 2px solid rgba(15, 23, 42, 0.15);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .contact__item:hover .contact__icon {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    background: rgba(15, 23, 42, 0.15);
    border-color: rgba(15, 23, 42, 0.3);
}

[data-theme="light"] .contact__data h4 {
    color: var(--white);
}

[data-theme="light"] .contact__data span,
[data-theme="light"] .contact__data a {
    color: rgba(15, 23, 42, 0.6);
}

[data-theme="light"] .contact__form {
    background: rgba(241, 245, 249, 0.6);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .form__input {
    border: 2px solid rgba(15, 23, 42, 0.15);
    background: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

[data-theme="light"] .form__input:focus {
    border-color: rgba(15, 23, 42, 0.4);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .form__label {
    color: rgba(15, 23, 42, 0.5);
}

[data-theme="light"] .form__input:focus + .form__label,
[data-theme="light"] .form__input:not(:placeholder-shown) + .form__label {
    color: rgba(15, 23, 42, 0.8);
}

[data-theme="light"] .footer {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    color: var(--white);
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: inset 0 2px 20px rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .footer::before {
    background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.15), transparent);
    box-shadow: 0 0 20px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .footer__logo .logo-text {
    background: #0F172A;
    color: #ffffff;
    border: 2px solid rgba(15, 23, 42, 0.2);
}

[data-theme="light"] .footer__text {
    color: rgba(15, 23, 42, 0.6);
}

[data-theme="light"] .footer__title {
    color: var(--white);
}

[data-theme="light"] .footer__link {
    color: rgba(15, 23, 42, 0.6);
}

[data-theme="light"] .footer__link:hover {
    color: var(--white);
}

[data-theme="light"] .preloader {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

[data-theme="light"] .preloader::before {
    background: radial-gradient(circle, rgba(15, 23, 42, 0.05) 0%, transparent 70%);
}

[data-theme="light"] .loader circle {
    stroke: rgba(15, 23, 42, 0.6);
    filter: drop-shadow(0 0 20px rgba(15, 23, 42, 0.2));
}

[data-theme="light"] .site-content {
    background: #ffffff;
}

[data-theme="light"] .testimonials {
    background: #f1f5f9;
}

[data-theme="light"] .testimonial__card {
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .testimonial__card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .testimonial__quote {
    color: #0F172A;
}

[data-theme="light"] .testimonial__text {
    color: rgba(15, 23, 42, 0.85);
}

[data-theme="light"] .testimonial__name {
    color: var(--white);
}

[data-theme="light"] .testimonial__title {
    color: rgba(15, 23, 42, 0.6);
}

[data-theme="light"] .success-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 50%, #ffffff 100%);
}

[data-theme="light"] .success-hero::before {
    background: radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

[data-theme="light"] .success-hero::after {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
}

[data-theme="light"] .success-code {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.15);
}

[data-theme="light"] .success-code:hover {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 25px 60px rgba(16, 185, 129, 0.25);
}

[data-theme="light"] .text-success {
    color: #059669;
    text-shadow: 0 0 20px rgba(5, 150, 105, 0.4);
}

[data-theme="light"] .btn--success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

[data-theme="light"] .btn--success:hover {
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.5);
}

[data-theme="light"] .code-success {
    color: #059669;
    text-shadow: 0 0 10px rgba(5, 150, 105, 0.5);
}

.testimonials {
    background: var(--light-color);
}

.testimonials__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial__card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.testimonial__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial__quote {
    font-size: 4rem;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.testimonial__text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--gray-700);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial__img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial__name {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.testimonial__title {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.contact {
    background: var(--dark-color);
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact__subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.contact__text {
    color: rgba(200, 200, 200, 0.7);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact__icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.contact__item:hover .contact__icon {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.contact__data h4 {
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.contact__data span,
.contact__data a {
    color: rgba(200, 200, 200, 0.6);
}

.contact__form {
    background: rgba(30, 30, 30, 0.6);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.form__group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form__input {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(10, 10, 10, 0.5);
    color: var(--white);
    backdrop-filter: blur(5px);
}

.form__input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(10, 10, 10, 0.8);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.form__input:focus + .form__label,
.form__input:not(:placeholder-shown) + .form__label {
    transform: translateY(-2.5rem) scale(0.8);
    color: rgba(255, 255, 255, 0.9);
}

.form__label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    pointer-events: none;
    transform-origin: left;
}

.form__textarea {
    min-height: 120px;
    resize: vertical;
    background: rgba(10, 10, 10, 0.5);
    color: var(--white);
}

.form__error {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.form__group.error .form__input {
    border-color: var(--error-color);
}

.form__group.error .form__label {
    color: var(--error-color);
}

.footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: var(--primary-color);
    padding: 4rem 0 0;
    box-shadow: inset 0 2px 20px rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    margin-bottom: 0;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer__info {
    max-width: 400px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.footer__logo .logo-text {
    background: #ffffff;
    color: #000000;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.footer__logo .logo-name {
    color: var(--white);
}

.footer__text {
    color: var(--gray-400);
    line-height: 1.6;
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer__list {
    list-style: none;
}

.footer__list li {
    margin-bottom: 0.5rem;
}

.footer__link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
}

.footer__link:hover {
    color: var(--white);
}

.footer__social {
    display: flex;
    gap: 1.5rem;
}

.social__link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social__link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.social__link[title="Telegram"] {
    background: linear-gradient(135deg, #333333, #1a1a1a);
    color: #ffffff !important;
}

.social__link[title="Instagram"] {
    background: linear-gradient(135deg, #333333, #1a1a1a);
    color: #ffffff !important;
}

.social__link[title="Discord"] {
    background: linear-gradient(135deg, #444444, #2a2a2a);
    color: #ffffff !important;
}

.social__link[title="GitHub"] {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    color: #ffffff !important;
}

[data-theme="light"] .social__link[title="Telegram"] {
    background: linear-gradient(135deg, #cbd5e1, #e2e8f0);
    color: #0F172A !important;
}

[data-theme="light"] .social__link[title="Instagram"] {
    background: linear-gradient(135deg, #cbd5e1, #e2e8f0);
    color: #0F172A !important;
}

[data-theme="light"] .social__link[title="Discord"] {
    background: linear-gradient(135deg, #bac7d6, #d1dce6);
    color: #0F172A !important;
}

[data-theme="light"] .social__link[title="GitHub"] {
    background: linear-gradient(135deg, #cbd5e1, #e0e7f1);
    color: #0F172A !important;
}

.social__link:hover {
    transform: translateY(-8px) scale(1.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .social__link:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.social__link:hover::before {
    opacity: 1;
}

.social__link svg {
    width: 20px;
    height: 20px;
    fill: #ffffff !important;
}

.footer__bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: none;
    color: var(--gray-400);
    background: transparent;
    margin: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease-out;
}

@media (max-width: 768px) {
    .header {
        padding: 0.5rem 0;
    }
    .nav {
        padding: 0.5rem 10px;
    }
    .logo-text {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    .logo-name {
        font-size: 1rem;
    }
    .nav__menu {
        left: -100vw;
        width: 100vw;
    }
    .nav__menu.active {
        left: 0;
    }
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .hero__buttons {
        justify-content: center;
    }
    .about__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .skill {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    .contact__container {
        grid-template-columns: 1fr;
    }
    .portfolio__container {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
    .portfolio__img {
        height: 200px;
    }
    .contact__details {
        margin-bottom: 2rem;
    }
    .nav__menu {
        background: var(--dark-color);
        padding: 2rem;
    }
    .nav__link {
        font-size: 1.2rem;
        padding: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 6px;
    }
    .header {
        padding: 0.25rem 0;
    }
    .nav {
        padding: 0.25rem 4px;
    }
    .nav__logo {
        gap: 4px;
    }
    .logo-text {
        width: 24px;
        height: 24px;
        font-size: 0.95rem;
        border-radius: 6px;
    }
    .logo-name {
        font-size: 0.9rem;
    }
    .hero {
        min-height: 90vh;
    }
    .hero__title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    .hero__subtitle {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    .hero__code {
        padding: 0.7rem;
        font-size: 0.75rem;
    }
    .about__img {
        height: 140px;
        border-radius: 8px;
    }
    .about__text {
        font-size: 0.98rem;
    }
    .skill__name {
        font-size: 0.9rem;
    }
    .form__group {
        margin-bottom: 1rem;
    }
    .form__input, .form__textarea {
        font-size: 0.95rem;
        padding: 0.85rem;
    }
    .service__title,
    .portfolio__title,
    .contact__subtitle,
    .section__title {
        font-size: 1.05rem;
    }
    .portfolio__img {
        height: 110px;
    }
    .footer {
        padding: 1.5rem 0 0.7rem;
    }
    .footer__content {
        gap: 0.5rem;
    }
    .footer__logo {
        gap: 4px;
    }
    .footer__title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    .footer__list li {
        margin-bottom: 0.25rem;
    }
    .social__link {
        width: 32px;
        height: 32px;
    }
    .footer__bottom {
        padding-top: 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 1024px) {
    .nav__toggle {
        display: flex;
    }
    .nav__menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 56px;
        left: -100vw;
        width: 100vw;
        height: calc(100vh - 56px);
        background: var(--white);
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9999;
    }
    .nav__menu.active {
        left: 0;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 10px 7px;
        font-size: 0.97rem;
    }
}

html, body {
    margin: 0;
    padding: 0;
    background: #0a0a0a;
}

@media (max-width: 480px) {
    .section {
        padding: 3rem 0;
    }

    .hero {
        padding-top: 5rem;
    }

    .hero__title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .portfolio__img {
        height: 180px;
    }

    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__social {
        justify-content: center;
    }

    .footer__links {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
}

[data-theme="light"] .nav__menu {
    background: var(--light-bg-color);
}

[data-theme="light"] .nav__link {
    color: var(--gray-900);
}

.container {
    padding: 0 1.5rem;
}

.theme-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--white);
    margin-left: 1rem;
    position: relative;
}

.theme-toggle__sun,
.theme-toggle__moon {
    width: 24px;
    height: 24px;
    transition: var(--transition);
}

.theme-toggle__sun {
    display: none;
}

[data-theme="light"] .theme-toggle__sun {
    display: block;
}

[data-theme="light"] .theme-toggle__moon {
    display: none;
}

.theme-toggle:hover {
    color: var(--primary-color);
}

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .header,
    .footer,
    .nav__toggle,
    .btn {
        display: none !important;
    }

    .hero {
        min-height: auto;
    }

    .section {
        padding: 2rem 0;
    }

    * {
        color: black !important;
        background: white !important;
    }
}

::-webkit-scrollbar {
    width: 8px;
    background: var(--dark-color);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 8px;
}

[data-theme="light"] ::-webkit-scrollbar {
    background: #f1f5f9;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #0F172A;
}

.hero .btn--primary {
    background: linear-gradient(135deg, #ffffff, #e5e5e5);
    color: #000000;
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .hero .btn--primary {
    background: linear-gradient(135deg, #0F172A, #1e293b);
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.hero .btn--primary:hover {
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.hero .btn--secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.hero .btn--secondary:hover {
    background: linear-gradient(135deg, #ffffff, #e5e5e5);
    color: #000000;
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

/* Modern Animations */
@keyframes slideInLeft {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes stagger-animation {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.stagger-animation {
    animation: stagger-animation 0.8s ease-out forwards;
}

.animate-fadeInLeft {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-fadeInRight {
    animation: slideInRight 0.8s ease-out 0.2s forwards;
}

/* Scroll-triggered animations */
@keyframes slideUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

/* Modern hover effects */
.glow-on-hover {
    transition: all 0.3s ease;
}

.glow-on-hover:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .cursor {
        display: none;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .particles {
        display: none;
    }
}

[data-theme="light"] .hero .btn--secondary {
    background: rgba(15, 23, 42, 0.05);
    color: var(--white);
    border: 2px solid rgba(15, 23, 42, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .hero .btn--secondary:hover {
    background: linear-gradient(135deg, #0F172A, #1e293b);
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease-in-out;
    opacity: 1;
    backdrop-filter: blur(5px);
}

.preloader::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.loader {
    width: 100px;
    height: 100px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.loader svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.loader circle {
    fill: none;
    stroke: url(#gradient-loader);
    stroke-width: 5;
    stroke-dasharray: 200;
    stroke-dashoffset: 0;
    transform-origin: center;
    animation: dash 2s linear infinite;
    stroke: rgba(255, 255, 255, 0.6);
}

@keyframes dash {
    to {
        stroke-dashoffset: -200;
    }
}

.logo-reveal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 200px;
    height: 200px;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 20px 40px rgba(255, 255, 255, 0.25));
    border-radius: 30px;
    will-change: transform, opacity;
}

.logo-reveal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    animation: pulse-scale 0.8s ease-out;
}

.logo-reveal.zoom-out {
    transform: translate(-50%, -50%) scale(8);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: auto;
    filter: blur(2px);
}

[data-theme="light"] .logo-reveal {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

@keyframes pulse-scale {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.site-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
    min-height: 100vh;
    background: #0a0a0a;
}

[data-theme="light"] .site-content {
    background: #ffffff;
}

.site-content.reveal {
    opacity: 1;
    transform: translateY(0);
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-animation {
    opacity: 0;
    animation: contentFadeIn 0.5s ease-out forwards;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-30px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.8);
    }
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.skill__percentage {
    animation: fillBar 1.5s ease-in-out forwards;
}

@keyframes fillBar {
    0% {
        width: 0;
    }
}