/* =========================================
   1. FONTS & IMPORTS
   ========================================= */

@font-face {
  font-family: 'Eina'; 
  src: url('../assets/Fonts/Eina01-Regular.ttf');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Eina'; 
  src: url('../assets/Fonts/Eina01-SemiBold.ttf');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Eina';
  src: url('../assets/Fonts/Eina01-Bold.ttf');
  font-weight: 700;
  font-style: normal;
}
/* =========================================
   2. GLOBAL STYLES
   ========================================= */

html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body{
margin: 0; 
padding: 0;
font-family: 'Eina';

}

.startup-intro {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.14), transparent 34%),
        rgba(8, 9, 12, 0.56);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    animation: startupBackdropIn 0.32s ease-out both;
    overflow: hidden;
}

.startup-iris {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    width: 0;
    height: 0;
    border-radius: 50%;
    pointer-events: none;
    background: transparent;
    box-shadow: 0 0 0 160vmax rgba(8, 9, 12, 0.56);
    opacity: 0;
    transform: translate(-50%, -50%);
}

.startup-mark {
    position: relative;
    z-index: 3;
    width: clamp(96px, 16vw, 148px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        0 24px 70px rgba(0, 0, 0, 0.34),
        0 0 44px rgba(255, 255, 255, 0.18);
    animation: startupMarkIn 0.5s cubic-bezier(.2, .9, .2, 1) 0.12s both;
}

.startup-mark img {
    width: 62%;
    height: 62%;
    object-fit: contain;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
    animation: startupLogoPulse 1.12s ease-out 0.22s both;
}

.startup-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42vmax;
    aspect-ratio: 1;
    border-radius: 50%;
    border: clamp(2px, 0.38vw, 5px) solid rgba(255, 255, 255, 0.72);
    box-shadow:
        0 0 34px rgba(255, 255, 255, 0.4),
        inset 0 0 34px rgba(255, 255, 255, 0.16);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.08);
    z-index: 1;
    pointer-events: none;
}

.startup-ripple-one {
    width: 54vmax;
    border-width: clamp(7px, 1.15vw, 16px);
    border-color: rgba(255, 255, 255, 0.58);
    box-shadow:
        0 0 54px rgba(255, 255, 255, 0.42),
        inset 0 0 52px rgba(255, 255, 255, 0.14);
    animation: startupRipple 1.05s cubic-bezier(.12, .7, .2, 1) 0.58s both;
}

.startup-ripple-two {
    border-color: rgba(255, 255, 255, 0.78);
    animation: startupRipple 1.1s cubic-bezier(.12, .7, .2, 1) 0.88s both;
}

.startup-intro-exit {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.startup-intro-exit .startup-mark {
    animation: startupIrisMarkExit 0.5s ease-out both;
}

.startup-intro-exit .startup-mark img {
    animation: startupIrisLogoExit 0.44s ease-out both;
}

.startup-intro-exit .startup-iris {
    animation: startupIrisRing 0.82s cubic-bezier(.12, .7, .2, 1) both;
}

.startup-intro-exit .startup-hello {
    animation: startupHelloExit 0.48s ease-out both;
}

.startup-intro-exit .startup-ripple {
    animation-play-state: paused;
}

.startup-hello {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.26);
    font-size: clamp(9rem, 34vw, 30rem);
    font-weight: 700;
    line-height: 0.82;
    text-align: center;
    text-shadow:
        0 22px 80px rgba(0, 0, 0, 0.24),
        0 0 50px rgba(255, 255, 255, 0.12);
    transform: translateY(-2vh);
    pointer-events: none;
}

.startup-hello-cursor {
    display: inline-block;
    margin-left: 0.04em;
    font-weight: 400;
    animation: startupCursorBlink 0.9s infinite;
}

.startup-hello-text {
    display: inline-block;
}

@keyframes startupBackdropIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes startupMarkIn {
    from {
        opacity: 0;
        transform: scale(0.82);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes startupLogoPulse {
    0% {
        opacity: 0;
        transform: scale(0.86);
    }
    38% {
        opacity: 1;
        transform: scale(1.06);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes startupRipple {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.08);
    }
    12% {
        opacity: 1;
    }
    64% {
        opacity: 0.55;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(3.45);
    }
}

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

@keyframes startupIrisMarkExit {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
    40% {
        opacity: 0.78;
        transform: scale(1.18);
        filter: blur(1px);
    }
    100% {
        opacity: 0;
        transform: scale(1.45);
        filter: blur(8px);
    }
}

@keyframes startupIrisLogoExit {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1) blur(0);
    }
    45% {
        opacity: 0.54;
        transform: scale(1.12);
        filter: brightness(1.8) blur(1px);
    }
    100% {
        opacity: 0;
        transform: scale(1.34);
        filter: brightness(2.1) blur(7px);
    }
}

@keyframes startupIrisRing {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
        box-shadow: 0 0 0 160vmax rgba(8, 9, 12, 0.56);
    }
    74% {
        opacity: 1;
    }
    100% {
        width: 300vmax;
        height: 300vmax;
        opacity: 0;
        box-shadow: 0 0 0 0 rgba(8, 9, 12, 0);
    }
}

@keyframes startupHelloExit {
    to {
        opacity: 0;
        transform: translateY(2vh) scale(1.04);
    }
}

@keyframes startupExit {
    to {
        opacity: 0;
        transform: scale(1.04);
        backdrop-filter: blur(0) saturate(100%);
        -webkit-backdrop-filter: blur(0) saturate(100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .startup-intro,
    .startup-mark,
    .startup-mark img,
    .startup-ripple,
    .startup-hello-cursor,
    .startup-intro-exit .startup-iris,
    .startup-intro-exit .startup-mark,
    .startup-intro-exit .startup-mark img,
    .startup-intro-exit .startup-hello,
    .startup-intro-exit {
        animation-duration: 0.01ms !important;
        animation-delay: 0s !important;
    }
}

@media (max-width: 600px) {
    .startup-intro {
        background:
            radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.12), transparent 42%),
            rgba(8, 9, 12, 0.58);
        backdrop-filter: blur(18px) saturate(140%);
        -webkit-backdrop-filter: blur(18px) saturate(140%);
    }

    .startup-iris {
        box-shadow: 0 0 0 160vmax rgba(8, 9, 12, 0.58);
    }

    .startup-mark {
        width: clamp(78px, 28vw, 112px);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            0 18px 48px rgba(0, 0, 0, 0.34),
            0 0 34px rgba(255, 255, 255, 0.16);
    }

    .startup-mark img {
        width: 64%;
        height: 64%;
    }

    .startup-hello {
        font-size: clamp(5.6rem, 34vw, 9.5rem);
        color: rgba(255, 255, 255, 0.22);
        line-height: 0.86;
        transform: translateY(0);
        width: 100%;
        padding-left: 0.12em;
        box-sizing: border-box;
        text-shadow:
            0 16px 46px rgba(0, 0, 0, 0.28),
            0 0 36px rgba(255, 255, 255, 0.1);
    }

    .startup-hello-text {
        width: 4.7ch;
        text-align: left;
    }

    .startup-hello-cursor {
        width: 0.28em;
        margin-left: 0.02em;
        text-align: left;
    }

    .startup-ripple {
        width: 64vmax;
        border-width: clamp(2px, 0.9vw, 4px);
        box-shadow:
            0 0 26px rgba(255, 255, 255, 0.34),
            inset 0 0 26px rgba(255, 255, 255, 0.13);
    }

    .startup-ripple-one {
        width: 76vmax;
        border-width: clamp(6px, 2.1vw, 12px);
        box-shadow:
            0 0 42px rgba(255, 255, 255, 0.38),
            inset 0 0 42px rgba(255, 255, 255, 0.12);
    }

    .startup-intro-exit .startup-hello {
        animation-name: startupHelloMobileExit;
    }
}

@media (max-width: 900px) and (orientation: landscape) {
    .startup-mark {
        width: clamp(70px, 16vw, 96px);
    }

    .startup-hello {
        font-size: clamp(5rem, 26vw, 11rem);
        transform: translateY(-3vh);
    }

    .startup-ripple {
        width: 58vmax;
    }

    .startup-ripple-one {
        width: 70vmax;
    }
}

@keyframes startupHelloMobileExit {
    to {
        opacity: 0;
        transform: scale(1.03);
    }
}

/* =========================================
   3. NAVIGATION BAR
   ========================================= */
nav {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; 
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding-left: 40px;
    padding-right: 40px;
    height: 100px; /* Default tall height for Home Page top */
    box-sizing: border-box; 
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

/* --- THE SCROLLED STATE (Dark & Blurry) --- */
.nav-scrolled {
    background-color: rgba(0, 0, 0, 0.8); 
    backdrop-filter: blur(10px);           
    -webkit-backdrop-filter: blur(10px);   
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); 
    height: 80px; 
}

/* Keep your existing Hover effect */
nav:hover {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* --- LEFT SIDE (About + Portfolio) --- */
.nav-left {
    flex: 1; 
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px; 
}

/* --- CENTER (The Logo) --- */
.nav-center {
  position: absolute;  
  left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center; 
    align-items: center;
    height: 100%;
    pointer-events: none;
}

#logo {
  pointer-events: auto;
    text-decoration: none;
    color: white;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.3s ease;
    text-align: center;
    padding: 0 !important;
    margin: 0 !important;
}

/* --- RIGHT SIDE (Contact + Icons) --- */
.nav-right {
    flex: 1; 
    display: flex;
    justify-content: flex-end; 
    align-items: center;
    gap: 25px; 
}

/* --- SHARED STYLES --- */
nav a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 18px;
    transition: opacity 0.3s ease;
}

nav a:hover {
    opacity: 0.7;
}

.social-icon {
    width: 28px;
    height: 28px;
    filter: invert(100%);
    display: block;
    transition: opacity 0.3s ease;
}

a[href*="linkedin"] .social-icon {
    position: relative;
    top: -3px; 
}

.social-icon:hover {
    opacity: 0.7;
}

/* =========================================
   FORCE DARK NAV (CSS Override)
   ========================================= */

/* Any page with <body class="dark-mode-active"> will 
   FORCE the nav to look like the scrolled version 
   regardless of what the JavaScript is doing.
*/
body.dark-mode-active nav {
    background-color: rgba(0, 0, 0, 0.9) !important; /* Force dark background */
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    height: 80px !important;                          /* Force shrink height */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
}


/* =========================================
   4. HERO SECTION
   ========================================= */

   .hero-content {
  max-width: 900px;
  margin-left: auto;
  padding-top: 320px;
  padding-right: 50px;
  transform: translateY(var(--hero-content-shift, 0px));
  opacity: var(--hero-content-opacity, 1);
  will-change: transform, opacity;
}

   #hero-section {
height: 90vh;
background-image: url("../assets/images/keyon-park.png");
background-size: cover;
background-position: center calc(0px + var(--hero-bg-shift, 0px));
color:white;
font-weight: 600;
overflow: hidden;
will-change: background-position;
}

.social-icon{
width:40px;
height:40px;
filter: invert(100%);
display: block;
transition: filter 0.3s ease;
}
nav:hover .social-icon {
    filter: invert(100%);
}

#logo {
font-size: 40px;
line-height: 80px;
}
nav:hover #logo {
color: white;
}

.hero-headline {
    font-size: 74px;
    margin-top: 0; 
    font-weight: 590;
    margin-bottom: 5px;
    line-height: .9;
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle p{ 
    font-size:38px;
    margin-bottom: 40px;
 margin-top:5px;
  margin-bottom:0px;
    font-weight:530;
    word-spacing:2px;
text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-details p{
    font-size: 28px; 
    line-height: 0; 
    margin-top:14px;
        line-height:0.3;
        word-spacing:2px;
           font-weight:550;
           text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.4);
}
.hero-tech-stack p{
    font-size: 16px; 
    line-height: 0; 
    margin-top:50px;
        line-height:0.04;
        word-spacing:2px;
        color: #ffffffd0;
           font-weight:600;
           text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.712);
}

.hero-resume{
  position: relative;
display: inline-block;
margin-left: 0;
border: none;
    font-weight: 400;
    font-size: 20px;
    text-decoration: none;
    color: white;
    border-radius: 3px;
  background-color: rgba(0, 0, 0, 0.164);
padding: 16px 20px 16px 70px;
transition: background-color 0.2s;
}
.hero-resume:hover {
    background-color: rgba(0, 0, 0, 0.301);
border: none;
}
.btn-icon {
    position: absolute;  
    top: 50%;            
    transform: translateY(-50%);
    left: 15px;          
    width: 40px;         
    height: 40px;

}

/* =========================================
   5. ANIMATIONS (Typewriter & Cursor)
   ========================================= */

.cursor {
    display: inline-block;
    font-weight: 100;
    color: white;
    animation: blink 2s infinite;
}
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* =========================================
   6. PROJECTS SECTION (Selected Works)
   ========================================= */

#content-section {
    background-color: white; 
    color: black;           
    padding: 0px 60px 100px 60px;      
    min-height: 50vh;  
    overflow: hidden; 
}

#content-section .content-headline,
#content-section .carousel-container {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

#content-section .carousel-container {
    transition-delay: 0.08s;
}

#content-section.is-visible .content-headline,
#content-section.is-visible .carousel-container {
    opacity: 1;
    transform: translateY(0);
}

.content-headline p {
    font-weight: 600;
    font-size: 24px;
    margin-top: 15px;    
    margin-bottom: 20px; 
    font-variant-ligatures: none; 
    -webkit-font-smoothing: antialiased;
}

/* --- CAROUSEL WRAPPER --- */
.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    margin-left: 0; 
}

/* THE TRACK */
.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    gap: 20px; 
}

/* --- THE CARD STYLE --- */
.project-card {
    min-width: calc(100% - 24px); 
    height: 100%;
    display: flex;       
    background-color: #f9f9f9;
    border-radius: 20px; 
    overflow: hidden;    /* Keeps the zoom inside the rounded corners */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.103); 
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.project-card .card-image-wrapper,
.project-card .card-bg,
.project-card .card-details > * {
    will-change: transform, opacity;
}

/* --- THE IMAGE WRAPPER (The Mask) --- */
.card-image-wrapper {
  
    flex: 0.9; 
    
    position: relative;
    overflow: hidden; 
    height: 100%;
}

/* --- THE ACTUAL IMAGE  --- */
.card-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease; /* Smooth slow zoom */
}

.tasky-preview-image {
    background-color: #fff;
    background-size: auto 100% !important;
    background-position: center top !important;
    background-repeat: no-repeat;
}

/* --- HOVER EFFECT --- */
.project-card:hover {
    transform: none;
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.18);
}

.project-card:hover .card-bg {
    transform: scale(1.02); /* Zooms in 5% */
}


/* RIGHT SIDE: TEXT */
.card-details {
    flex: 1;             
    padding: 40px 40px; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    text-align: left;
    border: 1px solid #11111144;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.project-card.carousel-leaving .card-image-wrapper {
    animation: carouselImageOut 0.34s ease both;
}

.project-card.carousel-leaving .card-details > * {
    animation: carouselTextOut 0.24s ease both;
}

.project-card.carousel-entering .card-image-wrapper {
    animation: carouselImageIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.project-card.carousel-entering .card-details > * {
    animation: carouselTextIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.16s;
}

.carousel-track.is-moving-left .project-card.carousel-leaving .card-image-wrapper {
    animation-name: carouselImageOutRight;
}

.carousel-track.is-moving-left .project-card.carousel-leaving .card-details > * {
    animation-name: carouselTextOutRight;
}

.carousel-track.is-moving-left .project-card.carousel-entering .card-image-wrapper {
    animation-name: carouselImageInLeft;
}

.carousel-track.is-moving-left .project-card.carousel-entering .card-details > * {
    animation-name: carouselTextInLeft;
}

@keyframes carouselImageOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(-34px) scale(0.99);
    }
}

@keyframes carouselTextOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-18px);
    }
}

@keyframes carouselImageIn {
    from {
        opacity: 0;
        transform: translateX(46px) scale(1.01);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes carouselTextIn {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes carouselImageOutRight {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(34px) scale(0.99);
    }
}

@keyframes carouselTextOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(18px);
    }
}

@keyframes carouselImageInLeft {
    from {
        opacity: 0;
        transform: translateX(-46px) scale(1.01);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes carouselTextInLeft {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.card-details h3 {
    font-size: 32px;   
    margin: 0 0 10px 0;
    font-weight: 600;
}

.tech-stack {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.description {
    font-size: 18px;     
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
}

.view-project {
    text-decoration: none;
    font-weight: 600;
    color: black;
    border-bottom: 2px solid black;
    display: inline-block;
    width: fit-content;
    padding-bottom: 2px;
    transition: color 0.24s ease, border-bottom-color 0.24s ease;
}

.view-project:hover {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.view-project span {
    display: inline-block;
    transition: transform 0.22s ease;
}

.project-card:hover .view-project span,
.view-project:hover span {
    transform: translateX(5px);
}

/* CARD 1: Portfolio Website */
.project-card:nth-child(1) .card-bg {
    background-image: url('../assets/images/tasky-login-preview.svg'); 
    background-color: #fff; /* Fallback color */
}

/* CARD 2: Example Project */
.project-card:nth-child(2) .card-bg {
    background-image: url('../assets/images/your-image2.jpg'); /* Replace with actual file name */
    background-color: #444; 
}

/* CARD 3: Example Project */
.project-card:nth-child(3) .card-bg {
    background-image: url('../assets/images/your-image3.jpg'); /* Replace with actual file name */
    background-color: #666; 
}

/* --- BUTTONS --- */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 5px;
    color: #333;
}

.carousel-btn:hover {
    background-color: #f4f4f4;
    transform: translateY(-50%) scale(1.05);
}

.btn-left { left: -25px; }
.btn-right { right: 0; } 

/* --- DOTS NAVIGATION --- */
.carousel-dots {
    position: absolute;
    bottom: -50px; 
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    z-index: 10;
    width: auto;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #ddd; 
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #333; 
    transform: scale(1.3);
}

/* --- HOME PAGE INFO EXTENSION --- */
.home-info-extension {
    position: relative;
    min-height: 0;
    background: #f8f9fb;
    padding: 28px 60px 64px;
    box-sizing: border-box;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow:
        inset 0 18px 34px -38px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.home-info-wrapper {
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
}

.home-info-extension-continued {
    border-top: 1px solid rgba(0, 0, 0, 0.035);
    box-shadow: none;
}

.home-info-extension-white {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: none;
}

.home-info-title {
    margin: 0;
    color: #111;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
    font-variant-ligatures: none;
    -webkit-font-smoothing: antialiased;
}

.experience-timeline {
    position: relative;
    width: calc(100% - 34px);
    max-width: none;
    margin-top: 28px;
    padding-left: 0;
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
}

.experience-timeline::before {
    content: none;
}

.experience-timeline.is-visible {
    --timeline-fill: 100%;
}

.experience-card {
    position: relative;
    min-height: 385px;
    margin-left: 0;
    padding: 32px 36px;
    padding-right: min(40vw, 640px);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 8px;
    box-shadow: 0 16px 38px rgba(17, 17, 17, 0.065);
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: transform 0.28s ease, box-shadow 0.28s ease, opacity 0.45s ease;
    font-family: 'Eina', Arial, sans-serif;
    font-weight: 400;
    font-synthesis: none;
    font-variant-ligatures: none;
    font-feature-settings: "liga" 0, "clig" 0, "calt" 0, "kern" 0;
    text-rendering: geometricPrecision;
}

.experience-card.is-swapping {
    opacity: 0.62;
}

.experience-card-compact {
    padding: 32px 36px;
    padding-right: min(40vw, 640px);
}

.experience-card-compact .experience-summary {
    max-width: 760px;
    margin-bottom: 18px;
}

.experience-card-compact .experience-highlight {
    max-width: 780px;
}

.experience-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.experience-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(17, 17, 17, 0.095);
}

.experience-node-list {
    position: relative;
    display: grid;
    align-content: space-between;
    gap: 18px;
    min-height: 220px;
    padding: 18px 0;
}

.experience-node-list::before {
    content: "";
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 10px;
    width: 2px;
    background: rgba(17, 17, 17, 0.14);
    border-radius: 999px;
}

.experience-node {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #777;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.experience-node span {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-sizing: border-box;
    background: #2563eb;
    border: 5px solid #f8f9fb;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.18);
    transition: box-shadow 0.24s ease, transform 0.24s ease;
}

.experience-node.is-active {
    color: #111;
}

.experience-node.is-active span {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.14);
    transform: scale(1.08);
}

.experience-dot {
    position: absolute;
    top: 24px;
    left: calc(-1 * var(--timeline-card-offset) + var(--timeline-dot-nudge));
    width: var(--timeline-dot-size);
    height: var(--timeline-dot-size);
    box-sizing: border-box;
    border-radius: 50%;
    background: #2563eb;
    border: 4px solid #f8f9fb;
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.26);
    transform: translateX(-50%);
    transition: box-shadow 0.32s ease;
}

.experience-card:hover .experience-dot {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.14);
}

.experience-logo {
    width: 64px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    align-self: start;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: 0 12px 28px rgba(17, 17, 17, 0.18);
}

.experience-content h3 {
    margin: 0 0 16px;
    color: #111;
    font-size: 2.12rem;
    font-weight: 700;
    line-height: 1.25;
    font-synthesis: none;
    font-kerning: none;
    font-variant-ligatures: none;
    font-feature-settings: "liga" 0, "clig" 0, "calt" 0, "kern" 0;
    text-rendering: geometricPrecision;
}

.experience-content h3 span {
    color: #111;
    font-weight: 700;
}

.experience-content h3 span::before {
    content: " \00B7  ";
}

.experience-kicker {
    color: #2563eb;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.experience-company {
    margin: 0 0 10px;
    color: #667085;
    font-size: 0.88rem;
    font-weight: 500;
}

.experience-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 18px;
    color: #777;
    font-size: 1.08rem;
    font-weight: 700;
}

.experience-meta span:first-child {
    color: #111;
    font-weight: 700;
}

.experience-summary {
    max-width: 980px;
    margin: 0;
    color: #333;
    font-size: 1.18rem;
    line-height: 1.65;
}

.experience-points {
    max-width: 900px;
    margin: 0;
    padding-left: 28px;
    color: #111;
    font-size: 1rem;
    line-height: 1.55;
}

.experience-points li {
    margin: 2px 0;
}

.experience-stack,
.experience-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.experience-stack span,
.experience-metrics span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 13px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.experience-stack span {
    color: #111;
    background: #eef0f5;
}

.experience-card-body {
    display: block;
    margin-top: 22px;
}

.experience-content {
    display: block;
}

.experience-copy {
    margin-top: 22px;
}

.experience-skills {
    position: absolute;
    top: 50%;
    right: 72px;
    width: clamp(340px, 34vw, 600px);
    display: grid;
    gap: 12px;
    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.42);
    box-shadow: 0 18px 42px rgba(31, 41, 55, 0.1);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    transform: translateY(-50%);
}

.experience-skills > p {
    margin: 0 0 2px;
    color: #111;
    font-size: 1.12rem;
    font-weight: 700;
}

.experience-skill {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.experience-skill span,
.experience-skill strong {
    color: #333;
    font-size: 1.08rem;
    font-weight: 700;
}

.experience-skill strong {
    color: #2563eb;
}

.experience-skill i {
    grid-column: 1 / -1;
    position: relative;
    display: block;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8edf6;
}

.experience-skill i::before {
    content: "";
    position: absolute;
    inset: 0;
    width: var(--skill-level, 0%);
    border-radius: inherit;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
    transform-origin: left;
    animation: skillBarFill 0.72s ease both;
}

@keyframes skillBarFill {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

.experience-highlight {
    margin: 22px 0 0;
    padding: 18px 20px;
    border-left: 3px solid #2563eb;
    background: #eef4ff;
    border-radius: 0 8px 8px 0;
}

.experience-highlight span {
    display: block;
    margin-bottom: 6px;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.experience-highlight p {
    margin: 0;
    color: #1f1f1f;
    font-size: 1.14rem;
    line-height: 1.5;
}

.experience-metrics span {
    color: #1e40af;
    background: rgba(37, 99, 235, 0.1);
}

.experience-visual {
    align-self: stretch;
    min-height: 260px;
    display: flex;
    align-items: center;
}

.visual-window {
    width: 100%;
    min-height: 250px;
    padding: 16px;
    border-radius: 8px;
    background: linear-gradient(145deg, #ffffff, #edf1f7);
    border: 1px solid rgba(17, 17, 17, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 18px 36px rgba(31, 41, 55, 0.12);
    box-sizing: border-box;
}

.visual-bar {
    width: 44%;
    height: 12px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: #d8deea;
}

.visual-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 12px;
}

.visual-panel,
.visual-chart {
    min-height: 78px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(17, 17, 17, 0.06);
}

.visual-panel-large {
    grid-row: span 2;
    min-height: 168px;
    background:
        linear-gradient(90deg, rgba(37, 99, 235, 0.18) 0 22%, transparent 22%),
        repeating-linear-gradient(to bottom, #ffffff 0 18px, #f1f3f7 18px 20px);
}

.visual-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 14px;
    box-sizing: border-box;
}

.visual-chart span {
    flex: 1;
    border-radius: 999px 999px 0 0;
    background: #2563eb;
}

.visual-chart span:nth-child(1) { height: 32%; opacity: 0.45; }
.visual-chart span:nth-child(2) { height: 58%; opacity: 0.62; }
.visual-chart span:nth-child(3) { height: 42%; opacity: 0.5; }
.visual-chart span:nth-child(4) { height: 76%; opacity: 0.78; }

@media (max-width: 900px) {
    .home-info-extension {
        min-height: 0;
        padding: 28px 30px 52px;
    }

    .home-info-wrapper {
        min-height: 0;
    }

    .experience-timeline {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        max-width: none;
    }

    .experience-node-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-content: stretch;
        min-height: 0;
        padding: 0;
    }

    .experience-node-list::before {
        top: 10px;
        bottom: auto;
        left: 10px;
        right: 10px;
        width: auto;
        height: 2px;
    }

    .experience-node {
        align-items: flex-start;
        gap: 8px;
        font-size: 0.78rem;
    }

    .experience-card {
        padding: 24px 24px;
        padding-right: 24px;
        min-height: 440px;
    }

    .experience-card-body {
        display: block;
    }

    .experience-content {
        display: block;
    }

    .experience-copy {
        margin-top: 22px;
    }

    .experience-skills {
        position: static;
        width: auto;
        margin-top: 24px;
        transform: none;
    }

    .experience-card-compact {
        padding: 24px 24px;
        padding-right: 24px;
    }

    .experience-visual {
        grid-column: 1 / -1;
        min-height: 220px;
    }

    .experience-logo {
        width: 52px;
        font-size: 15px;
    }

}

@media (max-width: 480px) {
    .home-info-extension {
        min-height: 0;
        padding: 24px 20px 42px;
    }

    .home-info-wrapper {
        min-height: 0;
    }

    .experience-timeline {
        margin-top: 26px;
        gap: 18px;
    }

    .experience-card {
        padding: 20px;
        padding-right: 20px;
        min-height: 520px;
    }

    .experience-card-compact {
        grid-template-columns: 1fr;
        padding-right: 20px;
    }

    .experience-logo {
        width: 48px;
    }

    .experience-content h3 {
        font-size: 1.56rem;
    }

    .experience-meta {
        flex-direction: column;
        gap: 6px;
    }

    .experience-visual {
        min-height: 190px;
    }

    .visual-window {
        min-height: 190px;
    }

    .visual-panel-large {
        min-height: 132px;
    }

}

/* =========================================
   7. FOOTER
   ========================================= */
.slim-footer {
    background-color: #ffffff; 
    padding: 30px 40px;        
    border-top: 1px solid #dddddd;
}

.footer-container {
  position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; 
    margin: 0 auto;
}

/* --- LEFT SIDE (Takes up equal space) --- */
.footer-left {
    flex: 1; 
    display: flex;
    justify-content: flex-start; 
}

.footer-logo-text {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.5px;
    color: #111;
}

/* --- CENTER NAV (Dead Center) --- */
.footer-nav {
  position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 40px; 
    background: transparent !important;
}

.footer-nav a {
    text-decoration: none;
    color: #555; 
    font-weight: 600;
    font-size: 16px;
    transition: opacity 0.3s ease; 
    background: none !important; 
    width: 110px;       
    text-align: center;
    display: inline-block;
}

.footer-nav a:hover {
    opacity: 0.5; 
    background: none !important; 
}

/* --- RIGHT SIDE (Takes up equal space) --- */
.footer-right {
    flex: 1; 
    display: flex;
    justify-content: flex-end;
    gap: 25px;
}

.footer-right a {
    text-decoration: none;
    color: #111;
    font-weight: 600;
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.footer-right a:hover {
    opacity: 0.5; 
}

/* =========================================
   TABLET & IPAD LANDSCAPE FIX
   ========================================= */
@media (max-width: 1366px) {

  /* 0. SAFETY NET: prevents scrolling */
  html, body {
    overflow-x: hidden !important;
  }

  /* CONTAINER: Moves Text DOWN */
  .hero-content {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    
    /* Box Sizing keeps padding inside width */
    box-sizing: border-box !important; 
    
    padding-right: 30px;
    padding-top: 150px;            
  }

  /* BACKGROUND */
  #hero-section {
    height: 75vh !important;       
    min-height: 600px;             
    background-position: 20% center; 
  }

  /* HEADLINE: Moved Right (50%) */
  .hero-headline {
    font-size: 44px !important;    
    margin-left: 50% !important;   /* SMIDGE RIGHT */
    text-align: left;
    width: auto;
    
    margin-bottom: 5px;           
    line-height: 1.1;
  }

  /* SUBTITLE: Moved Right (50%) */
  .hero-subtitle p {
    font-size: 26px !important;    
    margin-left: 50% !important;   /* SMIDGE RIGHT */
    text-align: left;
    margin-bottom: 5px;           
  }

  /* DETAILS: Moved Right (50%) */
  .hero-details p {
    font-size: 20px !important;    
    margin-left: 50% !important;   /* SMIDGE RIGHT */
    text-align: left;
    
    /* Tight vertical spacing */
    line-height: 1.2 !important;              
    margin-top: 0 !important;      
    margin-bottom: 0 !important;   
    display: block;                
  }

  .hero-tech-stack p {
      margin-left: 50% !important;   
      text-align: left;              
      
      font-size: 14px !important;     
      margin-top: 15px !important;    
      margin-bottom: 15px !important; 
      
      line-height: 1.4 !important;    
      width: auto;
  }

  /* RESUME BUTTON: Moved Right (50%) */
  .hero-resume {
    margin-left: 50% !important;   /* SMIDGE RIGHT */
    display: inline-block;
    
    margin-top: 0px !important;   
    font-size: 20px !important;    
    padding: 16px 20px 16px 65px;  
  }

  .btn-icon {
      width: 38px;                 
      height: 38px;
      left: 15px;
  }

.carousel-container {
    height: 480px !important;       /* Increased to make room for dots */
    position: relative;             /* Anchors the dots */
    margin-bottom: 0px;
}

#content-section {
    padding-bottom: 30px !important;   
    min-height: auto !important;       
}

/* TRACK: Swipe Enabled */
.carousel-track {
    display: flex;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    width: 100% !important;
    height: 90% !important;         /* LEAVE SPACE AT BOTTOM for dots */
    gap: 15px !important;
    transform: none !important; 
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar {
    display: none;
}

/* CARDS: Fit inside the 90% track */
.project-card {
    min-width: 85% !important;
    max-width: 85% !important;
    height: 100% !important;        
    scroll-snap-align: center;
    margin: 0 auto !important;
    border-radius: 15px !important;
}

/* DOTS: Centered & Lowered into the gap */
.carousel-dots {
    display: flex !important;
    justify-content: center;        /* Flex centering */
    align-items: center;
    position: absolute !important;
    bottom: 5px !important;         
    left: 50% !important;           /* Pushes to middle */
    transform: translateX(-50%) !important; /* PERFECTLY centers it */   
    width: auto !important;         
    z-index: 20;
    padding: 0;
    margin: 0;
}


/* Optional: Ensure dots are visible */
.dot {
    width: 10px;
    height: 10px;
    margin: 0 6px;
    background-color: #ccc;        
    border-radius: 50%;
    display: inline-block;
}

.dot.active {
    background-color: #333;         /* Darker active color */
}

/* BUTTONS: Vertically Centered */
.carousel-btn {
    display: flex !important;
    z-index: 30;
    top: 45% !important;            /* Centered relative to the image */
}
}

/* =========================================
   IPAD LANDSCAPE / TABLET FIX (Portfolio)
   ========================================= */

/* Target screens that are wide (tablets) but not quite desktop size */
@media (min-width: 1025px) and (max-width: 1366px) and (orientation: landscape) {

    .portfolio-hero {
        justify-content: center !important; 
        gap: 60px !important;
    }

    .hero-left {
        margin-left: 60px; 
        max-width: 450px; 
    }

    .hero-right {
        justify-content: flex-start !important; 
    }

    /* Pulls the cards closer to the text above */
    .philosophy-container {
        margin-bottom: 50px !important; 
    }
    
    /* Optional: Ensure the grid itself doesn't have extra top margin */
    .projects-grid {
        margin-top: 0 !important;
    }
}

.cycling-card {
    width: 100%;
    max-width: 500px;
    height: 350px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative; 
    overflow: hidden;
    background-color: #333; /* Fallback color */
    will-change: background-image; 
    transform: translateZ(0);       
    backface-visibility: hidden;
}

/* The Individual Slide Images */
.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /* Start invisible */
    opacity: 0;
    /* The Animation: Lasts 12s, loops forever */
    animation: crossFade 12s infinite;
}

/* Ensure the text stays on top of the images */
.cycle-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 10; /* Lifts it above the images */
}

/* Individual Slides with actual URLs */
.slide-1 { 
    background-image: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=800&q=80'); 
    animation-delay: 0s;
}
.slide-2 { 
    background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=800&q=80'); 
    animation-delay: 4s; 
}
.slide-3 { 
    background-image: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=800&q=80'); 
    animation-delay: 8s; 
}

/* The New Animation (Changes Opacity, not Image) */
@keyframes crossFade {
    0% { opacity: 0; }
    5% { opacity: 1; }     /* Fast fade in */
    33% { opacity: 1; }    /* Stay visible for 4 seconds */
    38% { opacity: 0; }    /* Fast fade out */
    100% { opacity: 0; }   /* Stay invisible while others play */
}

/* =========================================
   ABOUT PAGE STYLES
   ========================================= */

.about-page-section {
background: linear-gradient(to right, #ffffff 0%, #f0f0f0 100%);
    min-height: calc(100vh - 80px); 
    padding-top: 110px;         /* Space for the header */
    padding-bottom: 70px;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.about-page-wrapper {
    max-width: 1400px;           /* Limit width so text isn't too wide */
    width: 95%;
    
    /* THE BIG CHANGE: Stack items vertically */
    display: flex;
    flex-direction: column;     
    align-items: center;        /* Center everything */
    gap: 40px;                  /* Space between Image and Text Box */
}

/* --- THE IMAGE (Top) --- */
.about-image-container {
    position: relative;
    width: 100%;
    height: 400px; 
    border-radius: 20px;
    overflow: hidden;
    background-image: url('../assets/images/techtint.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* THE BIG IMAGE (Background) */
.big-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* Ensures it fills the box without stretching */
    display: block;
}

/* THE GREY TINT */
.grey-tint {
    position: absolute;         /* Floats on top */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* The Tint Color: Black with 50% opacity creates a dark grey tint */
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1;                 /* Sits above the background */
}

/* THE PROFILE CUBE (Center) */
.profile-cube {
    position: absolute;         /* Floats on top */
    top: 50%;                   /* Move to middle vertical */
    left: 50%;                  /* Move to middle horizontal */
    
    /* centers it perfectly by pulling it back half its own size */
    transform: translate(-50%, -50%); 
    width: 180px;               /* Size of the cube */
    height: 180px;
    object-fit: cover;
    
    border-radius: 20px;        
    border: 4px solid white;   
    box-shadow: 0 10px 20px rgba(0,0,0,0.3); 
    z-index: 2;              
}
/* --- THE TEXT BOX (Bottom) --- */
.about-text-container {
    background-color: white;    
    padding: 80px;             
    border-radius: 20px;        
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.137); 
    text-align: left;         
    width: 100%;
    box-sizing: border-box;
}

.about-text-container h1 {
    font-size: 42px;
    margin-top: 0;
    margin-bottom: 20px;
    color: #111;
    text-align: center;         /* Center the headline for impact */
}

.about-text-container p {
    font-size: 18px;
    line-height: 1.8;           /* Relaxed spacing for reading */
    color: #555;
    margin-bottom: 25px;
}

/* Hobbies List */
.hobbies-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    display: flex;             
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;    /* Center the tags */
}

.hobbies-list li {
    background-color: #f0f0f0;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    color: #444;
}

/* Centered Button */
.about-resume-btn {
    display: block;             /* Allows auto margins */
    width: fit-content;
    margin: 0 auto;             /* Centers button */
    background-color: #111;
    color: white;
    text-decoration: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;        /* Pill shape */
    transition: transform 0.2s;
}

.about-resume-btn:hover {
    transform: translateY(-3px); /* Little hop effect */
    background-color: #333;
}

.dark-mode-nav {
    background-color: rgba(0, 0, 0, 0.8); 
    backdrop-filter: blur(10px);           
    -webkit-backdrop-filter: blur(10px);   
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); 
    border-bottom: 1px solid rgba(255,255,255,0.1); /* Subtle divider line */
}


/* --- RESPONSIVE: Stack on Mobile --- */
@media (max-width: 900px) {
    .about-page-wrapper {
        flex-direction: column; /* Stack them vertically */
        text-align: center;
    }

    .about-text-container h1 {
        font-size: 36px;
    }

    .about-image-container img {
        margin-bottom: 30px;
        max-width: 300px;
    }


    
}

/* =========================================
   PORTFOLIO PAGE STYLES
   ========================================= */

 .portfolio-page-section {
    background: linear-gradient(to right, #ffffff 0%, #f0f0f0 100%);
    min-height: calc(100vh - 80px); 
    padding-top: 110px;         
    padding-bottom: 70px;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

/* Restricts width so content doesn't stretch too wide on huge screens */
.content-wrapper {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
}

/* --- TOP HERO SECTION --- */
.portfolio-hero {
    display: flex;
    flex-wrap: wrap; /* Stacks on mobile */
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
    gap: 40px;
}

.hero-left {
    flex: 1;
    min-width: 300px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    margin: 0 0 20px 0;
    color: #111;
    letter-spacing: -2px;
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    max-width: 450px;
    margin-bottom: 30px;
}

.toggle-placeholder {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.toggle-switch {
    width: 40px;
    height: 20px;
    background: #333;
    border-radius: 20px;
    position: relative;
}
.toggle-switch::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    top: 2px;
    right: 2px;
}

/* --- CYCLING IMAGE CARD (RIGHT) --- */
.hero-right {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.cycling-card {
    width: 100%;
    max-width: 500px;
    height: 350px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    /* CSS ANIMATION FOR CYCLING IMAGES */
    background-size: cover;
    background-position: center;
    animation: imageCycle 12s infinite; 
}
@keyframes imageCycle {
    0%   { background-image: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=800&q=80'); }
    33%  { background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=800&q=80'); }
    66%  { background-image: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=800&q=80'); }
    100% { background-image: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=800&q=80'); }
}

.cycle-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.cycle-overlay h3 { margin: 5px 0 0 0; font-size: 1.1rem; }
.cycle-overlay p { margin: 0; font-size: 0.85rem; color: #666; }
.cycle-tag { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: #888; font-weight: bold;}


/* --- PHILOSOPHY SECTION --- */
.philosophy-container {
    width: 100%;
    margin: 0 auto 60px auto; 
    text-align: center;       
}

.philosophy-label {
    display: flex;             
    align-items: center;       
    justify-content: center;
    width: 100%;               
    font-size: 14px;           
    font-weight: 800;          
    color: #999;               
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;       
}

.philosophy-label::before,
.philosophy-label::after {
    content: "";               
    height: 2px;               
    background-color: #ddd;    
    flex-grow: 1;              
}

.philosophy-label::before { margin-right: 20px; }
.philosophy-label::after { margin-left: 20px; }
.philosophy-text {
    font-weight: 600;          
    font-size: 28px;      
    line-height: 1.3;
    color: #111;
    margin: 0;
    padding: 0 5%;
    display: inline-block;
    max-width: 800px; 
}

/* --- CARDS GRID --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
    gap: 30px;
    width: 100%;
    margin-bottom: 0px;
}

.g-card {
    background: #fff;
    border: 1px solid #d7dce2;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    cursor: pointer;
}

.g-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.13);
}

.g-card-image {
    height: 210px;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #d7dce2;
}

.g-card-body {
    padding: 18px 16px 16px;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.g-card-body h2 {
    margin: 0 0 8px;
    color: #111;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.25;
}

.card-subtitle {
    margin: 0 0 18px;
    color: #111;
    font-size: 0.98rem;
    font-weight: 400;
    line-height: 1.55;
}

.g-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.g-card-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 7px;
    border-radius: 4px;
    background: #eef2f7;
    color: #111;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}
/* --- THEME COLORS --- */

/* BLUE THEME */
.card-blue .g-card-body { background-color: #fff; }
.card-blue .g-btn       { color: #0d6efd; border-color: #0d6efd; }
.card-blue .g-btn:hover { background-color: #0d6efd; color: #fff; }

/* YELLOW THEME */
.card-yellow .g-card-body { background-color: #fce8b2; }
.card-yellow .g-btn       { background-color: #e37400; color: white; } 
.card-yellow .g-btn:hover { background-color: #d56a00; }

/* RED THEME */
.card-red .g-card-body { background-color: #fad2cf; }
.card-red .g-btn       { background-color: #d93025; color: white; }
.card-red .g-btn:hover { background-color: #b31412; }

/* GREEN THEME */
.card-green .g-card-body { background-color: #ceead6; }
.card-green .g-btn       { background-color: #188038; color: white; }
.card-green .g-btn:hover { background-color: #137333; }

.g-btn {
    align-self: flex-start;
    margin-top: auto;
    text-decoration: none;
    padding: 7px 11px;
    border: 1px solid currentColor;
    border-radius: 999px;
    background: #fff;
    color: #0d6efd;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.2;
    transition: background-color 0.2s, color 0.2s;
}


/* =========================================
   TABLET & IPAD PORTRAIT ONLY
   ========================================= */
@media (max-width: 1024px) and (orientation: portrait) {

    /* BACKGROUND: "GOLDILOCKS" FRAMING */
    #hero-section {
        background-position: -200px center !important;
        background-size: cover !important;
    }

    /* ABOUT PAGE IMAGE */
    .about-image-container {
        position: relative;
        width: 100%;
        height: 380px !important; 
        border-radius: 20px;
        overflow: hidden;
        display: block;
        margin-bottom: 20px;
        background-color: #333; 
    }

    .big-bg-img {
        width: 100%;
        height: 100%;
        object-fit: cover !important; 
        object-position: center !important; 
        display: block;
    }

    .grey-tint {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5); 
        z-index: 1;
    }

    .profile-cube {
        z-index: 2;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    /* HEADER: Restore Normal Spacing */
    nav {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 80px !important;
        padding: 0 30px !important;
    }

    .nav-left, .nav-right {
        flex: 1;
        gap: 20px !important;
    }

    .nav-left a, .nav-right a {
        font-size: 15px !important;
    }

    .social-icon {
        width: 22px !important;
        height: 22px !important;
    }

    .nav-center {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        display: flex !important;
    }

    #logo {
        font-size: 32px !important;
        margin: 0 !important;
    }

    /* PROJECT CARD: Shrink Text for the Frame */
    .card-details h3 {
        font-size: 22px !important;
        margin-bottom: 8px !important;
    }

    .description {
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    /* FOOTER: Normal Spread (No Stacking) */
    .slim-footer {
        padding: 40px 30px !important;
    }

    .footer-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }

    .footer-left, .footer-right {
        flex: 1;
    }

    .footer-nav {
        flex: 2;
        display: flex !important;
        justify-content: center !important;
        gap: 25px !important;
        position: static !important;
        transform: none !important;
    }

    .footer-nav a, .footer-right a {
        font-size: 15px !important;
        white-space: nowrap !important;
    }

    /* HERO CONTENT: Portrait-specific adjustments */
    .hero-content {
        padding-top: 150px !important; 
        padding-left: 55% !important;  /* MOVED RIGHT: Increased from 50% */
        padding-right: 30px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important; 
        text-align: left !important;
        gap: 8px !important; 
    }

    /* TURNED DOWN SHADOWS: Reduced blur and opacity for a cleaner look */
    .hero-headline {
        font-size: 54px !important; 
        line-height: 1.1 !important;
        margin-left: 0 !important;
        max-width: 100% !important; 
        text-align: left !important;
        text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.63) !important;
    }

    .hero-subtitle p {
        font-size: 32px !important; 
        margin: 0 !important;
        font-weight: 600 !important;
        text-align: left !important;
        text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.6) !important;
    }

    .hero-details p {
        font-size: 22px !important; 
        max-width: 90% !important; 
        line-height: 1.4 !important;
        margin: 5px 0 5px 0 !important; 
        text-align: left !important;
        text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.6) !important;
    }

    .hero-resume {
        margin-top: 0px !important; 
        margin-left: 0 !important;
        text-align: left !important;
    }

    .hero-tech-stack {
        margin-top: 0px !important; 
        text-align: left !important;
    }

    .hero-tech-stack p {
        font-size: 16px !important; 
        line-height: 1.6 !important;
        margin-left: 0 !important;
        text-align: left !important;
        text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.6) !important;
    }
}

/* =========================================
   TABLET & IPAD LANDSCAPE ONLY
   ========================================= */
@media (max-width: 1366px) and (orientation: landscape) {
    /* 1. SECTION: Shorter background height */
    #hero-section {
        height: 80vh !important;       
        display: flex !important;       
        flex-direction: column !important;
        justify-content: center !important; 
        background-position: center top !important;
        background-size: cover !important;
        padding: 0 !important;
    }

    /* 2. HERO CONTENT: Shifted further Right and Up */
    .hero-content {
        padding-top: 0 !important;      
        padding-left: 220px !important; /* MOVED RIGHT: Increased from 140px */
        padding-right: 40px !important;
        margin-left: 0 !important;
        margin-top: -80px !important;   /* Adjusted vertical lift */
        text-align: left !important;
        max-width: 1400px !important;   /* Widened for massive text */
        display: block !important;
        box-sizing: border-box !important;
    }

    /* 3. TYPOGRAPHY: Even larger font sizes */
    .hero-headline {
        font-size: 180px !important;    /* INCREASED A LOT (was 130px) */
        line-height: 0.85 !important;
        margin: 0 0 15px 0 !important;
        text-align: left !important;
    }

    .hero-subtitle p {
        font-size: 90px !important;     /* INCREASED A LOT (was 65px) */
        text-align: left !important;
        line-height: 1.0 !important; 
        margin: 0 !important;        
    }

    .hero-details p {
        font-size: 55px !important;     /* INCREASED (was 40px) */
        line-height: 1.1 !important;
        margin: 20px 0 0 0 !important; 
        text-align: left !important;
    }

    /* 4. TECH STACK: Re-aligned and sized */
    .hero-tech-stack p {
        font-size: 32px !important;     /* INCREASED (was 24px) */
        text-align: left !important;   
        margin-top: 60px !important;    
        margin-bottom: 0 !important;
        margin-left: 0 !important;     
    }

    /* 5. BUTTON: Scaled to match huge text */
    .hero-resume {
        margin-left: 0 !important;
        text-align: left !important;
        display: inline-block !important;
        
        /* Scaled up more to stay proportional to text */
        transform: scale(1.8) !important; 
        transform-origin: left top !important;
        
        margin-top: 10px !important;    
    }

    /* Enhanced Shadows for High-Impact Visibility */
    .hero-headline, 
    .hero-subtitle p, 
    .hero-details p, 
    .hero-tech-stack p {
        text-shadow: 0px 6px 30px rgba(0, 0, 0, 0.6) !important;
    }
}

/* =========================================
   IPHONE PORTRAIT ONLY (Standard & Max)
   ========================================= */
@media (max-width: 480px) and (orientation: portrait) {
    /* HEADER: Centered Logo + Hidden Side Links */
    nav { 
        padding: 0 15px !important; 
        height: 70px !important; 
    }
    
    .nav-left, .nav-right { 
        display: none !important; 
    }
    
    .nav-center {
        position: relative !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }
    
    #logo { 
        font-size: 26px !important; 
    }

    /* PROJECT CARDS: Rebalanced Proportions */
    .project-card {
        flex-direction: column !important; 
        height: auto !important;
        width: 92% !important; /* Slightly wider to give text more room */
        margin: 0 auto !important;
    }

    .card-image-wrapper {
        width: 100% !important; 
        height: 100px !important; /* Slightly taller for better framing */
    }

    /* SHRUNKEN CARD TEXT DETAILS */
    .card-details {
        width: 100% !important;
        padding: 12px 15px 18px 15px !important; /* Tightened padding */
        border-radius: 0 0 20px 20px !important; 
        box-sizing: border-box !important;
    }

    .card-details h3 {
        font-size: 15px !important; /* Shrunk title */
        margin-bottom: 2px !important;
        line-height: 1.2 !important;
    }

    .card-details .tech-stack {
        font-size: 7px !important; /* Shrunk tech labels */
        margin-bottom: 6px !important;
        letter-spacing: 0.5px !important;
    }

    .card-details .description {
        font-size: 9px !important; /* Shrunk description for readability */
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }

    .card-details .view-project {
        font-size: 11px !important; /* Shrunk link */
        padding-bottom: 1px !important;
    }

    /* HERO CONTENT */
    #hero-section .hero-content {
        padding-top: 120px !important;
        padding-left: 50% !important; 
        padding-right: 20px !important;
        align-items: flex-start !important;
        text-align: left !important;
    }

    .hero-headline { 
        font-size: 28px !important; 
        line-height: 1.1 !important; 
    }
    
    .hero-subtitle p { 
        font-size: 18px !important; 
    }
    
    .hero-details p { 
        font-size: 14px !important; 
    }
    
    .hero-tech-stack p { 
        font-size: 12px !important; 
    }

    /* Stronger text shadows for iPhone portrait */
    .hero-headline,
    .hero-subtitle p,
    .hero-details p,
    .hero-tech-stack p {
        text-shadow: 2px 2px 15px rgba(0, 0, 0, 1), 0px 0px 10px rgba(0, 0, 0, 0.8) !important;
    }

    /* FOOTER: Shrunken Horizontal Center with Socials */
    .slim-footer { 
        padding: 20px 0 !important; 
    }

    .footer-container { 
        flex-direction: column !important; 
        align-items: center !important;
        width: 100% !important;
        gap: 15px !important;
    }

    .footer-left { 
        display: none !important; 
    }

    .footer-nav { 
        position: static !important; 
        transform: none !important; 
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important; 
        gap: 20px !important; 
    }

    .footer-nav a {
        font-size: 12px !important; 
    }

    .footer-right { 
        display: flex !important;
        justify-content: center !important;
        gap: 20px !important; 
    }

    .footer-right .social-icon {
        width: 20px !important; 
        height: 20px !important;
    }
}
/* =========================================
   IPHONE LANDSCAPE (13 Pro Max & Standard)
   ========================================= */
@media (max-device-width: 932px) and (orientation: landscape) {

    /* 0. PARENT CONSTRAINTS: Forces full-bleed width */
    html, body {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }

    nav {
        height: 54px !important;
        padding: 0 14px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
        column-gap: 10px !important;
        align-items: center !important;
    }

    .nav-left,
    .nav-right {
        min-width: 0 !important;
        gap: 10px !important;
    }

    .nav-left {
        justify-content: flex-start !important;
    }

    .nav-right {
        justify-content: flex-end !important;
    }

    .nav-left a,
    .nav-right a {
        font-size: 11px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .nav-center {
        position: static !important;
        left: auto !important;
        transform: none !important;
        justify-self: center !important;
        width: auto !important;
        max-width: 34vw !important;
        height: auto !important;
        pointer-events: auto !important;
    }

    #logo {
        display: block !important;
        max-width: 100% !important;
        font-size: clamp(15px, 3.1vw, 22px) !important;
        line-height: 1 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .social-icon {
        width: 18px !important;
        height: 18px !important;
    }

    a[href*="linkedin"] .social-icon {
        top: -1px !important;
    }

    .dark-mode-toggle {
        padding: 0 !important;
    }

    .toggle-icon {
        width: 18px !important;
        height: 18px !important;
    }

    /* 1. FILL THE SCREEN: Fixes the gap on Pro Max */
    #hero-section {
        height: 100vh !important; 
        min-height: 100vh !important;
        width: 100vw !important; 
        background-position: center center !important;
        background-size: cover !important;
        background-attachment: scroll !important;
        position: relative !important;
        left: 0 !important;
    }

    /* 2. PC-STYLE TEXT LAYOUT: Updated padding and alignment */
    #hero-section .hero-content {
        padding-top: 120px !important; 
        padding-left: 45% !important; 
        padding-right: 40px !important;
        max-width: none !important;
        margin-left: 0 !important;
        display: block !important; 
        text-align: left !important;
    }

    .hero-headline { 
        font-size: 36px !important; 
        line-height: .9 !important; 
        font-weight: 590 !important;
        margin-bottom: 5px !important;
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6) !important; 
    }

    .hero-subtitle p { 
        font-size: 22px !important; 
        font-weight: 530 !important;
        word-spacing: 2px !important; 
        margin-top: 5px !important;
        margin-bottom: 5px !important;
        line-height: 1.1 !important;
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6) !important;
    }

    .hero-details p {
        font-size: 16px !important; 
        font-weight: 550 !important;
        line-height: 1.2 !important; 
        word-spacing: 2px !important; 
        margin-top: 10px !important;
        text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.6) !important;
    }

    .hero-tech-stack p {
        font-size: 12px !important; 
        font-weight: 600 !important;
        word-spacing: 2px !important;
        color: #ffffffd0 !important;
        margin-top: 1px !important; 
        text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.8) !important;
    }

    /* Resume Button: Scaled for screen height */
    .hero-resume { 
        transform: scale(0.65) !important; 
        transform-origin: left !important; 
        margin-top: 1px !important; 
    }

    /* PROJECT CARDS: Shrunk inner text for mobile landscape carousel */
    .card-details {
        padding: 15px 25px !important; /* Tighter padding for horizontal view */
    }

    .card-details h3 {
        font-size: 18px !important; 
        margin-bottom: 4px !important;
    }

    .card-details .tech-stack {
        font-size: 9px !important;
        margin-bottom: 8px !important;
    }

    .card-details .description {
        font-size: 12px !important; 
        line-height: 1.4 !important;
        margin-bottom: 12px !important;
    }

    /* Footer Clean-up */
    .footer-left { display: none !important; }
    .slim-footer { padding: 10px 20px !important; }
}
/* =========================================
   DARK MODE TOGGLE BUTTON (in navbar)
   ========================================= */

.dark-mode-toggle {
    background: none;
    border: none;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: opacity 0.3s ease, transform 0.3s ease;
    user-select: none;
    flex-shrink: 0;
}

.dark-mode-toggle:hover {
    opacity: 0.7;
    transform: rotate(15deg);
}

.toggle-icon {
    width: 26px;
    height: 26px;
    display: block;
    stroke: white;
    fill: none;
    transition: stroke 0.3s ease;
}

/* =========================================
   DARK MODE — SITE-WIDE STYLES
   ========================================= */

/* Applied when user toggles dark mode ON */
body.site-dark-mode {
    background-color: #0d0d0d;
    color: #f0f0f0;
}

/* --- HERO SECTION (index.html): no change needed — photo bg --- */

/* --- CONTENT SECTION (white cards → dark) --- */
body.site-dark-mode #content-section {
    background-color: #0d0d0d;
    color: #f0f0f0;
}

body.site-dark-mode .home-info-extension {
    background: #171717;
    border-top-color: rgba(255, 255, 255, 0.05);
    box-shadow:
        inset 0 18px 34px -38px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.site-dark-mode .home-info-title {
    color: #f0f0f0;
}

body.site-dark-mode .home-info-extension-continued {
    border-top-color: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

body.site-dark-mode .home-info-extension-white {
    background: #0d0d0d;
    border-top-color: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

body.site-dark-mode .experience-timeline::before {
    background: rgba(255, 255, 255, 0.18);
}

body.site-dark-mode .experience-node-list::before {
    background: rgba(255, 255, 255, 0.18);
}

body.site-dark-mode .experience-node {
    color: #aaa;
}

body.site-dark-mode .experience-node.is-active {
    color: #f0f0f0;
}

body.site-dark-mode .experience-node span {
    background: #60a5fa;
    border-color: #171717;
}

body.site-dark-mode .experience-card {
    background: rgba(26, 26, 26, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

body.site-dark-mode .experience-dot {
    background: #60a5fa;
    border-color: #171717;
}

body.site-dark-mode .experience-logo {
    background: #f0f0f0;
    color: #111;
}

body.site-dark-mode .experience-content h3,
body.site-dark-mode .experience-content h3 span,
body.site-dark-mode .experience-company,
body.site-dark-mode .experience-summary,
body.site-dark-mode .experience-points,
body.site-dark-mode .experience-highlight p {
    color: #f0f0f0;
}

body.site-dark-mode .experience-company {
    color: #aaa;
}

body.site-dark-mode .experience-meta {
    color: #aaa;
}

body.site-dark-mode .experience-meta span:first-child {
    color: #f0f0f0;
}

body.site-dark-mode .experience-stack span {
    color: #f0f0f0;
    background: #252525;
}

body.site-dark-mode .experience-skills > p,
body.site-dark-mode .experience-skill span {
    color: #f0f0f0;
}

body.site-dark-mode .experience-skills {
    background: rgba(32, 32, 32, 0.48);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

body.site-dark-mode .experience-skill strong {
    color: #93c5fd;
}

body.site-dark-mode .experience-skill i {
    background: #252525;
}

body.site-dark-mode .experience-highlight {
    background: rgba(96, 165, 250, 0.12);
    border-left-color: #60a5fa;
}

body.site-dark-mode .experience-highlight span,
body.site-dark-mode .experience-kicker {
    color: #93c5fd;
}

body.site-dark-mode .experience-metrics span {
    color: #bfdbfe;
    background: rgba(96, 165, 250, 0.14);
}

body.site-dark-mode .visual-window,
body.site-dark-mode .visual-panel,
body.site-dark-mode .visual-chart {
    background: #202020;
    border-color: rgba(255, 255, 255, 0.08);
}

body.site-dark-mode .visual-window {
    background: linear-gradient(145deg, #202020, #151515);
}

body.site-dark-mode .visual-bar {
    background: #333;
}

body.site-dark-mode .visual-panel-large {
    background:
        linear-gradient(90deg, rgba(96, 165, 250, 0.2) 0 22%, transparent 22%),
        repeating-linear-gradient(to bottom, #202020 0 18px, #2a2a2a 18px 20px);
}

body.site-dark-mode .content-headline p {
    color: #f0f0f0;
}

body.site-dark-mode .project-card {
    background-color: #1a1a1a;
}

body.site-dark-mode .card-details {
    border-color: rgba(255, 255, 255, 0.1);
    background-color: #1a1a1a;
}

body.site-dark-mode .card-details h3 {
    color: #f0f0f0;
}

body.site-dark-mode .tech-stack {
    color: #aaa;
}

body.site-dark-mode .description {
    color: #bbb;
}

body.site-dark-mode .view-project {
    color: #f0f0f0;
    border-bottom-color: #f0f0f0;
}

body.site-dark-mode .view-project:hover {
    color: #60a5fa;
    border-bottom-color: #60a5fa;
}

/* Carousel buttons */
body.site-dark-mode .carousel-btn {
    background-color: #1a1a1a;
    color: #f0f0f0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

body.site-dark-mode .carousel-btn:hover {
    background-color: #2a2a2a;
}

body.site-dark-mode .dot {
    background-color: #555;
}

body.site-dark-mode .dot.active {
    background-color: #f0f0f0;
}

/* --- FOOTER --- */
body.site-dark-mode .slim-footer {
    background-color: #0d0d0d;
    border-top-color: #222;
}

body.site-dark-mode .footer-logo-text {
    color: #f0f0f0;
}

body.site-dark-mode .footer-nav a {
    color: #aaa;
}

body.site-dark-mode .footer-nav a:hover {
    opacity: 0.5;
}

body.site-dark-mode .footer-right a {
    color: #f0f0f0;
}

/* --- ABOUT PAGE --- */
body.site-dark-mode .about-page-section {
    background: linear-gradient(to right, #0d0d0d 0%, #1a1a1a 100%);
}

body.site-dark-mode .about-text-container {
    background-color: #1a1a1a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

body.site-dark-mode .about-text-container h1 {
    color: #f0f0f0;
}

body.site-dark-mode .about-text-container p {
    color: #bbb;
}

body.site-dark-mode .hobbies-list li {
    background-color: #2a2a2a;
    color: #ddd;
}

body.site-dark-mode .about-resume-btn {
    background-color: #f0f0f0;
    color: #111;
}

body.site-dark-mode .about-resume-btn:hover {
    background-color: #ccc;
}

/* --- PORTFOLIO PAGE --- */
body.site-dark-mode .portfolio-page-section {
    background: linear-gradient(to right, #0d0d0d 0%, #1a1a1a 100%);
}

body.site-dark-mode .hero-title {
    color: #f0f0f0;
}

body.site-dark-mode .hero-desc {
    color: #bbb;
}

body.site-dark-mode .toggle-placeholder {
    color: #f0f0f0;
}

body.site-dark-mode .philosophy-text {
    color: #f0f0f0;
}

body.site-dark-mode .philosophy-label {
    color: #777;
}

body.site-dark-mode .philosophy-label::before,
body.site-dark-mode .philosophy-label::after {
    background-color: #333;
}

/* G-Cards */
body.site-dark-mode .g-card {
    background: #161616;
    border-color: #333;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.26);
}

body.site-dark-mode .g-card:hover {
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.36);
}

body.site-dark-mode .g-card-image {
    border-bottom-color: #333;
}

body.site-dark-mode .card-blue .g-card-body  { background-color: #161616; }
body.site-dark-mode .card-yellow .g-card-body { background-color: #2a1f00; }
body.site-dark-mode .card-red .g-card-body   { background-color: #2a0a09; }
body.site-dark-mode .card-green .g-card-body  { background-color: #0a2015; }

body.site-dark-mode .g-card-body h2 {
    color: #f0f0f0;
}

body.site-dark-mode .card-subtitle {
    color: #bbb;
}

body.site-dark-mode .g-card-tags span {
    background: #252525;
    color: #f0f0f0;
}

body.site-dark-mode .card-blue .g-btn {
    background: transparent;
    color: #60a5fa;
    border-color: #60a5fa;
}

body.site-dark-mode .card-blue .g-btn:hover {
    background: #60a5fa;
    color: #111;
}

/* cycle-overlay on portfolio hero image card */
body.site-dark-mode .cycle-overlay {
    background: #1a1a1a;
    color: #f0f0f0;
}

body.site-dark-mode .cycle-overlay h3 {
    color: #f0f0f0;
}

body.site-dark-mode .cycle-overlay p {
    color: #aaa;
}

/* Toggle icon stays white in both modes since nav is always dark */
body.site-dark-mode .dark-mode-toggle {
    color: #f0f0f0;
}

/* =========================================
   RESPONSIVE CONSISTENCY PASS
   ========================================= */

body {
    overflow-x: hidden;
}

img,
svg {
    max-width: 100%;
}

@media (min-width: 901px) and (max-width: 1366px) {
    .carousel-container {
        height: clamp(420px, 38vw, 500px) !important;
    }

    .carousel-track {
        height: 100% !important;
        overflow: visible !important;
        scroll-snap-type: none !important;
        transform: translateX(0);
    }

    .project-card {
        min-width: calc(100% - 24px) !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .carousel-dots {
        bottom: -50px !important;
    }

    .carousel-btn {
        top: 50% !important;
    }
}

@media (max-width: 1180px) {
    nav {
        height: 78px !important;
        padding-inline: 24px !important;
    }

    .nav-left,
    .nav-right {
        gap: 18px !important;
    }

    nav a {
        font-size: 15px !important;
    }

    #logo {
        font-size: clamp(24px, 2.4vw, 34px) !important;
        line-height: 1 !important;
    }

    #hero-section {
        height: clamp(620px, 82vh, 820px) !important;
        min-height: 0 !important;
        background-position: 32% center !important;
    }

    #hero-section .hero-content {
        width: min(52vw, 620px) !important;
        margin-left: auto !important;
        padding: 170px 36px 0 0 !important;
        box-sizing: border-box !important;
    }

    .hero-headline {
        font-size: clamp(48px, 6vw, 78px) !important;
        line-height: 0.95 !important;
        margin-left: 0 !important;
    }

    .hero-subtitle p {
        font-size: clamp(28px, 3.8vw, 42px) !important;
        margin-left: 0 !important;
    }

    .hero-details p {
        font-size: clamp(18px, 2vw, 24px) !important;
        margin-left: 0 !important;
    }

    .hero-tech-stack p {
        font-size: clamp(13px, 1.4vw, 16px) !important;
        margin-left: 0 !important;
    }

    .hero-resume {
        margin-left: 0 !important;
        transform: none !important;
    }

    #content-section,
    .home-info-extension {
        padding-inline: clamp(28px, 5vw, 60px) !important;
    }

    .experience-card {
        padding-right: clamp(380px, 40vw, 560px);
    }

    .experience-skills {
        right: 36px;
        width: clamp(320px, 34vw, 520px);
    }
}

@media (max-width: 900px) {
    nav {
        height: 72px !important;
        padding-inline: 18px !important;
    }

    .nav-left,
    .nav-right {
        gap: 14px !important;
    }

    .nav-left a,
    .nav-right a {
        font-size: 13px !important;
    }

    .nav-center {
        pointer-events: none;
    }

    #logo {
        font-size: clamp(22px, 4vw, 30px) !important;
    }

    #hero-section {
        height: auto !important;
        min-height: 680px !important;
        background-position: 28% center !important;
    }

    #hero-section .hero-content {
        width: 52% !important;
        margin-left: auto !important;
        padding: 132px 24px 64px 0 !important;
        display: block !important;
        text-align: left !important;
    }

    .hero-headline {
        font-size: clamp(34px, 7vw, 56px) !important;
    }

    .hero-subtitle p {
        font-size: clamp(24px, 4.7vw, 34px) !important;
    }

    .hero-details p {
        font-size: clamp(16px, 2.8vw, 21px) !important;
        line-height: 1.35 !important;
    }

    .hero-tech-stack p {
        font-size: clamp(12px, 2.2vw, 15px) !important;
    }

    #content-section {
        padding: 0 24px 72px !important;
    }

    .carousel-container {
        height: auto !important;
        min-height: 0 !important;
        padding-bottom: 42px;
    }

    .carousel-track {
        height: auto !important;
        align-items: stretch;
        gap: 16px !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .carousel-track::-webkit-scrollbar {
        display: none;
    }

    .project-card {
        min-width: min(88vw, 620px) !important;
        max-width: min(88vw, 620px) !important;
        min-height: 0;
        flex-direction: column !important;
        scroll-snap-align: center;
    }

    .card-image-wrapper {
        flex: none !important;
        width: 100% !important;
        height: clamp(180px, 34vw, 260px) !important;
    }

    .card-details {
        min-height: 260px;
        padding: 28px !important;
        border-radius: 0 0 20px 20px !important;
        border-left: 1px solid #11111144;
    }

    .card-details h3 {
        font-size: clamp(24px, 4vw, 32px) !important;
    }

    .description {
        font-size: clamp(14px, 2.4vw, 17px) !important;
        line-height: 1.55 !important;
    }

    .carousel-btn {
        width: 46px;
        height: 46px;
        top: calc(50% - 21px) !important;
    }

    .btn-left {
        left: -12px;
    }

    .btn-right {
        right: -12px;
    }

    .carousel-dots {
        bottom: 0 !important;
    }

    .experience-timeline {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 22px;
    }

    .experience-card,
    .experience-card-compact {
        min-height: 0;
        padding: 24px !important;
    }

    .experience-skills {
        position: static;
        width: auto;
        margin-top: 22px;
        transform: none;
    }

    .portfolio-page-section {
        padding-top: 96px;
    }

    .portfolio-hero {
        margin-bottom: 52px;
        gap: 30px;
    }

    .hero-title {
        font-size: clamp(3rem, 10vw, 5rem);
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    }

    .footer-container {
        gap: 24px;
    }

    .footer-nav {
        gap: 20px;
    }
}

@media (max-width: 640px) {
    nav {
        height: 68px !important;
        justify-content: center !important;
    }

    .nav-left,
    .nav-right {
        display: none !important;
    }

    .nav-center {
        position: static !important;
        transform: none !important;
        width: auto !important;
    }

    #hero-section {
        min-height: 620px !important;
        background-position: 24% center !important;
    }

    #hero-section .hero-content {
        width: 55% !important;
        padding: 110px 18px 48px 0 !important;
    }

    .hero-headline {
        font-size: clamp(28px, 8vw, 40px) !important;
    }

    .hero-subtitle p {
        font-size: clamp(18px, 5.5vw, 28px) !important;
    }

    .hero-details p {
        font-size: clamp(13px, 3.8vw, 16px) !important;
    }

    .hero-tech-stack p {
        font-size: 11px !important;
    }

    .hero-resume {
        font-size: 14px !important;
        padding: 12px 16px 12px 48px !important;
    }

    .btn-icon {
        width: 28px !important;
        height: 28px !important;
        left: 12px !important;
    }

    #content-section,
    .home-info-extension {
        padding-inline: 18px !important;
    }

    .content-headline p,
    .home-info-title {
        font-size: 22px;
    }

    .project-card {
        min-width: 100% !important;
        max-width: 100% !important;
    }

    .card-image-wrapper {
        height: 190px !important;
    }

    .card-details {
        min-height: 0;
        padding: 22px !important;
    }

    .card-details h3 {
        font-size: 23px !important;
    }

    .card-details .tech-stack {
        font-size: 9px !important;
        line-height: 1.4;
    }

    .card-details .description {
        font-size: 14px !important;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 26px;
    }

    .btn-left {
        left: -10px;
    }

    .btn-right {
        right: -10px;
    }

    .experience-node-list {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .experience-node-list::before {
        left: 10px;
        top: 14px;
        bottom: 14px;
        right: auto;
        width: 2px;
        height: auto;
    }

    .experience-node {
        min-height: 28px;
    }

    .experience-content h3 {
        font-size: 1.45rem !important;
    }

    .experience-summary,
    .experience-highlight p,
    .experience-skill span {
        font-size: 0.98rem;
    }

    .portfolio-page-section {
        padding-top: 88px;
        padding-bottom: 46px;
    }

    .portfolio-hero {
        text-align: left;
        margin-bottom: 42px;
    }

    .hero-left,
    .hero-right {
        min-width: 0;
        width: 100%;
    }

    .cycling-card {
        height: 240px;
    }

    .philosophy-container {
        margin-bottom: 40px;
    }

    .philosophy-text {
        font-size: 22px;
    }

    .g-card-image {
        height: 190px;
    }

    .slim-footer {
        padding: 22px 18px !important;
    }

    .footer-container {
        flex-direction: column;
        gap: 16px;
    }

    .footer-left,
    .footer-right {
        justify-content: center;
    }

    .footer-nav {
        position: static;
        transform: none;
        flex-wrap: wrap;
        gap: 14px;
    }

    .footer-nav a {
        width: auto;
        font-size: 14px;
    }
}

@media (max-width: 900px) and (orientation: landscape) {
    nav {
        height: 56px !important;
        padding-inline: 16px !important;
    }

    .nav-left,
    .nav-right {
        display: flex !important;
        gap: 12px !important;
    }

    .nav-left a,
    .nav-right a {
        font-size: 12px !important;
    }

    #logo {
        font-size: 22px !important;
    }

    #hero-section {
        min-height: 430px !important;
        height: auto !important;
        background-position: 35% center !important;
    }

    #hero-section .hero-content {
        width: 54% !important;
        padding: 78px 22px 34px 0 !important;
        margin-top: 0 !important;
    }

    .hero-headline {
        font-size: clamp(32px, 7vw, 52px) !important;
    }

    .hero-subtitle p {
        font-size: clamp(22px, 4.5vw, 34px) !important;
    }

    .hero-details p {
        font-size: clamp(14px, 2.8vw, 20px) !important;
    }

    .hero-tech-stack p {
        margin-top: 14px !important;
        font-size: 12px !important;
    }

    .hero-resume {
        transform: none !important;
        margin-top: 8px !important;
    }

    .carousel-container {
        padding-bottom: 34px;
    }

    .project-card {
        min-width: 82vw !important;
        max-width: 82vw !important;
        flex-direction: row !important;
    }

    .card-image-wrapper {
        width: 46% !important;
        height: auto !important;
        min-height: 300px;
    }

    .card-details {
        width: 54% !important;
        min-height: 300px;
        padding: 22px !important;
        border-radius: 0 20px 20px 0 !important;
    }

    .card-details h3 {
        font-size: 22px !important;
    }

    .description {
        font-size: 13px !important;
    }
}
