/* GENERAL STYLES & TYPOGRAPHY */
:root {
    --primary-color: #0056b3; /* Blue - FERONEX look */
    --secondary-color: #f7931e; /* Orange/Accent */
    --text-color: #333;
    --bg-color: #f4f4f9;
    --card-bg: rgba(255, 255, 255, 0.7);
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
     --navbar-height: 60px;

}
/* Dark Mode Variables (Essential for color change) */
[data-theme='dark'] {
    --bg-color: #1a1a1a;
    --card-bg: #2c2c2c;
    --text-color: #cccccc;
    --secondary-color: #f8f9fa;
    --border-color: #444;
    --primary-color: #00AEEF; /* Brighter blue for visibility */
    --accent-color: #007bff;
    --shadow: 0 5px 15px rgba(255, 255, 255, 0.05);
}
/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height); /* Variable का उपयोग करें */
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 0 50px; (0 vertical padding is fine if height is set) */
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: background 0.3s;
    padding: 0 50px; /* यदि आपने पहले 15px 50px रखा था, तो उसे हटाकर 0 50px करें */
}
/* logo */
/* Update for Logo Image */
.navbar .logo {
    /* Remove original text styling properties, keep only necessary ones */
    font-size: 0; /* Hide any lingering text if present */
    height: auto; /* Allow height to adjust based on image */
    display: flex; /* Ensure image positioning is easy */
    align-items: center;
}

.nav-logo {
    /* Set a maximum height for the logo */
    max-height: 80px; 
    /* Set a maximum width to prevent overflow on very small screens */
    width: auto; 
    transition: max-height 0.3s ease; /* For smooth transitions if the logo height changes */
}

/* Responsive adjustment for logo on smaller screens */
@media (max-width: 768px) {
    .nav-logo {
        max-height: 30px; /* Make the logo slightly smaller on mobile */
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif; /* Modern Font */
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    transition: background-color 0.5s, color 0.5s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    margin-bottom: 20px;
    font-weight: 700;
}
h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}
section {
    padding: 80px 0;
    overflow: hidden; /* For scroll animations */
}

/* GLASS EFFECT */
.glass-effect {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* HOVER ANIMATION */
.hover-anim:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* BUTTONS */
.cta-button, .view-more-btn, .submit-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
    border: none;
    cursor: pointer;
}
.cta-button:hover, .view-more-btn:hover, .submit-btn:hover {
    background-color: #e07b00;
    transform: scale(1.05);
}
/* 1. HERO SECTION (Laptop/Desktop View) */
.hero-section {
    position: relative;
    width: 100%;
    
    /* LAPTOP/DESKTOP: स्क्रीन हाइट में से Navbar की हाइट घटाएं */
    height: calc(100vh - var(--navbar-height)); 
    
    /* LAPTOP/MOBILE: Hero Section को Navbar की हाइट के बराबर नीचे धकेलें */
    margin-top: var(--navbar-height); 
    
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}
/* ... rest of #video-bg and .video-overlay (ये 100% हाइट को कवर करेंगे) */

#video-bg,
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Hero Section की नई हाइट को पूरी तरह से कवर करेगा */
    object-fit: cover;
    z-index: -2;
}
/* Hero content */
/* NEW: Clean Hero Content Section Styling */
.clean-hero-content-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--bg-color); /* Light background for contrast */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.clean-hero-content-section h1 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.clean-hero-content-section h2 {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 30px;
}

/* Remove the original hero-content styles as they are no longer used */
/* .hero-content { display: none; } */

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: background 0.3s;
}
.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}
.nav-links {
    list-style: none;
    display: flex;
}
.nav-links li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-weight: 500;
}
.nav-links li a:hover {
    color: var(--secondary-color);
}
.nav-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-color);
    margin-left: 15px;
    padding: 10px;
}
.hamburger {
    display: none; /* Hide on desktop */
}

/* 2. ABOUT SECTION */
.about-section {
    text-align: center;
    background: var(--bg-color);
}
.intro-text {
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-color);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}
.stat-card {
    padding: 30px 20px;
}
.stat-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}
.stat-card .counter {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    display: inline-block;
}
.stat-card span {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-left: 5px;
}
.stat-card p {
    margin-top: 5px;
    font-weight: 600;
}

/* 3. PRODUCTS SECTION */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.product-card {
    padding: 20px;
    text-align: center;
}
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}
.product-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 10px;
}
.product-card p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* 4. CERTIFICATES SECTION (Using Swiper Library for Carouse) */
.certificate-carousel {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}
.certificate-carousel img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}
.certificates-section .caption {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* 5. INDUSTRIES WE SERVE */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    text-align: center;
}
.industry-icon-card {
    padding: 20px 10px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: var(--shadow-light);
}
.industry-icon-card i {
    display: block;
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* 6. WHY CHOOSE US (Timeline) */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    opacity: 0; /* Hidden initially for animation */
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.timeline-item h3 {
    color: var(--secondary-color);
    margin-top: 0;
}
/* Right Side Items */
.timeline-item:nth-child(even) {
    left: 50%;
}
/* Left Side Items */
.timeline-item:nth-child(odd) {
    left: 0;
    transform: translateX(-100%);
}
.timeline-item:nth-child(even)::after {
    left: -20px;
}
.timeline-item:nth-child(odd)::after {
    right: -20px;
}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 4px solid var(--bg-color);
    top: 15px;
    z-index: 1;
}

/* Timeline Animation Classes (Added by JS) */
.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}
.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 7. CONTACT SECTION */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-info .info-card {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.contact-info i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
}
.contact-info a {
    color: var(--text-color);
    text-decoration: none;
}
.map-container {
    height: 300px;
    margin-top: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-form {
    padding: 30px;
}
.form-group {
    margin-bottom: 20px;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.3s;
}
.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}
.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* 8. FOOTER */
footer {
    background-color: #222;
    color: white;
    padding: 40px 0 20px;
}
.footer-grid {
    display: flex;
    justify-content: space-between;
    padding-bottom: 30px;
    border-bottom: 1px solid #444;
}
.footer-links h4, .social-media h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}
.footer-links ul {
    list-style: none;
}
.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}
.social-media a {
    color: white;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s;
}
.social-media a:hover {
    color: var(--secondary-color);
}
.copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #aaa;
}

/* MEDIA QUERIES (Responsiveness) */
@media (max-width: 992px) {
    .navbar {
        padding: 15px 20px;
    }
    .nav-links {
        display: none; /* Hide desktop links on small screens */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px; /* Below navbar */
        left: 0;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
    }
    .nav-links.active {
        display: flex; /* Show mobile menu */
    }
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    .nav-links li a {
        padding: 15px 20px;
        color: var(--text-color);
    }
    .hamburger {
        display: block; /* Show hamburger icon */
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .timeline::before {
        left: 20px; /* Move timeline to the left */
    }
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 10px;
    }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
        left: 0;
        transform: translateX(0); /* Remove side animations on mobile */
    }
    .timeline-item:nth-child(odd)::after, .timeline-item:nth-child(even)::after {
        left: 10px; /* Adjust circle position */
        right: auto;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content h2 {
        font-size: 1rem;
    }
    section {
        padding: 60px 0;
    }
}
/* /* Certificates  */
/* 4. CERTIFICATES SECTION */
.certificate-carousel {
    max-width: 800px; 
    margin: 0 auto;
    padding: 20px 0;
    height: 450px; 
    /* सुनिश्चित करें कि ओवरफ़्लो हिडन हो ताकि आधा स्लाइड न दिखे */
    overflow: hidden; 
}

/* Swiper Library Classes को टारगेट करें */
.swiper-wrapper {
    /* सुनिश्चित करें कि Wrapper ठीक से संरेखित (aligned) हो */
    display: flex;
    align-items: center; /* इमेजेज को लंबवत (vertically) बीच में रखें */
}

.certificate-carousel img {
    width: 100%;
    height: 400px; 
    /* object-fit: contain; के साथ, इमेज चौड़ाई में 100% रहती है
       लेकिन यदि यह वर्टिकल है, तो यह कंटेनर के अंदर बीच में फिट हो जाती है। */
    object-fit: contain; 
}

/* मोबाइल पर भी इसे सुनिश्चित करें */
@media (max-width: 768px) {
    .certificate-carousel {
        height: 300px;
    }
    .certificate-carousel img {
        height: 250px;
    }
}
/*mobile video screen management */
/* Hero Section (Desktop View) */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* डेस्कटॉप पर फुल हाइट */
    /* ... अन्य स्टाइल ... */
}

/* ---------------------------------------------------- */
/* MEDIA QUERY: Mobile Devices (768px या उससे कम) */
/* ---------------------------------------------------- */
@media (max-width: 768px) {
    
    .hero-section {
        /*
        * 16:9 अनुपात सुनिश्चित करने के लिए:
        * 100vw (100% Viewport Width) का 56.25% (या लगभग 56%)
        * (9 / 16 = 0.5625)
        */
        height: 56.25vw; /* वीडियो की हाइट को चौड़ाई के आधार पर सेट करता है */
        
        /* * यदि आप वीडियो के नीचे Hero Content सेक्शन को छिपाना नहीं चाहते हैं
        * (जो आपने पिछले चरणों में Hero Section से बाहर निकाला था), 
        * तो आपको Hero Section के नीचे से Navbar की हाइट के बराबर पैडिंग देनी पड़ सकती है।
        */
        
        /* Optional: यदि आप वीडियो के नीचे थोड़ी और जगह चाहते हैं */
        /* min-height: 250px; */ 
    }

    #video-bg {
        /* वीडियो को कंटेनर के अंदर पूरी तरह से फिट करना सुनिश्चित करें */
        object-fit: cover;
    }
}
/* --- Video Control Button Styling --- */
.video-control-btn {
    position: absolute;
    /* Position it near a corner, e.g., bottom right */
    bottom: 20px; 
    right: 20px; 
    
    background: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 1.2rem;
    color: white; /* Icon color */
    z-index: 50; /* Ensure it's above the video, below the navbar */
    transition: background 0.3s, transform 0.3s;
}

.video-control-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* Dark Mode adjustment for the control button (if needed) */
[data-theme='dark'] .video-control-btn {
     background: rgba(0, 0, 0, 0.4); 
     border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .video-control-btn {
        bottom: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
/* --- WELCOME MESSAGE OVERLAY AND BOX STYLING --- */

#welcome-message-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Subtle dark background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    
    /* Initial state for animation */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

#welcome-message-overlay.show {
    opacity: 1;
    visibility: visible;
}

#welcome-box {
    /* Using Glass Effect from style.css */
    width: 90%;
    max-width: 500px;
    padding: 30px;
    text-align: center;
    
    /* Box Animation */
    transform: translateY(50px) scale(0.95);
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Bounce effect */
}

#welcome-message-overlay.show #welcome-box {
    transform: translateY(0) scale(1);
}

/* --- Content Styling --- */
.welcome-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    animation: bounce 1.5s infinite; /* Gentle continuous bounce */
}

.welcome-text-content h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.welcome-text-content p {
    font-size: 1rem;
    margin-bottom: 25px;
    font-style: italic;
    min-height: 20px; /* Space for text */
}

#close-welcome-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* --- Keyframe Animation --- */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* --- Dismiss Animation (Shrink and Fade) --- */
.animate-out {
    animation: shrinkOut 0.4s forwards;
}

@keyframes shrinkOut {
    to {
        transform: scale(0.7);
        opacity: 0;
    }
}
/* ========================================= */
/* Product Grid Hover and Accessibility CSS */
/* ========================================= */

/* Ensure smooth transitions for the hover effect */
.product-card img {
    /* Apply smooth transition to transform and box-shadow */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: block; /* Important for clean scaling */
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Image Lift and Shadow Animation on Hover */
.product-card:hover img {
    /* Lift the image up and scale slightly for a 3D effect */
    transform: translateY(-10px) scale(1.05); 
    /* Add a pronounced shadow for a 'floating' feel */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3); 
    /* Keep the image within the card boundaries */
    z-index: 10;
}

/* Optional: Enhance the whole card on hover */
.product-card:hover {
    cursor: pointer;
    border-color: var(--primary-color, #007bff); /* Assuming a primary color variable */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
}