/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* Smooth scrolling for all browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2a2a2a;
    overflow-x: hidden;
    background-color: #2C2C2C;
}

/* Global Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 700;
    line-height: 1.05;
}

h1 {
    font-size: 8rem;   /* 128px */
}

h2 {
    font-size: 5.625rem; /* 90px */
}

h3 {
    font-size: 4rem;   /* 64px */
}

h4 {
    font-size: 2.813rem; /* 45px */
}

h5 {
    font-size: 2rem;   /* 32px */
}

h6 {
    font-size: 1.4rem; /* 23px */
}

p {
    font-size: 1rem;   /* 16px */
}

.small-text {
    font-size: 0.68rem; /* 11px */
}

.mini-text {
    font-size: 0.5rem;  /* 8px */
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: #8FC8A7;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
}

/* Left Side Content */
.hero-left {
    flex: 1;
    z-index: 10;
    height: 100vh;
    padding: 5rem 0rem;
}

.logo-placeholder {
    margin-bottom: 4rem;
    height: 8rem;
}

.logo-placeholder svg {
height: 100%;
}

.hero-title {
    font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 7vw; /* 128px to match global h1 scale */
    font-weight: 800;
    line-height: 0.9;
    margin-bottom: 1rem;
    color: #3F3F3F;
}

.title-line {
    display: block;
}

.hero-taglines {
    margin-bottom: 2rem;
}

.tagline {
    font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size:2vw; /* 45px to match h4 scale */
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: #4a4a4a;
    opacity: 1;

}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 12rem;
}

.btn {
    font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    padding: 1rem 2rem;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%, 0 30%);
}

.btn-primary {
    background: #F3706A;
  color: white;
  border-radius: 0;
}

.btn-primary:hover {
    background: #f75f57;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #3f3f3f;
  color: #fff;
}

.btn-secondary:hover {
    background: #535353;
    color: #fff;
    transform: translateY(-2px);
}

/* Right Side Graphics */
.hero-right {
    flex: 1;
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 35%;
    
}

/* Vertical Marquee Column */
.hero-marquee-placeholder {
    position: absolute;
    right: 0;
    top: 0;
    height: 100vh;
    width: 20vw;
    opacity: 1;
    z-index: 1;
    overflow: hidden;
}

.hero-marquee-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    animation: hero-vertical-marquee 25s linear infinite;
    gap: 30px;
}

.hero-marquee-placeholder svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-marquee-svg {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.hero-marquee-fade {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 2; /* above marquee track */
    background: linear-gradient( to bottom, rgba(136, 216, 163, 0) 21%, rgb(143, 200, 167) 69% )
}

@keyframes hero-vertical-marquee {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

/* Decorative Blob */
.decorative-blob {
    position: absolute;
    top: -10rem;
  right: -10rem;
    opacity: 1;
    transform: scale(0.5);
    z-index: 0;
}

/* Multi-layer SVG Container */
.layered-svg-container {
    position: absolute;
    bottom: 0%;
    right: 10%;
    width: 15rem;
    height: 15rem;
    z-index: 1;
}

.hero-ill-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transform-origin: center;
}

/* Dark Sections */
.dark-section {
    background: transparent;
    color: white;
}

/* Section 2: Focus Sticky Story */
.focus-section {
    position: relative;
    background: #2c2c2c;
    color: #ffffff;
    min-height: 250vh; /* gives room for scroll while inner is sticky */
    display: block;
}

.focus-inner {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.focus-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 0 2rem;
    text-align: center;
}

.focus-headline {
    font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 3.5vw;
    font-weight: bold;
    line-height: 1.3;
}

.focus-graphic {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0.1;
}

.focus-graphic svg {
    width: min(40vw, 360px);
    height: auto;
}

.focus-svg,
.focus-svg .circ.border,
.focus-svg .white.circ {
    transform-origin: center;
    transform-box: fill-box;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        padding: 0 2rem;
    }
    
    /* .decorative-blob {
        right: 0;
        top: 0;
        transform: scale(0.5);
    } */
    
    .layered-svg-container {
        right: 5%;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 100vh;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding: 0rem 1rem;
        justify-content: center;
    }
    
    .hero-left {
        max-width: 100%;
        padding-bottom: 2rem;
    }
    
    .hero-right {
        position: relative;
        height: 300px;
        width: 100%;
        flex: none;
        transform: translateY(50%);
    }

    .hero-title {
        font-size: 4rem;
    line-height: 5rem;
    }

    .tagline {
        font-size: 1.5rem;
    }
    
    .hero-marquee-placeholder {
        display: none;
    }
    
    .decorative-blob {
        top: -34%;
    right: -30%;
    transform: scale(1);
    }
    
    .layered-svg-container {
        left: unset;
  right: unset;
  width: 100%;
  height: 100%;
  bottom: unset;
  display: flex;
  justify-content: center;
  align-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .btn {
        /* padding: 0.8rem 1.5rem; */
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: 0rem 1rem;
    }
    
    .logo-placeholder {
        margin-bottom: 2rem;
    }
    
    .hero-taglines {
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        /* width: 100%; */
        max-width: 250px;
    }
}

/* (Animations removed: no will-change or global transitions to keep elements static) */




/* new code for  */
/* Section 3: Services Scroll (scoped) */
.services-section {
    background: transparent;
    color: #fff;
  }
  
  /* Tall track defines scroll distance */
  .service-scroll-track {
    height: 600vh; /* Increased for 11 services */
    position: relative;
  }
  
  /* Sticky viewport */
  .service-sticky-viewport {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
  
    /* helps with layering */
    isolation: isolate;
  }
  
  /* Left titles - 50% */
  .titles-container {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    position: relative;
    z-index: 3;
    
  }
  
  .service-title {
    position: absolute;
    left: 0;
    font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: clamp(2.5rem, 4vw, 2.5rem);
    font-weight: 700;
    white-space: nowrap;
    transform-origin: left center;
    will-change: transform, opacity;
    color: white;
    transition: color 0.3s ease, opacity 0.3s ease;
    text-wrap: wrap;
    cursor: pointer;
    user-select: none;
  }
  
  .service-title:hover {
    opacity: 0.8;
  }
  
  .service-title.active {
    color: #8FC8A6;
  }
  
  .service-title.active:hover {
    opacity: 1;
  }
  
  /* Right details - 50% */
  .details-container {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    position: relative;
    z-index: 3;
    padding-left: 4rem;
  }
  
  .service-details {
    position: absolute;
    right: none;
    text-align: left;
    width: 100%;
    max-width: 700px;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }
  
  .service-details.active {
    opacity: 1;
    transform: translateX(0);
  }
  
  .service-details p {
    font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 500;
    margin: 1rem 0;
    opacity: 0.9;
    line-height: 1.4;
    position: relative;
    padding-left: 1.5rem;
  }
  
  .service-details p::before {
    content: '–';
    position: absolute;
    left: 0;
    color: #8FC8A6;
    font-weight: 700;
  }
  
  /* Mobile tweaks */
  @media (max-width: 968px) {
    .service-sticky-viewport {
      flex-direction: column;
      padding: 2rem;
      justify-content: center;
      gap: 3rem;
    }
    
    .titles-container {
      flex: none;
      width: 100%;
      justify-content: center;
    }
  
    .service-title {
      position: relative;
      left: auto;
      font-size: clamp(2rem, 6vw, 3rem);
      text-align: center;
    }
  
    .details-container {
      flex: none;
      width: 100%;
      justify-content: center;
      padding-left: 0;
    }
    
    .service-details {
      position: relative;
      right: auto;
      text-align: center;
      max-width: 100%;
    }
    
    .service-details p {
      font-size: clamp(1rem, 3vw, 1.4rem);
    }

    
  }
  

/* ========================================
   PROJECTS SECTION - Slide-Up Image Reveal
   ======================================== */

.projects-section {
    background-color: transparent;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.projects-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image container - positioned absolutely, centered, BEHIND text */
.projects-image-container {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 674px;
    height: 345px;
    overflow: hidden;
    z-index: 0;
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%, 0 28%);
    
    /* Initial state: hidden, skewed left */
    opacity: 0;
    transform: translate(-50%, -50%) skewX(-20deg) translateX(-50px);
    
    /* Transition on all transform and opacity changes */
    transition: opacity 0.6s cubic-bezier(0.43, 0.13, 0.23, 0.96),
                transform 0.6s cubic-bezier(0.43, 0.13, 0.23, 0.96);
    will-change: transform, opacity;
}

/* Active state: visible, no skew, centered */
.projects-image-container.active {
    opacity: 1;
    transform: translate(-50%, -50%) skewX(0deg) translateX(0);
}

/* Exit state: hidden, skewed right */
.projects-image-container.exit {
    opacity: 0;
    transform: translate(-50%, -50%) skewX(20deg) translateX(50px);
}

/* The actual image inside container */
.projects-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Dark overlay on image for text readability */
.projects-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

/* Projects list - in front of images */
.projects-list {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 936px;
    display: flex;
    flex-wrap: wrap;
    gap: 37px 16px;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
}

/* Project title styling */
.project-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    transition: opacity 0.3s ease;
    position: relative;
}

.project-title.active {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.project-title:hover {
    opacity: 0.8;
}

/* Separator dot */
.project-separator {
    width: 8px;
    height: 8px;
    background-color: #8fc8a7;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Hide separator on last item */
.project-item:last-child .project-separator {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .projects-image-container {
        width: 500px;
        height: 280px;
    }
    .projects-list {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .projects-container {
        flex-direction: column;
        padding: 40px 20px;
    }
    
    .projects-image-container {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        width: 100%;
        height: 250px;
        margin-bottom: 40px;
        /* Reset transforms for mobile */
        opacity: 0;
        transform: skewX(-20deg) translateX(-50px);
    }
    
    .projects-image-container.active {
        opacity: 1;
        transform: skewX(0deg) translateX(0);
    }
    
    .projects-image-container.exit {
        opacity: 0;
        transform: skewX(20deg) translateX(50px);
    }
    
    .projects-list {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .project-separator {
        display: none;
    }
    
    .project-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .projects-image-container {
        height: 200px;
    }
    .project-title {
        font-size: 18px;
    }
}


/* ========================================
   HORIZONTAL MARQUEE
   ======================================== */

.horizontal-marquee {
    width: 100%;
    /* height: 150px; */
    overflow: hidden;
    position: relative;
    background-color: transparent;
    display: flex;
    align-items: center;
}

.horizontal-marquee-track {
    display: flex;
    align-items: center;
    gap: 0;
    animation: marqueeScrollHorizontal 20s linear infinite;
    will-change: transform;
    gap: 2rem;
}

.horizontal-marquee-svg {
    height: 20rem;
    width: auto;
    flex-shrink: 0;
    opacity: 1;
}

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

/* Responsive adjustments for horizontal marquee */
@media (max-width: 768px) {
    .horizontal-marquee {
        height: 100px;
    }
    
    .horizontal-marquee-svg {
        height: 60px;
    }
    
    .horizontal-marquee-track {
        animation-duration: 15s;
    }

}

@media (max-width: 480px) {
    .horizontal-marquee {
        height: 80px;
    }
    
    .horizontal-marquee-svg {
        height: 50px;
    }
}


/* Scoped Styles for Kun-tact Us Section */
#kun-tact-us-section {
    /* Reset & Base Styles specifically for this section */
    box-sizing: border-box;
    background-color: #2c2c2c;
    font-family: 'Space Grotesk', sans-serif;
    color: white;
    width: 100%;
    overflow: hidden; /* Prevent horizontal scroll within the section */
    padding: 0;
    margin: 0;
    line-height: 1.5;
}

#kun-tact-us-section * {
    box-sizing: border-box;
}

#kun-tact-us-section a {
    text-decoration: none;
    color: inherit;
}

/* Container */
#kun-tact-us-section .kun-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Header */
#kun-tact-us-section .kun-header-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

#kun-tact-us-section .kun-header-svg {
    width: 100%;
    max-width: 1440px;
    height: auto;
    overflow: visible;
    user-select: none;
}

#kun-tact-us-section .kun-header-svg text {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    fill: none;
    stroke: url(#kunHeaderGradient); /* Renamed ID to avoid conflicts */
    stroke-width: 2px;
    letter-spacing: -5px;
}

/* Dashed Line */
#kun-tact-us-section .kun-dashed-line-container {
    width: 100%;
    height: 1px;
    position: relative;
    margin-bottom: 48px;
}

#kun-tact-us-section .kun-dashed-line-svg {
    width: 100%;
    height: 2px;
    position: absolute;
    top: 0;
    left: 0;
}

#kun-tact-us-section .kun-dashed-line-svg line {
    stroke-width: 1px;
    stroke-dasharray: 4 4;
}

/* Main Content Wrapper */
#kun-tact-us-section .kun-content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    margin-bottom: 1rem;
}

/* Contact Info (Left Column) */
#kun-tact-us-section .kun-contact-info {
    flex: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center; /* Center on mobile */
    /* padding-top: 40px; */
    justify-content: center;
}

#kun-tact-us-section .kun-contact-link {
    font-size: 40px;
    font-weight: 700;
    text-decoration: underline;
    transition: opacity 0.2s;
    white-space: nowrap;
    display: block;
}

#kun-tact-us-section .kun-contact-link:hover {
    opacity: 0.8;
    color: #F3706A;
}

/* Graphic Area (Right Column) */
#kun-tact-us-section .kun-graphic-container {
    flex: 1;
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
    min-height: 400px;
}

#kun-tact-us-section .kun-graphic-scaler {
    /* Scaling wrapper for responsiveness */
    transform: scale(0.5); /* Mobile default */
    transform-origin: top center;
    width: 600px;
    height: 600px;
}

/* Graphic Composition Box */
#kun-tact-us-section .kun-graphic-box {
    position: relative;
    width: 600px;
    height: 600px;
}

/* SVG Layers */
#kun-tact-us-section .kun-layer {
    position: absolute;
    top: 0;
    left: 0;
}

#kun-tact-us-section .kun-layer svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Layer Specific Positioning & Sizing */
#kun-tact-us-section .kun-layer-dashed-bg {
    left: 0px;
    top: 123px;
    width: 678px;
    height: 422px;
    opacity: 0.4;
}

#kun-tact-us-section .kun-path-dashed {
    fill: none;
    stroke: white;
    stroke-width: 2.01;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 6.29 6.29;
}

#kun-tact-us-section .kun-layer-green-shape {
    left: 150px;
    top: 0px;
    width: 248px;
    height: 492px;
}

#kun-tact-us-section .kun-layer-circle-graphic {
    left: 44px;
    top: 124px;
    width: 249px;
    height: 249px;
}

#kun-tact-us-section .kun-path-dashed-small {
    stroke-width: 1.49;
    stroke-dasharray: 7.44 7.44;
    stroke-miterlimit: 10;
}

#kun-tact-us-section .kun-layer-small-graphic {
    left: 263px;
    top: 352px;
    width: 62px;
    height: 81px;
}

/* Footer */
#kun-tact-us-section .kun-footer {
    width: 100%;
    text-align: center;
    padding: 32px 0;
    margin-top: auto;
    opacity: 0.8;
    font-size: 14px;
}

.kunHeaderGradient {
    background: linear-gradient(to right, #F3706A 0%, #8EC8A6 64%, #8EC8A6 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

/* Desktop Responsiveness */
@media (min-width: 768px) {
    #kun-tact-us-section .kun-container {
        padding: 0 64px;
    }
    
    #kun-tact-us-section .kun-header-container {
        padding: 64px 0;
    }

    #kun-tact-us-section .kun-contact-link {
        font-size: 2rem;
    }

    #kun-tact-us-section .kun-dashed-line-container {
        margin-bottom: 80px;
    }

    #kun-tact-us-section .kun-graphic-scaler {
        transform: scale(0.75);
    }
    
    #kun-tact-us-section .kun-footer {
        font-size: 16px;
    }

}

@media (min-width: 1024px) {
    #kun-tact-us-section .kun-content-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 80px;
    }

    #kun-tact-us-section .kun-contact-info {
        align-items: flex-start; /* Left align on desktop */
        /* padding-top: 80px; */
    }

    #kun-tact-us-section .kun-graphic-container {
        justify-content: flex-end;
    }

    #kun-tact-us-section .kun-graphic-scaler {
        transform: scale(1);
        transform-origin: top right;
    }
}



/* ========================================
   LARGE SCREENS (1900px+)
   ======================================== */

@media (min-width: 1900px) {
    /* Focus section content - increase max-width */
    .focus-content {
        max-width: 1400px;
    }
    
    /* Project titles - increase font size */
    .project-title {
        font-size: 2.2rem;
    }
}



/* ========================================
   KUN Fixed Navigation
   ======================================== */

.kun-fixed-nav {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate3d(-50%, 150%, 0); /* hidden (down) */
    transition: transform 350ms cubic-bezier(.2,.7,.2,1);
  will-change: transform;
  z-index: 9999;
  pointer-events: none; /* Allow clicks to pass through empty areas */
}

.kun-nav-desktop.is-visible{
  transform: translate(-50%, 0);
}

.kun-nav-mobile.is-visible{
  transform: translate(-50%, 0);
}

/* Hide mobile nav on desktop */
.kun-nav-mobile {
  display: none;
}

/* Show mobile nav, hide desktop nav on mobile */
@media (max-width: 968px) {
  .kun-nav-desktop {
    display: none;
  }
  
  .kun-nav-mobile {
    display: block;
  }
}



.kun-nav-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  background: #ffffff;
  border-radius: 50px;
  padding: 8px 24px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  pointer-events: auto;
}

.kun-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  pointer-events: auto;
  transition: transform 0.2s ease;
}

.kun-logo-link:hover {
  transform: scale(1.05);
}

.kun-logo-link svg {
  width: 40px;
  height: auto;
  display: block;
}

.kun-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.kun-nav-link {
  position: relative;
  z-index: 2;
  text-decoration: none;
  color: #333333;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 30px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.kun-nav-link:hover {
  color: #000000;
}

.kun-active-indicator {
  position: absolute;
  height: calc(100% - 4px);
  background-color: #8BC9A9;
  border-radius: 30px;
  z-index: 1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  top: 2px;
  left: 0;
  opacity: 0;
}

.kun-active-indicator.kun-visible {
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .kun-fixed-nav {
    bottom: 25px;
  }
  
  .kun-nav-inner {
    gap: 20px;
    padding: 10px 20px;
  }
  
  .kun-logo-link svg {
    width: 36px;
  }
  
  .kun-nav-link {
    font-size: 14px;
    padding: 4px 8px;
  }

  .focus-content {
    padding: 0 1rem;
  }
  .focus-headline {
    font-size: 9vw;
  }

  #kun-tact-us-section .kun-header-svg text {
        font-size: 16rem;
    }

    #kun-tact-us-section .kun-contact-info {
        padding-top: 0;
        display: flex;
        flex-direction: column;
    }

    .kunHeaderGradient {
        font-size: 9vw;
    }

    #kun-tact-us-section .kun-contact-link {
        font-size: 8vw;
    }
}

@media (max-width: 1500px) {
    .titles-container {
        transform: translateX(-10%);
    }
}


/* KUN Fixed Navigation - Self-contained styles */


/* ========================================
   MOBILE SECTIONS - Services & Projects
   ======================================== */

/* Hide mobile sections on desktop */
.services-mobile,
.projects-mobile {
    display: none;
}

/* Show mobile, hide desktop on mobile */
@media (max-width: 968px) {
    .services-desktop,
    .projects-desktop {
        display: none !important;
    }
    
    .services-mobile,
    .projects-mobile {
        display: block;
    }

    .hide-on-mobile {
    display: none !important;
}

#kun-tact-us-section {
    margin-bottom: 5rem;
}

}

@media (min-width: 968px) {
       .hide-on-desktop {
    display: none !important;
}
}

/* Section Title (shared) */
.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 3rem;
    text-align: center;
}

/* ========================================
   SERVICES MOBILE - Accordion
   ======================================== */

.services-mobile {
    background-color: transparent;
    padding: 4rem 2rem;
    min-height: 100vh;
    overflow: hidden;
}

.services-mobile-container {
    max-width: 800px;
    margin: 0 auto;
}

.service-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-accordion-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0px;
    overflow: hidden;
    opacity: 0;
    transform: translateX(50px);
}

.service-accordion-item.visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease;
}

.service-accordion-header:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.service-accordion-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    color: white;
    flex: 1;
    padding-right: 1rem;
}

.service-accordion-icon {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: #8FC8A6;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.service-accordion-item.active .service-accordion-icon {
    transform: rotate(45deg);
}

.service-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.service-accordion-item.active .service-accordion-content {
    max-height: 1000px;
    padding: 0 1.5rem 1.5rem;
}

.service-accordion-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-accordion-list li {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.service-accordion-list li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: #8FC8A6;
    font-weight: 700;
}

/* ========================================
   PROJECTS MOBILE - Cards
   ======================================== */

.projects-mobile {
    background-color: transparent;
    padding: 4rem 2rem;
    min-height: 100vh;
}

.projects-mobile-container {
    max-width: 1200px;
    margin: 0 auto;
}

.projects-mobile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.project-card {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%, 0 15%);
    text-decoration: none;
    display: block;
    opacity: 0;
    transform: translateX(-50px);
    transition: transform 0.3s ease;
}

.project-card.visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.project-card:hover {
    transform: translateX(0) scale(1.02);
}


.project-card img {
height: 100%;
width: 100%;
object-fit: cover;
transition: all .5s ease-in-out;
}
.project-card:hover img {
    transform: scale(1.1);
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    z-index: 1;
}

.project-card-title {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: white;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    z-index: 2;
    line-height: 1.2;
}

.link-style-reset {
    text-decoration: none;
}

/* Responsive adjustments for mobile sections */
@media (max-width: 640px) {
    .services-mobile,
    .projects-mobile {
        padding: 3rem 1rem;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .service-accordion-header {
        padding: 1rem;
    }
    
    .service-accordion-item.active .service-accordion-content {
        padding: 0 1rem 1rem;
    }
    
    .project-card-title {
        bottom: 1.5rem;
        left: 1.5rem;
        right: 1.5rem;
    }
}

/* flip text  */
.flip{
  position: relative;
  display: inline-block;
  perspective: 900px;
  width: 100%;
  height: 2.2em;
  line-height: 2.2em;
  overflow: hidden;            /* hides slide in/out */
  margin: 1rem 0rem;
}

.flip .step{
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-100%) rotateX(-90deg); /* default: above + tipped */
  transition:
    transform 700ms cubic-bezier(.2,.7,.2,1),
    opacity 700ms cubic-bezier(.2,.7,.2,1);
  will-change: transform, opacity;
}

.flip .step.is-active{
  opacity: 1;
  visibility: visible;
  transform: translateY(0) rotateX(0);
}

.flip .step.is-leaving{
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%) rotateX(90deg);  /* leave: go down + tip away */
}