@font-face {
    font-family: "GADUGI";
    src: url("../font/GADUGI.TTF") format("woff2");
}

@font-face {
    font-family: "HELVETICANEUE";
    src: url("../font/HELVETICANEUE.TTF") format("woff2");
}

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

body {
    font-family: 'GADUGI', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    /* background-image: url("../image/background.jpg"); */
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    width: 100%;
    max-width: 100vw;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000; /* Black background for preloader */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it's on top of everything */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}


/* HTML: <div class="loader"></div> */
.loader {
  width: fit-content;
  font-size: 40px;
  font-family: "GADUGI", sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  color: #0000;
  --g:conic-gradient(#00ff88 0 0) no-repeat text;
  background: var(--g) 0,var(--g) 100%,var(--g) 0 0,var(--g) 0 100%;
  animation: l5 2s linear infinite;
}
.loader:before {
  content: "ZAPPA";
}
@keyframes l5 {
  0%,100%{background-size: 0   100%,0   100%,100% 0  ,100% 0  }
  50%    {background-size: 55% 100%,55% 100%,100% 0  ,100% 0  }
  50.01% {background-size: 0   100%,0   100%,100% 55%,100% 55%}
}


/* HTML: <div class="loader"></div> */
.loader-bar {
  width: calc(100px / cos(45deg));
  height: 6px;
  background: repeating-linear-gradient(-45deg,#00ff88 0 15px,#0000 0 20px) left/200% 100%;
  animation: l3 2s infinite linear;
  margin-top: 20px;
}
@keyframes l3 {
    100% {background-position:right}
}


/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 4px !important;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1002 !important;
    backdrop-filter: blur(10px);
    max-width: 100vw;
    overflow: hidden;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: none !important;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ff88 0%, #00cc6a 50%, #00ff88 100%);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    animation: progressGlow 3s ease-in-out infinite alternate;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@keyframes progressGlow {
    0% {
        box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
    }
    100% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.8), 0 0 40px rgba(0, 255, 136, 0.3);
    }
}



/* Header */
.header {
    position: fixed !important;
    top: 4px !important;
    left: 0 !important;
    width: 100% !important;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}

.nav-container {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.logo-icon {
    width: 40px;
    height: 100px;
    display: flex;
    align-items: center;
    margin-right: 10px;
}
.logo-icon img{
    width: 100%;
}
.logo span{
    letter-spacing: 3px;
    font-size: 22px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5rem;
    position: relative;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    display: block;
    opacity: 1;
    transform: none;
}

.nav-menu a:hover {
    color: #00ff88;
}

.nav-menu a.active {
    color: #00ff88;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #00ff88;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.mobile-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background-color: #00ff88;
}

.mobile-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background-color: #00ff88;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: url("../image/hero_banner1.png") no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

.gradient-sphere {
    width: 200px;
    height: 200px;
    background-image: url("../image/zappa_logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    overflow: hidden;
    opacity: 0.9;
    border-radius: 50%;
}

/* 添加發光效果 */
.gradient-sphere::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../image/zappa_logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: blur(20px);
  opacity: 0.3;
  z-index: -1;
}


/* 球體進場動畫 */
@keyframes sphereEntranceTL {
    from {
        transform: translate(-300px, -300px) scale(0);
        opacity: 0;
    }
    to {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
}

@keyframes sphereEntranceTR {
    from {
        transform: translate(300px, -300px) scale(0) rotate(0deg);
        opacity: 0;
    }
    to {
        transform: translate(0, 0) scale(1) rotate(100deg);
        opacity: 1;
    }
}

@keyframes sphereEntranceBR {
    from {
        transform: translate(300px, 300px) scale(0) rotate(0deg);
        opacity: 0;
    }
    to {
        transform: translate(0, 0) scale(1) rotate(100deg);
        opacity: 1;
    }
}

#sphere-tl {
    top: 150px;
    left: 140px;
    /* animation: sphereEntranceTL 1.2s 0.2s both; */
}

#sphere-tr {
    top: 150px;
    right: 340px;
    width: 130px;
    height: 130px;
    /* animation: sphereEntranceTR 1.2s 0.4s both; */
}

#sphere-br {
    bottom: -50px;
    right: 100px;
    width: 230px;
    height: 230px;
    /* animation: sphereEntranceBR 1.2s 0.7s both; */
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}



.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 2rem;
    pointer-events: auto;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(50px);
}

.hero-subtitle {
    font-size: 4.5rem;
    font-weight: 300;
    opacity: 0;
    transform: translateY(50px);
}






.hero .scroll-down-indicator {
    position: absolute;
    bottom: 70px; /* Adjust position as needed */
    left: 50%;
    transform: translateX(-50%);
    color: #00ff88ae;
    font-size: 2rem;
    animation: bounce 2s infinite;
    z-index: 10; /* Ensure it's above other background elements */
    background-color: rgba(0, 0, 0, 0.316);
    border-radius: 50%;
    width: 43px;
}


@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* Project Overview */
.project-overview {
    padding: 200px 0;
    background: url("../image/project_overview_banner.webp");
    position: relative;
    margin: 20px 0 30px 0;
    background-size: cover;
    background-position: center;
}

#particle-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind the content */
}

.project-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 0.4) 34%, transparent 50%);
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.project-text{
    z-index: 2;
    position: relative;
}
.project-text h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    font-weight: 300;
    opacity: 0;
    transform: translateX(-100px);
}

.project-text p {
    font-size: 1.43rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateX(-100px);text-align: left;
    min-height: 355px;
}


.cube-wireframe {
    width: 200px;
    height: 200px;
    border: 2px solid #00ff88;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 10s linear infinite;
}

.cube-wireframe::before,
.cube-wireframe::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #00ff88;
}

.cube-wireframe::before {
    transform: translateZ(100px);
}

.cube-wireframe::after {
    transform: translateZ(-100px);
}

@keyframes rotate {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

/* Brand Story */
.brand-story {
    padding: 200px 0;
    background: url("../image/brand_story_banner.webp") no-repeat center center;
    background-size: cover;
    position: relative;
    background-attachment: fixed;
}

.brand-content {
    max-width: 700px;
    margin: 0 auto;
}
.brand-title{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.brand-story h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0 3rem 1rem 0;
    position: relative;
    opacity: 0;
    transform: scale(0.8);
}

.brand-story h2::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 30px;
    background: #fff;
}


.brand-logo {
    width: 80px;
    display: flex;
    margin-left: 2rem;
    align-items: center;
    justify-content: center;
    padding-bottom: 2rem;
}

.brand-logo img{
    width: 100%;
}

.brand-story p {
    font-size: 1.43rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(50px);
    min-height: 220px;
}

/* Team Members */
.team-section {
    padding: 100px 0;
    background: #000;
}

.team-section h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 300;
    opacity: 0;
    transform: translateY(50px);
}


.team-swiper {
    position: relative;
    padding-bottom: 50px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
}

.swiper-pagination-bullet {
    background: #fff;
}

.swiper-pagination-bullet-active {
    background: #00ff88;
}

.swiper-button-next,
.swiper-button-prev {
    color: #00ff88;
}

.team-member {
    text-align: center;
    display: flex;
    flex-direction: column;
}
.member-info{
    text-align: left;
}

.member-role {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.member-name {
    font-size: 1.1rem;
    font-weight: 500;
}
.swiper-pagination{
    display: none;
}

/* Scenario Application */
.scenario-section {
    position: relative;
    padding-bottom: 10rem;
}

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

.scenario-section h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    font-weight: 300;
    position: absolute;
    text-align: left;
    top: 5%;
    left: 5%;
    opacity: 0;
    transform: scale(0.5) rotate(-10deg);
    z-index: 10;
}

.scenario-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}
.scenario-visual img{
    width: 100%;
}

.diamond {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #00ff88, #0088ff);
    transform: rotate(45deg);
    position: relative;
    animation: pulse 3s ease-in-out infinite;
}

.diamond::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
}

@keyframes pulse {

    0%,
    100% {
        transform: rotate(45deg) scale(1);
    }

    50% {
        transform: rotate(45deg) scale(1.1);
    }
}

.scenario-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.step-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(100px) scale(0.8);
}

.step-item {
    width: auto;
    min-width: 120px;
    padding: 8px 16px;
    font-size: 0.9rem;
    margin-bottom: 8px;
    background: transparent;
    color: #fff;
    transition: all 0.3s ease;
}

.step-icon {
    font-size: 3rem;
    color: #00ff88;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #00ff88;
}



.process-item {
    background: transparent;
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid #fff;
    transition: all 0.3s;
    cursor: pointer;
    min-width: 150px;
}

.process-item:hover {
    background: rgba(0, 255, 136, 0.2);
    transform: translateY(-5px);
}

.process-arrow {
    font-size: 1.5rem;
    color: #00ff88;
    position: relative;
    top: 6rem;
    opacity: 1;
    transform: scale(0) rotate(0deg);
}

/* Desktop: arrow points right (default) */
.process-arrow i {
    transform: rotate(0deg);
    color: #00ff88;
    transition: transform 0.3s ease;
}

.process-arrow:hover i {
    transform: scale(1.2) rotate(0deg);
}



.gradient-container {
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  z-index: -1;
}

.gradient-glow {
  position: absolute;
  width: 95%;
  height: 400px;
  left: 0;
  right: 0;
  bottom: -350px;
  margin: auto;
  border-radius: 100%;
  background: radial-gradient(
    ellipse at 30% 70%,
    rgba(64, 224, 208, 0.3) 0%,
    rgba(64, 224, 208, 0.4) 20%,
    rgba(72, 219, 185, 0.5) 35%,
    rgba(100, 200, 140, 0.5) 50%,
    rgba(154, 205, 50, 0.5) 65%,
    rgba(200, 220, 60, 0.2) 80%,
    rgba(200, 220, 60, 0) 100%
  );
  filter: blur(50px);
  transform: rotate(-10deg);
  transform-origin: center center;
}

/* 增加第二層光暈來加強效果 */
.gradient-glow::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at 25% 75%,
    rgba(64, 224, 208, 0.4) 0%,
    rgba(100, 200, 140, 0.3) 40%,
    rgba(200, 220, 60, 0.2) 70%,
    transparent 100%
  );
  filter: blur(60px);
}

/* 呼吸動畫效果 */
.gradient-glow {
  animation: breathe 8s ease-in-out infinite;
  transform-origin: center center;
}

.gradient-glow::after {
  animation: breathe-secondary 4s ease-in-out infinite;
  animation-delay: 0.7s;
}

@keyframes breathe {
  0%,
  100% {
    transform: rotate(0deg) scale(0.95);
    opacity: 1;
    filter: blur(40px);
  }
  50% {
    transform: rotate(0deg) scale(1.4);
    opacity: 1;
    filter: blur(50px);
  }
}

@keyframes breathe-secondary {
  0%,
  100% {
    transform: scale(1.1);
    opacity: 0.3;
  }
  50% {
    transform: scale(0.9);
    opacity: 0.5;
  }
}

/* Footer */
.footer {
    padding: 3rem 0;
    position: relative;
}

.footer-content {
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 2rem;
}

.footer-content > * {
    opacity: 0;
    transform: translateY(30px);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo span{
    font-size: 22px;
    letter-spacing: 2px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
    border-right: 1px solid #fff;
    padding-right: 2rem;
}

.footer-links a:last-child{
    border-right: none;
}

.footer-links a:hover {
    color: #00ff88;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #00ff88;
}
.swiper-button-next:after, .swiper-button-prev:after {
    color: #ccc;
    position: relative;
    bottom: 3rem;
}


@media (max-width: 1440px) {
    #sphere-tr{
        right: 4%;
    }

    #sphere-tl{
        left: 8%;
        width: 160px;
        height: 160px;
    }
}


/* Additional responsive fixes */
@media (max-width: 1024px) {


    .nav-container {
        padding: 0 3rem;
    }

    .nav-menu {
        gap: 3rem;
    }

    .scenario-steps {
        gap: 2rem;
    }

    .step-item {
        min-width: 110px;
        padding: 6px 14px;
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
}

/* Ensure desktop menu works properly */
@media (min-width: 769px) {
    .nav-menu {
        display: flex !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: auto !important;
        background: none !important;
        backdrop-filter: none !important;
        flex-direction: row !important;
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }

    .mobile-menu {
        display: none !important;
    }

    /* Desktop: ensure arrow points right */
    .process-arrow {
        transform: scale(1) rotate(0deg) !important;
    }

    .process-arrow i {
        transform: rotate(0deg) !important;
        transition: transform 0.3s ease;
    }

    .process-arrow:hover i {
        transform: scale(1.2) rotate(0deg) !important;
    }
}
/* Responsive Design */
@media (max-width: 768px) {
    * {
        max-width: 100vw;
        box-sizing: border-box;
    }

    /* Mobile header with animation support */
    .header {
        padding: 0.5rem 0;
        top: 4px !important;
        width: 100% !important;
        position: fixed !important;
        z-index: 1000 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: transform 0.3s ease-in-out !important;
        will-change: transform !important;
    }

    /* Force progress bar visibility on mobile - always visible */
    .scroll-progress-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 4px !important;
        z-index: 1002 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        -webkit-transform: none !important;
        pointer-events: none !important;
    }

    .scroll-progress-bar {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        -webkit-transform: none !important;
    }



    .nav-container {
        padding: 0 1rem;
        max-width: 100%;
        overflow: hidden;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-menu a {
        font-size: 18px;
        padding: 1rem 0;
        text-align: center;
    }

    .mobile-menu {
        display: flex;
    }

    .logo {
        flex-shrink: 0;
    }

    .logo-icon {
        height: 60px;
    }

    .logo span {
        font-size: 16px;
    }

    .hero {
        height: 100vh;
        padding: 0 1rem;
        margin-top: 0;
    }

    .hero-title,
    .hero-subtitle {
        font-size: 2.5rem;
    }

    #sphere-tr{
        right: -12%;
        top: 12px;
    }

    #sphere-tl{
        top: 130px;
        left: -20%;
        width: 160px;
        height: 160px;
    }

    #sphere-br{
        width: 205px;
        height: 205px;
        bottom: -70px;
        right: -50px;
    }



    .project-overview {
        padding: 100px 0;
    }

    .project-overview::before {
        background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
    }

    .project-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .project-text h2 {
        font-size: 2.5rem;
    }

    .brand-story {
        padding: 100px 0;
        background-attachment: unset;
    }

    .brand-story h2 {
        font-size: 2.5rem;
        display: block;
        text-align: center;
        margin-bottom: 2rem;
    }

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

    .team-section h2 {
        font-size: 2.5rem;
    }
    
    .swiper-pagination{
        display: block;
    }

    .scenario-section {
        padding-bottom: 5rem;
    }

    .scenario-section h2 {
        font-size: 2.5rem;
        text-align: center;
        margin-bottom: 2rem;
        position: relative;
        z-index: 10;
        position: absolute;
    }

    .scenario-steps {
        flex-direction: column;
        gap: 1rem;
    }

    .process-arrow {
        transform: scale(1) rotate(0deg) !important;
        top: 0;
        margin: 0.5rem 0;
    }

    /* Mobile: arrow points down */
    .process-arrow i {
        transform: rotate(90deg) !important;
        transition: transform 0.3s ease;
    }

    .process-arrow:hover i {
        transform: scale(1.2) rotate(90deg) !important;
    }

    .step-item {
        min-width: 90px;
        padding: 5px 10px;
        font-size: 0.8rem;
        margin-bottom: 6px;
    }

    .gradient-container {
        bottom: 0px;
    }

    .gradient-glow{
        width: 110%;
        height: 480px;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links a {
        border-right: none;
        padding-right: 0;
    }

    .footer-logo span {
        font-size: 18px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    .swiper-pagination {
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    * {
        max-width: 100vw;
        box-sizing: border-box;
    }

    /* Mobile header with animation support for small screens */
    .header {
        padding: 0.3rem 0;
        top: 4px !important;
        width: 100% !important;
        position: fixed !important;
        z-index: 1000 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        transition: transform 0.3s ease-in-out !important;
        will-change: transform !important;
    }

    /* Force progress bar visibility on small mobile - always visible */
    .scroll-progress-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 4px !important;
        z-index: 1002 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        -webkit-transform: none !important;
        pointer-events: none !important;
    }

    .scroll-progress-bar {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        -webkit-transform: none !important;
    }


    .nav-menu {
        top: 59px;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .hero-title,
    .hero-subtitle {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 0.5rem;
        max-width: 100%;
    }

    .logo-icon{
        width: 30px;
    }

    .footer-logo{
        gap: 0;
    }

    .project-overview {
        padding: 80px 0;
    }

    .project-overview::before {
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
    }

    .project-text h2 {
        font-size: 2rem;
    }

    .project-text p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .brand-story {
        padding: 80px 0;
    }

    .brand-story h2 {
        font-size: 2rem;
    }

    .brand-story p {
        font-size: 1rem;
        min-height: 300px;
        padding: 0 10px;
    }

    .team-section {
        padding: 80px 0;
    }

    .team-section h2 {
        font-size: 2rem;
    }

    .scenario-section {
        padding-bottom: 4rem;
    }

    .scenario-section h2 {
        font-size: 2rem;
        opacity: 1 !important;
        transform: none !important;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .scenario-visual img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .scenario-steps {
        gap: 1rem;
        padding: 0 1rem;
        width: 100%;
    }

    .process-item {
        min-width: 100px;
        padding: 6px 12px;
        font-size: 1rem;
    }

    .step-item {
        min-width: 80px;
        padding: 4px 8px;
        font-size: 0.7rem;
        margin-bottom: 4px;
    }

    .process-arrow {
        margin: 0.3rem 0;
        font-size: 1.2rem;
        transform: scale(1) rotate(0deg) !important;
    }

    /* Small mobile: ensure arrow points down */
    .process-arrow i {
        transform: rotate(90deg) !important;
        transition: transform 0.3s ease;
    }

    .process-arrow:hover i {
        transform: scale(1.2) rotate(90deg) !important;
    }

    .footer{
        padding: 2rem 0;
    }

    .footer-content {
        padding: 0 1rem;
    }

    .footer-logo span {
        font-size: 16px;
    }

    .footer-links a {
        font-size: 14px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    .swiper-pagination {
        bottom: 5px;
    }

    .nav-menu a {
        font-size: 16px;
        padding: 0.8rem 0;
    }
    .brand-story h2{
        padding: 0;
    }
    .brand-story h2::after{
        display: none;
    }
}

/* Ensure header and progress bar always visible */
.header,
.scroll-progress-container,
.scroll-progress-bar {
    will-change: auto !important;
}

/* Override any potential hiding styles */
.header:not(.hidden),
.scroll-progress-container:not(.hidden),
.scroll-progress-bar:not(.hidden) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    -webkit-transform: none !important;
}

/* Extra protection against mobile scroll hiding */
@media screen and (max-width: 768px) {
    .header {
        position: fixed !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transition: transform 0.3s ease-in-out !important;
        will-change: transform !important;
    }
    
    .scroll-progress-container,
    .scroll-progress-bar {
        position: fixed !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        -webkit-transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

/* Extra small screens */
@media (max-width: 320px) {


    .nav-container {
        padding: 0 0.3rem;
    }

    .hero-title,
    .hero-subtitle {
        font-size: 1.5rem;
    }

    .project-text h2,
    .brand-story h2,
    .team-section h2,
    .scenario-section h2 {
        font-size: 1.6rem;
    }

    .container {
        padding: 0 0.3rem;
    }

    .step-item {
        min-width: 70px;
        padding: 3px 6px;
        font-size: 0.6rem;
    }

    .process-item {
        min-width: 80px;
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-title,
    .hero-subtitle,
    .project-text h2,
    .project-text p,
    .brand-story h2,
    .brand-story p,
    .team-section h2,
    .scenario-section h2,
    .step-group,
    .process-arrow,
    .footer-content > * {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
    
    .brand-logo {
        animation: none !important;
    }
    
    .hero,
    .project-overview,
    .brand-story {
        background-attachment: scroll !important;
    }
}

/* Additional progress bar protection */
.scroll-progress-container,
.scroll-progress-bar {
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

/* Ensure progress bar is never hidden by any other CSS */
.scroll-progress-container:not([style*="display: none"]) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 4px !important;
    z-index: 1002 !important;
}

.scroll-progress-bar:not([style*="display: none"]) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: 100% !important;
}

/* Override any potential conflicting styles */
body .scroll-progress-container,
html .scroll-progress-container,
* .scroll-progress-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 4px !important;
    z-index: 1002 !important;
    transform: none !important;
    -webkit-transform: none !important;
}

body .scroll-progress-bar,
html .scroll-progress-bar,
* .scroll-progress-bar {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: 100% !important;
    transform: none !important;
    -webkit-transform: none !important;
}