/* CSS Variables */
:root {
    --color-primary: #1A3C34;
    /* Deep Forest Green */
    --color-secondary: #8B5A2B;
    /* Warm Wood Brown */
    --color-accent: #D4AF37;
    /* Subtle Gold/Brass for high-end feel if needed, utilizing brown mostly */
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg-light: #F9F9F9;
    --color-bg-white: #FFFFFF;
    --color-dark: #222222;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    /* Using Outfit for both for a clean modern look */

    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 96px;

    --container-width: 1200px;
    --border-radius: 4px;
    /* Slight architectural rounding */
    --transition-speed: 0.3s;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Account for fixed navbar */
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fluid Typography */
h1 {
    font-size: clamp(2rem, 5vw + 1rem, 3.5rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

h2 {
    font-size: clamp(1.75rem, 4vw + 0.5rem, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

h3 {
    font-size: clamp(1.25rem, 2vw + 0.5rem, 1.5rem);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) var(--transition-smooth);
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

section {
    padding: clamp(48px, 8vw, 96px) 0;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.bg-light {
    background-color: var(--color-bg-light);
}

/* Typography Helpers */
.text-center {
    text-align: center;
}

.lead-text {
    font-size: clamp(1rem, 2vw + 0.25rem, 1.25rem);
    color: var(--color-text-light);
    max-width: 800px;
    margin: 0 auto var(--spacing-md);
}

/* ============================
   ANIMATION UTILITIES
   ============================ */

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--transition-smooth),
        transform 0.8s var(--transition-smooth);
    will-change: opacity, transform;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s var(--transition-smooth),
        transform 0.8s var(--transition-smooth);
    will-change: opacity, transform;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s var(--transition-smooth),
        transform 0.8s var(--transition-smooth);
    will-change: opacity, transform;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s var(--transition-smooth),
        transform 0.6s var(--transition-smooth);
    will-change: opacity, transform;
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Staggered Animation Delays */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

.stagger-6 {
    transition-delay: 0.6s;
}

/* ============================
   BUTTONS
   ============================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-speed) var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s var(--transition-smooth);
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 60, 52, 0.3);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: #fff;
    border-color: var(--color-secondary);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 90, 43, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: #fff;
    color: #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.btn-small {
    padding: 10px 22px;
    font-size: 0.85rem;
    border: 1px solid var(--color-text-light);
    color: var(--color-text);
}

.btn-small:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    border-radius: 50px;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* ============================
   NAVBAR
   ============================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-speed) var(--transition-smooth);
    background-color: transparent;
    color: #fff;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--color-primary);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: clamp(1.25rem, 2vw + 0.5rem, 1.5rem);
    font-weight: 700;
    color: inherit;
    letter-spacing: 2px;
    transition: transform 0.3s var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo:hover {
    transform: scale(1.02);
    /* Reduced scale to prevent layout shifts */
}

.logo-img {
    display: none;
    height: 50px;
    /* Optimal height for navbar */
    width: auto;
    object-fit: contain;
}

/* Scrolled State Styles */
.navbar.scrolled .logo-img {
    display: block;
}

.navbar.scrolled .logo-text {
    display: block;
    /* Ensure it stays visible */
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 1.2rem;
    /* Adjusted for balance with image */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .logo-img {
        height: 40px;
    }

    .navbar.scrolled .logo-text {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }
}

.nav-links {
    display: flex;
    gap: clamp(15px, 3vw, 30px);
}

.nav-links a {
    font-weight: 500;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width var(--transition-speed) var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: currentColor;
    transition: all 0.3s var(--transition-smooth);
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(26, 60, 52, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--transition-smooth);
    z-index: 999;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-overlay a {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 500;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s var(--transition-smooth);
}

.mobile-nav-overlay.active a {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-overlay a:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-nav-overlay a:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-nav-overlay a:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-nav-overlay a:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-nav-overlay a:nth-child(5) {
    transition-delay: 0.3s;
}

.mobile-nav-overlay a:nth-child(6) {
    transition-delay: 0.35s;
}

/* ============================
   SCROLL PROGRESS BAR
   ============================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    z-index: 1001;
    transition: width 0.1s linear;
}

/* ============================
   BACK TO TOP BUTTON
   ============================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(26, 60, 52, 0.3);
    z-index: 998;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-secondary);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(139, 90, 43, 0.4);
}

/* ============================
   HERO CAROUSEL
   ============================ */
.hero-carousel {
    position: relative;
    height: 100vh;
    min-height: 500px;
    overflow: hidden;
    padding: 0;
    color: #fff;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.carousel-slide.active {
    opacity: 1;
}

/* Parallax effect on hero */
.carousel-slide.parallax {
    background-attachment: fixed;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(26, 60, 52, 0.4));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 var(--spacing-sm);
}

.hero-content h1 {
    margin-bottom: 20px;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: clamp(1rem, 2vw + 0.25rem, 1.3rem);
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Typing Cursor Effect */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background: #fff;
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Hero content animation */
.hero-content .animate-hero {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1s ease-out forwards;
}

.hero-content .animate-hero:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-content .animate-hero:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-content .animate-hero:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
}

.dot:hover {
    transform: scale(1.2);
}

.dot.active {
    background-color: #fff;
    transform: scale(1.1);
}

/* Carousel Arrow Navigation */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s var(--transition-smooth);
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-arrow-left {
    left: 30px;
}

.carousel-arrow-right {
    right: 30px;
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.carousel-arrow-left:hover svg {
    transform: translateX(-2px);
}

.carousel-arrow-right:hover svg {
    transform: translateX(2px);
}

/* ============================
   ABOUT SECTION
   ============================ */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header p {
    color: var(--color-text-light);
    max-width: 600px;
    margin: var(--spacing-sm) auto 0;
}

.separator {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    margin: 0 auto;
}

.about-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.expertise-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.tag {
    background-color: #eee;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    font-weight: 500;
    color: var(--color-dark);
    transition: all 0.3s var(--transition-smooth);
}

.tag:hover {
    background-color: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ============================
   SERVICES GRID
   ============================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    perspective: 1000px;
}

.service-card {
    padding-top: 50px;
    border: 3px solid var(--color-primary);
    transform-style: preserve-3d;
    background: linear-gradient(135deg, #0000 18.75%, #f5f5f5 0 31.25%, #0000 0),
        repeating-linear-gradient(45deg, #f5f5f5 -6.25% 6.25%, var(--color-primary) 0 18.75%);
    background-size: 60px 60px;
    background-position: 0 0, 0 0;
    background-color: var(--color-primary);
    width: 100%;
    box-shadow: rgba(26, 60, 52, 0.3) 0px 30px 30px -10px;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    position: relative;
}

.service-card:hover {
    background-position: -100px 100px, -100px 100px;
    transform: rotate3d(0.5, 1, 0, 30deg);
}

.service-card-content {
    background: #fff;
    transition: all 0.3s ease;
    padding: 60px 25px 30px 25px;
    transform-style: preserve-3d;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.service-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    height: 70px;
    width: 70px;
    background: var(--color-primary);
    border: 2px solid var(--color-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transform: translate3d(0px, 0px, 80px);
    box-shadow: rgba(100, 100, 111, 0.3) 0px 17px 10px -10px;
    z-index: 10;
}

.service-card h3 {
    display: inline-block;
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s ease;
    transform: translate3d(0px, 0px, 50px);
    margin-bottom: 15px;
}

.service-card:hover h3 {
    transform: translate3d(0px, 0px, 60px);
}

.service-card p {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    transition: all 0.3s ease;
    transform: translate3d(0px, 0px, 30px);
    line-height: 1.6;
}

.service-card:hover p {
    transform: translate3d(0px, 0px, 50px);
}

.link-animate {
    cursor: pointer;
    margin-top: 20px;
    display: inline-block;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #fff;
    background: var(--color-primary);
    padding: 10px 18px;
    border-radius: 6px;
    transition: all 0.3s ease;
    transform: translate3d(0px, 0px, 20px);
    position: relative;
}

.link-animate::after {
    content: ' →';
    transition: transform 0.3s ease;
}

.link-animate:hover {
    transform: translate3d(0px, 0px, 60px);
    background: var(--color-accent);
    color: var(--color-primary);
}

.link-animate:hover::after {
    display: inline-block;
    transform: translateX(5px);
}

/* ============================
   TRADING PRODUCTS CAROUSEL
   ============================ */
.trading-section {
    background: linear-gradient(180deg, var(--color-bg-white) 0%, #f5f5f5 100%);
    overflow: hidden;
}

.products-carousel-wrapper {
    position: relative;
    padding: 0 50px;
}

.products-carousel {
    overflow: hidden;
    position: relative;
}

.products-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
}

.product-card {
    flex: 0 0 calc(33.333% - 20px);
    background: #fff;
    border: 1px solid #eee;
    transition: all var(--transition-speed) var(--transition-smooth);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.product-image {
    height: 220px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s var(--transition-smooth);
    overflow: hidden;
    position: relative;
}

.product-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(26, 60, 52, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-image::after {
    opacity: 1;
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-info {
    padding: clamp(20px, 3vw, 25px);
    background: #fff;
    position: relative;
}

.product-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover .product-info::before {
    transform: scaleX(1);
}

.product-info h3 {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 10px;
    color: var(--color-primary);
}

.product-info p {
    color: var(--color-text-light);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

/* Carousel Navigation Arrows */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 60, 52, 0.3);
}

.carousel-nav-btn:hover {
    background: var(--color-secondary);
    transform: translateY(-50%) scale(1.1);
}

.products-carousel-wrapper {
    position: relative;
    padding: 0 80px;
}

/* ... existing code ... */

.carousel-nav-btn.prev {
    left: 15px;
}

.carousel-nav-btn.next {
    right: 15px;
}

.carousel-nav-btn svg {
    width: 24px;
    height: 24px;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: var(--color-secondary);
}

.carousel-dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 1024px) {
    .product-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .products-carousel-wrapper {
        padding: 0 15px;
    }

    .product-card {
        flex: 0 0 100%;
    }

    /* Hide arrows on mobile - use swipe instead */
    .carousel-nav-btn {
        display: none;
    }
}

/* ============================
   PROJECTS
   ============================ */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 1px solid var(--color-text-light);
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    transition: all 0.3s var(--transition-smooth);
    border-radius: var(--border-radius);
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.project-card {
    position: relative;
    height: 280px;
    overflow: hidden;
    cursor: pointer;
    border-radius: var(--border-radius);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-smooth);
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s var(--transition-smooth);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
    opacity: 1;
}

.project-overlay h3 {
    color: #fff;
    margin-bottom: 5px;
}

.project-overlay span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Optimized Project Card Filter Animations */
.project-card.filter-transition {
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
    will-change: opacity, transform;
}

.project-card.filter-hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

.project-card.filter-visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    position: relative;
    visibility: visible;
}


/* ============================
   WHY CHOOSE US
   ============================ */
.reasons-section {
    background-color: var(--color-primary);
    color: #fff;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.reason-item {
    padding: 20px;
    transition: transform 0.3s var(--transition-smooth);
}

.reason-item:hover {
    transform: translateY(-10px);
}

.reason-item h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.reason-item p {
    opacity: 0.9;
}

/* ============================
   CONTACT
   ============================ */
.contact-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.contact-info,
.contact-form-wrapper {
    flex: 1;
    min-width: 280px;
}

.contact-info h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.contact-details {
    margin: 30px 0;
}

.detail-item {
    margin-bottom: 15px;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s var(--transition-smooth);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 60, 52, 0.1);
}

/* Form validation styles */
.contact-form input.valid,
.contact-form textarea.valid {
    border-color: #25D366;
}

.contact-form input.invalid,
.contact-form textarea.invalid {
    border-color: #e74c3c;
}

.form-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-error.visible {
    display: block;
}

.full-width {
    width: 100%;
}

/* ============================
   FOOTER
   ============================ */
footer {
    background-color: var(--color-dark);
    color: #fff;
    padding: 80px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: #888;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: #ccc;
    margin-bottom: 12px;
    transition: all 0.3s var(--transition-smooth);
}

.footer-col a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-col p {
    color: #999;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

/* ============================
   LOADING SKELETON
   ============================ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ============================
   RESPONSIVE BREAKPOINTS
   ============================ */

/* Extra Large Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Large Tablets & Small Desktops */
@media (max-width: 1024px) {
    .nav-links {
        gap: 20px;
    }

    .hero-content {
        max-width: 700px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .navbar .btn-primary {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-carousel {
        height: 100vh;
        min-height: 600px;
    }

    .hero-content {
        padding: 0 20px;
    }

    .contact-layout {
        flex-direction: column;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        height: 250px;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .carousel-arrow {
        width: 45px;
        height: 45px;
        top: auto;
        bottom: 30px;
        transform: none;
        background: rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.5);
    }

    .carousel-arrow:hover {
        transform: scale(1.1);
        background: rgba(0, 0, 0, 0.5);
    }

    .carousel-arrow-left {
        left: 30px;
    }

    .carousel-arrow-right {
        right: 30px;
    }

    .carousel-arrow svg {
        width: 24px;
        height: 24px;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .container {
        width: 92%;
        padding: 0 var(--spacing-xs);
    }

    section {
        padding: 60px 0;
    }

    .hero-carousel {
        min-height: 550px;
    }

    .carousel-nav {
        bottom: 20px;
        gap: 10px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .expertise-grid {
        gap: 8px;
    }

    .tag {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .filter-tabs {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 200px;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col a:hover {
        transform: none;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        top: auto;
        bottom: 25px;
        transform: none;
        background: rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.5);
    }

    .carousel-arrow:hover {
        transform: scale(1.1);
        background: rgba(0, 0, 0, 0.5);
    }

    .carousel-arrow:active {
        transform: scale(0.95);
    }

    .carousel-arrow-left {
        left: 20px;
    }

    .carousel-arrow-right {
        right: 20px;
    }

    .carousel-arrow svg {
        width: 20px;
        height: 20px;
    }
}

/* Small Mobile Phones */
@media (max-width: 320px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.8rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .separator {
        height: 2px;
    }
}

/* Print Styles */
@media print {

    .navbar,
    .back-to-top,
    .scroll-progress,
    .mobile-nav-overlay {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}

/* ============================
   TEAM SECTION
   ============================ */
.team-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--color-bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) var(--transition-smooth);
    text-align: center;
    padding-bottom: 25px;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.team-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--transition-smooth);
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-info {
    padding: 20px;
}

.team-info h3 {
    margin-bottom: 5px;
    color: var(--color-primary);
}

.team-info .designation {
    display: block;
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.team-info p {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.5;
}

/* ============================
   VISION & MISSION SECTION
   ============================ */
.vision-mission-section {
    background-color: var(--color-bg-white);
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.vision-card,
.mission-card {
    background: linear-gradient(135deg, var(--color-primary), #2d5a4f);
    color: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(26, 60, 52, 0.2);
    transition: transform var(--transition-speed) var(--transition-smooth);
}

.vision-card:hover,
.mission-card:hover {
    transform: translateY(-5px);
}

.vision-card h3,
.mission-card h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.vision-card p,
.mission-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.95;
}

/* ============================
   WHY CHOOSE US SECTION
   ============================ */
.why-choose-section {
    text-align: center;
}

.why-choose-content {
    max-width: 900px;
    margin: 0 auto;
}

.why-choose-content p {
    margin-bottom: 20px;
}

.why-choose-content p:last-child {
    margin-bottom: 0;
}

/* ============================
   PROJECTS LOADING SPINNER
   ============================ */
.projects-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--color-bg-light);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.projects-loading p {
    margin-top: 15px;
    color: var(--color-text-light);
    font-size: 1rem;
}

/* Error state for projects */
.projects-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    grid-column: 1 / -1;
    text-align: center;
    color: var(--color-text-light);
}

.projects-error p {
    margin-bottom: 15px;
}