/* ===== Base Styles ===== */
:root {
    /* Theme 1: Light Blue (Default) */
    --primary-color: #0052D4;
    --secondary-color: #4364F7;
    --text-color: #333;
    --light-text: #666;
    --background: #fff;
    --section-background: rgba(249, 249, 249, 0.4);
    --card-background: rgba(255, 255, 255, 0.4);
    --nav-background: rgba(255, 255, 255, 0.95);
    --header-gradient: linear-gradient(-45deg, #0052D4, #4364F7, #6FB1FC);
    --timeline-axis-color: #c6ccda;
    --timeline-dot-color: #586371;
    --header-text-color: #fff;
    --border-color: #eee;

    --section-padding: 4rem 0;
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

body.scroll-lock {
    position: fixed;
    width: 100%;
}

.body-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.body-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== Header & Navigation ===== */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.header {
    position: relative;
    min-height: 100svh;
    background: var(--header-gradient);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    color: var(--header-text-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
}

.logo h1 span {
    color: var(--secondary-color);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

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

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

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

.nav-toggle {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
    background: transparent;
    border: none;
}


/* Hero Section */
.hero {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero.loaded {
    opacity: 1;
    transform: translateY(0);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero h4 {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.cta-buttons.loaded {
    opacity: 1;
    transform: translateY(0);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
    min-width: 180px;
}

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

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
}

/* Social Icons */
.icons {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    font-size: 1.25rem;
    opacity: 0;
    transition: opacity 0.5s ease 0.4s;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    z-index: 100;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 90%;
}

.icons.loaded {
    opacity: 1;
}

.icons a {
    color: var(--header-text-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.icons a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Navigation Styles */
.nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--nav-background);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav.fixed-nav {
    position: fixed;
    animation: slide-down 0.3s ease-out;
}

@keyframes slide-down {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.navigation {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 0 auto;
    padding: 0 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
}

.logo h1 span {
    color: var(--secondary-color);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.4rem 0;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    /* background: var(--text-color); */
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Section Styles */
.section {
    padding: var(--section-padding);
}

.title h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.title h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-color);
}

/* About Section */
.about-center {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-center .left {
    place-self: center;
}

.about-center .right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-center img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
}

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

.highlight {
    text-align: center;
    padding: 1.5rem;
    background: var(--section-background);
    border-radius: 10px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.highlight .number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Experience Section */
.experience {
    padding: var(--section-padding);
    background: var(--section-background);
}

.experience-center {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.timeline {
    position: relative;
    margin: 2rem 0;
    padding-left: 40px; /* Space for the timeline axis */
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 21.5px; /* Position axis on the left */
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    /* background: var(--primary-color); */
    background-color: var(--timeline-axis-color);
    
}

.timeline-item {
    position: relative;
    padding: 1.5rem;
    background: var(--card-background);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -30.5px; /* Position dot on the axis */
    width: 15px;
    height: 15px;
    border-radius: 50%;
    /* background: var(--primary-color); */
    background-color: var(--timeline-dot-color);
    border: 3px solid var(--card-background);
    z-index: 1;
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

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

.timeline-date {
    display: inline-block;
    background: var(--section-background);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--light-text);
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style: disc;
    padding-left: 1.2rem;
    margin-top: 1rem;
}

.timeline-content ul li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* Projects Section */
.projects {
    padding: var(--section-padding);
}

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

.project-card {
    background: var(--card-background);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-link,
.cert-link {
    display: inline-block;
    text-decoration: none;
    padding: 0.5rem 1.2rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    font-weight: 500;
    margin-top: 1rem;
    transition: var(--transition);
}

.project-link:hover,
.cert-link:hover {
    background: var(--primary-color);
    color: var(--card-background);
}

.project-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tech-stack {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Skills Section */
.skills {
    padding: var(--section-padding);
}

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

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

.skill-category {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.skill-category ul {
    list-style: none;
}

.skill-category ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.skill-category ul li:last-child {
    border-bottom: none;
}

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

.cert-card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-card:hover {
    transform: translateY(-10px);
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background: var(--section-background);
}

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

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: var(--card-background);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

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

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
}

.contact-item a p {
    display: inline-block;
    position: relative;
    padding-bottom: 3px;
    transition: var(--transition);
}

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

.contact-item a:hover i {
    transform: scale(1.1);
}

.contact-item a p::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.contact-item a:hover p::after {
    width: 100%;
}

/* Footer */
footer {
    text-align: center;
    background: var(--primary-color);
    padding: 1.5rem 0;
    margin-top: 2rem;
    color: #fff;
}

footer span {
    color: #fff;
}

/* ===== Modal Styles ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--card-background);
    backdrop-filter: blur(15px);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    width: 90%;
    max-width: 800px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

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

.modal-header h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 2.5rem;
    color: var(--text-color);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-body {
    flex-grow: 1;
    padding: 0;
    overflow-y: auto;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.modal-footer {
    padding: 1rem 1.5rem;
    text-align: right;
    border-top: 1px solid var(--border-color);
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    position: relative;
}

/* .hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    box-shadow: 0 0 4px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
} */

.nav-toggle:hover .hamburger span {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.nav-toggle.active .hamburger span {
    background: var(--secondary-color);
}

.nav-toggle.active .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .hamburger span:nth-child(2) {
    opacity: 100%;
}

.nav-toggle.active .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        background: transparent;
        border: none;
        z-index: 1100;
    }

    .nav-toggle .hamburger {
        width: 24px;
        height: 18px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .nav-toggle .hamburger span {
        display: block;
        width: 100%;
        height: 3px;
        background: var(--primary-color);
        border-radius: 2px;
        margin: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-toggle.active .hamburger span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

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

    .nav-toggle.active .hamburger span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--nav-background);
        backdrop-filter: blur(15px);
        padding: 6rem 2rem 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 0.8rem 1rem;
        font-size: 1.1rem;
        border-radius: 5px;
        transition: var(--transition);
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--primary-color);
    }

    .header {
        /* min-height: 600px; */
    }

    .hero {
        padding: 1rem 1rem 150px;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.3;
    }

    .hero h3 {
        font-size: 1.2rem;
    }

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

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

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

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .icons {
        width: auto;
        padding: 0.5rem;
        bottom: 1rem;
        gap: 0.75rem;
    }

    .icons a {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .timeline {
        padding-left: 30px;
    }

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

    .timeline-item::before {
        left: -27px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

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

    .hero h4 {
        font-size: 0.9rem;
    }

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

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

    .timeline {
        width: 100%;
    }

    .timeline-item {
        width: 100%;
        padding: 1rem;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-content::before {
        left: 15px;
    }

    .section {
        padding: 3rem 0;
    }

    .section:not(:first-child) {
        margin-top: -1.5rem;
    }
}

/* ===== THEME 0: Original Bold ===== */
[data-theme='0'] {
    --primary-color: #0044FF;
    --secondary-color: #FF4600;
}

[data-theme='0'] .header {
    background: linear-gradient(-45deg, var(--primary-color), #4c00ff, var(--secondary-color), #ff7b00);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
}


/* ===== THEME 2: Cosmic Lilac ===== */
@keyframes gradientAnimationTheme2 {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

[data-theme='2'] {
    /* Variable Overrides */
    --primary-color: #9B59B6;
    --secondary-color: #3498DB;
    --text-color: #ECF0F1;
    --light-text: #BDC3C7;
    --background: #2c3e50;
    --section-background: rgba(52, 73, 94, 0.5);
    --card-background: rgba(70, 98, 127, 0.5);
    --nav-background: rgba(44, 62, 80, 0.85);
    --header-gradient: linear-gradient(-45deg, #8E44AD, #E74C3C, #2980B9);
    --timeline-axis-color: #566573;
    --timeline-dot-color: #9B59B6;
    --border-color: #34495E;
    --card-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

[data-theme='2'] .header {
    animation-name: gradientAnimationTheme2;
    animation-duration: 18s;
}

/* Specific overrides for Theme 2 */
[data-theme='2'] .logo h1 {
    color: var(--text-color);
}

[data-theme='2'] .logo h1 span {
    color: var(--primary-color);
}

[data-theme='2'] .nav-toggle .hamburger span {
    background: var(--text-color);
}

[data-theme='2'] .nav-toggle.active .hamburger span {
    background: var(--secondary-color);
}

[data-theme='2'] footer {
    background: #1C2833;
    color: var(--light-text);
}

[data-theme='2'] footer span {
    color: var(--primary-color);
}

[data-theme='2'] .btn.primary {
    background: var(--primary-color);
    color: var(--header-text-color);
}

[data-theme='2'] .btn.secondary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

[data-theme='2'] .btn.secondary:hover {
    background: var(--primary-color);
    color: var(--header-text-color);
}

/* ===== THEME 3: Oceanic Mint ===== */
@keyframes gradientAnimationTheme3 {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes buttonBreathe {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

[data-theme='3'] {
    /* Variable Overrides */
    --primary-color: #1dd1a1;
    --secondary-color: #48dbfb;
    --text-color: #1e272e;
    --light-text: #576574;
    --background: #f0f8ff;
    --section-background: rgba(234, 245, 255, 0.4);
    --card-background: rgba(255, 255, 255, 0.4);
    --nav-background: rgba(240, 248, 255, 0.9);
    --header-gradient: linear-gradient(-45deg, #1dd1a1, #48dbfb, #2e86de, #10ac84);
    --timeline-axis-color: #c8d6e5;
    --timeline-dot-color: #1dd1a1;
    --border-color: #dcdde1;
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

[data-theme='3'] .header {
    animation-name: gradientAnimationTheme3;
    animation-duration: 12s;
}

[data-theme='3'] .btn.primary,
[data-theme='3'] .btn.secondary {
    animation: buttonBreathe 3s ease-in-out infinite;
}

[data-theme='3'] .btn.primary {
    background: var(--primary-color);
    color: #fff;
}

[data-theme='3'] .btn.primary:hover {
    background: var(--secondary-color);
}

[data-theme='3'] .btn.secondary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

[data-theme='3'] .btn.secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ===== THEME 4: Nature's Whisper ===== */
@keyframes gradientAnimationTheme4 {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatLeaf {
    0% {
        transform: translateY(0) rotate(var(--rotation-start));
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(var(--horizontal-drift, -20vw)) rotate(var(--rotation-end));
        opacity: 0;
    }
}

[data-theme='4'] {
    /* Variable Overrides */
    --primary-color: #2E8B57; /* SeaGreen */
    --secondary-color: #6495ED; /* CornflowerBlue */
    --text-color: #2F4F4F; /* DarkSlateGray */
    --light-text: #696969; /* DimGray */
    --background: #FAFAD2; /* LightGoldenRodYellow */
    --section-background: rgba(240, 230, 140, 0.4); /* Khaki */
    --card-background: rgba(255, 255, 255, 0.4);
    --nav-background: rgba(250, 250, 210, 0.85); /* LightGoldenRodYellow with alpha */
    --header-gradient: linear-gradient(-45deg, #87CEEB, #2E8B57, #90EE90, #4682B4); /* SkyBlue, SeaGreen, LightGreen, SteelBlue */
    --timeline-axis-color: #BDB76B; /* DarkKhaki */
    --timeline-dot-color: #2E8B57;
    --border-color: #dcdde1;
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

[data-theme='4'] .header {
    animation-name: gradientAnimationTheme4;
    animation-duration: 20s;
}

/* ===== THEME 4.1: Nature's Whisper (Enhanced) ===== */
[data-theme='4.1'] {
    /* Variable Overrides */
    --primary-color: #2E8B57; /* SeaGreen */
    --secondary-color: #D2B48C; /* Tan */
    --text-color: #2F4F4F; /* DarkSlateGray */
    --light-text: #696969; /* DimGray */
    --background: #FDF5E6; /* Old Lace */
    --section-background: rgba(250, 235, 215, 0.4); /* Antique White */
    --card-background: rgba(255, 255, 255, 0.4);
    --nav-background: rgba(253, 245, 230, 0.85); /* Old Lace with alpha */
    --header-gradient: linear-gradient(-45deg, #2E8B57, #8FBC8F, #D2B48C, #3CB371);
    --timeline-axis-color: #BDB76B; /* DarkKhaki */
    --timeline-dot-color: #2E8B57;
    --border-color: #e0d9cf;
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

[data-theme='4.1'] .header {
    animation-name: gradientAnimationTheme4;
    animation-duration: 20s;
}

/* ===== THEME 5: RGB Modern ===== */
@keyframes rgb-text-shadow {
    0% { text-shadow: 2px 2px 0px #ff0000, -2px -2px 0px #00ff00, 0px 0px 4px #0000ff; }
    25% { text-shadow: -2px 2px 0px #00ff00, 2px -2px 0px #0000ff, 0px 0px 4px #ff0000; }
    50% { text-shadow: 2px -2px 0px #0000ff, -2px 2px 0px #ff0000, 0px 0px 4px #00ff00; }
    75% { text-shadow: -2px -2px 0px #ff0000, 2px 2px 0px #00ff00, 0px 0px 4px #0000ff; }
    100% { text-shadow: 2px 2px 0px #ff0000, -2px -2px 0px #00ff00, 0px 0px 4px #0000ff; }
}

@keyframes rgb-border {
    0% { border-color: #ff0000; box-shadow: 0 0 10px #ff0000; }
    33% { border-color: #00ff00; box-shadow: 0 0 10px #00ff00; }
    66% { border-color: #0000ff; box-shadow: 0 0 10px #0000ff; }
    100% { border-color: #ff0000; box-shadow: 0 0 10px #ff0000; }
}

@keyframes rgb-inner-glow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

[data-theme='5'] {
    --primary-color: #00ffff; /* Cyan */
    --secondary-color: #ff00ff; /* Magenta */
    --text-color: #f0f0f0;
    --light-text: #a0a0a0;
    --background: #121212;
    --section-background: rgba(26, 26, 26, 0.3);
    --card-background: rgba(36, 36, 36, 0.3);
    --nav-background: rgba(18, 18, 18, 0.85);
    --header-gradient: linear-gradient(-45deg, #1a1a1a, #2a2a2a, #1a1a1a);
    --timeline-axis-color: #444;
    --timeline-dot-color: var(--primary-color);
    --header-text-color: #fff;
    --border-color: #333;
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

[data-theme='5'] .header {
    background: var(--background);
}

[data-theme='5'] .hero h1 {
    animation: rgb-text-shadow 4s linear infinite;
}

[data-theme='5'] .logo h1,
[data-theme='5'] .logo h1 span {
    color: var(--text-color);
}

[data-theme='5'] .nav-toggle .hamburger span {
    background: var(--text-color);
}

/* ===== THEME 5.1: RGB Glitch ===== */
@keyframes glitch-p-1 {
    0% { clip-path: inset(3% 0 95% 0); }
    25% { clip-path: inset(45% 0 25% 0); }
    50% { clip-path: inset(80% 0 5% 0); }
    75% { clip-path: inset(10% 0 88% 0); }
    100% { clip-path: inset(98% 0 1% 0); }
}

@keyframes glitch-p-2 {
    0% { clip-path: inset(93% 0 3% 0); }
    25% { clip-path: inset(20% 0 75% 0); }
    50% { clip-path: inset(60% 0 20% 0); }
    75% { clip-path: inset(30% 0 65% 0); }
    100% { clip-path: inset(5% 0 92% 0); }
}

@keyframes rgb-glow {
    0% { box-shadow: 0 0 5px #ff0000, 0 0 10px #ff0000, inset 0 0 5px #ff0000; }
    33% { box-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00, inset 0 0 5px #00ff00; }
    66% { box-shadow: 0 0 5px #0000ff, 0 0 10px #0000ff, inset 0 0 5px #0000ff; }
    100% { box-shadow: 0 0 5px #ff0000, 0 0 10px #ff0000, inset 0 0 5px #ff0000; }
}

@keyframes scanline {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

[data-theme='5.1'] {
    --primary-color: #00ffff; /* Cyan */
    --secondary-color: #ff00ff; /* Magenta */
    --text-color: #f0f0f0;
    --light-text: #a0a0a0;
    --background: #0d0d0d;
    --section-background: rgba(26, 26, 26, 0.3);
    --card-background: rgba(36, 36, 36, 0.3);
    --nav-background: rgba(13, 13, 13, 0.85);
    --header-gradient: linear-gradient(-45deg, #1a1a1a, #2a2a2a, #1a1a1a);
    --timeline-axis-color: #444;
    --timeline-dot-color: var(--primary-color);
    --header-text-color: #fff;
    --border-color: #333;
    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

[data-theme='5.1'] body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 3px);
    animation: scanline 20s linear infinite;
    pointer-events: none;
    z-index: 2000;
    opacity: 0.5;
}

[data-theme='5.1'] .hero h1 {
    position: relative;
    color: var(--header-text-color);
}

[data-theme='5.1'] .hero h1::before,
[data-theme='5.1'] .hero h1::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    overflow: hidden;
}

[data-theme='5.1'] .hero h1::before {
    left: 2px;
    text-shadow: -1px 0 #ff00ff;
    animation: glitch-p-1 3s linear infinite reverse;
}

[data-theme='5.1'] .hero h1::after {
    left: -2px;
    text-shadow: -1px 0 #00ffff, 1px 1px #ff00ff;
    animation: glitch-p-2 2s linear infinite reverse;
}

[data-theme='5.1'] .logo h1,
[data-theme='5.1'] .logo h1 span {
    color: var(--text-color);
}

[data-theme='5.1'] .nav-toggle .hamburger span {
    background: var(--text-color);
}

/* ===== THEME 5.2: Digital Bloom ===== */
@keyframes bloom-float {
    0% { transform: translateY(0) scale(1); opacity: var(--start-opacity, 0); }
    50% { opacity: var(--mid-opacity, 0.8); }
    100% { transform: translateY(-30vh) scale(0.5); opacity: 0; }
}

@keyframes subtle-text-cycle {
    0% { color: #00ffff; text-shadow: 0 0 5px #00ffff; }
    33% { color: #39ff14; text-shadow: 0 0 5px #39ff14; }
    66% { color: #f8f8ff; text-shadow: 0 0 5px #f8f8ff; }
    100% { color: #00ffff; text-shadow: 0 0 5px #00ffff; }
}

@keyframes subtle-glow-border {
    0% { border-color: #00ffff; box-shadow: 0 0 8px #00ffff; }
    50% { border-color: #39ff14; box-shadow: 0 0 8px #39ff14; }
    100% { border-color: #00ffff; box-shadow: 0 0 8px #00ffff; }
}

@keyframes subtle-inner-glow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

[data-theme='5.2'] {
    --primary-color: #39ff14; /* Neon Green */
    --secondary-color: #00ffff; /* Cyan */
    --text-color: #e0e0e0;
    --light-text: #999;
    --background: #0B1A24; /* Deep Blue/Green */
    --section-background: rgba(16, 35, 48, 0.4);
    --card-background: rgba(21, 44, 61, 0.4);
    --nav-background: rgba(11, 26, 36, 0.85);
    --header-gradient: linear-gradient(-45deg, #0B1A24, #102330, #0B1A24);
    --timeline-axis-color: #2A4A60;
    --timeline-dot-color: var(--primary-color);
    --header-text-color: #fff;
    --border-color: #2A4A60;
    --card-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
}

[data-theme='5.2'] .hero h1 {
    animation: subtle-text-cycle 15s linear infinite;
}

[data-theme='5.2'] .logo h1,
[data-theme='5.2'] .logo h1 span {
    color: var(--text-color);
}

[data-theme='5.2'] .nav-toggle .hamburger span {
    background: var(--text-color);
}

/* Leaf & Particle Animation Styles */
.leaves-container,
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.leaf {
    position: absolute;
    top: -50px; /* Start above screen */
    background-color: rgba(46, 139, 87, 0.6); /* SeaGreen with alpha */
    border-radius: 10% 90% 40% 60% / 60% 40% 90% 10%;
    opacity: 0;
    animation-name: floatLeaf;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.particle {
    position: absolute;
    bottom: -20px; /* Start from bottom */
    border-radius: 50%;
    opacity: 0;
    animation-name: bloom-float;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Theme-specific overrides */
[data-theme='4.1'] .btn.primary {
    background: var(--primary-color);
    color: #fff;
}

[data-theme='4.1'] .btn.secondary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

[data-theme='4.1'] .btn.secondary:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Theme-specific overrides for Theme 5 */
[data-theme='5'] .btn.primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

[data-theme='5'] .btn.primary:hover {
    background: var(--primary-color);
    color: var(--background);
    box-shadow: 0 0 15px var(--primary-color);
}

[data-theme='5'] .btn.secondary {
    border: 2px solid var(--header-text-color);
    color: var(--header-text-color);
}

[data-theme='5'] .btn.secondary:hover {
    animation: rgb-border 3s linear infinite;
    color: #fff;
}

[data-theme='5'] .project-card,
[data-theme='5'] .skill-category,
[data-theme='5'] .cert-card,
[data-theme='5'] .timeline-item,
[data-theme='5'] .contact-item,
[data-theme='5'] .highlight {
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

[data-theme='5'] .project-card,
[data-theme='5'] .skill-category,
[data-theme='5'] .cert-card,
[data-theme='5'] .contact-item,
[data-theme='5'] .highlight {
    overflow: hidden;
}

[data-theme='5'] .project-card:hover,
[data-theme='5'] .skill-category:hover,
[data-theme='5'] .cert-card:hover,
[data-theme='5'] .timeline-item:hover,
[data-theme='5'] .contact-item:hover,
[data-theme='5'] .highlight:hover {
    animation: rgb-border 3s linear infinite;
    transform: translateY(-5px);
}

[data-theme='5'] .project-card::before,
[data-theme='5'] .skill-category::before,
[data-theme='5'] .cert-card::before,
[data-theme='5'] .contact-item::before,
[data-theme='5'] .highlight::before,
[data-theme='5'] .timeline-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    background: linear-gradient(110deg, rgba(255,0,0,0.15), rgba(0,255,0,0.15), rgba(0,0,255,0.15), rgba(255,0,0,0.15));
    background-size: 400% 400%;
    border-radius: 10px;
}

[data-theme='5'] .project-card:hover::before,
[data-theme='5'] .skill-category:hover::before,
[data-theme='5'] .cert-card:hover::before,
[data-theme='5'] .contact-item:hover::before,
[data-theme='5'] .highlight:hover::before,
[data-theme='5'] .timeline-item:hover::after {
    opacity: 1;
    animation: rgb-inner-glow 8s linear infinite;
}

[data-theme='5'] footer {
    background: #1a1a1a;
}

/* Theme-specific overrides for Theme 5.1 */
[data-theme='5.1'] .btn.primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

[data-theme='5.1'] .btn.primary:hover {
    background: var(--primary-color);
    color: var(--background);
    animation: rgb-glow 2s linear infinite;
}

[data-theme='5.1'] .btn.secondary {
    border: 2px solid var(--header-text-color);
    color: var(--header-text-color);
}

[data-theme='5.1'] .btn.secondary:hover {
    animation: rgb-glow 2s linear infinite;
    color: #fff;
}

[data-theme='5.1'] .project-card,
[data-theme='5.1'] .skill-category,
[data-theme='5.1'] .cert-card,
[data-theme='5.1'] .timeline-item,
[data-theme='5.1'] .contact-item,
[data-theme='5.1'] .highlight {
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

[data-theme='5.1'] .project-card:hover,
[data-theme='5.1'] .skill-category:hover,
[data-theme='5.1'] .cert-card:hover,
[data-theme='5.1'] .timeline-item:hover,
[data-theme='5.1'] .contact-item:hover,
[data-theme='5.1'] .highlight:hover {
    animation: rgb-glow 2s linear infinite;
    transform: translateY(-5px);
}

[data-theme='5.1'] footer {
    background: #1a1a1a;
}

/* Theme-specific overrides for Theme 5.2 */
[data-theme='5.2'] .btn.primary {
    background: var(--primary-color);
    color: var(--background);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

[data-theme='5.2'] .btn.primary:hover {
    background: transparent;
    color: var(--primary-color);
}

[data-theme='5.2'] .btn.secondary {
    border: 2px solid var(--header-text-color);
    color: var(--header-text-color);
}

[data-theme='5.2'] .btn.secondary:hover {
    background: var(--header-text-color);
    color: var(--background);
}

[data-theme='5.2'] .project-card,
[data-theme='5.2'] .skill-category,
[data-theme='5.2'] .cert-card,
[data-theme='5.2'] .timeline-item,
[data-theme='5.2'] .contact-item,
[data-theme='5.2'] .highlight {
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

[data-theme='5.2'] .project-card,
[data-theme='5.2'] .skill-category,
[data-theme='5.2'] .cert-card,
[data-theme='5.2'] .contact-item,
[data-theme='5.2'] .highlight {
    overflow: hidden;
}

[data-theme='5.2'] .project-card:hover,
[data-theme='5.2'] .skill-category:hover,
[data-theme='5.2'] .cert-card:hover,
[data-theme='5.2'] .timeline-item:hover,
[data-theme='5.2'] .contact-item:hover,
[data-theme='5.2'] .highlight:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    animation: subtle-glow-border 4s linear infinite;
}

[data-theme='5.2'] .project-card::before,
[data-theme='5.2'] .skill-category::before,
[data-theme='5.2'] .cert-card::before,
[data-theme='5.2'] .contact-item::before,
[data-theme='5.2'] .highlight::before,
[data-theme='5.2'] .timeline-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    background: linear-gradient(110deg, rgba(0,255,255,0.15), rgba(57,255,20,0.15), rgba(0,255,255,0.15));
    background-size: 400% 400%;
    border-radius: 10px;
}

[data-theme='5.2'] .project-card:hover::before,
[data-theme='5.2'] .skill-category:hover::before,
[data-theme='5.2'] .cert-card:hover::before,
[data-theme='5.2'] .contact-item:hover::before,
[data-theme='5.2'] .highlight:hover::before,
[data-theme='5.2'] .timeline-item:hover::after {
    opacity: 1;
    animation: subtle-inner-glow 10s linear infinite;
}

[data-theme='5.2'] footer {
    background: #102330;
}

/* ===== THEME 5.3: Digital Bloom RGB ===== */
[data-theme='5.3'] {
    --primary-color: #39ff14; /* Neon Green */
    --secondary-color: #00ffff; /* Cyan */
    --text-color: #e0e0e0;
    --light-text: #999;
    --background: #0B1A24; /* Deep Blue/Green */
    --section-background: rgba(16, 35, 48, 0.4);
    --card-background: rgba(21, 44, 61, 0.4);
    --nav-background: rgba(11, 26, 36, 0.85);
    --header-gradient: linear-gradient(-45deg, #0B1A24, #102330, #0B1A24);
    --timeline-axis-color: #2A4A60;
    --timeline-dot-color: var(--primary-color);
    --header-text-color: #fff;
    --border-color: #2A4A60;
    --card-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
}

[data-theme='5.3'] .hero h1 {
    animation: rgb-text-shadow 4s linear infinite;
}

[data-theme='5.3'] .logo h1,
[data-theme='5.3'] .logo h1 span {
    color: var(--text-color);
}

[data-theme='5.3'] .nav-toggle .hamburger span {
    background: var(--text-color);
}

/* Theme-specific overrides for Theme 5.3 */
[data-theme='5.3'] .btn.primary {
    background: var(--primary-color);
    color: var(--background);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

[data-theme='5.3'] .btn.primary:hover {
    background: transparent;
    color: var(--primary-color);
}

[data-theme='5.3'] .btn.secondary {
    border: 2px solid var(--header-text-color);
    color: var(--header-text-color);
}

[data-theme='5.3'] .btn.secondary:hover {
    background: var(--header-text-color);
    color: var(--background);
}

[data-theme='5.3'] .project-card,
[data-theme='5.3'] .skill-category,
[data-theme='5.3'] .cert-card,
[data-theme='5.3'] .timeline-item,
[data-theme='5.3'] .contact-item,
[data-theme='5.3'] .highlight {
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

[data-theme='5.3'] .project-card,
[data-theme='5.3'] .skill-category,
[data-theme='5.3'] .cert-card,
[data-theme='5.3'] .contact-item,
[data-theme='5.3'] .highlight {
    overflow: hidden;
}

[data-theme='5.3'] .project-card:hover,
[data-theme='5.3'] .skill-category:hover,
[data-theme='5.3'] .cert-card:hover,
[data-theme='5.3'] .timeline-item:hover,
[data-theme='5.3'] .contact-item:hover,
[data-theme='5.3'] .highlight:hover {
    transform: translateY(-5px);
    animation: rgb-border 3s linear infinite;
}

[data-theme='5.3'] .project-card::before,
[data-theme='5.3'] .skill-category::before,
[data-theme='5.3'] .cert-card::before,
[data-theme='5.3'] .contact-item::before,
[data-theme='5.3'] .highlight::before,
[data-theme='5.3'] .timeline-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    background: linear-gradient(110deg, rgba(255,0,0,0.15), rgba(0,255,0,0.15), rgba(0,0,255,0.15), rgba(255,0,0,0.15));
    background-size: 400% 400%;
    border-radius: 10px;
}

[data-theme='5.3'] .project-card:hover::before,
[data-theme='5.3'] .skill-category:hover::before,
[data-theme='5.3'] .cert-card:hover::before,
[data-theme='5.3'] .contact-item:hover::before,
[data-theme='5.3'] .highlight:hover::before,
[data-theme='5.3'] .timeline-item:hover::after {
    opacity: 1;
    animation: rgb-inner-glow 8s linear infinite;
}

[data-theme='5.3'] footer {
    background: #102330;
}
