/* ===== Custom Font - Essence Round Regular ===== */
@font-face {
    font-family: 'Essence Round';
    src: url('../fonts/EssenceRound.woff2') format('woff2'),
         url('../fonts/EssenceRound.woff') format('woff'),
         url('../fonts/EssenceRound.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --light-text: #f1f5f9;
    --gray-text: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border-color: rgba(148, 163, 184, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Fonts */
    --font-primary: 'Essence Round', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Inter', 'Segoe UI', -apple-system, sans-serif;
    --font-mono: 'Courier New', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== PROTECT ALL ICONS ===== */
i,
.fa, .fas, .far, .fab, .fal, .fad,
.fa-brands, .fa-solid, .fa-regular,
[class*="fa-"],
.social-links i,
.footer-social i,
.resume-link i,
.theme-toggle i,
footer i,
.navbar i,
nav i {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Brands" !important;
    font-style: normal !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Background Canvas ===== */
#geometricCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background: #020617;
}

/* ===== Intro Splash Screen ===== */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-out;
}

.intro-content {
    text-align: center;
}

.intro-greeting {
    font-family: 'Essence Round', 'Segoe UI', sans-serif;
    font-size: 6rem;
    font-weight: 900;
    color: #ffffff !important;
    margin-bottom: 1rem;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 2px;
}

.intro-lang {
    font-family: 'Essence Round', 'Segoe UI', sans-serif;
    font-size: 1.2rem;
    color: #ffffff !important;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.5s ease-out;
}

body:not(.intro-complete) {
    overflow: hidden;
}

body:not(.intro-complete) .navbar,
body:not(.intro-complete) .hero,
body:not(.intro-complete) section {
    opacity: 0;
}

body.intro-complete .navbar,
body.intro-complete .hero,
body.intro-complete section {
    animation: fadeInContent 1s ease-out forwards;
}

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

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
    z-index: 10002;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 8px;
    filter: drop-shadow(0 5px 15px rgba(99, 102, 241, 0.4));
    animation: logoFloat 3s ease-in-out infinite;
    position: relative;
}

.logo-image:hover {
    transform: scale(1.15) rotateY(10deg) rotateZ(-2deg);
    filter: drop-shadow(0 10px 30px rgba(99, 102, 241, 0.6)) brightness(1.2);
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px) rotateZ(0deg);
    }
    50% {
        transform: translateY(-8px) rotateZ(2deg);
    }
}

.logo-container:hover .logo-image {
    animation: logoGlow 0.6s ease-in-out;
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 5px 15px rgba(99, 102, 241, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(99, 102, 241, 1));
    }
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

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

.nav-link {
    font-family: var(--font-primary);
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.resume-link {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    color: white !important;
    font-weight: 600;
}

.nav-link.resume-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.nav-link.resume-link::after {
    display: none;
}

.nav-link.resume-link i {
    margin-right: 5px;
}

/* ===== Hamburger Menu ===== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 10001;
    position: relative;
    padding: 12px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 8px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--light-text);
    transition: var(--transition);
    display: block;
}

.hamburger:hover {
    background: rgba(99, 102, 241, 0.3);
    transform: scale(1.05);
}

.hamburger:active {
    transform: scale(0.95);
    background: rgba(99, 102, 241, 0.4);
}

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

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

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

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    padding-top: 80px;
    position: relative;
    box-sizing: border-box;
}

.hero-content {
    transform: translateY(0);
    z-index: 1;
    max-width: 1200px;
    width: 100%;
}

.greeting {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--gray-text);
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
    min-height: 2rem;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.name {
    display: block;
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    letter-spacing: -2px;
    line-height: 1.1;
    text-shadow:
        0 0 80px rgba(255, 255, 255, 0.5),
        0 0 30px rgba(99, 102, 241, 0.3),
        0 4px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    text-transform: uppercase;
}

.name::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(99, 102, 241, 0.8) 20%,
        rgba(139, 92, 246, 0.8) 50%,
        rgba(236, 72, 153, 0.8) 80%,
        transparent 100%
    );
}

.hero-logo {
    display: block;
    max-width: 1000px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#typedText {
    font-family: var(--font-primary);
    display: inline-block;
    min-height: 1.5em;
    color: var(--light-text);
}

.cursor {
    display: inline-block;
    width: 2px;
    background-color: #fff;
    margin-left: 2px;
    animation: blink 0.8s steps(2, start) infinite;
}

@keyframes blink {
    to {
        visibility: hidden;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    flex-wrap: wrap;
}

.btn {
    font-family: var(--font-primary);
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
    font-size: 1.15rem;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-resume {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: 2px solid transparent;
}

.btn-resume:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.btn-resume i {
    margin-right: 8px;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    transform: translateX(-50%) scale(1.1);
}

.scroll-indicator:active {
    transform: translateX(-50%) scale(0.95);
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    position: relative;
    background: rgba(99, 102, 241, 0.1);
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(30px); opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
    font-weight: 900;
    letter-spacing: -1px;
    text-shadow:
        0 0 40px rgba(255, 255, 255, 0.3),
        0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg,
        transparent,
        rgba(99, 102, 241, 0.8),
        rgba(139, 92, 246, 0.8),
        rgba(236, 72, 153, 0.8),
        transparent
    );
}

/* ===== About Section ===== */
.about {
    position: relative;
    padding: 150px 0;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.about-background-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%),
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(236, 72, 153, 0.2) 0%, transparent 50%);
    z-index: 0;
    transform: translateZ(0);
}

.about .container {
    position: relative;
    z-index: 1;
}

.about-legendary-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.2fr;
    gap: 8rem;
    align-items: center;
    margin-top: 4rem;
}

.about-photo-section {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-left: -150px;
}

.photo-container {
    position: relative;
    width: 800px;
    height: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.particle {
    position: absolute;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    opacity: 0.6;
    animation: float 4s ease-in-out infinite;
}

.particle-1 { top: 10%; left: 10%; animation-delay: 0s; }
.particle-2 { top: 20%; right: 15%; animation-delay: 0.5s; }
.particle-3 { bottom: 20%; left: 15%; animation-delay: 1s; }
.particle-4 { bottom: 15%; right: 20%; animation-delay: 1.5s; }
.particle-5 { top: 50%; left: 5%; animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-10px) translateX(-10px); }
    75% { transform: translateY(-15px) translateX(5px); }
}

.photo-3d-frame {
    position: relative;
    width: 700px;
    height: 700px;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.photo-3d-frame:hover {
    transform: rotateY(10deg) rotateX(5deg) scale(1.05);
}

.photo-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: translateZ(50px);
}

.profile-epic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(1.1) contrast(1.05);
    transition: var(--transition);
}

.photo-3d-frame:hover .profile-epic {
    filter: brightness(1.2) contrast(1.1);
    transform: scale(1.05);
}

.photo-glow {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.photo-3d-frame:hover .photo-glow {
    opacity: 1;
    animation: pulse 2s ease-in-out infinite;
}

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

.rotating-ring {
    position: absolute;
    width: 800px;
    height: 800px;
    border: 4px solid transparent;
    border-top-color: var(--primary-color);
    border-right-color: var(--secondary-color);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
    opacity: 0.3;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.floating-icon {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--card-bg);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    animation: floatIcon 3s ease-in-out infinite;
    cursor: pointer;
    transition: var(--transition);
}

.floating-icon:hover {
    transform: scale(1.2) translateY(-5px);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
}

.icon-1 { top: -10%; left: 50%; transform: translateX(-50%); }
.icon-2 { top: 20%; right: -10%; }
.icon-3 { top: 85%; right: -5%; }
.icon-4 { bottom: -10%; left: 50%; transform: translateX(-50%); }
.icon-5 { top: 85%; left: -5%; }
.icon-6 { top: 20%; left: -10%; }

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

.about-content-section {
    position: relative;
}

.bio-text {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: white;
    line-height: 1.8;
    max-width: 650px;
    min-height: 200px;
}

.about-typing-text {
    display: inline;
}

.bio-text::after {
    content: '|';
    color: #6366F1;
    animation: blinkCursor 0.8s step-end infinite;
}

@keyframes blinkCursor {
    50% { opacity: 0; }
}

.fade-out {
    animation: fadeOut 1s forwards;
}

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

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-description {
    margin-bottom: 2.5rem;
}

.lead-text {
    font-family: var(--font-primary);
    font-size: 1.4rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.about-description p {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--gray-text);
    margin-bottom: 1.25rem;
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    opacity: 0.3;
}

.skill-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.skill-highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 15px;
    transition: var(--transition);
}

.skill-highlight-item:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.skill-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
}

.skill-text h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    color: var(--light-text);
}

.skill-text p {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    color: var(--gray-text);
    margin: 0;
}

.about-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.about-actions .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.about-actions .btn i {
    margin-right: 0.5rem;
}

/* ===== Skills Section ===== */
.skills {
    background: rgba(15, 23, 42, 0.5);
}

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

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
}

.skill-category h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.skill-tag {
    font-family: var(--font-primary);
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 25px;
    color: var(--light-text);
    font-size: 0.875rem;
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
}

/* ===== Projects Section ===== */
.projects {
    padding: 120px 0;
}

.projects-intro {
    font-family: var(--font-primary);
    text-align: center;
    font-size: 1.3rem;
    color: var(--gray-text);
    margin-bottom: 5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.projects-showcase {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.project-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.project-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.project-reverse {
    grid-template-columns: 1fr 1.2fr;
}

.project-reverse .project-device {
    order: 2;
}

.project-reverse .project-info {
    order: 1;
    text-align: right;
}

.project-reverse .project-tags,
.project-reverse .project-links {
    justify-content: flex-end;
}

.project-device {
    perspective: 2000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.macbook-container {
    width: 100%;
    max-width: 650px;
    position: relative;
}

.macbook-lid {
    transform-origin: bottom;
    transform: rotateX(-95deg);
    transition: transform 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    padding-top: 62%;
}

.macbook-screen {
    position: absolute;
    top: 4%;
    left: 4%;
    right: 4%;
    bottom: 8%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #2a2a2a;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
    opacity: 0.3;
    transition: opacity 1s ease-out 0.8s;
}

.macbook-screen.screen-on {
    opacity: 1;
}

.screen-bezel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 8px solid #1a1a1a;
    border-radius: 12px;
    pointer-events: none;
}

.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.macbook-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8%;
    background: linear-gradient(to bottom, #3a3a3a, #1a1a1a);
    border-radius: 0 0 12px 12px;
}

.macbook-bottom::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 5px;
    background: #0a0a0a;
    border-radius: 3px;
}

.macbook-base {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 12px;
    background: linear-gradient(to bottom, #2a2a2a, #0a0a0a);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
}

.smart-tv-container {
    width: 100%;
    max-width: 700px;
    position: relative;
}

.tv-frame {
    position: relative;
    padding-top: 56.25%;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 8px solid #0a0a0a;
}

.tv-screen {
    position: absolute;
    top: 4%;
    left: 3%;
    right: 3%;
    bottom: 4%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1.5s ease-out;
}

.tv-screen.tv-on {
    opacity: 1;
    animation: tvTurnOn 1.5s ease-out;
}

@keyframes tvTurnOn {
    0% {
        opacity: 0;
        transform: scaleY(0.1) scaleX(0.9);
    }
    50% {
        opacity: 0.5;
        transform: scaleY(0.5) scaleX(0.95);
    }
    100% {
        opacity: 1;
        transform: scaleY(1) scaleX(1);
    }
}

.tv-glare {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(255,255,255,0.1) 0%,
        transparent 50%,
        rgba(255,255,255,0.05) 100%);
    pointer-events: none;
    transition: opacity 1s ease-out;
}

.tv-stand {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 40px;
    background: linear-gradient(to bottom, #1a1a1a, #0a0a0a);
    border-radius: 8px 8px 0 0;
}

.tv-base {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 10px;
    background: linear-gradient(to bottom, #2a2a2a, #0a0a0a);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.project-info {
    padding: 2rem 0;
}

.project-number {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 1rem;
}

.project-info h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
    font-weight: 700;
}

.project-info p {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.project-tags {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.project-tags span {
    font-family: var(--font-primary);
    padding: 0.6rem 1.2rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 25px;
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.project-tags span:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.project-links {
    display: flex;
    gap: 1.5rem;
}

.project-link {
    font-family: var(--font-primary);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
}

.project-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.project-link i {
    font-size: 1.1rem;
}

.project-card:hover .macbook-container,
.project-card:hover .smart-tv-container {
    transform: translateY(-10px);
}

/* ===== Contact Section ===== */
.contact {
    background: rgba(15, 23, 42, 0.5);
}

.contact-intro {
    font-family: var(--font-primary);
    text-align: center;
    font-size: 1.3rem;
    color: var(--gray-text);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.contact-form {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    font-family: var(--font-primary);
    width: 100%;
    padding: 1.2rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--light-text);
    font-size: 1.15rem;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    font-family: var(--font-primary);
    color: var(--gray-text);
    font-size: 1.1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.2rem;
    margin-top: 1rem;
}

.form-message {
    font-family: var(--font-primary);
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    display: none;
    font-size: 1.1rem;
    text-align: center;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid #22c55e;
    color: #22c55e;
    display: block;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
    display: block;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.contact-info-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.info-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 1.2rem auto;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    color: white;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    transition: var(--transition);
}

.contact-info-item:hover .info-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.6);
}

.info-content h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--light-text);
    margin-bottom: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.animated-text {
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', var(--font-mono);
    font-size: 1.15rem;
    background: linear-gradient(135deg, #22d3ee, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-height: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    padding: 0.3rem 0;
}

/* ===== Footer ===== */
.footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-left p {
    font-family: var(--font-primary);
    color: var(--gray-text);
    font-size: 1.05rem;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    transition: var(--transition);
    font-size: 1.2rem;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-right {
    display: flex;
    align-items: center;
}

.footer-logo {
    display: inline-block;
    transition: var(--transition);
}

.footer-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    border-radius: 8px;
}

.footer-logo-img:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px) scale(0.5);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 999;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    overflow: hidden;
}

.back-to-top::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.back-to-top:hover::before {
    width: 100%;
    height: 100%;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
}

.back-to-top:active {
    transform: translateY(-5px) scale(1.05);
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
    width: 60px;
    height: 60px;
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.1s linear;
    stroke-linecap: round;
}

.back-to-top-icon {
    position: relative;
    z-index: 1;
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.back-to-top:hover .back-to-top-icon {
    transform: translateY(-3px);
    animation: bounceArrow 0.6s ease infinite;
}

@keyframes bounceArrow {
    0%, 100% { transform: translateY(-3px); }
    50% { transform: translateY(-8px); }
}

/* ===== THEME TOGGLE BUTTON - FIXED FOR GRAY ===== */
.theme-toggle {
    position: fixed;
    top: 100px;
    right: 30px;
    width: 70px;
    height: 35px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 9999;
    padding: 0;
}

.toggle-track {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6); /* Dark mode - keep purple */
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
}

/* FIXED: Light mode toggle - NOW GRAY instead of purple */
.theme-toggle.light-mode .toggle-track {
    background: linear-gradient(135deg, #64748b, #475569); /* GRAY gradient */
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3); /* Gray shadow */
}

.sun-icon,
.moon-icon {
    font-size: 0.9rem;
    color: white;
    transition: all 0.3s ease;
    z-index: 2;
}

.moon-icon {
    opacity: 1;
}

.sun-icon {
    opacity: 0.3;
}

.theme-toggle.light-mode .sun-icon {
    opacity: 1;
}

.theme-toggle.light-mode .moon-icon {
    opacity: 0.3;
}

.toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 29px;
    height: 29px;
    background: white;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.theme-toggle.light-mode .toggle-thumb {
    transform: translateX(35px);
}

/* Hover effects - Different for each mode */
.theme-toggle:hover .toggle-track {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4); /* Purple hover in dark mode */
}

.theme-toggle.light-mode:hover .toggle-track {
    box-shadow: 0 6px 20px rgba(100, 116, 139, 0.4); /* Gray hover in light mode */
}

/* ============================================
   RESPONSIVE DESIGN - ALL BREAKPOINTS
   ============================================ */

/* ===== TABLET (max-width: 968px) ===== */
@media (max-width: 968px) {
    /* Navigation */
    .hamburger {
        display: flex !important;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        padding: 2rem 0;
        gap: 0;
        z-index: 9999;
    }

    .nav-menu.active {
        left: 0 !important;
    }

    .nav-menu li {
        margin: 1.5rem 0;
    }

    /* Logos */
    .logo-image {
        height: 35px;
    }

    .hero-logo {
        max-width: 700px;
    }

    .footer-logo-img {
        height: 30px;
    }

    /* About Section */
    .about-legendary-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-photo-section {
        margin-left: 0;
        justify-content: center;
    }

    .photo-container {
        width: 400px;
        height: 400px;
    }

    .photo-3d-frame {
        width: 350px;
        height: 350px;
    }

    .rotating-ring {
        width: 420px;
        height: 420px;
    }

    .floating-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* Projects */
    .project-card,
    .project-reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-reverse .project-device {
        order: 1;
    }

    .project-reverse .project-info {
        order: 2;
        text-align: left;
    }

    .project-reverse .project-tags,
    .project-reverse .project-links {
        justify-content: flex-start;
    }
}

/* ===== MOBILE PHONES (max-width: 768px) ===== */
@media (max-width: 768px) {
    /* Intro */
    .intro-greeting {
        font-size: 4rem;
    }

    .intro-lang {
        font-size: 1rem;
    }

    /* Navigation */
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .logo-image {
        height: 25px;
    }

    /* Hero - CENTERED */
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 1rem;
        padding-top: 80px;
        padding-bottom: 70px;
    }

    .hero-content {
        transform: translateY(0);
    }

    .greeting {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .name {
        font-size: 2.5rem;
        line-height: 1.2;
        letter-spacing: -1px;
    }

    .hero-logo {
        max-width: 900px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        min-height: 40px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }

    .btn {
        width: 100%;
        max-width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .scroll-indicator {
        bottom: 1rem;
    }

    .scroll-indicator span {
        width: 25px;
        height: 40px;
    }

    /* About */
    .about {
        padding: 80px 0;
    }

    .photo-container {
        width: 300px;
        height: 300px;
    }

    .photo-3d-frame {
        width: 250px;
        height: 250px;
    }

    .rotating-ring {
        width: 320px;
        height: 320px;
    }

    .floating-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .bio-text {
        font-size: 1.1rem;
        line-height: 1.6;
        max-width: 100%;
        padding: 0 1rem;
    }

    .about-content-section {
        padding: 1rem;
    }

    .skill-highlights {
        grid-template-columns: 1fr;
    }

    .about-actions {
        flex-direction: column;
    }

    .about-actions .btn {
        width: 100%;
    }

    /* Skills */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .skill-category h3 {
        font-size: 1.3rem;
    }

    .skill-tag {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

    /* Projects */
    .projects {
        padding: 80px 0;
    }

    .projects-showcase {
        gap: 4rem;
    }

    .project-number {
        font-size: 3rem;
    }

    .project-info h3 {
        font-size: 1.8rem;
    }

    .project-info p {
        font-size: 1rem;
    }

    .macbook-container,
    .smart-tv-container {
        max-width: 100%;
    }

    .project-links {
        flex-direction: column;
    }

    .project-link {
        width: 100%;
        justify-content: center;
    }

    /* Contact */
    .contact {
        padding: 80px 0;
    }

    .contact-form-wrapper {
        padding: 0 1rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group input,
    .form-group textarea {
        padding: 1rem;
        font-size: 1rem;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .info-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }

    .animated-text {
        font-size: 1rem;
    }

    /* Section Titles */
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .projects-intro,
    .contact-intro {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    /* Footer - Logo RIGHT, same size as header */
    .footer {
        padding: 1.5rem 0;
    }

    .footer-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }

    .footer-left {
        order: 1;
        flex: 1;
    }

    .footer-left p {
        font-size: 0.8rem;
        text-align: left;
    }

    .footer-right {
        order: 2;
    }

    .footer-logo-img {
        height: 35px;
    }

    .footer-social {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }

    .footer-social a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Back to Top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .back-to-top-icon {
        font-size: 1.2rem;
    }

    .progress-ring {
        width: 50px;
        height: 50px;
    }

    /* Theme Toggle */
    .theme-toggle {
        top: 85px;
        right: 20px;
        width: 60px;
        height: 30px;
    }

    .toggle-thumb {
        width: 24px;
        height: 24px;
    }

    .theme-toggle.light-mode .toggle-thumb {
        transform: translateX(30px);
    }

    .sun-icon,
    .moon-icon {
        font-size: 0.75rem;
    }
}

/* ===== SMALL PHONES (max-width: 480px) ===== */
@media (max-width: 480px) {
    /* Hero - CENTERED */
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 1rem;
        padding-top: 70px;
        padding-bottom: 60px;
    }

    .hero-content {
        transform: translateY(0);
    }

    .greeting {
        font-size: 1rem;
    }

    .name {
        font-size: 2rem;
    }

    .hero-logo {
        max-width: 320px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .social-links a {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    /* Logos */
    .logo-image {
        height: 25px;
    }

    .footer-logo-img {
        height: 15px;
    }

    .footer-left p {
        font-size: 0.75rem;
    }
}

/* ===== VERY SMALL PHONES (max-width: 375px) ===== */
@media (max-width: 375px) {
    /* Hero - CENTERED */
    .hero {
        padding-top: 65px;
        padding-bottom: 55px;
    }

    .hero-content {
        transform: translateY(0);
    }

    .greeting {
        font-size: 0.9rem;
    }

    .name {
        font-size: 1.7rem;
    }

    .hero-logo {
        max-width: 260px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .btn {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    /* About */
    .photo-container {
        width: 250px;
        height: 250px;
    }

    .photo-3d-frame {
        width: 200px;
        height: 200px;
    }

    .bio-text {
        font-size: 1rem;
    }

    /* Footer */
    .footer-logo-img {
        height: 12px;
    }

    .footer-left p {
        font-size: 0.7rem;
    }
}

/* ============================================
   LIGHT MODE - MINIMAL GRAY THEME
   ============================================ */

body[data-theme="light"] {
    --primary-color: #64748b;      /* Slate gray */
    --secondary-color: #475569;    /* Darker slate */
    --accent-color: #94a3b8;       /* Light slate */
    --dark-bg: #f8fafc;
    --darker-bg: #f1f5f9;
    --light-text: #0f172a;
    --gray-text: #475569;
    --card-bg: rgba(255, 255, 255, 0.9);
    --border-color: rgba(100, 116, 139, 0.15);
    background-color: #f8fafc;
}

/* ===== TEXT COLORS ===== */
body[data-theme="light"] .section-title,
body[data-theme="light"] .name {
    color: #0f172a !important;
    text-shadow: 0 2px 10px rgba(100, 116, 139, 0.15) !important;
}

body[data-theme="light"] .greeting {
    color: #475569 !important;
    text-shadow: 0 0 10px rgba(100, 116, 139, 0.2) !important;
}

body[data-theme="light"] .hero-subtitle {
    color: #64748b;
}

body[data-theme="light"] #typedText {
    color: #1e293b;
}

body[data-theme="light"] .cursor {
    background-color: #64748b;
}

/* ===== NAVBAR ===== */
body[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(100, 116, 139, 0.15);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body[data-theme="light"] .nav-link {
    color: #1e293b;
}

body[data-theme="light"] .nav-link:hover {
    color: #64748b;
}

body[data-theme="light"] .nav-link::after {
    background: #64748b;
}

/* Resume button - Gray gradient */
body[data-theme="light"] .nav-link.resume-link {
    background: linear-gradient(135deg, #64748b, #475569);
    color: white !important;
}

body[data-theme="light"] .nav-link.resume-link:hover {
    background: linear-gradient(135deg, #475569, #334155);
    box-shadow: 0 5px 20px rgba(100, 116, 139, 0.4);
    transform: translateY(-2px);
}

/* ===== HAMBURGER MENU ===== */
body[data-theme="light"] .hamburger span {
    background: #1e293b !important;
}

body[data-theme="light"] .hamburger {
    background: rgba(100, 116, 139, 0.15);
}

body[data-theme="light"] .hamburger:hover {
    background: rgba(100, 116, 139, 0.25);
}

body[data-theme="light"] .hamburger:active {
    background: rgba(100, 116, 139, 0.35);
}

body[data-theme="light"] .nav-menu {
    background: rgba(255, 255, 255, 0.98) !important;
}

body[data-theme="light"] .nav-menu.active {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .nav-menu .nav-link {
    color: #1e293b !important;
}

/* ===== BUTTONS ===== */
/* Primary button - Gray gradient */
body[data-theme="light"] .btn-primary {
    background: linear-gradient(135deg, #64748b, #475569);
}

body[data-theme="light"] .btn-primary:hover {
    background: linear-gradient(135deg, #475569, #334155);
    box-shadow: 0 10px 30px rgba(100, 116, 139, 0.4);
}

/* Secondary button - Gray border/text */
body[data-theme="light"] .btn-secondary {
    border-color: #64748b;
    color: #64748b;
}

body[data-theme="light"] .btn-secondary:hover {
    background: #64748b;
    color: white;
}

/* ===== SOCIAL LINKS ===== */
body[data-theme="light"] .social-links a,
body[data-theme="light"] .footer-social a {
    background: rgba(100, 116, 139, 0.1);
    border-color: rgba(100, 116, 139, 0.2);
    color: #1e293b;
}

body[data-theme="light"] .social-links a:hover,
body[data-theme="light"] .footer-social a:hover {
    background: #64748b;
    color: white;
    box-shadow: 0 10px 25px rgba(100, 116, 139, 0.3);
}

/* ===== SCROLL INDICATOR ===== */
body[data-theme="light"] .scroll-indicator span {
    border-color: #64748b;
    background: rgba(100, 116, 139, 0.1);
}

body[data-theme="light"] .scroll-indicator span::before {
    background: #64748b;
}

/* ===== ABOUT SECTION ===== */
body[data-theme="light"] .about-background-parallax {
    background:
        linear-gradient(135deg, rgba(100, 116, 139, 0.03) 0%, rgba(71, 85, 105, 0.03) 100%),
        radial-gradient(circle at 20% 50%, rgba(100, 116, 139, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(148, 163, 184, 0.05) 0%, transparent 50%);
}

body[data-theme="light"] .bio-text {
    color: #334155;
}

body[data-theme="light"] .bio-text::after {
    color: #64748b;
}

body[data-theme="light"] .floating-icon {
    background: rgba(255, 255, 255, 0.95);
    border-color: #64748b;
    color: #64748b;
    box-shadow: 0 10px 30px rgba(100, 116, 139, 0.2);
}

body[data-theme="light"] .floating-icon:hover {
    background: #64748b;
    color: white;
    box-shadow: 0 15px 40px rgba(100, 116, 139, 0.35);
}

body[data-theme="light"] .particle {
    background: linear-gradient(135deg, #64748b, #94a3b8);
}

body[data-theme="light"] .rotating-ring {
    border-top-color: #64748b;
    border-right-color: #94a3b8;
    opacity: 0.4;
}

body[data-theme="light"] .photo-glow {
    background: radial-gradient(circle, rgba(100, 116, 139, 0.3) 0%, transparent 70%);
}

/* ===== SKILLS SECTION ===== */
body[data-theme="light"] .skills {
    background: rgba(248, 250, 252, 0.6);
}

body[data-theme="light"] .skill-category {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(100, 116, 139, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body[data-theme="light"] .skill-category:hover {
    border-color: #64748b;
    box-shadow: 0 10px 40px rgba(100, 116, 139, 0.15);
}

body[data-theme="light"] .skill-category h3 {
    color: #64748b;
}

body[data-theme="light"] .skill-tag {
    background: rgba(100, 116, 139, 0.1);
    border-color: #64748b;
    color: #64748b;
}

body[data-theme="light"] .skill-tag:hover {
    background: #64748b;
    color: white;
    box-shadow: 0 5px 15px rgba(100, 116, 139, 0.3);
}

/* ===== PROJECTS SECTION ===== */
body[data-theme="light"] .projects-intro {
    color: #475569;
}

body[data-theme="light"] .project-info h3 {
    color: #0f172a;
}

body[data-theme="light"] .project-info p {
    color: #475569;
}

body[data-theme="light"] .project-number {
    background: linear-gradient(135deg, #64748b, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body[data-theme="light"] .project-tags span {
    background: rgba(100, 116, 139, 0.1);
    border-color: #64748b;
    color: #64748b;
}

body[data-theme="light"] .project-tags span:hover {
    background: #64748b;
    color: white;
}

body[data-theme="light"] .project-link {
    border-color: #64748b;
    color: #64748b;
}

body[data-theme="light"] .project-link:hover {
    background: #64748b;
    color: white;
    box-shadow: 0 10px 25px rgba(100, 116, 139, 0.3);
}

/* ===== CONTACT SECTION ===== */
body[data-theme="light"] .contact {
    background: rgba(248, 250, 252, 0.6);
}

body[data-theme="light"] .contact-intro {
    color: #475569;
}

body[data-theme="light"] .contact-form {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(100, 116, 139, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body[data-theme="light"] .form-group input,
body[data-theme="light"] .form-group textarea {
    background: rgba(248, 250, 252, 0.8);
    border-color: rgba(100, 116, 139, 0.2);
    color: #0f172a;
}

body[data-theme="light"] .form-group input:focus,
body[data-theme="light"] .form-group textarea:focus {
    border-color: #64748b;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.1);
    background: white;
}

body[data-theme="light"] .form-group input::placeholder,
body[data-theme="light"] .form-group textarea::placeholder {
    color: #94a3b8;
}

body[data-theme="light"] .contact-info-item {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(100, 116, 139, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body[data-theme="light"] .contact-info-item:hover {
    border-color: #64748b;
    box-shadow: 0 10px 30px rgba(100, 116, 139, 0.15);
}

/* Info icon - Gray gradient */
body[data-theme="light"] .info-icon {
    background: linear-gradient(135deg, #64748b, #94a3b8);
    box-shadow: 0 8px 20px rgba(100, 116, 139, 0.25);
}

body[data-theme="light"] .contact-info-item:hover .info-icon {
    box-shadow: 0 10px 25px rgba(100, 116, 139, 0.4);
}

body[data-theme="light"] .info-content h4 {
    color: #0f172a;
}

body[data-theme="light"] .animated-text {
    background: linear-gradient(135deg, #64748b, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== FOOTER ===== */
body[data-theme="light"] .footer {
    background: #ffffff;
    border-top-color: rgba(100, 116, 139, 0.15);
}

body[data-theme="light"] .footer-left p {
    color: #475569;
}

/* ===== BACK TO TOP BUTTON ===== */
body[data-theme="light"] .back-to-top {
    background: linear-gradient(135deg, #64748b, #475569);
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.3);
}

body[data-theme="light"] .back-to-top:hover {
    background: linear-gradient(135deg, #475569, #334155);
    box-shadow: 0 15px 40px rgba(100, 116, 139, 0.5);
}

body[data-theme="light"] .progress-ring-circle {
    stroke: url(#lightGradient);
}

/* ===== THEME TOGGLE ===== */
body[data-theme="light"] .toggle-track {
    background: linear-gradient(135deg, #64748b, #475569);
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.3);
}

body[data-theme="light"] .theme-toggle:hover .toggle-track {
    box-shadow: 0 6px 20px rgba(100, 116, 139, 0.4);
}

/* ===== NAVBAR SCROLL EFFECT ===== */
body[data-theme="light"] .navbar-scrolled {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    background: rgba(255, 255, 255, 0.98) !important;
}

/* Smooth Transitions for Theme Switch */
.logo-image,
.hero-logo,
.footer-logo-img {
    transition: filter 0.3s ease !important;
}

body,
.navbar,
.skill-category,
.contact-form,
.contact-info-item,
.back-to-top,
.social-links a,
.footer-social a,
.btn,
.project-link,
.skill-tag,
.project-tags span {
    transition: all 0.3s ease;
}