/* 
   Sasikeerthika R - Theme 2.0 (Modern-Tech & Human-Impact)
   Dark (Developer) & Light (Trainer) Modes
*/

:root {
    /* -----------------------------------------
       Dark Mode (Developer Mode) - Default
       ----------------------------------------- */
    --clr-bg-primary: #1a0b16; /* Deep Pink/Dark Purple background */
    --clr-bg-secondary: #25121e; /* Card background */
    --clr-bg-tertiary: #301a27; /* Hover states */

    --clr-text-main: #e2e8f0;
    --clr-text-muted: #94a3b8;
    --clr-text-heading: #ffffff;

    /* Accent Colors: Neon Cyan & Electric Purple */
    --clr-accent-1: #00f3ff;
    /* Neon Cyan */
    --clr-accent-2: #b026ff;
    /* Electric Purple */
    --clr-accent-3: #ffb700;
    /* Luxury Gold */
    --clr-accent-1-tint: rgba(0, 243, 255, 0.1);
    --clr-accent-2-tint: rgba(176, 38, 255, 0.1);
    --clr-accent-3-tint: rgba(255, 183, 0, 0.1);

    --border-color: rgba(255, 255, 255, 0.1);

    /* Fonts & Structure */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --padding-section: 100px;
    --nav-height: 80px;

    /* Box Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 25px var(--clr-accent-1-tint);
    --glass-bg: rgba(18, 24, 43, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* -----------------------------------------
   Light Mode (Trainer Mode)
   ----------------------------------------- */
[data-theme="light"] {
    --clr-bg-primary: #e0f2fe; /* Light Sky Blue background */
    --clr-bg-secondary: #f0f9ff; /* Card background */
    --clr-bg-tertiary: #d1edff; /* Hover states */

    --clr-text-main: #334155;
    --clr-text-muted: #64748b;
    --clr-text-heading: #0f172a;

    /* Accent Colors: Educational & Warm */
    --clr-accent-1: #2563eb;
    /* Soft Royal Blue */
    --clr-accent-2: #8b5cf6;
    /* Soft Violet */
    --clr-accent-3: #d97706;
    /* Soft Amber */
    --clr-accent-1-tint: rgba(37, 99, 235, 0.1);
    --clr-accent-2-tint: rgba(139, 92, 246, 0.1);
    --clr-accent-3-tint: rgba(217, 119, 6, 0.1);

    --border-color: rgba(0, 0, 0, 0.1);

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 10px 25px var(--clr-accent-1-tint);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--clr-bg-primary);
    color: var(--clr-text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Typograpy overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--clr-text-heading);
    font-family: var(--font-heading);
    font-weight: 600;
}

.big-heading {
    margin: 0;
    font-size: clamp(40px, 8vw, 70px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1px;
}

.sub-heading {
    margin: 15px 0 0;
    font-size: clamp(24px, 4vw, 36px);
    color: var(--clr-text-muted);
    line-height: 1.2;
    font-weight: 500;
}

/* Highlighted gradient text */
.highlight-text {
    background: linear-gradient(90deg, var(--clr-accent-1), var(--clr-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

a {
    color: var(--clr-accent-1);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    filter: brightness(1.2);
}

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--clr-accent-1), var(--clr-accent-2));
    color: #fff !important;
    /* Force white text for contrast on gradients */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px var(--clr-accent-2-tint);
    filter: brightness(1.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--clr-text-heading) !important;
    border: 2px solid var(--clr-accent-1);
}

.btn-secondary:hover {
    background-color: var(--clr-accent-1-tint);
    color: var(--clr-accent-1) !important;
    transform: translateY(-3px);
}

/* --- CV Flip Card Button --- */
.cv-flip-wrapper {
    perspective: 1000px;
    display: inline-block;
    vertical-align: middle;
}

.cv-flip-card {
    position: relative;
    display: block; /* Ensure it respects width and height */
    width: 200px; 
    height: 54px; 
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
    text-decoration: none;
}

.cv-flip-wrapper:hover .cv-flip-card {
    transform: rotateY(180deg);
}

.cv-flip-front,
.cv-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    overflow: hidden;
}

.cv-flip-front {
    z-index: 2;
}

.cv-flip-back {
    transform: rotateY(180deg);
    background: var(--clr-bg-tertiary);
    border: 1px solid var(--clr-accent-1);
    box-shadow: 0 4px 15px var(--clr-accent-1-tint);
}

.cv-flip-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    filter: brightness(0.6);
    transition: transform 0.5s ease;
}

.cv-flip-wrapper:hover .cv-flip-back img {
    transform: scale(1.1);
}

.cv-back-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cv-flip-wrapper:hover .cv-back-overlay {
    opacity: 1;
}

.cv-action-btn {
    padding: 6px 16px;
    font-size: 11px;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100px;
    text-align: center;
    border: 1px solid var(--clr-accent-1);
}

.cv-action-btn:hover {
    transform: scale(1.05);
}

.view-cv-trigger {
    background: var(--clr-accent-1);
    color: #fff;
}

.download-cv-btn {
    background: transparent;
    color: var(--clr-accent-1);
}

.download-cv-btn:hover {
    background: var(--clr-accent-1-tint);
}

/* Layout */
main {
    margin: 0 auto;
    width: 100%;
    max-width: 1200px;
    padding: 0 40px;
}

.section {
    min-height: 80vh;
    padding: var(--padding-section) 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    display: flex;
    align-items: center;
    margin: 10px 0 50px;
    font-size: clamp(26px, 5vw, 32px);
    width: 100%;
}

.section-title span {
    color: var(--clr-accent-1);
    font-family: var(--font-heading);
    font-size: clamp(20px, 4vw, 24px);
    margin-right: 15px;
    font-weight: 800;
}

.section-title::after {
    content: "";
    /* horizontal line */
    display: block;
    height: 1px;
    flex-grow: 1;
    margin-left: 20px;
    background: linear-gradient(90deg, var(--border-color), transparent);
}

/* Background Glow */
.bg-glow {
    position: fixed;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--clr-accent-1-tint) 0%, transparent 60%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
    transition: background 0.5s ease;
}

.top-glow {
    top: -400px;
    right: -200px;
    animation: pulseGlow 10s ease-in-out infinite alternate;
}

.bottom-glow {
    bottom: -400px;
    left: -200px;
    background: radial-gradient(circle, var(--clr-accent-2-tint) 0%, transparent 60%);
    animation: pulseGlow 8s ease-in-out infinite alternate-reverse;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.5; }
    100% { transform: scale(1.2) translate(50px, 50px); opacity: 0.8; }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: transparent;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    background-color: var(--glass-bg);
    opacity: 1;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--glass-border);
    height: 70px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 900;
    color: var(--clr-accent-1);
    letter-spacing: -1px;
}

.logo a span {
    color: var(--clr-text-heading);
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-links li a {
    color: var(--clr-text-main);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--clr-accent-1);
    transition: width 0.3s ease;
}

.nav-links li a:hover {
    color: var(--clr-accent-1);
}

.nav-links li a:hover::after {
    width: 100%;
}

/* --- Theme Switch Toggle --- */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid var(--border-color);
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 140px;
    height: 38px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--clr-bg-secondary);
    transition: .4s;
    border-radius: 38px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.slider.round::before {
    position: absolute;
    content: "";
    height: 30px;
    width: 65px;
    left: 3px;
    bottom: 3px;
    background: linear-gradient(135deg, var(--clr-accent-1), var(--clr-accent-2));
    transition: .4s;
    border-radius: 30px;
    z-index: 1;
}

input:checked+.slider::before {
    transform: translateX(67px);
    background: linear-gradient(135deg, var(--clr-accent-2), var(--clr-accent-1));
}

.mode-label {
    font-size: 11px;
    font-family: var(--font-heading);
    font-weight: 800;
    z-index: 2;
    transition: color 0.3s;
    text-transform: uppercase;
}

.dark-label {
    color: #fff;
    margin-left: 3px;
}

.light-label {
    color: var(--clr-text-muted);
    margin-right: 5px;
}

input:checked+.slider .dark-label {
    color: var(--clr-text-muted);
}

input:checked+.slider .light-label {
    color: #fff;
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 2px;
    background-color: var(--clr-text-heading);
    margin: 5px;
    transition: var(--transition);
}

/* --- Ticker / Scrolling Icons --- */
.ticker-container {
    width: 100%;
    background-color: var(--clr-bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    overflow: hidden;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    z-index: 10;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-move {
    display: inline-flex;
    white-space: nowrap;
    animation: ticker 25s linear infinite;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 18px;
    color: var(--clr-text-heading);
}

.ticker-item i {
    color: var(--clr-accent-1);
    font-size: 20px;
}

.ticker-separator {
    margin: 0 40px;
    color: var(--border-color);
    font-weight: 300;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Shift by half since items are duplicated */
}

/* --- Hero Section --- */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 50px;
    /* offset ticker */
}

.hero-desc {
    margin: 30px 0;
    max-width: 550px;
    font-size: 18px;
    color: var(--clr-text-muted);
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

/* Profile Photo Styling */
.hero-image {
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.profile-container {
    position: relative;
    width: 320px;
    height: 450px;
    border-radius: 20px;
    background: var(--clr-bg-secondary);
    border: 4px solid var(--clr-accent-2);
    z-index: 2;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
    overflow: hidden;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.hero-image.reveal.active .profile-container {
    animation: coinRotate 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1 forwards;
}

@keyframes coinRotate {
    0% {
        transform: perspective(1000px) rotateY(0deg);
    }
    100% {
        transform: perspective(1000px) rotateY(360deg);
    }
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.profile-backdrop {
    display: none;
}

/* /* --- Impact Wheel Section --- */
.wheel-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
    margin-top: 20px;
    perspective: 1000px;
}

.impact-wheel {
    position: relative;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, var(--clr-bg-tertiary) 0%, transparent 70%);
}

/* Icons around the wheel */
.wheel-sector {
    position: absolute;
    width: 140px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    /* Circular positioning logic */
    --angle: calc((var(--i) - 1) * (360deg / 4));
    transform: rotate(var(--angle)) translate(220px) rotate(calc(-1 * var(--angle)));
}

.sector-inner {
    width: 100px;
    height: 100px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
}

.sector-inner i {
    font-size: 28px;
    color: var(--clr-text-muted);
}

.sector-name {
    font-size: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    letter-spacing: 1px;
}

.wheel-sector:hover .sector-inner,
.wheel-sector.active .sector-inner {
    background: var(--clr-bg-secondary);
    border-color: var(--clr-accent-1);
    transform: scale(1.2);
    box-shadow: 0 0 30px var(--clr-accent-1-tint);
}

.wheel-sector:hover i,
.wheel-sector.active i {
    color: var(--clr-accent-1);
}

.wheel-sector:hover .sector-name,
.wheel-sector.active .sector-name {
    color: var(--clr-text-heading);
}

/* Center Content Display */
.wheel-center {
    width: 320px;
    height: 320px;
    background: var(--clr-bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-md), inset 0 0 40px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
    z-index: 5;
    padding: 30px;
}

.wheel-center::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--clr-accent-1-tint), var(--clr-accent-2-tint));
    opacity: 0.2;
}

.center-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sector-detail {
    position: absolute;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    pointer-events: none;
    width: 100%;
}

.sector-detail.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.detail-icon {
    font-size: 45px;
    color: var(--clr-accent-1);
    margin-bottom: 20px;
    animation: bounceSlow 3s ease-in-out infinite;
}

@keyframes bounceSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.sector-detail h3 {
    font-size: 26px;
    margin-bottom: 15px;
    color: var(--clr-text-heading);
    letter-spacing: 1px;
}

.sector-detail p {
    font-size: 14px;
    color: var(--clr-text-muted);
    line-height: 1.6;
}

/* Responsive Wheel */
@media screen and (max-width: 768px) {
    .impact-wheel {
        width: 100%;
        height: auto;
        flex-direction: column;
        gap: 30px;
        background: none;
    }

    .wheel-sector {
        position: static;
        transform: none !important;
        width: 100%;
        height: auto;
    }

    .sector-inner {
        width: 100%;
        height: auto;
        padding: 20px;
        border-radius: 16px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 20px;
    }

    .wheel-center {
        width: 100%;
        height: auto;
        border-radius: 16px;
        position: static;
    }

    .sector-detail {
        position: relative;
        display: none;
    }

    .sector-detail.active {
        display: block;
    }
}

/* --- Resume Section --- */
.resume-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.resume-category {
    font-size: 24px;
    color: var(--clr-accent-2);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.resume-category::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 3px;
    background: var(--clr-accent-1);
    bottom: -10px;
    left: 0;
}

.resume-entry {
    margin-bottom: 40px;
    padding-left: 25px;
    border-left: 2px solid var(--border-color);
    position: relative;
    transition: var(--transition);
}

.resume-entry:hover {
    border-left-color: var(--clr-accent-1);
}

.resume-entry::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--clr-bg-primary);
    border: 2px solid var(--clr-accent-1);
    border-radius: 50%;
    left: -7px;
    top: 5px;
}

.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.resume-title {
    font-size: 19px;
    color: var(--clr-text-heading);
}

.resume-date {
    font-size: 13px;
    color: var(--clr-accent-1);
    font-family: var(--font-heading);
    font-weight: 700;
}

.resume-org {
    font-size: 16px;
    color: var(--clr-text-main);
    margin-bottom: 12px;
    font-weight: 600;
}

.resume-desc {
    font-size: 15px;
    color: var(--clr-text-muted);
}

.resume-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.resume-skills li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--clr-text-main);
}

.resume-skills i {
    color: var(--clr-accent-1);
}

.resume-actions {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

@media screen and (max-width: 992px) {
    .resume-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* --- Projects / Gallery --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #00f3ff, #b026ff, #ff6b6b, #ffb700);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 243, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.15), 0 0 60px rgba(176, 38, 255, 0.1);
}

.project-card:hover::before {
    opacity: 1;
}

/* Unique color accents per card */
.project-card:nth-child(1) .project-icon { color: #ff6b6b; }
.project-card:nth-child(2) .project-icon { color: #4ecdc4; }
.project-card:nth-child(3) .project-icon { color: #ffd93d; }
.project-card:nth-child(4) .project-icon { color: #6c5ce7; }

.project-card:nth-child(1)::before { background: linear-gradient(90deg, #ff6b6b, #ee5a24); }
.project-card:nth-child(2)::before { background: linear-gradient(90deg, #4ecdc4, #00cec9); }
.project-card:nth-child(3)::before { background: linear-gradient(90deg, #ffd93d, #f9ca24); }
.project-card:nth-child(4)::before { background: linear-gradient(90deg, #6c5ce7, #a29bfe); }

.project-top i {
    font-size: 40px;
    color: var(--clr-accent-1);
    margin-bottom: 25px;
    display: block;
}

.project-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--clr-text-heading);
}

.project-desc {
    font-size: 16px;
    color: var(--clr-text-muted);
    margin-bottom: 25px;
    line-height: 1.7;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.project-tech-list li {
    font-size: 12px;
    font-family: var(--font-heading);
    color: #fff;
    background: linear-gradient(135deg, rgba(176, 38, 255, 0.3), rgba(0, 243, 255, 0.2));
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 600;
    border: 1px solid rgba(176, 38, 255, 0.3);
    transition: var(--transition);
}

.project-tech-list li:hover {
    background: linear-gradient(135deg, rgba(176, 38, 255, 0.5), rgba(0, 243, 255, 0.4));
    transform: scale(1.05);
}

.btn-project {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 60%;
    padding: 12px 0;
    color: var(--clr-text-heading);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    border-bottom: 2px solid var(--clr-accent-1);
    border-radius: 0;
}

.btn-project:hover {
    color: var(--clr-accent-1);
    padding-right: 15px;
}

.btn-project i {
    transition: transform 0.3s ease;
}

.btn-project:hover i {
    transform: translateX(5px);
}

/* --- Dual-Impact Timeline --- */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--clr-accent-1), var(--clr-accent-2));
}

.timeline-block {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    width: 100%;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    background: var(--clr-bg-primary);
    border: 3px solid var(--clr-accent-1);
    box-shadow: 0 0 20px var(--clr-accent-1-tint);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: var(--clr-accent-1);
    z-index: 2;
    flex-shrink: 0;
    transition: var(--transition);
}

.timeline-block:hover .timeline-icon {
    transform: rotate(10deg) scale(1.1);
    border-color: var(--clr-accent-2);
    color: var(--clr-accent-2);
}

.timeline-block.timeline-edu .timeline-icon {
    border-color: var(--clr-accent-2);
    color: var(--clr-accent-2);
    box-shadow: 0 0 20px var(--clr-accent-2-tint);
}

.timeline-block.timeline-overseas .timeline-icon {
    border-color: var(--clr-accent-3);
    color: var(--clr-accent-3);
    box-shadow: 0 0 20px var(--clr-accent-3-tint);
}

.timeline-content {
    background: var(--clr-bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    margin-left: 40px;
    flex-grow: 1;
    position: relative;
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.2);
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 30px;
    border-width: 15px 15px 15px 0;
    border-style: solid;
    border-color: transparent var(--clr-bg-secondary) transparent transparent;
}

.timeline-content h3 {
    font-size: 26px;
    margin-bottom: 5px;
}

.timeline-content h3 span {
    color: var(--clr-accent-1);
    font-size: 18px;
    display: block;
    margin-top: 5px;
}

.timeline-edu .timeline-content h3 span {
    color: var(--clr-accent-2);
}

.timeline-overseas .timeline-content h3 span {
    color: var(--clr-accent-3);
}

.timeline-date {
    color: var(--clr-text-muted);
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.timeline-content p {
    margin-bottom: 15px;
}

.timeline-content p strong {
    color: var(--clr-text-heading);
}

.timeline-content ul {
    padding-left: 20px;
    list-style-type: none;
}

.timeline-content li {
    position: relative;
    margin-bottom: 12px;
    color: var(--clr-text-muted);
}

.timeline-content li::before {
    content: '▹';
    position: absolute;
    left: -20px;
    color: var(--clr-accent-1);
    font-size: 18px;
    font-weight: bold;
}

.timeline-edu .timeline-content li::before {
    color: var(--clr-accent-2);
}

.timeline-overseas .timeline-content li::before {
    color: var(--clr-accent-3);
}

/* --- Testimonials Slider --- */
.testimonial-slider {
    background: var(--clr-bg-secondary);
    border-radius: 20px;
    padding: 60px;
    border: 1px solid var(--border-color);
    position: relative;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.testimonial-slides {
    position: relative;
    min-height: 250px;
    /* Base height to prevent jumping */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease-in-out;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.quote-icon {
    font-size: 50px;
    color: var(--clr-accent-1-tint);
    margin-bottom: 30px;
}

.quote-text {
    font-size: clamp(18px, 3vw, 24px);
    color: var(--clr-text-heading);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.quote-author {
    font-size: 18px;
    font-weight: 700;
    color: var(--clr-accent-2);
    font-family: var(--font-heading);
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.slider-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--clr-text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn:hover {
    color: var(--clr-accent-1);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--clr-accent-1);
    width: 30px;
    border-radius: 20px;
}

/* --- Footer --- */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 100px 0 50px;
}

.overline {
    justify-content: center;
    margin-bottom: 15px;
}

.overline::after {
    display: none;
}

.contact-content p {
    max-width: 600px;
    margin: 25px auto 40px;
    color: var(--clr-text-muted);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    max-width: fit-content;
    margin: 40px auto;
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 20px;
    font-family: var(--font-heading);
    font-weight: 500;
}

.contact-item i {
    width: 30px;
    font-size: 24px;
    color: var(--clr-accent-1);
    text-align: center;
}

.contact-item a,
.contact-item span {
    color: var(--clr-text-heading);
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--clr-accent-1);
    text-decoration: underline;
}

.contact-item i.fa-linkedin {
    color: #0077b5;
}

.contact-item i.fa-github {
    color: var(--clr-text-heading);
}

.footer-bottom {
    margin-top: 50px;
    color: var(--clr-text-muted);
    font-size: 14px;
}

/* Project Links Alt Layout */
.project-links-alt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

.btn-icon {
    font-size: 20px;
    color: var(--clr-text-muted);
    transition: var(--transition);
}

.btn-icon:hover {
    color: var(--clr-accent-1);
    transform: translateY(-3px);
}

/* Testimonial Avatar */
.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--clr-bg-tertiary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: var(--clr-accent-2);
    margin-bottom: 20px;
    border: 2px solid var(--clr-accent-2-tint);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* --- Additional Info (Soft Skills & Certs) --- */
.dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.skill-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.skill-pill-alt {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--clr-bg-secondary);
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    color: var(--clr-text-heading);
    font-family: var(--font-heading);
    font-weight: 600;
    transition: var(--transition);
}

.skill-pill-alt:hover {
    transform: translateY(-5px);
    border-color: var(--clr-accent-1);
    box-shadow: var(--shadow-sm);
}

.skill-pill-alt i {
    color: var(--clr-accent-1);
    font-size: 18px;
}

.cert-list {
    margin-top: 20px;
}

.cert-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 18px;
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--clr-text-main);
}

.cert-icon {
    font-size: 24px;
    color: var(--clr-accent-2);
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: var(--transition);
}

.service-card i {
    font-size: 40px;
    color: var(--clr-accent-1);
    margin-bottom: 20px;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--clr-accent-1);
    box-shadow: var(--shadow-glow);
}

.floating {
    animation: floatIcon 4s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}





/* Responsive Media Queries */
@media screen and (max-width: 900px) {

    .hero-grid,
    .dual-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-cta,
    .skill-pills-container {
        justify-content: center;
    }

    .hero-image {
        justify-content: center;
        margin-top: 30px;
    }

    .theme-switch-wrapper {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        margin-top: 20px;
    }
}

@media screen and (max-width: 768px) {
    main {
        padding: 0 20px;
    }

    .section {
        padding: 80px 0;
    }

    /* Nav */
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        background-color: var(--clr-bg-secondary);
        flex-direction: column;
        justify-content: center;
        width: 80%;
        max-width: 350px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
        z-index: 101;
    }

    .hamburger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.toggle .line2 {
        opacity: 0;
    }

    .hamburger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Timeline */
    .timeline-container::before {
        left: 30px;
    }

    .timeline-icon {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }

    .timeline-content {
        padding: 25px;
        margin-left: 20px;
    }

    .timeline-content::before {
        top: 20px;
    }

    /* Testimonials */
    .testimonial-slider {
        padding: 30px;
    }

    .quote-text {
        font-size: 16px;
    }
}

/* Active Nav State */
.nav-links li a.active {
    color: var(--clr-accent-1);
}

.nav-links li a.active::after {
    width: 100%;
}

/* Back to Top Button */
#back-to-top {
    display: none;
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 99;
    border: none;
    outline: none;
    background: linear-gradient(135deg, var(--clr-accent-1), var(--clr-accent-2));
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--clr-accent-1-tint);
}

/* Modal Stylings */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--clr-bg-primary);
    margin: 5% auto;
    padding: 30px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 900px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalReveal {
    from { opacity: 0; transform: scale(0.9) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 28px;
    color: var(--clr-text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--clr-accent-1);
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.modal-header h3 {
    font-size: clamp(20px, 4vw, 24px);
    color: var(--clr-text-heading);
}

.modal-body {
    background: var(--clr-bg-secondary);
    border-radius: 12px;
    padding: 20px;
    overflow: hidden;
}

.full-resume-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Responsive Modal */
@media screen and (max-width: 768px) {
    .modal-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .modal-content {
        width: 95%;
        padding: 20px;
    }
}