/* 
   Modern Portfolio - Stylesheet 
   Fonts: Poppins (Headings), Inter (Body text)
*/

:root {
    /* Color Palette */
    --bg-dark: #021614;
    --bg-darker: #010e0d;
    --accent-cyan: #6fd7c0;
    --accent-cyan-dark: #176b63;

    --text-main: #e7f3ee;
    --text-muted: #88ada5;

    --glass-bg: rgba(5, 30, 29, 0.52);
    --glass-border: rgba(111, 215, 192, 0.12);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);

    /* Hero Image Sticker Overlay Controls */
    --hero-img-size: 580px;
    /* Size (width and height) of the image */
    --hero-img-right: -4vw;
    /* Horizontal placement (larger value shifts left, negative shifts right) */
    --hero-img-bottom: -78px;
    /* Vertical placement (larger value shifts up, negative shifts down) */
    --hero-img-rotation: 0deg;
    /* Optional sticker-like tilt angle (e.g. -2deg, 3deg) */

    /* Hero Left Text Position Control */
    --hero-text-y-offset: 22px;
    /* Shift left-side text vertically (positive moves down, negative moves up) */
}

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

body,
html {
    width: 100%;
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(at 0% 0%, rgba(111, 215, 192, 0.12) 0px, transparent 54%),
        radial-gradient(at 100% 100%, rgba(17, 119, 109, 0.1) 0px, transparent 54%);
    background-attachment: fixed;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
}

.pattern-background {
    position: relative;
    isolation: isolate;
}

.pattern-background::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 6;
    background-color: rgba(182, 224, 215, 0.12);
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.6) 100%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.6) 100%);
    mask-size: 100% 100%;
    -webkit-mask-size: 100% 100%;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    background-image: linear-gradient(rgba(255, 255, 255, 0.22) 1.2px, transparent 1.2px), linear-gradient(to right, rgba(255, 255, 255, 0.22) 1.2px, rgba(182, 224, 215, 0.12) 1.2px);
    background-size: 28px 28px;
    opacity: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    line-height: 1.2;
}

/* =========================================
   Premium UI Enhancements
   ========================================= */

/* Interactive Cursor Glow */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(111, 215, 192, 0.06) 0%, rgba(0, 0, 0, 0) 50%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.3s ease;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* Text Gradients */
.gradient-text-cyan {
    background: linear-gradient(135deg, #6fd7c0, #2d9b91);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.highlight-cyan {
    color: var(--accent-cyan);
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid var(--accent-cyan);
    border-radius: 24px;
    padding: 40px;
    box-shadow: none;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: #fff;
    box-shadow: 4px 4px 0px rgba(111, 215, 192, 0.1);
    transform: translateY(-4px);
}

.glass-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid var(--accent-cyan);
    backdrop-filter: blur(8px);
    border-radius: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-cyan);
    cursor: pointer;
}

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

.btn-primary {
    background: #bdbbbb;
    color: var(--bg-dark);
    border-color: var(--accent-cyan);
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
}

.btn-secondary {
    background: transparent;
    border-color: var(--accent-cyan);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
}

.btn-project {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--accent-cyan);
    font-size: 0.9rem;
    padding: 8px 16px;
    color: var(--text-main);
}

.btn-project:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

/* =========================================
   Header & Navigation
   ========================================= */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 999;
    transition: background 0.3s ease, padding 0.3s ease;
}

.header.scrolled {
    background: rgba(5, 30, 29, 0.34);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

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

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--accent-cyan);
}

.nav-drawer-header,
.nav-drawer-footer {
    display: none;
}

.nav-icon {
    display: none;
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(1, 14, 13, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.nav-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle .bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px auto;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* =========================================
   Layout & Sections
   ========================================= */
main {
    position: relative;
    z-index: 10;
    width: 100%;
}

.scene {
    width: 100%;
    min-height: 100vh;
    padding: 140px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#home.scene {
    position: relative;
    overflow: hidden;
    align-items: flex-start;
    padding-top: 80px;
    padding-right: 0;
}

/* Middle Layer: Hero Skills Slideshow Overlay */
.hero-skills-bg {
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: calc(100% + 40px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.45;
    filter: brightness(0.85) contrast(1.05);
    overflow: hidden;
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.2) 35%, rgba(0, 0, 0, 0.65) 65%, rgba(0, 0, 0, 1) 95%);
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.2) 35%, rgba(0, 0, 0, 0.65) 65%, rgba(0, 0, 0, 1) 95%);
}

.hero-marquee-wrapper {
    margin-top: 0;
    gap: 10px;
    width: 100%;
    position: static;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
    transform: none;
}

.hero-skills-bg .skills-row-group {
    gap: 0;
}

.hero-skills-bg .marquee-container {
    padding: 2px 0;
}

.hero-skills-bg .see-all-btn,
.hero-skills-bg .skills-row-header {
    display: none !important;
}

.hero-skills-bg .skill-card {
    box-shadow: none;
    border: 1px solid rgba(111, 215, 192, 0.22);
    background: rgba(5, 30, 29, 0.4);
}

#skills.scene,
#education.scene {
    padding-top: 60px;
    align-items: flex-start;
}

.content {
    max-width: 1240px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    z-index: 11;
}

.full-width {
    max-width: 1240px;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: center;
    gap: 28px;
}

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

.mb-sm {
    margin-bottom: 1rem;
}

.mb-md {
    margin-bottom: 2rem;
}

.mb-lg {
    margin-bottom: 4rem;
}

.mt-sm {
    margin-top: 1rem;
}

.mt-md {
    margin-top: 2rem;
}

h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

h2.scene-title,
h2.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Custom Font & Lighter Near-White Color for specific section titles */
#skills .section-title,
#projects .section-title,
#education .section-title {
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 0.5px;
    color: #f4fbf8;
    background: linear-gradient(135deg, #ffffff 40%, #c4f2e7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Line / Dash Prefix & Suffix on Both Sides of Section Titles */
.section-title::before {
    content: "— ";
    color: #6fd7c0;
    -webkit-text-fill-color: #6fd7c0;
    margin-right: 8px;
    font-family: 'Share Tech Mono', monospace;
    font-weight: 700;
}

.section-title::after {
    content: " —";
    color: #6fd7c0;
    -webkit-text-fill-color: #6fd7c0;
    margin-left: 8px;
    font-family: 'Share Tech Mono', monospace;
    font-weight: 700;
}

.subtitle-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-cyan);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

/* =========================================
   Specific Scenes
   ========================================= */

/* Hero Scene */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    transform: translateY(var(--hero-text-y-offset, 0px));
}

.hero-content h1 {
    white-space: nowrap;
    font-size: clamp(2.2rem, 4.8vw, 4.5rem);
    font-weight: 800;
    color: #e7f3ee;
}

.hero-name-bright {
    color: #ffffff;
    text-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
}

.hero-content h1 .gradient-text-cyan {
    background: linear-gradient(135deg, #6fd7c0, #2d9b91);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 24px;
    width: fit-content;
}

.hero-subtitle {
    font-family: 'Geo', sans-serif;
    font-size: 2.8rem;
    font-weight: 500;
    color: #4deeea;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 16px rgba(77, 238, 234, 0.35);
}

.hero-subtitle .highlight-cyan {
    color: #4deeea;
}

.hero-content p {
    font-size: 1.15rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    color: #a3c9c1;
}

.hero-ctas {
    display: flex;
    gap: 16px;
}

.hero-visual {
    position: absolute;
    right: var(--hero-img-right);
    bottom: var(--hero-img-bottom);
    width: var(--hero-img-size);
    height: var(--hero-img-size);
    max-height: 150vh;
    /* Keep it from exceeding viewport height */
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    pointer-events: none;
    transform: rotate(var(--hero-img-rotation));
    transform-origin: bottom right;
}

.hero-image {
    height: 100%;
    width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 28px 60px rgba(0, 0, 0, 0.35));
    pointer-events: none;
    user-select: none;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 99%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 99%);
}

.scroll-arrow {
    display: none;
    /* Hide the scroll arrow chevron */
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

.scroll-arrow a {
    color: inherit;
    text-decoration: none;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(10px);
    }

    60% {
        transform: translateY(5px);
    }
}

/* About Scene */
.about-flex {
    display: flex;
    gap: 40px;
    align-items: stretch;
    margin-top: 30px;
}

.about-text-content {
    flex: 2;
}

.about-text-content p {
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}

.about-stats-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid var(--accent-cyan);
    border-radius: 24px;
    text-align: center;
    box-shadow: none;
}

.profile-placeholder {
    width: 80px;
    height: 80px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.interests-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.interest-tag {
    padding: 8px 16px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}

/* Skills Scene - Marquee Carousel */
.skills-marquee-wrapper {
    display: flex;
    flex-direction: column;
    gap: 56px;
    margin-top: 40px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.skills-row-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.skills-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-left: 40px;
    padding-right: 40px;
}

/* See All Button */
.see-all-btn {
    background: transparent;
    border: none;
    padding: 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: none;
}

.see-all-btn:hover {
    background: transparent;
    color: #6fd7c0;
    border: none;
    transform: none;
    box-shadow: none;
}

.see-all-btn i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
    color: #ffffff;
}

.see-all-btn:hover i {
    transform: translateX(4px);
    color: #6fd7c0;
}

/* Skills Modal System */
.skills-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

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

.skills-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(1, 14, 13, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.skills-modal-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 680px;
    max-height: 82vh;
    overflow-y: auto;
    background: rgba(5, 30, 29, 0.95);
    border: 2px solid rgba(111, 215, 192, 0.4);
    border-radius: 24px;
    padding: 28px 32px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.skills-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(111, 215, 192, 0.2);
}

.skills-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.skills-modal-close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.skills-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.skills-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
}

.skills-modal-grid .skill-card {
    width: 100%;
    height: 125px;
}

.projects-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.row-label {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.row-label i {
    font-size: 0.95rem;
    color: #ffffff;
}

.marquee-container {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
    padding: 16px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.marquee-container::-webkit-scrollbar {
    display: none;
}

.marquee-container:active {
    cursor: grabbing;
}

.marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    user-select: none;
}

/* Default Square Skill Card (Rows 1 & 2: Stacks, Multimedia & Design) */
.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 135px;
    height: 135px;
    padding: 18px 12px;
    text-align: center;
    border-radius: 22px;
    flex-shrink: 0;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.skill-card i {
    font-size: 2.6rem;
    flex-shrink: 0;
}

.skill-card span {
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.2;
}

/* Row 3 Override (Additional Skills): Rectangular Pill Cards */
.skills-row-group.pill-row .skill-card {
    flex-direction: row;
    width: auto;
    height: auto;
    padding: 14px 26px;
    border-radius: 16px;
    min-width: 160px;
    gap: 12px;
}

.skills-row-group.pill-row .skill-card i {
    font-size: 1.6rem;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Section Header Left Alignment & Overline */
.section-header.text-left {
    text-align: left;
    max-width: 680px;
    margin-top: -10px;
    margin-bottom: 20px;
}

.section-overline {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--accent-cyan);
    display: block;
    margin-bottom: 6px;
}

.section-title.text-white {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.12;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-header.text-center {
    text-align: center;
    margin-bottom: 36px;
}

.section-subtitle-text {
    font-size: 1.02rem;
    color: #a3c9c1;
    line-height: 1.55;
    margin: 0;
}

/* Filter Bar at Top */
.projects-filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-tab {
    background: transparent;
    border: 1.5px solid transparent;
    color: #a3c9c1;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 22px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-tab:hover {
    color: #ffffff;
    background: rgba(111, 215, 192, 0.08);
}

.filter-tab.active {
    color: #ffffff;
    border-color: var(--accent-cyan);
    background: rgba(111, 215, 192, 0.12);
    box-shadow: 0 0 18px rgba(111, 215, 192, 0.3);
}

/* 3-Column Showcase Grid */
.projects-grid-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    width: 100%;
    margin-bottom: 44px;
}

.project-showcase-card {
    background: rgba(4, 28, 26, 0.85);
    border: 1.5px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.project-showcase-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(111, 215, 192, 0.2);
}

/* Card Top Image Container */
.project-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #011210;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

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

/* Card Top Video Container */
.project-card-video {
    width: 100%;
    height: 220px;
    position: relative;
    background: #000000;
}

.project-card-video iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Card Bottom Content Area */
.project-card-content {
    padding: 24px 24px 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
    justify-content: space-between;
    background: rgba(3, 20, 18, 0.6);
}

/* Info Header Row (Icon + Title + Subtitle) */
.project-info-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.project-type-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(111, 215, 192, 0.12);
    border: 1px solid rgba(111, 215, 192, 0.3);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.project-showcase-card:hover .project-type-icon {
    background: var(--accent-cyan);
    color: #011412;
    box-shadow: 0 0 15px rgba(111, 215, 192, 0.4);
}

.project-title-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.project-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.2px;
}

.project-card-subtitle {
    font-size: 0.86rem;
    color: #a3c9c1;
    margin: 0;
}

/* Dot Separated Tech Tags */
.project-tech-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #7eb8ad;
    font-weight: 500;
}

.dot-separator {
    color: rgba(111, 215, 192, 0.4);
    font-size: 0.8rem;
}

/* Card Footer Link */
.project-card-footer {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.view-project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-cyan);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.view-project-link:hover {
    color: #ffffff;
}

/* Card Image Slideshow Styles */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #011210;
}

.slideshow-container .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slideshow-container .slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.slideshow-container .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(1, 14, 13, 0.85);
    color: var(--accent-cyan);
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.76rem;
    font-weight: 700;
    border: 1px solid rgba(111, 215, 192, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
    z-index: 15;
}

.slide-prev, .slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(1, 14, 13, 0.7);
    color: #ffffff;
    border: 1px solid rgba(111, 215, 192, 0.25);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    z-index: 20;
    outline: none;
}

.slide-prev:hover, .slide-next:hover {
    background: var(--accent-cyan);
    color: #011412;
    border-color: #ffffff;
    box-shadow: 0 0 12px rgba(111, 215, 192, 0.5);
}

.slide-prev { left: 10px; }
.slide-next { right: 10px; }

.slideshow-dots {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 20;
}

.slideshow-dots .dot {
    width: 7px;
    height: 7px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slideshow-dots .dot.active {
    background: var(--accent-cyan);
    transform: scale(1.25);
    box-shadow: 0 0 6px var(--accent-cyan);
}

@keyframes slideFadeIn {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Lightbox Modal Overlay */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

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

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(1, 14, 13, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}

.lightbox-content-wrapper {
    position: relative;
    width: 100%;
    max-width: 1250px; /* Wider container so video maintains full large size with side info */
    background: rgba(5, 30, 29, 0.9);
    border: 1.5px solid rgba(111, 215, 192, 0.35);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(111, 215, 192, 0.2);
    border-radius: 8px; /* Lesser circular edge */
    overflow: hidden;
    z-index: 10;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.lightbox-close-btn {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(1, 14, 13, 0.6);
    border: 1px solid rgba(111, 215, 192, 0.25);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
    outline: none;
    line-height: 1;
}

.lightbox-close-btn:hover {
    background: var(--accent-cyan);
    color: #011412;
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(111, 215, 192, 0.6);
    transform: scale(1.08);
}

.lightbox-body {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

/* Lightbox Image Mode */
.lightbox-image-container {
    width: 100%;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    box-sizing: border-box;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 4px; /* Lesser circular edge */
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(111, 215, 192, 0.15);
}

/* Lightbox Video Mode (2-column layout) */
.lightbox-video-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 28px;
    padding: 24px;
    align-items: center;
    box-sizing: border-box;
}

.lightbox-video-container {
    flex: 62;
    aspect-ratio: 16 / 9;
    background: #000;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    min-width: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(111, 215, 192, 0.15);
}

.lightbox-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.lightbox-video-info {
    flex: 38;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text-light);
    box-sizing: border-box;
}

.lightbox-video-info .video-modal-title {
    font-size: 1.65rem;
    color: var(--text-light);
    margin-bottom: 12px;
    font-family: 'Syne', sans-serif;
    line-height: 1.25;
}

.lightbox-video-info .video-modal-desc {
    color: var(--text-gray);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.lightbox-video-info .video-modal-section {
    margin-bottom: 12px;
}

.lightbox-video-info .video-modal-subtitle {
    color: var(--text-light);
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.lightbox-video-info .video-modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lightbox-video-info .video-modal-list li {
    position: relative;
    padding-left: 14px;
    color: #a3c9c1;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 3px;
}

.lightbox-video-info .video-modal-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

.lightbox-video-info .video-modal-meta {
    margin-top: 10px;
    margin-bottom: 12px;
    font-size: 0.88rem;
    color: var(--text-gray);
    border-top: 1px solid rgba(111, 215, 192, 0.15);
    padding-top: 10px;
}

.lightbox-video-info .video-modal-meta p {
    margin-bottom: 4px;
    font-size: 0.88rem;
    line-height: 1.4;
}

.lightbox-video-info .video-modal-meta strong {
    color: var(--text-light);
}

@media (max-width: 900px) {
    .lightbox-video-wrapper {
        flex-direction: column;
        padding: 16px;
    }
    .lightbox-video-container {
        width: 100%;
    }
}

/* Video Play Card Cover Overlay */
.project-card-video-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

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

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

.video-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(1, 20, 18, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-play-overlay i {
    font-size: 2.2rem;
    color: #ffffff;
    background: rgba(111, 215, 192, 0.25);
    border: 2px solid var(--accent-cyan);
    width: 66px;
    height: 66px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px rgba(111, 215, 192, 0.3);
}

.project-card-video-cover:hover .video-play-overlay {
    background: rgba(1, 20, 18, 0.2);
}

.project-card-video-cover:hover .video-play-overlay i {
    transform: scale(1.12);
    background: var(--accent-cyan);
    color: #011412;
    box-shadow: 0 0 28px rgba(111, 215, 192, 0.85);
    border-color: #ffffff;
}

/* Bottom View All Projects Action Button */
.projects-bottom-action {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 36px;
    position: relative;
    z-index: 30;
}

.view-all-projects-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 38px;
    border-radius: 25px;
    background: rgba(111, 215, 192, 0.12);
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    z-index: 35;
    transition: all 0.35s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.view-all-projects-btn:hover {
    background: var(--accent-cyan);
    color: #011412;
    border-color: #ffffff;
    box-shadow: 0 0 25px rgba(111, 215, 192, 0.6);
    transform: translateY(-3px);
}

.view-all-projects-btn i {
    transition: transform 0.25s ease;
}

.view-all-projects-btn:hover i {
    transform: translateX(4px);
}

/* Responsive Grid Breakpoints */
@media (max-width: 992px) {
    .projects-grid-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .projects-grid-showcase {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .projects-filter-bar {
        gap: 10px;
    }

    .filter-tab {
        padding: 6px 16px;
        font-size: 0.88rem;
    }
}

/* Projects Marquee Section & Glass Cards */
.projects-marquee-wrapper {
    margin-top: 24px;
}

.project-marquee-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 380px;
    min-height: 260px;
    padding: 24px;
    border-radius: 22px;
    background: rgba(5, 30, 29, 0.75);
    border: 1.5px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-shrink: 0;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.project-marquee-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-cyan);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(111, 215, 192, 0.25);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.project-card-icon {
    font-size: 1.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card-body h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.project-card-body p {
    font-size: 0.88rem;
    color: #a3c9c1;
    line-height: 1.55;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-card-body .tags {
    margin-bottom: 18px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.project-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(111, 215, 192, 0.12);
}

.watch-demo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 12px;
    background: rgba(111, 215, 192, 0.12);
    color: var(--accent-cyan);
    border: 1px solid rgba(111, 215, 192, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-grow: 1;
}

.watch-demo-btn:hover {
    background: var(--accent-cyan);
    color: #010e0d;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(111, 215, 192, 0.5);
    transform: translateY(-2px);
}

.watch-demo-btn i {
    font-size: 0.85rem;
}

.btn-project-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-project-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Project Video Showcase Modal */
.project-modal-container {
    max-width: 860px;
    width: 92%;
}

.project-modal-header-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.project-modal-header-info h3 {
    margin: 0;
    font-size: 1.45rem;
}

.project-modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-modal-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(111, 215, 192, 0.2);
}

.project-modal-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.project-modal-details p {
    font-size: 1rem;
    color: #a3c9c1;
    line-height: 1.65;
    margin-bottom: 16px;
}

.project-modal-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .project-marquee-card {
        width: 310px;
        min-height: 240px;
        padding: 18px;
    }
}

/* Education & Experience Scene */
.education-experience-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr 0.95fr;
    gap: 24px;
    align-items: stretch;
    margin-top: 40px;
}

.edu-exp-column,
.awards-column,
.process-column {
    padding: 32px 24px;
}

.column-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--accent-cyan-dark);
    padding-bottom: 12px;
}

.sub-column-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 5px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.text-center-desktop {
    text-align: center;
}

.edu-section {
    margin-bottom: 35px;
}

.edu-item,
.exp-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(111, 215, 192, 0.15);
}

.edu-item:last-child,
.exp-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.edu-header,
.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 15px;
}

.edu-title,
.exp-role {
    font-size: 1.15rem;
}

.edu-year,
.exp-date {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.edu-inst,
.exp-company {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edu-desc,
.exp-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Awards & Certifications */
.award-item {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(111, 215, 192, 0.15);
}

.award-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.award-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
    gap: 12px;
}

.award-title {
    font-size: 1.1rem;
    line-height: 1.4;
}

.award-year {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.award-org {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Process Timeline (Right Column) */
.process-timeline {
    position: relative;
    padding-left: 55px;
    margin-top: 25px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 15px;
    bottom: 15px;
    width: 2px;
    background: var(--accent-cyan-dark);
    opacity: 0.4;
}

.process-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 35px;
    gap: 20px;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-num {
    position: absolute;
    left: -55px;
    width: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    text-align: right;
    line-height: 40px;
    /* aligns with center of step-icon */
}

.step-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-darker);
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1rem;
    flex-shrink: 0;
    z-index: 2;
    transition: background 0.3s, color 0.3s;
}

.process-step:hover .step-icon {
    background: var(--accent-cyan);
    color: var(--bg-dark);
}

.step-info {
    flex-grow: 1;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.step-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* Contact Scene */
.contact-detail-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    max-width: 500px;
    margin: 0 auto;
    cursor: pointer;
}

.contact-detail-card:hover {
    border-color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.05);
}

.contact-detail-card .detail-icon {
    font-size: 2rem;
    color: var(--accent-cyan);
}

.contact-detail-card .detail-content {
    text-align: left;
    margin-left: 20px;
    flex-grow: 1;
}

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

.detail-value {
    font-size: 1.1rem;
    font-weight: 500;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.copy-btn:hover {
    color: var(--text-main);
}

.contact-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Toast */
.toast {
    position: fixed;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: #fff;
    padding: 14px 28px;
    border-radius: 30px;
    z-index: 99999;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    max-width: calc(100vw - 32px);
    width: max-content;
    font-size: 0.95rem;
}

.toast.show {
    bottom: 50px;
    opacity: 1;
    pointer-events: auto;
}

/* Initial States for GSAP */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    visibility: hidden;
}

/* Utility */
.font-bold {
    font-weight: 600;
}

.text-white {
    color: #fff !important;
}

/* Responsive Adjustments */

@media (max-width: 1100px) {
    .education-experience-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .process-column {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {
    h1 {
        font-size: 3.5rem;
    }

    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: auto;
        order: -1;
        justify-content: center;
    }

    .about-flex {
        flex-direction: column;
    }

    .about-stats-card {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        padding: 20px;
    }

    .profile-placeholder {
        display: none;
    }

    .stats-grid {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .education-experience-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .process-column {
        grid-column: span 1;
    }

    .edu-exp-column,
    .awards-column,
    .process-column {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(2rem, 7vw, 2.8rem);
    }

    h2.scene-title,
    h2.section-title {
        font-size: clamp(1.6rem, 5.5vw, 2.2rem);
    }

    .hero-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .hero-content {
        align-items: center;
        text-align: center;
        transform: none;
        width: 100%;
    }

    .hero-content h1 {
        white-space: normal;
        font-size: clamp(1.8rem, 6.5vw, 2.5rem);
        line-height: 1.2;
        text-align: center;
        word-break: break-word;
        margin-top: -45px;
        margin-bottom: 8px;
        position: relative;
        z-index: 5;
    }

    .hero-subtitle {
        font-size: clamp(1.1rem, 4.2vw, 1.55rem);
        text-align: center;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        line-height: 1.35;
        margin-bottom: 14px;
    }

    .hero-content p {
        font-size: 0.95rem;
        line-height: 1.6;
        text-align: center;
        max-width: 100%;
        margin: 0 auto 20px auto;
    }

    .hero-ctas {
        justify-content: center;
        width: 100%;
        margin-top: 0;
    }

    .hero-visual {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        max-width: 320px;
        height: auto;
        margin: 0 auto;
        transform: none;
        display: flex;
        justify-content: center;
        align-items: center;
        pointer-events: auto;
    }

    .hero-image {
        width: 100%;
        max-width: 280px;
        height: auto;
        object-fit: contain;
        filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.4));
        -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 68%, rgba(0, 0, 0, 0) 98%);
        mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 68%, rgba(0, 0, 0, 0) 98%);
    }

    .scene {
        padding: 80px 16px;
    }

    #home.scene {
        padding-top: 80px;
        padding-bottom: 50px;
    }

    .nav-container {
        padding: 0 18px;
        justify-content: flex-start;
    }

    .nav-toggle {
        display: block;
        z-index: 1001;
        margin-right: auto;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        right: auto;
        width: 84vw;
        max-width: 320px;
        height: 100vh;
        background: rgba(2, 20, 18, 0.95);
        backdrop-filter: blur(24px) saturate(160%);
        -webkit-backdrop-filter: blur(24px) saturate(160%);
        border-right: 1.5px solid rgba(111, 215, 192, 0.3);
        border-left: none;
        box-shadow: 10px 0 40px rgba(0, 0, 0, 0.7);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 32px 22px;
        z-index: 1000;
        transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-menu.open {
        left: 0;
        right: auto;
    }

    .nav-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(111, 215, 192, 0.15);
        margin-top: 5px;
    }

    .nav-drawer-header .logo {
        font-size: 1.35rem;
    }

    .drawer-badge {
        font-size: 0.75rem;
        background: rgba(111, 215, 192, 0.12);
        color: var(--accent-cyan);
        border: 1px solid rgba(111, 215, 192, 0.3);
        padding: 4px 10px;
        border-radius: 12px;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

    .nav-menu ul {
        flex-direction: column;
        text-align: left;
        gap: 10px;
        width: 100%;
        margin: 15px 0;
    }

    .nav-menu ul li {
        width: 100%;
    }

    .nav-link {
        display: flex;
        align-items: center;
        gap: 14px;
        font-size: 1.05rem;
        font-weight: 600;
        padding: 13px 18px;
        border-radius: 16px;
        color: var(--text-muted);
        transition: all 0.3s ease;
        width: 100%;
    }

    .nav-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        font-size: 1.15rem;
        color: var(--accent-cyan);
        transition: transform 0.3s ease;
    }

    .nav-link:hover,
    .nav-link.active {
        color: #ffffff;
        background: rgba(111, 215, 192, 0.12);
        border: 1px solid rgba(111, 215, 192, 0.3);
        transform: translateX(4px);
    }

    .nav-link.active .nav-icon {
        color: #ffffff;
        transform: scale(1.15);
    }

    .nav-drawer-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        padding-top: 18px;
        border-top: 1px solid rgba(111, 215, 192, 0.15);
    }

    .drawer-socials {
        display: flex;
        gap: 14px;
    }

    .drawer-socials a {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(111, 215, 192, 0.25);
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .drawer-socials a:hover {
        background: var(--accent-cyan);
        color: var(--bg-dark);
        transform: translateY(-2px);
    }

    .drawer-copy {
        font-size: 0.78rem;
        color: var(--text-muted);
    }

    .nav-toggle {
        display: block;
        z-index: 1001;
    }

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

    .nav-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }

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

    .edu-header,
    .exp-header {
        flex-direction: column;
        gap: 5px;
    }

    .edu-year,
    .exp-date {
        align-self: flex-start;
    }
}

/* =========================================
   Bubble Section Wave Transitions
   (Clean Organic Wave Section Transitions)
   ========================================= */

/* Hero Content Z-Index so text & buttons sit cleanly above waves */
.hero-content {
    z-index: 10;
    position: relative;
}

/* Base bubble section */
.section-bubble {
    position: relative;
}

/* Section 1 (Home): Transparent -> Wave overlaps bottom of hero image */
.section-bubble1 {
    background-color: transparent;
    margin-bottom: 0;
    padding-bottom: 120px;
    position: relative;
    color: var(--text-main);
}

.section-bubble1::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: calc(100vw * 100 / 1185);
    min-height: 220px;
    background-color: transparent;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1185 248' preserveAspectRatio='none'><circle cx='76' cy='121.1' r='20' fill='%230a3d38'/><circle cx='870' cy='201.1' r='11' fill='%230a3d38'/><circle cx='814.5' cy='165.6' r='24.5' fill='%230a3d38'/><path d='M0 248 V17.7 c22.7 14.8 53 31.9 90.7 51.5 150.8 78 322 116.6 424.8 69.3 102.9-47.4 138-69.3 210.8-69.3 s118.3 48.6 219.5 38.3 76.3-59.3 188.7-59.3 c18.9 0 35.5 2.6 50.5 6.8 V248 H0 z' fill='%230a3d38'/></svg>");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 4;
}

/* Section 2 (Skills): Rich Dark Cyan block (#0a3d38) matching the wave */
.section-bubble2 {
    background-color: #0a3d38;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 40px;
    padding-bottom: 140px;
    position: relative;
    color: var(--text-main);
}

.section-bubble2::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: -2px;
    height: calc(100vw * 248 / 1185);
    min-height: 220px;
    background-color: transparent;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1185 248' preserveAspectRatio='none'><path d='M50.5 199.8c112.4 0 87.5-49 188.7-59.3s146.7 38.3 219.5 38.3 107.9-21.9 210.8-69.3c102.8-47.3 274-8.7 424.8 69.3 37.7 19.5 68 36.7 90.7 51.5V0H0v193C15 197.2 31.6 199.8 50.5 199.8zM1109 106.9c11 0 20 9 20 20 0 11-9 20-20 20s-20-9-20-20C1089 115.9 1098 106.9 1109 106.9zM370.5 57.9c13.5 0 24.5 11 24.5 24.5 0 13.5-11 24.5-24.5 24.5S346 95.9 346 82.4C346 68.9 357 57.9 370.5 57.9zM315 35.9c6.1 0 11 4.9 11 11s-4.9 11-11 11-11-4.9-11-11S308.9 35.9 315 35.9z' fill='%230a3d38'/></svg>");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 4;
}

/* Restored original text styles for Section 1 */
.section-bubble1 h1,
.section-bubble1 h2,
.section-bubble1 h3,
.section-bubble1 h4,
.section-bubble1 h5,
.section-bubble1 h6 {
    color: var(--text-main);
}

.section-bubble1 p,
.section-bubble1 .text-muted {
    color: var(--text-muted);
}

.section-bubble1 .gradient-text-cyan {
    background: linear-gradient(135deg, #6fd7c0, #2d9b91);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-bubble1 .highlight-cyan {
    color: var(--accent-cyan);
}

.section-bubble1 .hero-subtitle {
    color: var(--text-main);
}

.section-bubble1 .subtitle-badge {
    background: rgba(111, 215, 192, 0.1);
    color: var(--accent-cyan);
}

.section-bubble1 .glass-card {
    background: var(--glass-bg);
    border-color: var(--accent-cyan);
    color: var(--text-main);
}

.section-bubble1 .btn-primary {
    background: #bdbbbb;
    color: var(--bg-dark);
    border-color: var(--accent-cyan);
}

.section-bubble1 .btn-primary:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
}

.section-bubble1 .hero-content p {
    color: var(--text-muted);
}

/* Styles for Section 2 (Deep Teal block) */
.section-bubble2 h1,
.section-bubble2 h2,
.section-bubble2 h3,
.section-bubble2 h4,
.section-bubble2 h5,
.section-bubble2 h6 {
    color: #ffffff;
}

.section-bubble2 p {
    color: #d1e7e2;
}

.section-bubble2 .gradient-text-cyan {
    background: linear-gradient(135deg, #a3f7e6, #6fd7c0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-bubble2 .highlight-cyan {
    color: #6fd7c0;
}

.section-bubble2 .subtitle-badge {
    background: rgba(111, 215, 192, 0.15);
    color: #6fd7c0;
}

.section-bubble2 .glass-card {
    background: rgba(1, 20, 18, 0.65);
    border: 1.5px solid rgba(111, 215, 192, 0.3);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.section-bubble2 .glass-card span {
    color: #ffffff;
    font-weight: 600;
}

.section-bubble2 .glass-card:hover {
    border-color: #6fd7c0;
    background: rgba(5, 35, 32, 0.9);
    box-shadow: 0 10px 25px rgba(111, 215, 192, 0.35);
    transform: translateY(-4px);
}

.section-bubble2 .glass-tag {
    background: rgba(111, 215, 192, 0.1);
    border-color: rgba(111, 215, 192, 0.4);
}

/* Header style for dark theme navigation */
.header .nav-link {
    color: var(--text-muted);
    font-weight: 500;
}

.header .nav-link:hover,
.header .nav-link.active {
    color: #ffffff;
}

.header.scrolled {
    background: rgba(5, 30, 29, 0.34);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.header.scrolled .nav-link {
    color: var(--text-muted);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: #ffffff;
}

.header .nav-toggle .bar {
    background-color: #ffffff;
}

.nav-menu.open .nav-link {
    color: #ffffff;
}

/* Responsive fixes */
@media (max-width: 768px) {

    .section-bubble1::after,
    .section-bubble2::after {
        min-height: 70px;
        height: calc(100vw * 248 / 1185);
    }

    .section-bubble1 {
        padding-bottom: 35px;
    }

    .section-bubble2 {
        padding-top: 20px;
        padding-bottom: 70px;
    }

    #projects .section-header {
        margin-top: -50px;
        margin-bottom: 24px;
        position: relative;
        z-index: 10;
    }

    #skills {
        padding-top: 10px;
    }

    #skills .section-header {
        margin-top: -65px;
        margin-bottom: 28px;
        position: relative;
        z-index: 10;
    }

    .skills-marquee-wrapper {
        gap: 28px;
        margin-top: 24px;
    }

    .skills-row-header {
        padding-left: 16px;
        padding-right: 16px;
        gap: 8px;
    }

    .row-label {
        font-size: 0.82rem;
        letter-spacing: 0.4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .row-label i {
        font-size: 0.85rem;
    }

    .see-all-btn {
        font-size: 0.76rem;
        letter-spacing: 0.4px;
        white-space: nowrap;
        flex-shrink: 0;
        gap: 4px;
    }

    .marquee-container {
        -webkit-mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 16px), transparent);
        mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 16px), transparent);
    }

    .skill-card {
        width: 95px;
        height: 95px;
        padding: 12px 6px;
        border-radius: 16px;
        gap: 8px;
    }

    .skill-card i {
        font-size: 1.8rem;
    }

    .skill-card span {
        font-size: 0.74rem;
        line-height: 1.15;
    }

    .skills-row-group.pill-row .skill-card {
        width: auto;
        height: auto;
        padding: 8px 16px;
        min-width: 110px;
        border-radius: 14px;
        gap: 8px;
    }

    .skills-row-group.pill-row .skill-card i {
        font-size: 1.2rem;
    }

    .skills-row-group.pill-row .skill-card span {
        font-size: 0.76rem;
    }

    .skills-modal-container {
        padding: 20px 16px;
        border-radius: 18px;
    }

    .skills-modal-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }

    .skills-modal-grid .skill-card {
        height: 105px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        padding: 24px 20px;
    }

    .projects-video-container {
        border-radius: 16px;
    }

    .contact-detail-card {
        width: 100%;
        max-width: 100%;
        padding: 16px 20px;
    }

    .contact-links {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .contact-btn {
        width: 100%;
        justify-content: center;
    }

    .toast.show {
        bottom: max(60px, calc(40px + env(safe-area-inset-bottom)));
        max-width: calc(100vw - 24px);
        font-size: 0.88rem;
        padding: 12px 20px;
    }
}

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

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

    .section-title::before,
    .section-title::after {
        display: none;
    }

    .contact-detail-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .contact-detail-card .detail-content {
        margin-left: 0;
        text-align: center;
    }
}

/* --- Project Detail Modal --- */
.project-detail-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.project-detail-modal.active {
    opacity: 1;
    pointer-events: all;
}

.project-detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 18, 16, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.project-detail-container {
    position: relative;
    width: 90%;
    max-width: 1000px; /* Increased max-width to allow a larger image */
    max-height: 90vh;
    background: rgba(4, 25, 23, 0.6);
    border: 1px solid rgba(111, 215, 192, 0.15);
    border-radius: 8px; /* Lesser circular edge */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 10;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.project-detail-modal.active .project-detail-container {
    transform: translateY(0);
}

.project-detail-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    z-index: 20;
    transition: color 0.3s ease;
}

.project-detail-close:hover {
    color: var(--accent-cyan);
}

.project-detail-content {
    display: flex;
    flex-direction: row;
    gap: 24px;
    padding: 20px;
    align-items: center;
}

.project-detail-image-wrapper {
    position: relative;
    flex: 65; /* 65% of the column space */
    border-radius: 6px; /* Lesser circular edge */
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    max-height: 78vh;
}

.project-detail-image-wrapper img {
    max-width: 100%;
    max-height: 74vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

.project-card-image {
    cursor: pointer;
}

/* Slideshow navigation within the project detail modal */
.project-detail-prev,
.project-detail-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: 1px solid #ffffff;
    color: #011412;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: bold;
    cursor: pointer;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.project-detail-modal.has-slideshow .project-detail-prev,
.project-detail-modal.has-slideshow .project-detail-next {
    display: flex;
}

.project-detail-prev {
    left: 15px;
}

.project-detail-next {
    right: 15px;
}

.project-detail-prev:hover,
.project-detail-next:hover {
    background: var(--accent-cyan);
    color: #011412;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(111, 215, 192, 0.6);
    transform: translateY(-50%) scale(1.08);
}

.project-detail-info {
    flex: 35; /* 35% of the column space */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-detail-info h3 {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 10px;
    font-family: 'Syne', sans-serif;
}

.project-detail-info p {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-detail-info .project-tech-tags {
    margin-bottom: 30px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .project-detail-content {
        flex-direction: column;
        padding: 25px;
    }
}