:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #e5e7eb;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Day Mode Colors */
body.day-mode {
    --primary-color: #ff8a3d;
    --secondary-color: #ff4fd8;
    --accent-color: #2fd6ff;
    --text-primary: #f7f1ff;
    --text-secondary: #cbb8e9;
    --bg-primary: #1b1622;
    --bg-secondary: #261a2e;
    --border-color: #3a2a44;
    --nav-bg: rgba(27, 22, 34, 0.95);
    --gradient-primary: linear-gradient(135deg, #ff8a3d 0%, #ff4fd8 100%);
    --gradient-secondary: linear-gradient(135deg, #2fd6ff 0%, #7c4dff 100%);
}

/* Dark Mode Colors */
body.dark-mode {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --border-color: #2d2d44;
    --nav-bg: rgba(26, 26, 46, 0.95);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    padding-left: 88px;
}

/* Cursor spotlight */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        250px circle at var(--cursor-x, 50%) var(--cursor-y, 50%),
        color-mix(in srgb, var(--primary-color) 25%, transparent),
        transparent 70%
    );
    opacity: 0.6;
    mix-blend-mode: soft-light;
    transition: opacity 0.2s ease;
    z-index: 0;
}

@media (max-width: 768px) {
    body::before {
        display: none;
    }
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 72px;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0;
    padding: 1.25rem 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100%;
    gap: 1.1rem;
}

.nav-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    margin-top: -0.25rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-image {
    display: flex;
    align-items: center;
}

.logo-image img {
    height: 48px;
    width: auto;
    max-height: 48px;
    max-width: 200px;
    display: block;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.65rem;
    flex-direction: column;
    align-items: center;
    margin-top: 0.35rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

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

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.12);
}

.nav-link svg {
    width: 21px;
    height: 21px;
}

@media (min-width: 1366px) and (max-width: 1920px) and (min-height: 768px) and (max-height: 1080px) {
    body {
        padding-left: 84px;
    }

    .navbar {
        width: 76px;
    }

    .nav-container {
        padding: 1rem 0.45rem;
        gap: 0.9rem;
    }

    .nav-actions {
        gap: 0.45rem;
        margin-top: 0;
    }

    .nav-menu {
        gap: 0.5rem;
        margin-top: 0.2rem;
    }

    .nav-link {
        width: 46px;
        height: 46px;
    }

    .nav-link svg {
        width: 20px;
        height: 20px;
    }

    .admin-toggle {
        left: 18px;
        bottom: 12px;
    }
}

.nav-label {
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: rgba(20, 25, 33, 0.9);
    color: #f5f6ff;
    padding: 0.35rem 0.75rem;
    border-radius: 10px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 10px 18px rgba(10, 12, 20, 0.25);
}

.nav-link:hover .nav-label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-compact {
    background: var(--bg-primary);
}

body.day-mode .hero-compact {
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 140, 61, 0.25), transparent 55%),
        radial-gradient(circle at 80% 15%, rgba(255, 79, 216, 0.22), transparent 45%),
        radial-gradient(circle at 70% 70%, rgba(47, 214, 255, 0.18), transparent 50%),
        linear-gradient(180deg, #1a1522 0%, #24192f 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    top: 50%;
    right: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    bottom: -100px;
    left: 30%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    justify-items: center;
    text-align: center;
}

.hero-stack {
    padding-top: 30px;
    padding-bottom: 30px;
}

.hero-text-centered {
    text-align: center;
}

.hero-image-centered {
    justify-content: center;
    align-self: center;
    margin-top: 0;
}

.hero-text-centered .hero-buttons {
    justify-content: center;
}

.hero-text-centered .hero-description {
    margin-left: auto;
    margin-right: auto;
}

.hero-text-centered .greeting {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hero-text-centered .hero-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: unset;
}

.hero-text-centered .hero-subtitle {
    font-size: 1.2rem;
}

.hero-tagline {
    color: var(--primary-color);
    font-size: 1rem;
    margin-top: 0.75rem;
}

.profile-card {
    background: transparent;
}

.profile-image {
    background: transparent;
}

.hero-image.hero-image-centered .profile-card {
    width: 420px;
    height: 420px;
    transform: none;
    background: transparent;
    box-shadow: none;
}

.hero-image.hero-image-centered .profile-card:hover {
    transform: translateY(-6px);
}

.hero-image.hero-image-centered .card-glow {
    display: none;
}

.hero-image.hero-image-centered .profile-image {
    position: static;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    object-fit: contain;
}

.hero-image.hero-image-centered .profile-image.profile-image-plain {
    position: absolute;
}

.profile-card-plain {
    display: grid;
    place-items: center;
    background: var(--bg-primary);
    border-radius: 28px;
    position: relative;
}

.profile-image-plain {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 12px 40px rgba(120, 130, 255, 0.35));
    background: transparent;
}

.hero-image-dark {
    display: none;
}

.hero-image-warm {
    display: none;
}

body.day-mode .hero-image-warm {
    display: block;
}

body.day-mode .hero-image-light {
    display: none;
}

body.dark-mode .hero-image-dark {
    display: block;
}

body.dark-mode .hero-image-light {
    display: none;
}

body.dark-mode .hero-image-warm {
    display: none;
}

body.day-mode .profile-card-plain {
    background: var(--bg-primary);
}

body.dark-mode .profile-card-plain {
    background: var(--bg-primary);
}

.hero-text {
    animation: fadeInUp 1s ease;
}

.greeting {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 900;
    margin-bottom: 0.6rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    min-height: 2.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.typed-text {
    color: var(--primary-color);
    font-weight: 600;
}

.cursor {
    display: inline-block;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 520px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 1s;
}

.hero-buttons-single {
    justify-content: center;
}

.btn-pill {
    padding: 0.85rem 2.25rem;
    border-radius: 999px;
    background: #4fa2ff;
    box-shadow: 0 12px 24px rgba(79, 162, 255, 0.25);
}

.btn-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(79, 162, 255, 0.35);
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
}

.hero-social {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin: 0.75rem 0 1.5rem;
}

.hero-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #8aa0ff;
    background: rgba(138, 160, 255, 0.1);
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.hero-social-link:hover {
    transform: translateY(-2px);
    background: rgba(138, 160, 255, 0.2);
    color: #b9c5ff;
}

.hero-footer {
    margin-top: 1.2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

/* Click "Hi" animation */
.hi-pop {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 10px 28px color-mix(in srgb, var(--primary-color) 55%, transparent);
    pointer-events: none;
    opacity: 0;
    animation: hiFloat 2.6s ease forwards;
    white-space: nowrap;
}

@keyframes hiFloat {
    0% {
        opacity: 0;
        transform: translate(-50%, -40%) scale(0.9);
        filter: blur(0.5px);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -55%) scale(1.05);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -120%) scale(0.95);
        filter: blur(2px);
    }
}

.profile-card {
    position: relative;
    width: 350px;
    height: 450px;
    border-radius: 30px;
    background: color-mix(in srgb, var(--bg-primary) 90%, transparent);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: rotate(5deg);
    transition: transform 0.5s ease;
}

.profile-card:hover {
    transform: rotate(0deg) scale(1.05);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        var(--primary-color) 90deg,
        transparent 180deg,
        var(--secondary-color) 270deg,
        transparent 360deg
    );
    animation: rotate 4s linear infinite;
}

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

.profile-image {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: var(--bg-primary);
    border-radius: 27px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    object-fit: cover;
}

.profile-placeholder {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: var(--bg-primary);
    border-radius: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-placeholder svg {
    width: 60%;
    height: 60%;
    opacity: 0.3;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    animation: fadeIn 1s ease forwards, bounce 2s infinite;
    animation-delay: 1.5s;
}

.scroll-indicator span {
    width: 3px;
    height: 15px;
    background: var(--primary-color);
    border-radius: 3px;
}

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

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

/* Section Styles */
section {
    padding: 100px 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

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

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    width: 100%;
    padding-bottom: 120%;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-primary);
    box-shadow: var(--shadow-lg);
}


.frame-decoration {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 3px solid var(--primary-color);
    border-radius: 25px;
    opacity: 0.3;
}

.about-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.about-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.about-placeholder svg {
    width: 70%;
    height: 70%;
    opacity: 0.5;
}

.about-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-card {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    animation: floatCard 6s ease-in-out infinite;
}

/* about sticker removed */

.about-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.3), rgba(236, 72, 153, 0.3), transparent);
    filter: blur(18px);
    opacity: 0.6;
    z-index: 0;
}

.about-card-showcase {
    background: #1c2633;
    border: 1px solid rgba(120, 130, 255, 0.25);
    color: #dbe2f2;
    padding: 2rem 2.25rem 2.1rem;
    box-shadow: 0 20px 45px rgba(6, 10, 20, 0.45);
    animation: none;
}

.about-card-showcase::before {
    opacity: 0.25;
}

.about-card-showcase::after {
    content: '';
    position: absolute;
    left: -18px;
    top: 30%;
    border-width: 12px 18px 12px 0;
    border-style: solid;
    border-color: transparent rgba(28, 38, 51, 0.95) transparent transparent;
    filter: drop-shadow(-6px 6px 10px rgba(6, 10, 20, 0.35));
}

.about-card-badge {
    position: absolute;
    top: -18px;
    left: -18px;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    background: #f2f2ff;
    color: #5b6bff;
    box-shadow: 0 10px 20px rgba(90, 105, 255, 0.35);
    z-index: 2;
}

.about-card-header {
    position: relative;
    z-index: 1;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    line-height: 1.5;
    color: #b9c5ff;
    margin-bottom: 1rem;
}

.about-card-body {
    position: relative;
    z-index: 1;
    color: #cbd4e6;
    font-size: 0.98rem;
    line-height: 1.7;
}

.about-card-body p {
    margin: 0 0 1rem;
}

.about-card-body p:last-child {
    margin-bottom: 0;
}

.about-card-btn {
    position: relative;
    z-index: 1;
    margin-top: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-color: #7fb2ff;
    color: #cfe5ff;
    background: rgba(127, 178, 255, 0.15);
}

.about-card-btn:hover {
    background: #7fb2ff;
    color: #111827;
}

.about-card-title {
    position: relative;
    z-index: 1;
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.about-card p,
.about-card .resume-btn {
    position: relative;
    z-index: 1;
}

/* cat sticker removed */

@keyframes cat-bounce {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(6deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

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

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-secondary);
    margin: 0;
}

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

.skill-category {
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.skill-category h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

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

/* Projects Section */
.projects {
    background: var(--bg-secondary);
}

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

.project-card {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    position: relative;
    width: 100%;
    padding-bottom: 60%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.project-card:nth-child(2) .project-image {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.project-card:nth-child(3) .project-image {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.project-card:nth-child(4) .project-image {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border: 2px solid white;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--bg-primary);
    color: var(--primary-color);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    padding: 0.4rem 0.8rem;
    background: var(--bg-secondary);
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--text-primary);
}

/* Experience Section */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 4px var(--bg-primary), 0 0 0 6px var(--primary-color);
}

.timeline-content {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.timeline-date {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.timeline-content h4 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-item p {
    color: var(--text-secondary);
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-form {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.phone-group {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 12px;
}

.country-select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
}

.phone-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 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);
}

.contact-form .btn {
    width: 100%;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
}

body.dark-mode .footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
}

.footer p {
    margin: 0.35rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-left: 0;
    }

    .navbar {
        width: 100%;
        height: auto;
        bottom: auto;
        right: 0;
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
        padding: 1rem 20px;
        height: auto;
    }

    .nav-actions {
        flex-direction: row;
        gap: 0.75rem;
        margin-top: 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-md);
        padding: 2rem 0;
    }

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

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

    .hero-title {
        font-size: 2rem;
    }

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

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-image {
        order: -1;
    }

    .profile-card {
        width: 340px;
        height: 340px;
    }

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

    .about-stats {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline::before {
        left: 7px;
    }

    .timeline-item {
        padding-left: 2rem;
    }

    .phone-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
    }

    .projects-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 320px) and (max-width: 480px) {
    .navbar {
        width: 100%;
    }

    .nav-container {
        padding: 0.65rem 12px;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .theme-toggle,
    .sound-toggle,
    .admin-toggle {
        width: 36px;
        height: 36px;
    }

    .theme-toggle svg,
    .sound-toggle svg,
    .admin-toggle svg {
        width: 18px;
        height: 18px;
    }

    .nav-menu {
        top: 62px;
        padding: 1.2rem 0;
        gap: 0.6rem;
    }

    .nav-link {
        width: 44px;
        height: 44px;
    }

    .nav-link svg {
        width: 19px;
        height: 19px;
    }

    .hero {
        padding-top: 72px;
    }

    section {
        padding: 72px 0;
    }
}

/* Animations on Scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    margin-right: 0;
    position: static;
}

.admin-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 1002;
}

.sound-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    position: static;
}

.sound-toggle:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: scale(1.1);
}

.sound-toggle svg {
    width: 20px;
    height: 20px;
}

.sound-toggle .sound-off {
    display: none;
}

.sound-toggle.muted .sound-on {
    display: none;
}

.sound-toggle.muted .sound-off {
    display: block;
}

.admin-toggle:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: scale(1.1);
}

.admin-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: scale(1.1);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.moon-icon {
    position: absolute;
    opacity: 0;
    transform: rotate(-180deg);
}

body.dark-mode .sun-icon {
    opacity: 0;
    transform: rotate(180deg);
}

body.dark-mode .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Dark Mode Styles */
body.dark-mode .navbar {
    background: rgba(26, 26, 46, 0.95);
    border-bottom: 1px solid var(--border-color);
}

body.dark-mode section {
    background-color: var(--bg-primary);
}

body.dark-mode .card,
body.dark-mode .project-card,
body.dark-mode .experience-card {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

body.dark-mode input,
body.dark-mode textarea {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: var(--text-secondary);
}

body.dark-mode .btn-secondary {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

body.dark-mode .btn-secondary:hover {
    background: rgba(224, 224, 224, 0.1);
}

/* Admin Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    padding: 20px;
}

.modal-backdrop.active {
    display: flex;
}

.modal {
    width: 100%;
    max-width: 420px;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
}

.modal-close {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-body {
    padding: 1.25rem;
}

.password-group {
    position: relative;
}

.password-group input {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    display: block;
}

.password-toggle .eye-closed {
    display: none;
}

.password-toggle.active .eye-open {
    display: none;
}

.password-toggle.active .eye-closed {
    display: block;
}

.form-error {
    margin-top: 0.75rem;
    color: #ef4444;
    font-size: 0.9rem;
    min-height: 1.2rem;
}

/* Admin Panel */
.admin-panel {
    display: none;
    padding: 100px 0;
    background: var(--bg-secondary);
}

.admin-panel.active {
    display: block;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.admin-actions {
    display: flex;
    gap: 0.75rem;
}

.admin-table-wrap {
    overflow: auto;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: top;
}

.admin-table th {
    background: var(--bg-secondary);
    font-weight: 600;
}

.admin-table td {
    color: var(--text-secondary);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

@media (max-width: 768px) {
    .admin-toggle {
        margin-right: 10px;
    }
}
