/* ===== CSS VARIABLES ===== */
:root {
    /* Light Mode (Default) */
    --bg-dark: #0f172a;
    /* Kept for legacy ref, but main bg will be bg-primary */

    --bg-primary: #ffffff;
    --panel-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --primary: #6366f1;
    --success: #10b981;
    --glass: rgba(255, 255, 255, 0.7);

    /* Mappings */
    --bg-card: var(--panel-bg);
    --bg-secondary: #f8fafc;
    --text-primary: var(--text-main);
    --text-secondary: var(--text-muted);

    --primary-gradient: linear-gradient(to right, var(--primary), #a855f7);
    --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --panel-bg: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #334155;
    --glass: rgba(30, 41, 59, 0.7);

    --bg-card: var(--panel-bg);
    --bg-secondary: #1e293b;

    --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    position: relative;
    /* For ambient bg positioning */
}

/* Ambient Lighting Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.25) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.25) 0%, transparent 25%);
    pointer-events: none;
    z-index: -1;
    filter: blur(40px);
    transition: opacity var(--transition);
}


[data-theme="dark"] body::before {
    opacity: 0;
}

/* Light Mode Grid Pattern Override */
[data-theme="light"] body {
    background-color: #fefce8;
    /* Light Yellow */
    background-image:
        linear-gradient(#e5e7eb 1px, transparent 1px),
        linear-gradient(90deg, #e5e7eb 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Make sections transparent in Light Mode to show grid */
[data-theme="light"] .about,
[data-theme="light"] .projects,
[data-theme="light"] .contact,
[data-theme="light"] .activities,
[data-theme="light"] .skills,
[data-theme="light"] .highlights {
    background: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ===== THEME TOGGLE - Minimal Pill Design ===== */
.theme-toggle {
    position: fixed;
    top: 12px;
    right: 20px;
    z-index: 1001;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 96px;
    height: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.toggle-track {
    position: relative;
    width: 100%;
    height: 100%;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    transition: all var(--transition);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

[data-theme="dark"] .toggle-track {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.theme-toggle:hover .toggle-track {
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
}

[data-theme="dark"] .theme-toggle:hover .toggle-track {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.toggle-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(148, 163, 184, 0.2) inset;
}

[data-theme="dark"] .toggle-thumb {
    transform: translateX(48px);
    background: #111827;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(75, 85, 99, 0.55) inset;
}

.theme-toggle:active .toggle-thumb {
    transform: translateX(0) scale(0.97);
}

[data-theme="dark"] .theme-toggle:active .toggle-thumb {
    transform: translateX(48px) scale(0.97);
}

.toggle-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.icon-sun,
.icon-moon {
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    transition: all var(--transition);
    z-index: 2;
}

.icon-sun {
    left: 24px;
    color: #475569;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.02);
}

.icon-moon {
    left: 72px;
    color: #0f172a;
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(0.9);
}

[data-theme="dark"] .icon-sun {
    color: #cbd5e1;
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(0.9);
}

[data-theme="dark"] .icon-moon {
    color: #f8fafc;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.02);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 2rem;
}

.nav__logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    /* Fallback */
}

.logo-icon {
    width: 32px;
    height: 32px;
    transition: transform var(--transition);
}

.nav__logo:hover .logo-icon {
    transform: rotate(360deg) scale(1.1);
}

.nav__list {
    display: flex;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0.35rem;
    background: linear-gradient(180deg, #2f3b52 0%, #2a354a 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 20px rgba(15, 23, 42, 0.25);
}

[data-theme="light"] .nav__list {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    border: 1px solid #dbe3ee;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 20px rgba(15, 23, 42, 0.08);
}

.nav__link {
    text-decoration: none;
    color: #c7d1e3;
    font-weight: 600;
    transition: all 0.25s ease;
    padding: 0.5rem 0.85rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

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

.nav__link:hover,
.nav__link.active {
    color: #f8fbff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .nav__link:hover,
[data-theme="light"] .nav__link.active {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-primary);
    padding: 0.5rem;
    transition: all var(--transition);
}

.nav__toggle:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/* ===== UTILITIES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__title {
    display: block;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto 3rem;
    padding-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    width: 100%;
}

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

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

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

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

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

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

/* ===== HOME SECTION ===== */
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
}

.home__content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.home__title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.highlight {
    color: var(--primary);
}

.home__subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.home__description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.home__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin: 0 0 1.75rem;
}

.meta-chip {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.home__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--bg-secondary);
}

.about__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about__content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about__content strong {
    color: var(--primary);
}

/* Connect Links in About Section */
.connect-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.connect-links h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    transition: all var(--transition);
}

.social-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.about__stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat__number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
}

.stat__label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== SKILLS SECTION ===== */
.skills__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.highlights {
    background: var(--bg-secondary);
}

.highlights__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

/* Shared Panel Styles */
.skill-card,
.highlight-card,
.project-card,
.timeline-item,
.activity-card {
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: none;
    /* Flat panel look initially */
    transition: all var(--transition);
    text-align: center;
    padding: 2.5rem;
}

.skill-card:hover,
.highlight-card:hover,
.project-card:hover,
.timeline-item:hover,
.activity-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.highlight-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.highlight-card p {
    color: var(--text-secondary);
}

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

.tag {
    background: var(--bg-secondary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border);
}

/* ===== PROJECTS SECTION ===== */
.projects {
    background: var(--bg-secondary);
}

/* Section Title Icons */
.section-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 12px;
    color: var(--primary);
    filter: drop-shadow(0 0 5px rgba(37, 99, 235, 0.3));
    transition: transform 0.3s ease;
}

.section__title:hover .section-icon {
    transform: scale(1.1) rotate(10deg);
}

.section__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* About/System Profile Layout */
.about__wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about__wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

.about__image-container {
    display: flex;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
}

.about__image {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border);
    transition: transform var(--transition);
}

.about__image:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

/* Project Card Images */
.project-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-card .tag {
    /* ...keep existing tag styles... */
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

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

/* .project-card styling moved to shared panel styles */

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-card__date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-card__tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-card__features {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.project-card__features li {
    margin-bottom: 0.5rem;
}

/* ===== EDUCATION SECTION ===== */
.education__timeline {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* .timeline-item styling moved to shared panel styles */

.timeline-item__date {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.timeline-item h3 {
    font-size: 1.3rem;
    margin: 0.5rem 0;
    color: var(--text-primary);
}

.timeline-item p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.grade {
    display: inline-block;
    background: var(--bg-secondary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== EXTRACURRICULAR/ACTIVITIES SECTION ===== */
.activities__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* .activity-card styling moved to shared panel styles */

.activity-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.activity-card p {
    color: var(--text-secondary);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--bg-secondary);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 3rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: inherit;
    transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
}

/* Connect Links */
.connect-links {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.connect-links h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    transition: all var(--transition);
}

.social-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    color: var(--text-muted);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: var(--bg-card);
        padding: 4rem 2rem;
        transition: right var(--transition);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav__menu.show {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 0.75rem;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .nav__link {
        width: 100%;
        justify-content: flex-start;
        padding: 0.75rem 1rem;
        border-radius: 10px;
    }

    .nav__toggle {
        display: block;
    }

    .section__title {
        font-size: 2rem;
    }

    .about__stats {
        gap: 2rem;
    }

    .home__buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}/* Tech Icons Decoration */
.tech-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.tech-icon {
    position: absolute;
    color: var(--primary);
    opacity: 0.3;
    /* Increased opacity for neon effect */
    animation: float 6s ease-in-out infinite;
}

[data-theme="light"] .tech-icon {
    opacity: 0.6;
    /* Higher opacity for visibility on white */
}

.tech-icon svg {
    filter: drop-shadow(0 0 10px var(--primary)) drop-shadow(0 0 18px rgba(37, 99, 235, 0.35));
    /* Neon glow matching color */
}

/* Secondary Color for some icons (Green) */
.tech-icon.accent-green {
    color: var(--success);
}

.tech-icon.accent-green svg {
    filter: drop-shadow(0 0 10px var(--success)) drop-shadow(0 0 18px rgba(16, 185, 129, 0.35));
}

.tech-icon-1 {
    top: 15%;
    right: 10%;
    animation-delay: 0s;
}

.tech-icon-2 {
    top: 60%;
    right: 15%;
    animation-delay: 1s;
}

.tech-icon-3 {
    top: 25%;
    left: 8%;
    animation-delay: 2s;
}

.tech-icon-4 {
    bottom: 20%;
    left: 12%;
    animation-delay: 1.5s;
}

/* New Icons Positioning */
.tech-icon-5 {
    top: 10%;
    left: 20%;
    animation-delay: 0.5s;
    color: var(--success);
}

/* WiFi - Green */
.tech-icon-5 svg {
    filter: drop-shadow(0 0 8px var(--success));
}

.tech-icon-6 {
    bottom: 15%;
    right: 25%;
    animation-delay: 2.5s;
    width: 50px;
    height: 50px;
}

/* Chip */

.tech-icon-7 {
    top: 40%;
    right: 5%;
    animation-delay: 1.2s;
    color: #a855f7;
}

/* Share/Node - Purple */
.tech-icon-7 svg {
    filter: drop-shadow(0 0 10px #a855f7) drop-shadow(0 0 18px rgba(168, 85, 247, 0.35));
}

.tech-icon-9 {
    top: 8%;
    left: 45%;
    animation-delay: 2.8s;
}

.tech-icon-10 {
    bottom: 12%;
    right: 40%;
    animation-delay: 3.4s;
}

.tech-icon-11 {
    top: 35%;
    left: 30%;
    animation-delay: 1.8s;
    color: #a855f7;
}

.tech-icon-11 svg {
    filter: drop-shadow(0 0 10px #a855f7) drop-shadow(0 0 18px rgba(168, 85, 247, 0.35));
}

.tech-icon-12 {
    bottom: 24%;
    left: 36%;
    animation-delay: 2.1s;
}

.tech-icon-13 {
    top: 16%;
    right: 34%;
    animation-delay: 0.9s;
}

.tech-icon-14 {
    bottom: 8%;
    left: 50%;
    animation-delay: 2.9s;
}

.tech-icon-15 {
    top: 22%;
    right: 22%;
    animation-delay: 1.6s;
}

.tech-icon-16 {
    bottom: 18%;
    left: 22%;
    animation-delay: 2.4s;
    color: #a855f7;
}

.tech-icon-16 svg {
    filter: drop-shadow(0 0 10px #a855f7) drop-shadow(0 0 18px rgba(168, 85, 247, 0.35));
}

/* --- Section Specific Decoration --- */

.section-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* Education (Firmware Update) */
.icon-edu-1 {
    top: 10%;
    right: 5%;
    animation-delay: 1s;
    opacity: 0.2;
    width: 60px;
    height: 60px;
}

.icon-edu-2 {
    bottom: 10%;
    left: 5%;
    animation-delay: 2.5s;
    opacity: 0.15;
    width: 80px;
    height: 80px;
}

/* Activities (Peripheral) */
.icon-extra-1 {
    top: 5%;
    left: 10%;
    animation-delay: 0.5s;
    opacity: 0.2;
    color: var(--success);
}

.icon-extra-1 svg {
    filter: drop-shadow(0 0 8px var(--success));
}

.icon-extra-2 {
    bottom: 20%;
    right: 5%;
    animation-delay: 3s;
    opacity: 0.2;
    width: 50px;
    height: 50px;
}

/* Skills (Tech Stack) */
.icon-skill-1 {
    top: 15%;
    left: 2%;
    animation-delay: 1.2s;
    opacity: 0.15;
}

.icon-skill-2 {
    bottom: 5%;
    right: 2%;
    animation-delay: 2.2s;
    opacity: 0.2;
    color: #a855f7;
}

/* Purple tint */
.icon-skill-2 svg {
    filter: drop-shadow(0 0 8px #a855f7);
}

/* System Profile (About) */
.icon-about-1 {
    top: 5%;
    right: 5%;
    animation-delay: 2s;
    opacity: 0.15;
    width: 70px;
    height: 70px;
}

.icon-about-2 {
    bottom: 15%;
    left: 2%;
    animation-delay: 0.8s;
    opacity: 0.15;
}

/* Build Output (Projects) */
.icon-proj-1 {
    top: 10%;
    right: 3%;
    animation-delay: 1.5s;
    opacity: 0.2;
}

.icon-proj-2 {
    bottom: 10%;
    left: 3%;
    animation-delay: 3s;
    opacity: 0.15;
    width: 55px;
    height: 55px;
}


@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-15px) rotate(5deg);
    }

    50% {
        transform: translateY(-10px) rotate(-5deg);
    }

    75% {
        transform: translateY(-20px) rotate(3deg);
    }
}

/* Hide tech icons on mobile */
@media (max-width: 768px) {
    .tech-icons {
        display: none;
    }
}
/* ===============================================
   GITHUB-STYLE SCROLL ANIMATIONS
   Premium scroll-based fade, transform, and emphasis
   =============================================== */

/* === Smooth Scrolling === */
html {
    scroll-behavior: smooth;
}

/* === Initial State for Scroll Sections === */
.scroll-section {
    position: relative;
}

.scroll-content {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

/* === Revealed State === */
.scroll-content.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* === Active/Focus Section (currently in viewport) === */
.scroll-section.is-active .scroll-content {
    opacity: 1;
    filter: brightness(1) contrast(1.05);
}

/* === Exit State (scrolled past) === */
.scroll-section.is-exiting .scroll-content {
    opacity: 0.3;
    transform: translateY(-20px) scale(0.98);
    filter: brightness(0.9) contrast(0.95);
}

/* === Prevent Layout Shift === */
.scroll-section {
    min-height: fit-content;
}

/* === Performance Optimization === */
@media (prefers-reduced-motion: reduce) {
    .scroll-content {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .scroll-section.is-exiting .scroll-content {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* === Stagger Effect for Child Elements === */
.scroll-content>* {
    transition-delay: 0.1s;
}

.scroll-content>*:nth-child(2) {
    transition-delay: 0.15s;
}

.scroll-content>*:nth-child(3) {
    transition-delay: 0.2s;
}

/* === Section-Specific Delays === */
.skills .scroll-content {
    transition-delay: 0.05s;
}

.projects .scroll-content {
    transition-delay: 0.1s;
}

.education .scroll-content {
    transition-delay: 0.15s;
}

/* === Hero Section (No Animation) === */
.home .scroll-content,
.home {
    opacity: 1 !important;
    transform: none !important;
}

/* === Subtle Scale on Cards During Scroll === */
.scroll-section.is-active .skill-card,
.scroll-section.is-active .highlight-card,
.scroll-section.is-active .project-card,
.scroll-section.is-active .timeline-item,
.scroll-section.is-active .activity-card {
    transform: scale(1);
    opacity: 1;
}

.scroll-section.is-exiting .skill-card,
.scroll-section.is-exiting .highlight-card,
.scroll-section.is-exiting .project-card,
.scroll-section.is-exiting .timeline-item,
.scroll-section.is-exiting .activity-card {
    transform: scale(0.97);
    opacity: 0.6;
}

/* === Progressive Title Reveal === */
.scroll-content .section__title {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s,
        transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}

.scroll-content.is-visible .section__title {
    opacity: 1;
    transform: translateY(0);
}

/* === Fade Background Sections === */
.scroll-section.is-exiting {
    position: relative;
}

.scroll-section.is-exiting::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-primary);
    opacity: 0.2;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
/* ===============================================
   QUICK NAV WITH PROFILE ICON
   Glassmorphism hover effect
   =============================================== */

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

.quick-nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}

.profile-icon:hover {
    border-color: var(--primary);
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.quick-nav__menu {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .quick-nav__menu {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-nav__menu:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.15),
        0 0 0 1px rgba(37, 99, 235, 0.1) inset;
    transform: translateY(-2px);
}

[data-theme="dark"] .quick-nav__menu:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 8px 16px rgba(96, 165, 250, 0.2),
        0 0 0 1px rgba(96, 165, 250, 0.1) inset;
}

.quick-nav__link {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.quick-nav__link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: 12px;
}

.quick-nav__link:hover::before {
    opacity: 1;
}

.quick-nav__link:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

/* Glass highlight effect on hover */
.quick-nav__menu::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.quick-nav__menu:hover::after {
    opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .quick-nav__menu {
        padding: 0.4rem 0.75rem;
        gap: 0.5rem;
    }

    .quick-nav__link {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }

    .profile-icon {
        width: 36px;
        height: 36px;
    }
}

/* ===== TYPING EFFECT ===== */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--primary);
    margin-left: 2px;
}

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