/* ==================================== */
/* 0. Color Variables & Typography (Corporate Look) */
/* ==================================== */

/* Color Palette: Professional & Global */
:root {
    --primary-color: #0d3b66; /* Deep Blue - Corporate & Trustworthy */
    --secondary-color: #f4d35e; /* Gold/Amber - Premium & Quality */
    --accent-color: #ee964b; /* Vibrant Orange - Energy & Call to Action */
    --text-dark: #2a324b;
    --text-light: #f4f6f9;
    --bg-light: #ffffff;
    --bg-section: #f4f6f9;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    
    /* Dynamic CSS variable for link hover color (controlled by JS on scroll) */
    --header-highlight-color: var(--accent-color); 
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
    font-size: 16px; 
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px; 
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 0 15px;
}

/* Utility Classes */
section { padding: 80px 0; }
.section-padding { padding: 80px 0; }

h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    position: relative;
    text-transform: uppercase;
    font-weight: 800; 
}

/* Underline effect for H2 */
h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 5px; 
    background-color: var(--secondary-color);
    border-radius: 2px;
}

/* Primary Button Redefined (Enhanced) */
.btn-primary {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 16px 35px; 
    font-weight: 700; 
    border-radius: 8px; 
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: none;
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-3px); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.4); 
}

/* ==================================== */
/* 1. Header & Navbar */
/* ==================================== */

.header {
    background: var(--bg-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

/* Define the appearance when the 'scrolled' class is active */
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95); 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); 
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-group {
    display: flex; 
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 55px; 
    width: auto;
    border-radius: 5px;
    display: block;
}

/* --- Logo Text Gradient Effect --- */
.company-name,
.tagline {
    /* Apply gradient background to the text */
    background: linear-gradient(
        90deg, 
        var(--primary-color) 0%, /* Deep Blue start */
        var(--secondary-color) 50%, /* Gold center */
        var(--text-dark) 100% /* Dark Text end */
    );
    
    /* Crucial for the text effect: clip the background to the text area */
    -webkit-background-clip: text; 
    background-clip: text;
    
    /* Make the foreground color transparent so the background shows through */
    color: transparent; 
    
    line-height: 1.1;
    display: block;
    transition: all 0.3s ease; 
}

.company-name {
    font-weight: 800;
    font-size: 1.4rem;
}

.tagline {
    font-size: 0.85rem;
    font-weight: 600;
    font-style: italic;
}

.logo-group:hover .company-name,
.logo-group:hover .tagline {
    background-position: 20% center; 
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600; 
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

/* Highlight uses dynamic variable */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--header-highlight-color); 
    left: 0;
    bottom: 0;
    transition: width 0.3s ease-in-out;
}

/* Hover uses dynamic variable */
.nav-links a:hover, .nav-links a.active {
    color: var(--header-highlight-color); 
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 25px; height: 3px; background: var(--text-dark); border-radius: 2px; }

/* --- Dropdown Menu Styling --- */
.dropdown {
    position: relative; 
}

.dropdown-menu {
    display: none; 
    position: absolute;
    top: 100%; 
    left: 0;
    list-style: none;
    background-color: var(--bg-light); 
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    padding: 10px 0;
    border-radius: 5px;
    z-index: 1010; 
    border-top: 3px solid var(--header-highlight-color);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block; 
    padding: 10px 20px;
    color: var(--text-dark);
    font-weight: 500;
    padding-bottom: 10px; 
    border-bottom: none;
}

/* Remove the underline effect from dropdown menu items */
.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background-color: var(--bg-section); 
    color: var(--accent-color);
}

/* Show Menu on Hover */
.dropdown:hover .dropdown-menu {
    display: block; 
}


/* ==================================== */
/* 2. Hero Section (Slider) */
/* ==================================== */

.hero {
    position: relative;
    height: 90vh;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

.hero-slider .slides {
    display: flex;
    transition: transform 0.8s ease-in-out;
    height: 100%;
}

.hero-slider .slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background-size: cover; 
    background-repeat: no-repeat;
    background-position: center center;
    display: flex;
    align-items: center; 
    justify-content: flex-start; 
    padding-left: 10%; 
}

.hero-slider .slide::before {
    content: "";
    position: absolute;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    color: #fff;
    text-align: left;
    z-index: 2;
    max-width: 600px;
    padding: 2rem 0;
    animation: fadeInRight 1s ease forwards;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.hero-slider .prev,
.hero-slider .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(13, 59, 102, 0.7);
    color: var(--secondary-color);
    font-size: 1.5rem;
    padding: 10px 18px;
    cursor: pointer;
    z-index: 3;
    border-radius: 5px;
    border: none;
    transition: background 0.3s;
}

.hero-slider .prev:hover,
.hero-slider .next:hover {
    background: var(--primary-color);
}

.hero-slider .prev { left: 2%; }
.hero-slider .next { right: 2%; }

@keyframes fadeInRight {
    0% { transform: translateX(-50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}


/* ==================================== */
/* 3. About Section */
/* ==================================== */

.about { background-color: var(--bg-section); }

.about-flex {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    font-size: 1.1rem;
}

.about-img {
    flex: 1;
    min-width: 300px;
}

.about-img img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.about-img img:hover {
    transform: scale(1.02);
}


/* ==================================== */
/* 4. Products Section (Card Style) */
/* ==================================== */

.products { background-color: var(--bg-light); }

.product-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px; 
}

/* Link Wrapper for the Product Card */
.product-grid a.product-link {
    text-decoration: none; /* Remove underline from the entire card */
    color: inherit; /* Inherit the text color from the body/container */
    display: block; /* Ensure the link takes up the whole grid area */
    transition: all 0.4s ease;
}

/* Base Card Styling */
.product-card {
    border: 1px solid rgba(0, 0, 0, 0.05); /* Subtle border for clean lines */
    border-radius: 12px; 
    overflow: hidden;
    background: var(--bg-section); 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); 
    transition: all 0.4s ease;
    padding-bottom: 20px; 
    height: 100%; /* Important for grid alignment */
}

.product-card img {
    width: 100%;
    height: 330px; 
    object-fit: cover; 
    display: block;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    margin-bottom: 15px; 
}

.product-card h3 {
    padding: 0 20px; 
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 8px; 
    transition: color 0.3s ease;
}

.product-card p {
    padding: 0 20px;
    font-size: 1rem;
    color: #666;
}

/* Card Hover Effects (Applied to the 'product-link' wrapper) */
.product-link:hover {
    transform: translateY(-12px); /* Deeper lift on hover */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2); /* Deeper shadow on hover */
}

.product-link:hover .product-card h3 {
    color: var(--primary-color); /* Subtle text color change on hover */
}


/* ==================================== */
/* 5. Why Us Section (Enhanced Card Style) */
/* ==================================== */

.whyus { background-color: var(--bg-section); }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Springy transition */
    border-bottom: 5px solid var(--secondary-color);
    text-align: center;
}

.card:hover {
    box-shadow: 0 15px 35px rgba(13, 59, 102, 0.15); /* More shadow */
    transform: translateY(-5px); 
    border-bottom-color: var(--accent-color); /* Highlight color change */
}

.icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.card p {
    color: #555;
}


/* ==================================== */
/* 6. Contact Section (Two-Column Layout) */
/* ==================================== */

.contact {
    padding: 80px 20px;
    background-color: var(--bg-light);
}

.contact h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* Flex Container for Info and Form */
.contact-flex-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap; 
}

/* --- Contact Info (Left Column) --- */
.contact-info {
    flex: 1; 
    min-width: 300px;
    padding-top: 20px;
}

.contact-info .info-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-info .info-group i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-right: 15px;
    padding-top: 3px;
}

.contact-info .info-group p {
    color: var(--text-dark);
    line-height: 1.5;
    font-size: 1rem;
}

/* --- Contact Form (Right Column) --- */
.contact-form-wrapper {
    flex: 2; 
    min-width: 400px;
    padding: 30px;
    border-radius: 10px;
    background: var(--bg-section);
    box-shadow: var(--shadow-light);
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contact .form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1; 
}

.contact .form-group.full-width {
    flex: 0 0 100%;
}

.contact .form-group label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.contact input,
.contact select,
.contact textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease;
    font-size: 1rem;
    background: white; 
}

.contact .country-code select {
    appearance: none; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236c757d'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 16px;
}

.contact textarea {
    resize: vertical;
    min-height: 120px;
}

.contact input:focus,
.contact select:focus,
.contact textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 5px rgba(238, 150, 75, 0.5);
}

.contact .btn-primary {
    margin-top: 10px;
    align-self: flex-start; 
}


/* ==================================== */
/* 7. Footer (Social Icons by Brand Color & Contact Styling) */
/* ==================================== */

.footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 50px 0 20px;
    border-top: 5px solid var(--secondary-color);
}

.footer h3, .footer h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

/* Social links inside footer */
.footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item {
    display: flex; 
    align-items: center; 
    margin-bottom: 15px; 
    gap: 12px; 
}

.footer-contact-item:last-child {
    margin-bottom: 0; 
}

.footer-contact-item i {
    color: var(--secondary-color); 
    font-size: 1.5rem; 
    transition: transform 0.2s ease;
}

.footer-contact-item a {
    color: var(--text-light); 
    font-size: 1.1rem; 
    font-weight: 500; 
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: var(--accent-color); 
}

.footer-contact-item:hover i {
    transform: scale(1.1); 
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    color: var(--text-light);
    margin-right: 15px;
    font-size: 24px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    border: 1px solid var(--text-light);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--text-light); 
    border-color: var(--text-light);
    transform: translateY(-2px); 
}

/* SPECIFIC BRAND COLOR HOVER RULES */
.social-links a:hover .fa-youtube { color: #ff0000; }
.social-links a:hover .fa-facebook-f { color: #3b5998; }
.social-links a:hover .fa-twitter { color: #1da1f2; }
.social-links a:hover .fa-linkedin-in { color: #0077b5; }
.social-links a:hover .fa-instagram { color: #e1306c; }

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}


/* ==================================== */
/* 8. SUBPRODUCT PAGE STYLES (Product Details) */
/* ==================================== */

/* --- Banner Image Styles --- */
#product-hero-image {
    padding: 0;
    margin-bottom: 40px; /* Space below the banner */
}

.product-hero-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light); 
}

.product-banner-img {
    width: 100%;
    height: 350px; /* Forces rectangular shape */
    object-fit: cover; /* Crops the image to fill the height without distortion */
    object-position: center center; 
    display: block;
}

/* --- Product Details Content --- */
#product-details {
    /* If you removed the image from the two-column layout, ensure details take full width */
    padding-top: 40px; 
}

/* Base flex container for the product info */
.product-content-row {
    display: flex;
    gap: 40px; 
    flex-wrap: wrap; 
    align-items: flex-start;
}

/* Ensure product details section takes full width when banner is used above */
.product-details-content .product-info {
    flex: 0 0 100%; 
    max-width: 100%;
    margin: 0;
}

.product-info h2 {
    text-align: left; /* Override global H2 center alignment */
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 2rem;
    text-transform: none;
}
.product-info h2::after {
    display: none; /* Remove center line from details heading */
}

/* Product Specifications Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    font-size: 1rem;
    border: 1px solid var(--bg-section);
    border-radius: 6px;
    overflow: hidden;
}

.specs-table th, .specs-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--bg-section);
}

.specs-table th {
    background-color: #f0f3f6; /* Lighter background for headers */
    font-weight: 600;
    width: 35%; 
    color: var(--text-dark);
}

.specs-table tr:nth-child(even) {
    background-color: var(--bg-light);
}

.back-link {
    margin-top: 40px;
    text-align: center;
}

.back-link a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s;
}

.back-link a:hover {
    color: var(--accent-color);
}


/* ==================================== */
/* 9. Responsive Adjustments */
/* ==================================== */

@media (max-width: 992px) {
    .hero-content h1 { font-size: 3rem; }
    .about-flex { flex-direction: column; text-align: center; }
    .about-text { order: 2; }
    .about-img { order: 1; }
    .cards { grid-template-columns: 1fr; }
    .footer-flex > div { width: 45%; }
}

@media (max-width: 768px) {
    /* Mobile Menu Styling */
    .nav-links {
        display: none;
        flex-direction: column;
        background: var(--bg-light);
        position: absolute;
        top: 80px;
        right: 20px;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        width: 200px;
    }
    .nav-links a { text-align: left; padding: 10px 0; }
    .nav-links.open { display: flex; }
    .hamburger { display: flex; }
    
    /* Dropdown on Mobile */
    .dropdown .dropdown-menu {
        position: static; 
        box-shadow: none;
        background-color: transparent;
        border-radius: 0;
        padding-left: 20px; 
        min-width: auto;
        border-top: none;
    }
    .dropdown:hover .dropdown-menu {
        display: none; 
    }
    
    /* Hero adjustments */
    .hero { height: 70vh; }
    .hero-slider .slide { justify-content: center; padding-left: 0; text-align: center; }
    .hero-content { max-width: 90%; text-align: center; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }

    /* Product Banner on Mobile */
    .product-banner-img {
        height: 200px; /* Shorter banner on small screens */
    }

    /* Contact adjustments */
    .contact-flex-container {
        flex-direction: column;
        gap: 20px;
    }
    .contact-form-wrapper {
        min-width: 100%;
        order: 1;
    }
    .contact-info {
        min-width: 100%;
        order: 2; 
    }
    .contact .form-row {
        flex-direction: column;
        gap: 0;
    }

    /* Footer adjustments */
    .footer-flex { flex-direction: column; gap: 30px; text-align: center; }
    .footer-flex > div { width: 100%; }
}



/* ==================================== */
/* 8.1. ANIMATION & UNIQUE PRODUCT STYLING */
/* ==================================== */

/* --- Banner Focus & Depth Effect --- */
.product-hero-container {
    /* Apply a slight 3D rotation and scale to the container for a modern feel */
    transform: perspective(1000px) rotateX(1deg) scale(0.98); 
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth cubic transition */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25); /* Deep shadow */
}

.product-hero-container:hover {
    transform: perspective(1000px) rotateX(0deg) scale(1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); /* Deeper shadow on hover */
}

/* Subtle, continuous shadow pulse for the banner image */
.product-banner-img {
    animation: shadow-pulse 4s infinite alternate ease-in-out;
}

@keyframes shadow-pulse {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.03); } /* Slight brightness fluctuation */
}


/* --- Animated List Items (Key Applications) --- */
.product-info ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    opacity: 0; /* Hidden by default for JS animation */
}

.product-info ul li::before {
    content: "\f00c"; /* Font Awesome checkmark icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color); /* Gold Checkmark */
    font-size: 1.2rem;
    text-shadow: 0 0 5px rgba(244, 211, 94, 0.7); /* Subtle glow */
}

/* --- Unique Specs Presentation (Vertical Tabs Style) --- */
/* Specifications Table Rework */
.specs-table {
    border: none;
    background-color: transparent;
    margin-bottom: 30px;
}

.specs-table tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px; /* Spacing between specification blocks */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--bg-section);
}

.specs-table tr:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.specs-table th, .specs-table td {
    border-bottom: none;
    width: 100%;
    padding: 10px 20px;
}

.specs-table th {
    background-color: var(--primary-color); /* Deep Blue Header */
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.specs-table td {
    background-color: var(--bg-light); 
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Responsive fix for small screens */
@media (max-width: 600px) {
    .specs-table tr {
        margin-bottom: 20px;
    }
}