/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #2d5a3d;
    --light-green: #4a7c59;
    --gold: #d4af37;
    --white: #ffffff;
    --black: #1a1a1a;
    --gray: #f5f5f5;
    --dark-gray: #333333;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--black);
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.15s ease-out;
}

/* Torch Light Effect - Fixed */
.torch-light {
    position: fixed;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, 
        rgba(255,255,255,0.3) 0%, 
        rgba(255,255,255,0.15) 25%, 
        rgba(200,200,200,0.1) 50%, 
        rgba(150,150,150,0.05) 70%, 
        rgba(120,120,120,0.03) 85%, 
        rgba(100,100,100,0.01) 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translate(-50%, -50%);
    filter: blur(3px);
}

/* Loading Screen */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 10000;
    transition: opacity 1s ease, visibility 1s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

/* GIF Container */
.gif-container {
    width: 300px;
    height: 200px;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.loading-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Loader Text */
.loader-text {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-green);
    text-align: center;
}

.main-text {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.3rem;
    margin-bottom: 0.5rem;
}

.main-text span {
    display: inline-block;
    animation: letterBounce 0.6s ease-out forwards;
    opacity: 0;
}

.main-text span:nth-child(1) { animation-delay: 0.1s; }
.main-text span:nth-child(2) { animation-delay: 0.2s; }
.main-text span:nth-child(3) { animation-delay: 0.3s; }
.main-text span:nth-child(4) { animation-delay: 0.4s; }
.main-text span:nth-child(5) { animation-delay: 0.5s; }
.main-text span:nth-child(6) { animation-delay: 0.6s; }
.main-text span:nth-child(7) { animation-delay: 0.7s; }

@keyframes letterBounce {
    from { opacity: 0; transform: translateY(-20px) rotateZ(15deg); }
    to { opacity: 1; transform: translateY(0) rotateZ(0deg); }
}

.sub-text {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.2rem;
    color: var(--gold);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.5s forwards;
}

.progress-bar {
    width: 300px;
    height: 6px;
    background: rgba(45, 90, 61, 0.2);
    border-radius: 3px;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), var(--gold));
    width: 0%;
    animation: progressFill 4s ease-out 1s forwards;
}

@keyframes progressFill {
    to { width: 100%; }
}

.progress-text {
    font-size: 0.9rem;
    color: var(--dark-gray);
    opacity: 0;
    animation: fadeInUp 1s ease-out 2s forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: var(--shadow);
}

.navbar.scrolled .nav-link,
.navbar.scrolled .logo-text,
.navbar.scrolled .logo-sub {
    color: var(--black);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles - Add this to your existing nav-logo section in styles.css */

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.logo-image {
    height: 78px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: brightness(1.1);
}

.navbar.scrolled .logo-image {
    height: 40px;
    filter: brightness(0.9);
}

.logo-text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--light-green);
    transition: var(--transition);
    line-height: 1;
}

.logo-sub {
    font-family: 'Poppins', sans-serif;
    font-size: 0.6rem;
    font-weight: 300;
    color: var(--light-green);
    letter-spacing: 0.25rem;
    transition: var(--transition);
    margin-top: -2px;
}

.navbar.scrolled .nav-link,
.navbar.scrolled .logo-text,
.navbar.scrolled .logo-sub {
    color: var(--black);
}

/* Logo hover effect */
.nav-logo:hover .logo-image {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.nav-logo:hover .logo-text {
    color: var(--gold);
}

.nav-logo:hover .logo-sub {
    color: var(--gold);
    letter-spacing: 0.3rem;
}

/* Mobile responsive for logo */
@media (max-width: 768px) {
    .logo-image {
        height: 35px;
    }
    
    .navbar.scrolled .logo-image {
        height: 32px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .logo-sub {
        font-size: 0.5rem;
        letter-spacing: 0.15rem;
    }
    
    .nav-logo {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 30px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .logo-sub {
        font-size: 0.45rem;
        letter-spacing: 0.1rem;
    }
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--light-green);
    transition: var(--transition);
}

.logo-sub {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 300;
    color: var(--light-green);
    letter-spacing: 0.3rem;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    
}

.nav-link {
    color: var(--light-green);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    cursor: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--light-green);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section with Torch Effect */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent; /* Add this line */
}

.hero-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.sketch-image, .color-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sketch-image {
    z-index: 2;
    background: url('sketch-image.png') center/cover no-repeat;
}

.color-image {
    z-index: 3;
    clip-path: circle(0px at 50% 50%);
    transition: clip-path 0.3s ease, filter 0.3s ease;
    filter: blur(0.5px);
    mask: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), black 60%, rgba(0,0,0,0.8) 80%, transparent 100%);
}

.torch-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 3;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 4;
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    color: var(--white);
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 800;
  line-height: 0.9;
  margin-bottom: 1rem;
  
  /* This is the color of the text on top */
  color: #9da89e; 
  -webkit-text-stroke: 0.px rgb(255, 255, 255);

  /* Syntax: [X-offset] [Y-offset] [Blur-Radius] [Color] */
  text-shadow: 
    /* The large, expanded black background */
    -2px -2px 7px rgb(237, 238, 237), /* Top-left */
     2px -2px 7px rgb(255, 255, 255), /* Top-right */
    -2px  2px 7px rgb(255, 255, 255), /* Bottom-left */
     2px  2px 7px rgb(255, 255, 255), /* Bottom-right */

    /* An optional, softer drop shadow for depth */
    -2px 4px 5px rgba(0, 0, 0, 0.5);
}

.title-line {
    display: block;
    transform: translateY(100%);
    animation: slideUp 1s ease-out forwards;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes slideUp {
    to { transform: translateY(0); }
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0;
    color: #404e3f;
    animation: fadeInUp 1s ease-out 0.5s forwards;
    text-shadow: 3px 3px 5px rgba(255, 255, 255, 0.485);
}

.cta-button {
    position: relative;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--light-green);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: none;
    overflow: hidden;
    transition: var(--transition);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

.button-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transition: var(--transition);
    z-index: -1;
}

.cta-button:hover .button-bg {
    left: 0;
}

.cta-button:hover {
    color: var(--black);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light-green);
    font-size: 0.9rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.2s forwards;
    z-index: 5;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: var(--gold);
    margin-bottom: 0.5rem;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.2rem;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--primary-green);
    margin: 0.5rem 0;
}

.title-line-draw {
    width: 100px;
    height: 3px;
    background: var(--gold);
    margin: 1rem auto;
    position: relative;
    overflow: hidden;
}

.title-line-draw::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-green);
    animation: lineDraw 1s ease-out forwards;
}

@keyframes lineDraw {
    to {
        left: 100%;
    }
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    opacity: 0;
    transform: translateX(-50px);
    transition: var(--transition);
}

.about-text.animate {
    opacity: 1;
    transform: translateX(0);
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: var(--dark-gray);
}

.about-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--dark-gray);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.about-image {
    position: relative;
    opacity: 0;
    transform: translateX(50px);
    transition: var(--transition);
}

.about-image.animate {
    opacity: 1;
    transform: translateX(0);
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.floating-element {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--gold);
    opacity: 0.9;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Works Gallery - Updated with image support */
.works {
    padding: 6rem 0;
    background: var(--white);
}

.works-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    position: relative;
    perspective: 1000px;
}

.work-card {
    position: absolute;
    width: 300px;
    height: 400px;
    background: var(--white);
    border-radius: 0;
    box-shadow: var(--shadow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: none;
    transform-style: preserve-3d;
}

.work-card:nth-child(1) {
    transform: translateX(-150px) rotateY(35deg);
    z-index: 1;
}

.work-card:nth-child(2).active {
    transform: translateX(0) rotateY(0deg);
    z-index: 4;
}

.work-card:nth-child(3) {
    transform: translateX(150px) rotateY(-35deg);
    z-index: 1;
}

.work-card:nth-child(4) {
    transform: translateX(300px) rotateY(-70deg);
    z-index: 0;
    opacity: 0.5;
}

.work-card.active {
    transform: translateX(0) rotateY(0deg) scale(1.05);
    z-index: 4;
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.work-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.card-image .image-placeholder {
    height: 100%;
    background: linear-gradient(135deg, var(--light-green), var(--primary-green));
    transition: var(--transition);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.work-card:hover .work-img {
    transform: scale(1.1);
    transition: var(--transition);
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.card-content p {
    color: var(--dark-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Video Showcase Section - Enhanced with background designs */

.video-showcase {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--black) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Animated geometric background pattern */
.video-showcase::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(212,175,55,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(45,90,61,0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 70%, rgba(212,175,55,0.05) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(212,175,55,0.02) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(45,90,61,0.03) 50%, transparent 70%);
    animation: backgroundFloat 20s linear infinite;
    z-index: 1;
}

/* Floating geometric shapes */
.video-showcase::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 10%;
    width: 150px;
    height: 150px;
    border: 2px solid rgba(212,175,55,0.2);
    border-radius: 50%;
    animation: floatRotate 15s ease-in-out infinite;
    z-index: 1;
}

/* Additional decorative elements */
.video-showcase .container {
    position: relative;
    z-index: 2;
}

.video-showcase .container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100px;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, transparent, rgba(45,90,61,0.1), transparent);
    border-radius: 20px;
    transform: rotate(45deg);
    animation: slideIn 12s ease-in-out infinite;
    z-index: 1;
}

.video-showcase .container::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: -80px;
    width: 120px;
    height: 120px;
    background: rgba(212,175,55,0.08);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: triangleFloat 10s ease-in-out infinite;
    z-index: 1;
}

/* Animated grid pattern overlay */
.video-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(212,175,55,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212,175,55,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 25s linear infinite;
    pointer-events: none;
    z-index: 1;
}

/* Spotlight effect behind active video */
.video-gallery::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(212,175,55,0.1) 0%, rgba(212,175,55,0.05) 40%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: spotlightPulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* Section header decorative line */
.video-showcase .section-header::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: translateX(-50%);
    animation: lineGlow 3s ease-in-out infinite;
}

.video-showcase .section-header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 50%;
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45,90,61,0.5), transparent);
    transform: translateX(-50%);
    animation: lineGlow 3s ease-in-out infinite 1.5s;
}

@keyframes backgroundFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-2%, -1%) rotate(120deg); }
    66% { transform: translate(1%, -2%) rotate(240deg); }
}

@keyframes floatRotate {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        border-color: rgba(212,175,55,0.2);
    }
    50% { 
        transform: translateY(-20px) rotate(180deg) scale(1.1); 
        border-color: rgba(45,90,61,0.3);
    }
}

@keyframes slideIn {
    0%, 100% { 
        transform: translateX(0) rotate(45deg); 
        opacity: 0.1;
    }
    50% { 
        transform: translateX(50px) rotate(225deg); 
        opacity: 0.3;
    }
}

@keyframes triangleFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        background: rgba(212,175,55,0.08);
    }
    50% { 
        transform: translateY(-15px) rotate(120deg);
        background: rgba(45,90,61,0.08);
    }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes spotlightPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

@keyframes lineGlow {
    0%, 100% { 
        opacity: 0.3;
        width: 200px;
    }
    50% { 
        opacity: 0.8;
        width: 300px;
    }
}

/* Particle effect for modern touch */
.video-showcase .section-title::before {
    content: '✦ ✧ ✦';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: rgba(212,175,55,0.6);
    letter-spacing: 1rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { 
        opacity: 0.4;
        transform: translateX(-50%) translateY(0px);
    }
    50% { 
        opacity: 1;
        transform: translateX(-50%) translateY(-5px);
    }
}

.video-showcase .section-title {
    color: var(--white);
}

.video-showcase .section-number {
    color: var(--gold);
}

.video-gallery {
    position: relative;
    height: 600px;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.video-item {
    position: absolute;
    width: 500px;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    cursor: none;
    transform-style: preserve-3d;
    z-index: 1;
}

.video-item.active {
    z-index: 3;
    transform: translateX(0) rotateY(0deg) scale(1.1);
}

.video-item.prev {
    z-index: 2;
    transform: translateX(-200px) rotateY(25deg) scale(0.9);
    opacity: 0.7;
}

.video-item.next {
    z-index: 2;
    transform: translateX(200px) rotateY(-25deg) scale(0.9);
    opacity: 0.7;
}

.video-item.hidden {
    z-index: 1;
    transform: translateX(0) scale(0.8);
    opacity: 0;
}

.showcase-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: brightness(0.8);
    /* Enhanced video quality settings */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.video-item.active .showcase-video {
    filter: brightness(1);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    transform: translateY(100%);
    transition: var(--transition);
    color: var(--white);
}

.video-item.active .video-overlay,
.video-item:hover .video-overlay {
    transform: translateY(0);
}

.video-overlay h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gold);
}

.video-overlay p {
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.9;
}

.video-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.video-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--gold);
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.video-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transition: var(--transition);
    z-index: -1;
}

.video-nav-btn:hover::before {
    left: 0;
}

.video-nav-btn:hover {
    color: var(--black);
    border-color: var(--gold);
    transform: scale(1.1);
}

.video-indicators {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.indicator.active {
    background: var(--gold);
    transform: scale(1.3);
}

.indicator:not(.active):hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* Magnetic effect for navigation elements */
.video-nav-btn:hover,
.indicator:hover {
    animation: magneticPulse 0.3s ease-out;
}

@keyframes magneticPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1.05); }
}

/* Auto-rotation progress indicator */
.video-showcase::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--light-green));
    animation: autoProgress 4s linear infinite;
}

@keyframes autoProgress {
    from { width: 0%; }
    to { width: 100%; }
}

/* Mobile Responsive for Video Showcase with Background Effects */
@media (max-width: 768px) {
    .video-showcase {
        padding: 4rem 0;
    }

    /* Simplify background effects for mobile performance */
    .video-showcase::before {
        animation-duration: 30s; /* Slower animation for battery saving */
        background-image: 
            radial-gradient(circle at 20% 20%, rgba(212,175,55,0.08) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(45,90,61,0.06) 0%, transparent 50%);
    }

    .video-showcase::after {
        width: 100px;
        height: 100px;
        top: 5%;
        right: 5%;
    }

    .video-showcase .container::before {
        width: 120px;
        height: 120px;
        left: -60px;
    }

    .video-showcase .container::after {
        width: 80px;
        height: 80px;
        right: -40px;
    }

    .video-gallery::before {
        background-size: 30px 30px; /* Smaller grid for mobile */
    }

    .video-gallery::after {
        width: 300px;
        height: 250px; /* Smaller spotlight */
    }

    .video-showcase .section-header::before,
    .video-showcase .section-header::after {
        width: 150px; /* Shorter decorative lines */
    }

    .video-gallery {
        height: 400px;
        flex-direction: column;
        gap: 1rem;
    }

    .video-item {
        position: relative !important;
        width: 90%;
        max-width: 350px;
        height: 250px;
        transform: none !important;
        opacity: 1 !important;
        z-index: 1 !important;
    }

    .video-item.active {
        transform: scale(1.05) !important;
        z-index: 2 !important;
    }

    .video-item.prev,
    .video-item.next,
    .video-item.hidden {
        display: none;
    }

    .video-controls {
        gap: 1rem;
        margin-top: 1rem;
    }

    .video-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .video-overlay {
        padding: 1rem;
        position: relative;
        transform: translateY(0);
        background: rgba(0,0,0,0.8);
    }

    .video-overlay h4 {
        font-size: 1.1rem;
    }

    .video-overlay p {
        font-size: 0.8rem;
    }

    /* Disable expensive animations on mobile */
    .video-showcase .section-title::before {
        animation: none;
        opacity: 0.6;
    }
}

@media (max-width: 480px) {
    .video-showcase {
        padding: 3rem 0;
    }

    .video-item {
        height: 200px;
        width: 95%;
    }

    .video-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .video-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    /* Further simplify background for very small screens */
    .video-showcase::before {
        background-image: 
            radial-gradient(circle at 50% 50%, rgba(212,175,55,0.05) 0%, transparent 70%);
    }

    .video-showcase::after,
    .video-showcase .container::before,
    .video-showcase .container::after {
        display: none; /* Remove decorative elements on very small screens */
    }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .video-showcase::before,
    .video-showcase::after,
    .video-showcase .container::before,
    .video-showcase .container::after,
    .video-gallery::before,
    .video-gallery::after,
    .video-showcase .section-header::before,
    .video-showcase .section-header::after,
    .video-showcase .section-title::before {
        animation: none;
    }

    .video-item,
    .video-nav-btn,
    .indicator {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .video-showcase {
        background: var(--black);
    }

    .video-showcase::before {
        opacity: 0.1;
    }

    .video-nav-btn {
        border-width: 3px;
        background: var(--black);
    }

    .indicator {
        border: 2px solid var(--white);
    }

    .indicator.active {
        background: var(--white);
        border-color: var(--gold);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .video-item,
    .video-nav-btn,
    .indicator {
        transition: none;
    }

    .video-showcase::after {
        animation: none;
    }

    .video-showcase::before {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .video-nav-btn {
        border-width: 3px;
        background: var(--black);
    }

    .indicator {
        border: 2px solid var(--white);
    }

    .indicator.active {
        background: var(--white);
        border-color: var(--gold);
    }
}


/* Design Gallery */
/* Design Gallery - FIXED */
.designs {
    padding: 6rem 0;
    background: var(--primary-green);
    color: var(--white);
}

.designs .section-title {
    color: var(--white);
}

.design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.design-item {
    position: relative;
    height: 250px;
    overflow: hidden;
    cursor: none;
    transform: translateY(30px);
    opacity: 0;
    transition: var(--transition);
}

.design-item.animate {
    transform: translateY(0);
    opacity: 1;
}

.design-item:nth-child(even) .image-placeholder {
    background: linear-gradient(135deg, var(--gold), #b8941f);
}

.design-item:nth-child(odd) .image-placeholder {
    background: linear-gradient(135deg, var(--light-green), var(--primary-green));
}

.design-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    transform: translateY(100%);
    transition: var(--transition);
}

.design-item:hover .design-overlay {
    transform: translateY(0);
}

.design-overlay h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Enhanced Why Us Section - Replace existing why-us styles */

/* --- Start of Why Us Section --- */

/* Main section container */
.why-us {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--gray) 0%, #fcfcfc 100%);
    position: relative;
    overflow: hidden; /* Important for containing animated elements */
}

/* Background animated pattern */
.why-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(45,90,61,0.04) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(212,175,55,0.04) 0%, transparent 40%);
    animation: backgroundShift 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes backgroundShift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15px, -15px); }
}

.why-us .container {
    position: relative;
    z-index: 2;
}

.why-us .section-subtitle {
    font-size: 1.1rem;
    color: var(--dark-gray);
    max-width: 600px;
    margin: 1rem auto 0;
    opacity: 0.8;
}

/* Generic animation item state */
.anim-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.anim-item.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Statistics Counter */
.stats-showcase {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 4rem 0 5rem;
    flex-wrap: wrap;
}

.stat-counter {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: var(--transition);
    min-width: 200px;
}
.stat-counter:hover {
    transform: translateY(-8px) !important; /* !important to override anim class */
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}
/* Staggered animation delays for stats */
.stat-counter:nth-child(2) { transition-delay: 0.1s; }
.stat-counter:nth-child(3) { transition-delay: 0.2s; }

.counter-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-green);
}
.counter-number::after {
    content: '+';
    font-size: 1.8rem;
    color: var(--gold);
    margin-left: 4px;
    vertical-align: super;
}
.counter-label {
    font-size: 0.85rem;
    color: var(--dark-gray);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-weight: 500;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns on desktop */
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-card:hover {
    transform: translateY(-12px) scale(1.03) !important;
    box-shadow: 0 20px 45px rgba(45,90,61,0.15);
}
/* Staggered animation delays for feature cards */
.features-grid .anim-item:nth-child(1) { transition-delay: 0.2s; }
.features-grid .anim-item:nth-child(2) { transition-delay: 0.3s; }
.features-grid .anim-item:nth-child(3) { transition-delay: 0.4s; }
.features-grid .anim-item:nth-child(4) { transition-delay: 0.5s; }

.feature-image {
    height: 220px;
    overflow: hidden;
}
.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.feature-card:hover .feature-img {
    transform: scale(1.1);
}

.feature-content {
    padding: 1.5rem;
    position: relative;
}
.feature-number {
    position: absolute;
    top: -25px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(212,175,55,0.3);
    transition: var(--transition);
    border: 3px solid var(--white);
}
.feature-card:hover .feature-number {
    transform: rotate(10deg) scale(1.1);
}

.feature-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.75rem;
    padding-top: 10px;
}
.feature-content p {
    color: var(--dark-gray);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    flex-wrap: wrap;
    gap: 1rem 2rem;
    transition-delay: 0.6s; /* Animation delay for the whole container */
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}
.trust-item:hover {
    color: var(--gold);
}
.trust-icon {
    font-size: 1.5rem;
    color: var(--primary-green);
}
.trust-item:hover .trust-icon {
    color: var(--gold);
}
.trust-item span {
    font-weight: 500;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

/* Mobile Responsive for Why Us Section */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr; /* Single column on tablets and mobile */
    }
}

@media (max-width: 768px) {
    .why-us {
        padding: 4rem 0;
    }
    .stats-showcase {
       flex-direction: column;
       align-items: center;
    }
    .stat-counter {
        width: 80%;
        max-width: 300px;
    }
    .trust-indicators {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}
/* --- End of Why Us Section --- */

/* Reviews Slider Section */
.reviews-section {
    padding: 6rem 0;
    background: var(--white);
    position: relative;
}

.reviews-slider {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.review-track {
    display: flex;
    transition: transform 0.5s ease;
}

.review-card {
    min-width: 100%;
    padding: 3rem;
    background: var(--gray);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s ease;
}

.review-card.active {
    opacity: 1;
    transform: scale(1);
}

.stars {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    font-style: italic;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.reviewer-info h4 {
    margin: 0;
    color: var(--primary-green);
    font-size: 1.1rem;
}

.reviewer-info span {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.review-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.review-nav {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.review-nav:hover {
    background: var(--gold);
    color: var(--black);
    transform: scale(1.1);
}

.review-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(45,90,61,0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-green);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .review-card {
        padding: 2rem 1.5rem;
    }
    
    .review-text {
        font-size: 1rem;
    }
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--white);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: var(--gray);
    transition: var(--transition);
    cursor: none;
    transform: translateX(-50px);
    opacity: 0;
}

.service-item.animate {
    transform: translateX(0);
    opacity: 1;
}

.service-item:hover {
    background: var(--primary-green);
    color: var(--white);
}

.service-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--gold);
    min-width: 100px;
}

.service-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-content p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--dark-gray);
    color: var(--white);
}

.contact .section-title {
    color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gold);
}

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-item strong {
    color: var(--gold);
    min-width: 80px;
}

.contact-item span {
    word-break: break-all;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    color: var(--black);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray);
    background: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    cursor: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.submit-button {
    position: relative;
    width: 100%;
    padding: 1rem;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: none;
    overflow: hidden;
    transition: var(--transition);
}

.submit-button:hover {
    background: var(--light-green);
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo .logo-text {
    color: var(--white);
}

.footer-logo .logo-sub {
    color: var(--gold);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    cursor: none;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-gray);
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: var(--black);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: none;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-5px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    .cursor,
    .cursor-follower,
    .torch-light {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--primary-green);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
    }

    .nav-menu.active {
        right: 0;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        justify-content: space-around;
    }

    .works-gallery {
        flex-direction: column;
        gap: 2rem;
        height: auto;
    }

    .work-card {
        position: relative;
        transform: none !important;
        opacity: 1 !important;
        width: 100%;
        max-width: 300px;
    }

    .design-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        text-align: center;
    }

    .service-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .about,
    .works,
    .designs,
    .why-us,
    .services,
    .contact {
        padding: 3rem 0;
    }

    .gif-container {
        width: 250px;
        height: 150px;
    }

    .main-text {
        font-size: 2rem;
        letter-spacing: 0.1rem;
    }

    .sub-text {
        font-size: 0.8rem;
        letter-spacing: 0.1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .work-card {
        height: 350px;
    }

    .design-item {
        height: 200px;
    }

    .contact-form {
        padding: 1rem;
    }

    .main-text {
        font-size: 1.5rem;
    }

    .progress-bar {
        width: 250px;
    }
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease-out;
}

.fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease-out;
}

.fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease-out;
}

.scale-in.animate {
    opacity: 1;
    transform: scale(1);
}

/* Additional fix for ultra-small screens */
@media (max-width: 375px) {
  #hero-image h1 {
    font-size: 1.8rem !important;
    padding: 0 10px !important;
  }
  
  nav h1 {
    font-size: 1rem !important;
  }
  
  .loading-video-container {
    width: 180px !important;
    height: 180px !important;
  }
}

/* Ensure no horizontal overflow anywhere */
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

.loading-screen {
  width: 100vw !important;
  height: 100vh !important;
}

/* Enhanced mobile fixes for screens under 430px */
@media (max-width: 430px) {
  /* Ensure no element exceeds viewport width */
  * {
    max-width: 100vw;
    box-sizing: border-box;
  }

  /* Container fixes */
  .container {
    padding: 0 0.5rem;
    max-width: 100%;
  }

  /* Navigation fixes */
  .nav-container {
    padding: 0 1rem;
    max-width: 100%;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .logo-sub {
    font-size: 0.6rem;
    letter-spacing: 0.1rem;
  }

  /* Hero section fixes */
  .hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem) !important;
    padding: 0 1rem;
    word-break: break-word;
    hyphens: auto;
  }

  .hero-subtitle {
    font-size: 1rem;
    padding: 0 1rem;
    word-break: break-word;
  }

  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    margin: 0 1rem;
  }

  /* Section headers */
  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
    padding: 0 1rem;
    word-break: break-word;
  }

  .section-header {
    padding: 0 1rem;
  }

  /* Loading screen fixes */
  .gif-container {
    width: 200px;
    height: 120px;
    margin: 0 auto 2rem;
  }

  .main-text {
    font-size: 1.8rem;
    letter-spacing: 0.05rem;
    padding: 0 1rem;
  }

  .sub-text {
    font-size: 0.7rem;
    letter-spacing: 0.05rem;
    padding: 0 1rem;
  }

  .progress-bar {
    width: 200px;
  }

  /* Work cards and gallery fixes */
  .work-card {
    width: calc(100% - 2rem);
    max-width: 280px;
    margin: 0 auto;
  }

  /* About section stats fix */
  .about-stats {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .stat-item {
    width: 100%;
    max-width: 200px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  /* Service items */
  .service-item {
    padding: 1rem;
    margin: 0 0.5rem;
  }

  .service-number {
    font-size: 2rem;
    min-width: 60px;
  }

  /* Contact form fixes */
  .contact-form {
    padding: 1rem 0.5rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  /* Footer fixes */
  .footer-content {
    padding: 0 1rem;
  }

  .footer-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Feature cards */
  .feature-card {
    padding: 1.5rem 1rem;
    margin: 0 0.5rem;
  }

  /* Design grid */
  .design-grid {
    gap: 1rem;
    padding: 0 0.5rem;
  }

  .design-item {
    height: 180px;
  }

  /* Ensure text doesn't overflow */
  h1, h2, h3, h4, h5, h6 {
    word-break: break-word;
    hyphens: auto;
  }

  p {
    word-break: break-word;
    hyphens: auto;
  }
}

/* Additional fix for extra small screens */
@media (max-width: 375px) {
  .container {
    padding: 0 0.25rem;
  }

  .hero-title {
    font-size: 1.8rem !important;
    padding: 0 0.5rem !important;
  }

  .main-text {
    font-size: 1.5rem;
    letter-spacing: 0.02rem;
  }

  .gif-container {
    width: 180px;
    height: 100px;
  }

  .progress-bar {
    width: 180px;
  }

  .work-card {
    width: calc(100% - 1rem);
    max-width: 260px;
  }
}

/* Force prevent horizontal scroll */
html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* Replace the previous overflow fixes with these more targeted ones */

/* Remove aggressive overflow hidden from sections */
@media (max-width: 430px) {
  /* Only apply overflow-x: hidden to specific problem elements, not all sections */
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }

  /* Remove overflow-x hidden from sections that need smooth scrolling */
  .works, .designs, .about, .why-us, .services, .contact {
    overflow-x: visible; /* Allow natural overflow behavior */
    width: 100%;
    max-width: 100vw;
  }

  /* Only apply overflow-x hidden to containers that actually need it */
  .container {
    padding: 0 0.5rem;
    max-width: 100%;
    /* Don't add overflow-x: hidden here */
  }

  .nav-container {
    padding: 0 1rem;
    max-width: 100%;
    overflow-x: hidden; /* Keep this only for nav */
  }

  /* Works section specific fixes */
  .works-gallery {
    overflow-x: visible; /* Remove overflow restriction */
    width: 100%;
    padding: 0 1rem;
  }

  .work-card {
    width: calc(100% - 2rem);
    max-width: 280px;
    margin: 0 auto;
    /* Remove any transform restrictions that might cause issues */
  }

  /* Ensure smooth scrolling is maintained */
  html {
    scroll-behavior: smooth;
  }

  /* Navigation fixes - keep these */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100vw;
    width: 100vw;
    height: 100vh;
    background: var(--primary-green);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    z-index: 9999;
  }

  .nav-menu.active {
    right: 0;
  }

  .hamburger {
    z-index: 10000;
    position: relative;
  }

  .navbar {
    z-index: 9998;
  }

  /* Scroll button fixes - keep these */
  .scroll-top {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
    z-index: 1000;
  }

  /* Only prevent overflow on elements that actually cause it */
  .hero-title, .section-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  /* Remove the universal max-width rule that was too aggressive */
  /* * { max-width: 100%; } - REMOVE THIS */
}

/* Additional fixes for very small screens */
@media (max-width: 375px) {
  .scroll-top {
    width: 40px;
    height: 40px;
    bottom: 0.5rem;
    right: 0.5rem;
    font-size: 1rem;
  }

  .works-gallery {
    padding: 0 0.5rem;
  }
}

/* Mobile Image Fixes */
.about-img,
.work-img,
.design-img,
.feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mobile Works Slider - Replace existing mobile works styles */
@media (max-width: 768px) {
    .works {
        padding: 4rem 0;
    }
    
    .works-gallery {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .works-gallery::-webkit-scrollbar {
        display: none;
    }
    
    .work-card {
        flex: 0 0 85%;
        max-width: 280px;
        height: 350px;
        scroll-snap-align: center;
        position: relative !important;
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Mobile Design Gallery Grid */
    .design-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .design-item {
        height: 180px;
        border-radius: 8px;
    }
    
    .design-img {
        border-radius: 8px;
    }
    
    .design-overlay {
        border-radius: 8px;
    }
    
    .design-overlay h4 {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .work-card {
        flex: 0 0 90%;
    }
    
    .design-grid {
        grid-template-columns: 1fr;
    }
}