/* Global CSS */
:root {
    --primary-color: #004d40;
    /* Teal/Green for reliability and growth */
    --accent-color: #ff9800;
    /* Orange for vibrancy/paint */
    --dark-color: #1e272e;
    --light-color: #f1f2f6;
    --white: #ffffff;
    --gray: #808e9b;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--white);
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
    padding: 0;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary,
.btn-text,
.btn-primary-large {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 77, 64, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 20px;
}

.btn-sm:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-color);
}

.bg-dark {
    background-color: var(--dark-color);
    color: var(--white);
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 60px;
}

.logo-text .brand-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color);
}

.logo-text span {
    font-size: 0.85rem;
    color: var(--gray);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    bottom: -5px;
    left: 0;
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links .btn-primary::after {
    display: none;
}

.hamburger {
    display: none;
}

/* Hero Section */
/* Hero Carousel */
.hero-carousel {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background: #000;
}

.carousel-container {
    height: 100%;
    width: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    margin-top: -50px;
    /* Offset for visual balance */
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0 50px;
    box-sizing: border-box;
    pointer-events: none;
    /* Allow clicking through the container area */
}

.prev-slide,
.next-slide {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
    pointer-events: auto;
    /* Re-enable pointer events for buttons */
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-slide:hover,
.next-slide:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 150px;
    /* Above the SVG shape */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active,
.dot:hover {
    background: var(--accent-color);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .carousel-controls {
        padding: 0 20px;
    }

    .carousel-indicators {
        bottom: 120px;
    }
}

/* ... existing styles ... */

/* WhatsApp Floating Button */
.whatsapp-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 100;
}

.whatsapp-float {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

.whatsapp-popup {
    display: none;
    position: absolute;
    bottom: 70px;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 10px;
    width: 200px;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.whatsapp-container:hover .whatsapp-popup {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.wa-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 5px;
    color: var(--dark-color);
    transition: 0.2s;
    font-size: 0.9rem;
    text-decoration: none;
}

.wa-item:hover {
    background-color: #f0f0f0;
    color: #25d366;
}

.wa-item i {
    font-size: 1.2rem;
}

/* Responsive adjustment for WhatsApp */
@media (max-width: 768px) {
    .whatsapp-container {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-container:active .whatsapp-popup {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
}



.hero-carousel h1,
.hero-carousel h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    -webkit-text-fill-color: initial;
    color: white;
}

.hero-carousel p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-shape svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
}

.hero-shape .shape-fill {
    fill: var(--white);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: 0.3s;
    border-top: 5px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(0, 77, 64, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    transition: 0.3s;
}

.feature-card:hover .icon-box {
    background: var(--primary-color);
    color: var(--white);
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.abstract-image {
    position: relative;
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    margin: 0 auto;
    animation: morph 8s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 70% 30% 30% 70% / 60% 40% 60% 40%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

.inside-icon {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Products */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-img {
    height: 250px;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.product-info p {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 20px;
}

/* Services */
.services-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
}

.service-item {
    text-align: center;
    max-width: 300px;
    padding: 20px;
}

.service-item i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 5px;
}

/* Gallery Replacement for Form */
.project-gallery {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Video Gallery */
.project-gallery h3 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.project-gallery h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

/* Video Gallery */
.video-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.video-item {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Map Container */
.map-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    display: block;
}

.btn-primary.block {
    width: 100%;
    border: none;
    background: var(--primary-color);
    color: white;
}

.btn-primary.block:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Old WhatsApp Float Styles Removed */

/* Footer */
footer {
    background: #111;
    color: #aaa;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    border-bottom: 1px solid #333;
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.footer-logo h3 {
    color: var(--white);
    margin: 0 0 10px 0;
}

.footer-links ul {
    display: flex;
    gap: 20px;
}

.footer-legal {
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive */
/* Tablet Responsive */
@media (max-width: 1024px) {
    .container {
        width: 95%;
    }

    .hero-carousel h1,
    .hero-carousel h2 {
        font-size: 3rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on tablet */
    }

    .video-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Keep 2 columns on tablet */
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .hamburger {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--primary-color);
    }

    .hero-carousel {
        height: auto;
        min-height: 100vh;
        /* Ensure full height on mobile too */
        padding-top: 80px;
    }

    .hero-content {
        max-width: 100%;
        padding: 40px 20px;
        margin-top: 0;
    }

    .hero-carousel h1,
    .hero-carousel h2 {
        font-size: 2rem;
        /* Adjusted for mobile */
    }

    .features-grid,
    .about-grid,
    .contact-wrapper,
    .footer-content {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }

    /* Ensure other grids stack */
    .products-grid,
    .services-container {
        grid-template-columns: 1fr;
        justify-content: center;
    }

    .about-image {
        order: -1;
        margin-bottom: 30px;
        width: 100%;
    }

    .abstract-image {
        width: 280px;
        height: 280px;
    }

    .inside-icon {
        font-size: 5rem;
    }

    .footer-links ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .video-gallery-grid {
        grid-template-columns: 1fr;
        /* 1 Column on mobile */
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
}

/* Small Mobile Responsive */
@media (max-width: 480px) {

    .hero-carousel h1,
    .hero-carousel h2 {
        font-size: 1.8rem;
    }

    .btn-primary,
    .btn-secondary {
        display: block;
        width: 100%;
        margin: 10px 0;
        text-align: center;
    }

    .feature-card,
    .product-card {
        padding: 20px;
    }
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in,
.fade-up,
.fade-right,
.fade-left {
    opacity: 0;
    transition: all 1s ease-out;
}

.fade-in.active {
    opacity: 1;
}

.fade-up {
    transform: translateY(30px);
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-right {
    transform: translateX(-30px);
}

.fade-right.active {
    opacity: 1;
    transform: translateX(0);
}

.fade-left {
    transform: translateX(30px);
}

.fade-left.active {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}