/* --- GLOBAL & ROOT STYLES --- */
:root {
    --accent-color: #00E5FF;
    --dark-text-color: #333333; /* Dark grey for high contrast on white backgrounds */
    --text-color: rgba(255, 255, 255, 0.9);
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.2);
    --card-bg-color: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #1A237E;
}

.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, #1A237E, #00897B, #8E24AA, #1A237E);
    background-size: 400% 400%;
    animation: background-pan 25s ease infinite;
}

@keyframes background-pan {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* --- GLASSMORPHISM & GENERAL STYLES --- */
.glass-panel {
    background: var(--card-bg-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px 0 var(--shadow-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.content-section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

    .content-section h2 {
        font-size: 2.8rem;
        margin-bottom: 60px;
        position: relative;
        display: inline-block;
    }

        .content-section h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: var(--accent-color);
            border-radius: 2px;
        }

.cta-button {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    border: 1px solid var(--accent-color);
    background: transparent;
    cursor: pointer;
}

    .cta-button:hover {
        background: rgba(0, 229, 255, 0.2);
        box-shadow: 0 0 25px rgba(0, 229, 255, 0.5);
        transform: translateY(-5px);
    }

/* --- HEADER & NAVIGATION --- */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    z-index: 1000;
    padding: 15px 30px;
    transition: all 0.4s ease; /* Simplified transition for all properties */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    position: relative;
    height: 50px; /* Adjust height to fit your logo */
}

    .logo img {
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        transition: opacity 0.4s ease;
    }

.logo-dark {
    opacity: 0;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

    .nav-links a {
        color: var(--text-color);
        text-decoration: none;
        font-weight: 400;
        padding: 5px 0;
        transition: color 0.4s ease;
    }

        .nav-links a:hover {
            color: var(--accent-color);
        }

/* --- HEADER SCROLLED STATE (SOLID WHITE) --- */
header.scrolled {
    padding: 5px 30px;
    background: #ffffff; /* Solid white background */
    backdrop-filter: none; /* Remove blur effect */
    top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    width: 100%;
    border-bottom: 1px solid #e0e0e0; /* Subtle line for separation */
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); /* Softer shadow */
}

    header.scrolled .logo-light {
        opacity: 0;
    }

    header.scrolled .logo-dark {
        opacity: 1;
    }

    header.scrolled .nav-links a {
        color: var(--dark-text-color); /* Dark grey text for readability */
        font-weight: 500;
    }

        header.scrolled .nav-links a:hover {
            color: #00897B; /* Vibrant teal hover effect */
        }

    header.scrolled .mobile-nav-toggle span {
        background: var(--dark-text-color); /* Dark hamburger icon */
    }

/* Dropdown Menu */
.dropdown {
    position: relative;
}

    .dropdown .arrow {
        font-size: 0.7em;
        margin-left: 5px;
        transition: transform 0.3s ease;
    }

    .dropdown:hover .arrow {
        transform: rotate(180deg);
    }

.dropdown-menu {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    list-style: none;
    padding: 10px;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, top 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    top: 100%;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    border-radius: 6px;
}

    .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

header.scrolled .dropdown-menu {
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

    header.scrolled .dropdown-menu a {
        color: var(--dark-text-color);
    }

        header.scrolled .dropdown-menu a:hover {
            background: #f0f0f0;
        }


/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    color: #fff;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

    .video-background video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 20, 40, 0.6);
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* --- TEAM SECTIONS --- */
/*.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}*/
.team-member {
    text-align: left;
    overflow: hidden;
}

.team-member:hover {
        transform: translateY(-10px);
        box-shadow: 0 16px 40px 0 var(--shadow-color);
    }

.team-member img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        object-position: center;
        display: block;
    }

/* --- SOLUTIONS SECTIONS --- */

/* Modify the solution-card for the effect */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    perspective: 1500px;
}

.solution-card {
    /* The transition makes the "snap back" animation smooth when the mouse leaves */
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    /* Keep the original hover effect for a nice lift */
}

    .solution-card:hover {
        /* This initial lift will be enhanced by the JS transform */
        transform: scale(1.05) translateY(-5px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    }

    /* We will add an inner element for a subtle lighting effect */
    .solution-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0) 40%);
        opacity: 0;
        transition: opacity 0.4s;
        border-radius: 12px; /* Match the card's border-radius */
        z-index: 1; /* Place it above the image but below the content */
    }

    .solution-card:hover::before {
        opacity: 1;
    }

    /* Ensure the card content appears above the lighting effect */
    .solution-card .card-content {
        position: relative;
        z-index: 2;
    }

.card-content {
    padding: 25px;
}

    .card-content h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .card-content a {
        color: var(--accent-color);
        text-decoration: none;
        font-weight: 600;
        margin-top: 15px;
        display: inline-block;
    }

.team-member {
    text-align: center;
}

    .team-member img {
        height: 400px;
    }

    .team-member h3 {
        padding: 20px 20px 5px;
        font-size: 1.5rem;
    }

    .team-member p.title {
        padding: 0 20px 20px;
        color: var(--accent-color);
    }

/* --- TESTIMONIALS SLIDER (Horizontal Sliding Effect) --- */

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: auto;
    padding: 40px 60px; /* Add more padding to make space for buttons */
    overflow: hidden; /* This is crucial for hiding the other slides */
}

.slides-wrapper {
    display: flex; /* This aligns the slides horizontally */
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Smooth sliding transition with a nice easing */
}

.slide {
    width: 100%;
    flex-shrink: 0; /* Prevents slides from shrinking */
    padding: 0 20px; /* Add some internal spacing */
}

/* No longer need absolute positioning or opacity for the slides */

blockquote {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 20px;
}

cite {
    font-weight: 600;
    color: var(--accent-color);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
    transition: color 0.3s ease;
}

    .slider-btn:hover {
        color: var(--accent-color);
    }

.prev {
    left: 15px; /* Position buttons in the new padding area */
}

.next {
    right: 15px;
}
/* --- EVENTS SECTION --- */
.events-list {
    max-width: 900px;
    margin: auto;
    text-align: left;
    padding: 20px;
    list-style: none;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 25px 0;
}

    .event-item:not(:last-child) {
        border-bottom: 1px solid var(--border-color);
    }

.event-date {
    text-align: center;
    color: var(--accent-color);
}

    .event-date span {
        display: block;
        font-weight: 700;
    }

        .event-date span:first-child {
            font-size: 1rem;
        }

        .event-date span:last-child {
            font-size: 2.2rem;
            line-height: 1;
        }

.event-details {
    flex-grow: 1;
}

    .event-details h3 {
        font-size: 1.4rem;
        margin-bottom: 5px;
    }

.cta-button-small {
    padding: 8px 18px;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    transition: all 0.3s;
}

    .cta-button-small:hover {
        background: var(--accent-color);
        color: #111;
        border-color: var(--accent-color);
    }

/* --- CONTACT SECTION --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    text-align: left;
    padding: 40px;
    max-width: 1100px;
    margin: auto;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    .contact-form input, .contact-form textarea {
        width: 100%;
        padding: 15px;
        border: 1px solid var(--border-color);
        background: rgba(0,0,0,0.2);
        border-radius: 8px;
        color: var(--text-color);
        font-family: 'Poppins', sans-serif;
    }

        .contact-form input:focus, .contact-form textarea:focus {
            outline: none;
            border-color: var(--accent-color);
        }

    .contact-form button {
        align-self: flex-start;
    }

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 25px;
    margin: 20px auto 0;
    width: 95%;
    max-width: 1400px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 20px;
}

    .footer-links a:hover {
        color: var(--accent-color);
    }

/* --- SCROLL ANIMATIONS --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

    .animate-on-scroll.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
/* Staggered animation delays */
.solutions-grid .animate-on-scroll:nth-child(2) {
    transition-delay: 0.2s;
}

.solutions-grid .animate-on-scroll:nth-child(3) {
    transition-delay: 0.4s;
}

.team-grid .animate-on-scroll:nth-child(2) {
    transition-delay: 0.2s;
}

.team-grid .animate-on-scroll:nth-child(3) {
    transition-delay: 0.4s;
}

.team-grid .animate-on-scroll:nth-child(4) {
    transition-delay: 0.6s;
}

/* --- RESPONSIVE & MOBILE MENU --- */
.mobile-nav-toggle {
    display: none;
}

@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        inset: 0 0 0 30%;
        background: rgba(0,0,0,0.1);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        padding: min(20vh, 10rem) 2em;
        gap: 2em;
        transform: translateX(100%);
        transition: transform 350ms ease-out;
    }

        .nav-links.nav-open {
            transform: translateX(0%);
        }

    .dropdown {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        width: 100%;
        background: none;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
    }

    .mobile-nav-toggle {
        display: block;
        position: absolute;
        z-index: 2000;
        top: 1rem;
        right: 2rem;
        background: transparent;
        border: 0;
        cursor: pointer;
        width: 2rem;
        height: 2rem;
    }

    header.scrolled .mobile-nav-toggle {
        top: 0.5rem; /* Adjust position for smaller header */
    }

    .mobile-nav-toggle span {
        display: block;
        width: 2em;
        height: 3px;
        background: white;
        transition: transform 0.3s, opacity 0.3s, background 0.4s ease;
        position: absolute;
        left: 0;
    }

        .mobile-nav-toggle span:nth-child(1) {
            top: 0.5em;
        }

        .mobile-nav-toggle span:nth-child(2) {
            top: 1em;
        }

        .mobile-nav-toggle span:nth-child(3) {
            top: 1.5em;
        }
    /* Hamburger to X animation */
    .nav-open + .mobile-nav-toggle span {
        background: white !important;
    }
        /* Force X to be white */
        .nav-open + .mobile-nav-toggle span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        .nav-open + .mobile-nav-toggle span:nth-child(2) {
            opacity: 0;
        }

        .nav-open + .mobile-nav-toggle span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -6px);
        }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
    }
}


/* --- WHAT WE DO SECTION --- */
.section-subtitle {
    max-width: 700px;
    margin: -40px auto 60px;
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
}

/* This is the unique, darker glass panel for this section */
.what-we-do-panel {
    background: rgba(0, 0, 0, 0.15); /* Darker tint for contrast */
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px); /* Stronger blur effect */
    padding: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    text-align: center;
    perspective: 1000px;
}

.service-card {
    background: transparent; /* The cards themselves are clear */
    padding: 20px;
    border-radius: 10px;
    transition: background 0.4s ease;
}

    .service-card:hover {
        background: rgba(255, 255, 255, 0.05); /* Subtle glow on hover */
    }

.service-icon {
    margin-bottom: 20px;
    color: var(--accent-color); /* This color will be applied to the SVG's stroke */
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.6)); /* Use a filter for the glow effect */
}

    .service-icon svg {
        /* Control the size of the SVG icon */
        width: 56px;
        height: 56px;
        /* Control the line thickness */
        stroke-width: 1.5;
    }

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

/* Staggered animation delays for the new section's cards */
.what-we-do-panel .services-grid .animate-on-scroll:nth-child(1) {
    transition-delay: 0.2s;
}

.what-we-do-panel .services-grid .animate-on-scroll:nth-child(2) {
    transition-delay: 0.4s;
}

.what-we-do-panel .services-grid .animate-on-scroll:nth-child(3) {
    transition-delay: 0.6s;
}


.service-card {
    background-color: transparent;
    min-height: 300px; /* Give the card a fixed height */
    border: none;
    padding: 0; /* Remove padding from the container */
}

/* The inner element that performs the flip */
.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s;
    transform-style: preserve-3d;
}

/* The hover effect that triggers the flip */
.service-card:hover .service-card-inner {
    transform: rotateY(180deg);
}

/* Common styles for both front and back faces */
.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Hide the back side of a face */
    backface-visibility: hidden;
    /* Center content vertically and horizontally */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Style for the front face */
.service-card-front {
    /* The .glass-panel class is applied in HTML for the look */
}

/* Style for the back face */
.service-card-back {
    /* The .glass-panel class is applied in HTML for the look */
    transform: rotateY(180deg); /* Start with the back face flipped away */
}

    /* Ensure text on the back is styled correctly */
    .service-card-back h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
        color: #fff;
    }

    .service-card-back p {
        color: rgba(255, 255, 255, 0.8);
        font-weight: 300;
        font-size: 0.95rem; /* Slightly smaller text for the back */
    }

/* --- TEAM SECTION (Hierarchical Layout & Hover Effect) --- */

/* New main container for the team layout */
.team-layout-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px; /* Space between the CEO and the team row */
}

/* Row for the CEO card */
.ceo-row {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Specific styling for the CEO card to make it slightly more prominent */
.team-member.ceo {
    max-width: 500px; /* Make the CEO card a bit bigger */
    width: 100%;
}




/* Grid for the members row */
.members-row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

/* Force 5 columns when wide enough */
@media (min-width: 1200px) {
    .members-row {
        grid-template-columns: repeat(5, 1fr);
    }
}


/* Grid for the 3 members below the CEO */
/*.members-row {
    width: 100%;
    display: grid;*/
    /* This creates a responsive 3-column grid that stacks on smaller screens */
    /*grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}*/


/* --- BLACK & WHITE TO COLOR IMAGE EFFECT --- */

/* Target the image within the team member card */
.team-member img {
    /* Step 1: Make the image black and white by default */
    filter: grayscale(100%);
    
    /* Step 2: Add a smooth transition for the filter property */
    transition: filter 0.5s ease-in-out;
}

/* Step 3: On card hover, change the image's filter back to color */
.team-member:hover img {
    filter: grayscale(0%);
}

/* --- SOCIAL MEDIA SECTION --- */

/* The main glassy container for the icons, styled as a pill */
.social-icons-wrapper {
    display: inline-flex; /* Use inline-flex to make the container fit its content */
    align-items: center;
    justify-content: center;
    gap: 15px; /* Space between the icons */
    padding: 15px 35px;
    margin-top: 20px;
    border-radius: 50px; /* This creates the pill shape */
    /* A slightly different glass effect for variety */
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Individual icon link styling */
.social-icon-link {
    display: flex; /* Helps center the SVG inside */
    justify-content: center;
    align-items: center;
    padding: 10px;
    color: var(--text-color); /* Initial color for the icon */
    border-radius: 50%; /* Makes the hover background circular */
    transition: all 0.4s ease;
}

    /* Hover effect for the icons */
    .social-icon-link:hover {
        color: var(--accent-color); /* Change icon color on hover */
        transform: translateY(-5px); /* Lift the icon up */
        background: rgba(0, 229, 255, 0.1); /* Add a subtle background glow */
    }

    /* Styling the SVG elements directly */
    .social-icon-link svg {
        /* The 'currentColor' keyword is powerful. It makes the SVG's stroke color
       inherit from its parent's (the <a> tag) text color. */
        stroke: currentColor;
    }

/* --- FLOATING GLASSY SOCIAL ICONS --- */

.floating-social-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px; /* Adjust space between icons */
    padding: 20px;
    flex-wrap: wrap; /* Allows icons to wrap on smaller screens */
}

/* The circular glassy "button" for each icon */
.glassy-icon-link {
    /* Shape and Size */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    /* Centering the SVG inside */
    display: flex;
    justify-content: center;
    align-items: center;
    /* The Glassmorphism Effect */
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    /* Initial state & color for the SVG */
    color: var(--text-color);
    /* The magic transition for the floating effect */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    /* The Floating Hover Effect */
    .glassy-icon-link:hover {
        transform: translateY(-8px) scale(1.1); /* Lifts and enlarges the icon */
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3); /* Deeper shadow for a "lifted" feel */
        color: var(--accent-color); /* Changes the SVG color to teal */
        background: rgba(0, 229, 255, 0.15); /* Adds a hint of the accent color to the glass */
        border-color: rgba(0, 229, 255, 0.4);
    }

    /* Styling the SVG element itself */
    .glassy-icon-link svg {
        width: 32px; /* Control the size of the icon graphic */
        height: 32px;
        stroke: currentColor; /* The SVG's stroke will inherit the link's color */
    }



/* --- PRODUCTS SHOWCASE SECTION --- */

.products-grid {
    display: grid;
    /* Creates a responsive grid that shows 3, 2, or 1 column depending on screen width */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    perspective: 2000px; /* Essential for 3D hover effects */
}

.product-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden; /* Important for the gloss effect */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
}

    /* The floating effect on hover */
    .product-card:hover {
        transform: translateY(-15px) rotateX(5deg) scale(1.05);
        box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    }

/* The container for the product image, which gives it a border and shadow */
.product-image-container {
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transform: translateZ(20px); /* Lifts the image slightly forward */
}

    .product-image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.product-card:hover .product-image-container img {
    transform: scale(1.1); /* Zoom effect on the image */
}

/* The glassy panel for the product information */
.product-info {
    position: relative;
    margin: -50px 20px 20px; /* Negative margin pulls it up over the image */
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    z-index: 10;
}

    .product-info h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
        color: #fff;
    }

    .product-info p {
        font-size: 0.9rem;
        margin-bottom: 20px;
        color: rgba(255, 255, 255, 0.8);
    }

/* --- THE GLOSSY SHEEN ANIMATION --- */

/* The gloss element is a pseudo-element that sweeps across the card */
.product-card-gloss {
    position: absolute;
    top: 0;
    left: -150%; /* Start off-screen to the left */
    width: 100%;
    height: 100%;
    background: linear-gradient( to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100% );
    transform: skewX(-25deg); /* Slant the sheen effect */
    transition: left 0.7s ease-in-out;
    z-index: 5;
    pointer-events: none; /* Make it unclickable */
}

/* On hover, move the sheen across the card */
.product-card:hover .product-card-gloss {
    left: 150%; /* Move it all the way to the right */
}


/* Staggered animation delays for the new section's cards */
.products-grid .animate-on-scroll:nth-child(2) {
    transition-delay: 0.15s;
}

.products-grid .animate-on-scroll:nth-child(3) {
    transition-delay: 0.3s;
}

.products-grid .animate-on-scroll:nth-child(4) {
    transition-delay: 0.45s;
}

.products-grid .animate-on-scroll:nth-child(5) {
    transition-delay: 0.6s;
}

.products-grid .animate-on-scroll:nth-child(6) {
    transition-delay: 0.75s;
}

/* --- PRODUCT DETAIL PAGE STYLES --- */

.product-page-container {
    max-width: 1400px;
    margin: 120px auto 50px; /* Add margin-top to clear the fixed header */
    padding: 20px;
}

/* --- Product Hero Section --- */
.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 80px;
}

/* --- Image Gallery --- */
.product-gallery {
    padding: 20px;
}

.main-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

    .main-image img {
        width: 100%;
        height: auto;
        display: block;
        opacity: 1;
        transition: opacity 0.3s ease-in-out;
    }

        .main-image img.fading {
            opacity: 0;
        }

.thumbnail-images {
    display: flex;
    gap: 15px;
    justify-content: center;
}

    .thumbnail-images img {
        width: 100px;
        height: 75px;
        object-fit: cover;
        border-radius: 8px;
        cursor: pointer;
        border: 2px solid transparent;
        transition: border-color 0.3s ease;
    }

        .thumbnail-images img:hover {
            border-color: rgba(0, 229, 255, 0.5);
        }

        .thumbnail-images img.active-thumb {
            border-color: var(--accent-color);
        }

/* --- Product Summary --- */
.product-summary {
    padding: 40px;
    text-align: left;
}

    .product-summary h1 {
        font-size: 2.8rem;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .product-summary .tagline {
        font-size: 1.1rem;
        font-weight: 300;
        color: var(--accent-color);
        margin-bottom: 25px;
    }

    .product-summary .short-desc {
        margin-bottom: 25px;
    }

.key-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

    .key-features li {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 10px;
    }

    .key-features svg {
        color: var(--accent-color);
        flex-shrink: 0;
    }

.cta-buttons {
    display: flex;
    gap: 20px;
}

.cta-button-secondary {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 12px;
}

    .cta-button-secondary:hover {
        background: rgba(255, 255, 255, 0.1);
    }

/* --- Tabbed Details Section --- */
.tabs-container {
    padding: 30px;
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.tab-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

    .tab-link:hover {
        color: #fff;
    }

    .tab-link.tab-active {
        color: var(--accent-color);
        border-bottom-color: var(--accent-color);
    }

.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: left;
}

    .tab-content.active {
        display: block;
        opacity: 1;
    }

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

    .specs-table tr:not(:last-child) {
        border-bottom: 1px solid var(--border-color);
    }

    .specs-table td {
        padding: 15px;
    }

        .specs-table td:first-child {
            font-weight: 600;
        }

/* --- Responsive for Product Page --- */
@media (max-width: 900px) {
    .product-hero {
        grid-template-columns: 1fr;
    }

    .product-summary h1 {
        font-size: 2.2rem;
    }
}

/* --- GET A QUOTE PAGE STYLES --- */

.quote-page-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Two columns: info on left, form on right */
    gap: 0;
    max-width: 1300px;
    margin: auto;
    text-align: left;
    padding: 0; /* Remove padding from main panel */
    overflow: hidden; /* Important for border-radius */
}

.quote-info-panel {
    padding: 40px;
    background: rgba(0, 0, 0, 0.15); /* Slightly darker panel for contrast */
}

    .quote-info-panel h3 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .quote-info-panel .key-features {
        margin-top: 30px;
    }

        .quote-info-panel .key-features li {
            line-height: 1.8; /* More spacing for readability */
        }

.quote-contact-info {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.quote-form-container {
    padding: 40px;
}

    .quote-form-container form {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .quote-form-container fieldset {
        border: none;
        padding: 0;
        margin: 0;
    }

    .quote-form-container legend {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 20px;
        color: #fff;
    }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    width: 100%;
}

    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        padding: 15px;
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        color: var(--text-color);
        font-size: 1rem;
        font-family: 'Poppins', sans-serif;
        transition: border-color 0.3s ease;
    }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--accent-color);
        }

    .form-group textarea {
        resize: vertical;
    }

/* Custom Checkbox Styling */
.product-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.product-checkbox input[type="checkbox"] {
    display: none; /* Hide the default checkbox */
}

.product-checkbox label {
    display: block;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .product-checkbox label:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: var(--accent-color);
    }

.product-checkbox input[type="checkbox"]:checked + label {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #111;
    font-weight: 600;
}

/* Custom File Upload Button */
.form-group label[for="file-upload"] {
    display: block;
    margin-bottom: 10px;
}

.form-group input[type="file"] {
    color: rgba(255,255,255,0.7);
}

.quote-form-container .cta-button {
    align-self: flex-start;
    width: auto;
}

/* Responsive for Quote Page */
@media (max-width: 900px) {
    .quote-page-layout {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }

    .form-grid {
        grid-template-columns: 1fr; /* Stack form fields */
    }
}


/* --- FORM SUBMISSION STATUS STYLES --- */
.form-status {
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
}

    .form-status.info {
        background-color: rgba(3, 169, 244, 0.1);
        color: #03A9F4;
    }

    .form-status.success {
        background-color: rgba(76, 175, 80, 0.1);
        color: #4CAF50;
    }

    .form-status.error {
        background-color: rgba(211, 47, 47, 0.1);
        color: #D32F2F;
    }


