/* Fullscreen blur entry screen */
.enter-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.enter-content h1 {
    font-size: 38px;
    color: #ffffff;
    letter-spacing: 2px;
    font-weight: 300;
    font-family: "Poppins", sans-serif;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.enter-screen.hidden {
    opacity: 0;
    pointer-events: none;
}


:root {
    --primary-bg: #0a0e27;
    --secondary-bg: #0f172a;
    --accent-color: #1e40af;
    --accent-light: #3b82f6;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --card-bg: #1e293b;
    --border-color: #334155;
    --gradient-start: #1e40af;
    --gradient-end: #0891b2;
    --shadow: rgba(0, 0, 0, 0.5);
    --glow: rgba(30, 64, 175, 0.4);
}

[data-theme="light"] {
    --primary-bg: #f8fafc;
    --secondary-bg: #ffffff;
    --accent-color: #1e40af;
    --accent-light: #3b82f6;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --gradient-start: #1e40af;
    --gradient-end: #0891b2;
    --shadow: rgba(0, 0, 0, 0.1);
    --glow: rgba(30, 64, 175, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

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

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
    filter: blur(60px);
}

.shape1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape2 {
    width: 300px;
    height: 300px;
    top: 50%;
    right: -50px;
    animation-delay: 5s;
}

.shape3 {
    width: 350px;
    height: 350px;
    bottom: -100px;
    left: 30%;
    animation-delay: 10s;
}

.shape4 {
    width: 250px;
    height: 250px;
    top: 20%;
    right: 20%;
    animation-delay: 15s;
}

.shape5 {
    width: 320px;
    height: 320px;
    bottom: 20%;
    right: 40%;
    animation-delay: 7s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.nav-theme-toggle-wrapper-menu {
    display: flex;
    align-items: center;
}

.mobile-nav-wrapper {
    display: none;
    align-items: center;
    gap: 16px;
}

.nav-theme-toggle-mobile {
    display: none;
}

.nav-theme-toggle {
    position: relative;
    width: 72px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.5));
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 0 22px rgba(79, 70, 229, 0.6);
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.nav-theme-toggle:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 0 30px rgba(129, 140, 248, 0.9);
}

.nav-theme-toggle .toggle-icon {
    font-size: 1rem;
    z-index: 1;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.nav-theme-toggle .sun {
    opacity: 0.2;
}

[data-theme="light"] .nav-theme-toggle {
    background: linear-gradient(135deg, #e5e7eb, #ffffff);
    box-shadow: 0 0 18px rgba(37, 99, 235, 0.3);
}

[data-theme="light"] .nav-theme-toggle .sun {
    opacity: 1;
}

[data-theme="light"] .nav-theme-toggle .moon {
    opacity: 0.2;
}

.toggle-thumb {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: radial-gradient(circle at 20% 20%, #ffffff, #e5e7eb);
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
    transition: transform 0.25s ease;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.5);
}

[data-theme="light"] .toggle-thumb {
    transform: translate(35px, -50%);
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.75);
    backdrop-filter: blur(20px);
    z-index: 999;
    padding: 16px 0;
    box-shadow: 0 2px 10px var(--shadow);
    transition: background 0.3s ease, transform 0.3s ease;
}

[data-theme="light"] .navbar {
    background: rgba(248, 250, 252, 0.75);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
    animation: logoRotate 20s linear infinite;
}

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

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

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

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

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

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
}

.hero-content {
    max-width: 900px;
    animation: fadeInUp 1s ease;
}

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

.profile-image-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 32px;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-color);
    box-shadow: 0 0 40px var(--glow);
    animation: profileFloat 3s ease-in-out infinite;
}

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

.profile-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: ringPulse 2s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.wave {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(20deg);
    }
    75% {
        transform: rotate(-20deg);
    }
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(20deg);
    }
}

.hero-subtitle {
    font-size: 28px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.typing-container {
    min-height: 40px;
    margin-bottom: 16px;
    font-size: 24px;
    color: var(--accent-light);
}

.typing-text {
    font-weight: 600;
}

.cursor {
    animation: blink 1s step-end infinite;
}

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

.hero-description,
.hero-focus {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
}

.btn {
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    box-shadow: 0 4px 15px var(--glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glow);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-light);
    border: 2px solid var(--accent-color);
}

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

.scroll-indicator {
    margin-top: 48px;
    font-size: 24px;
    color: var(--accent-light);
    animation: bounce 2s infinite;
}

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

.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title i {
    margin-right: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 48px;
}

.about {
    padding: 80px 24px;
    background: var(--secondary-bg);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-intro {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 48px;
    text-align: center;
}

.achievements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.achievement-card {
    background: var(--card-bg);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px var(--glow);
    border-color: var(--accent-color);
}

.achievement-card i {
    font-size: 48px;
    color: var(--accent-light);
    margin-bottom: 16px;
    display: block;
}

.achievement-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.achievement-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

.quote {
    background: var(--card-bg);
    padding: 32px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
    font-size: 20px;
    font-style: italic;
    text-align: center;
    color: var(--text-secondary);
    box-shadow: 0 4px 12px var(--shadow);
}

.quote i {
    color: var(--accent-light);
    opacity: 0.5;
}

.tech-stack {
    padding: 80px 24px;
}

.tech-content {
    max-width: 900px;
    margin: 0 auto;
}

.tech-category {
    margin-bottom: 48px;
}

.tech-category-title {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.tech-category-title i {
    color: var(--accent-light);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.tech-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-card:hover {
    transform: translateY(-8px) rotate(2deg);
    box-shadow: 0 8px 24px var(--glow);
    border-color: var(--accent-color);
}

.tech-card i {
    font-size: 40px;
    color: var(--accent-light);
}

.tech-card span {
    font-weight: 600;
    color: var(--text-primary);
}

.projects {
    padding: 80px 24px;
    background: var(--secondary-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 32px;
    border: 2px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 32px var(--glow);
    border-color: var(--accent-color);
}

.project-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: white;
    box-shadow: 0 4px 12px var(--glow);
}

.project-title {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tag {
    background: var(--accent-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--gradient-end);
    transform: translateX(4px);
}

.stats {
    padding: 80px 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 16px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px var(--glow);
}

.stat-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.contact {
    padding: 80px 24px;
    background: var(--secondary-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.contact-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 12px 32px var(--glow);
    border-color: var(--accent-color);
}

.contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: white;
    box-shadow: 0 4px 12px var(--glow);
}

.contact-card h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 16px;
}

.footer {
    background: var(--primary-bg);
    padding: 48px 24px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.footer-quote {
    font-style: italic;
    color: var(--accent-light);
    margin: 16px 0;
}

.footer-social {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 18px;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    transform: translateY(-4px) rotate(10deg);
    box-shadow: 0 4px 12px var(--glow);
}

@media (max-width: 768px) {
    .nav-theme-toggle-wrapper-menu {
        display: none;
    }

    .mobile-nav-wrapper {
        display: flex;
    }

    .nav-theme-toggle-mobile {
        display: inline-flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px var(--shadow);
        padding: 24px 0;
    }

    [data-theme="light"] .nav-menu {
        background: rgba(248, 250, 252, 0.98);
    }

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

    .hamburger {
        display: flex;
    }

    .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-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .typing-container {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-title {
        font-size: 32px;
    }

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

    .achievements {
        grid-template-columns: 1fr;
    }
}

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

/* --------------------------------------------- */
/* SOUND TOGGLE — WRAPPER                        */
/* --------------------------------------------- */
.nav-sound-toggle-wrapper-menu {
    margin-left: 20px;
    display: flex;
    align-items: center;
}


/* --------------------------------------------- */
/* SOUND SWITCH BUTTON                            */
/* --------------------------------------------- */
.nav-sound-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: #0b0f2d; /* same dark-blue base as your theme toggle */
    border-radius: 40px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    box-shadow: 0 0 18px rgba(0, 80, 255, 0.35); /* glowing blue */
    transition: background 0.3s ease, box-shadow 0.3s ease;
}


/* --------------------------------------------- */
/* ICONS (🔊 and 🔇)                              */
/* --------------------------------------------- */
.nav-sound-toggle .sound-icon {
    font-size: 17px;
    color: #ffffff;
    z-index: 2;
    transition: opacity 0.3s ease;
    user-select: none;
}

.nav-sound-toggle .sound-on {
    opacity: 1;  /* visible by default */
}

.nav-sound-toggle .sound-off {
    opacity: 0;  /* hidden by default */
}


/* --------------------------------------------- */
/* THUMB (white circle slider)                    */
/* --------------------------------------------- */
.nav-sound-toggle .sound-thumb {
    position: absolute;
    width: 26px;
    height: 26px;
    background: #ffffff;
    border-radius: 50%;
    left: 3px;
    transition: left 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}


/* --------------------------------------------- */
/* MUTED STATE (when 🔇 is active)                */
/* --------------------------------------------- */
.nav-sound-toggle.muted {
    background: #151a3f; /* darker, like your night mode toggle */
    box-shadow: 0 0 18px rgba(0, 50, 255, 0.25);
}

.nav-sound-toggle.muted .sound-thumb {
    left: 31px; /* slide to right */
}

.nav-sound-toggle.muted .sound-on {
    opacity: 0;
}

.nav-sound-toggle.muted .sound-off {
    opacity: 1;
}
