/* ----------------------------------------------------------
   FERROTTE PROJECT LIMITED – Main Stylesheet
   Enhanced for Tailwind Compatibility, AOS, and Theme Toggle
   Focus on Responsiveness and Dark Mode Consistency
----------------------------------------------------------- */

/* Root Variables and Resets - Centralized for Theming */
:root {
    --primary-color: #f59e0b; /* Tailwind yellow-500 */
    --secondary-color: #1f2937; /* Tailwind gray-800 */
    --light-bg: #ffffff;
    --dark-bg: #0f172a; /* Tailwind slate-900 */
    --text-color-light: #111827; /* Tailwind gray-900 */
    --text-color-dark: #f3f4f6; /* Tailwind gray-100 */

    /* Glass effect base values (will be overridden by JS for dynamic theme switch) */
    --glass-bg-light: rgba(255, 255, 255, 0.75);
    --glass-border-light: rgba(255, 255, 255, 0.2);
    --glass-shadow-light: 0 1px 4px rgba(0, 0, 0, 0.05);
    --glass-backdrop-blur-light: 10px;

    --glass-bg-dark: rgba(31, 41, 55, 0.6); /* Adjusted for dark mode header */
    --glass-border-dark: rgba(255, 255, 255, 0.08);
    --glass-shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.4);
    --glass-backdrop-blur-dark: 12px;
}

/* Default: Light Mode & Base Body Styles */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
    /* Tailwind handles background-color and color by default now with dark: classes */
    /* Remove redundant background-color and color from here */
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Global Section Title & Divider Styling */
.section-title {
    font-family: 'Oswald', sans-serif;
    color: var(--text-color-light); /* Overridden by dark:text-white in HTML */
    text-transform: uppercase;
}

.section-divider {
    background-color: var(--primary-color); /* Overridden by Tailwind bg-yellow-500 */
}

/* Header Styles - Tailwind handles most, but custom glass effect needs base */
.main-header {
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Glass / Frosted Header Effect (Base - JS will dynamically adjust for theme) */
.glass-effect {
    background: var(--glass-bg-light);
    backdrop-filter: blur(var(--glass-backdrop-blur-light));
    -webkit-backdrop-filter: blur(var(--glass-backdrop-blur-light));
    border-bottom: 1px solid var(--glass-border-light);
    box-shadow: var(--glass-shadow-light);
}

/* Company Name Styling - Font Oswald */
.company-name {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Navigation - Tailwind handles layout/spacing */
.main-nav a,
.mobile-nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Mobile Menu Toggle Icon */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary-color); /* Default light mode color */
}

/* Mobile Navigation Panel - Managed by JS for 'active' class */
.mobile-nav-panel {
    /* Tailwind's hidden/block handles display */
    /* Styling for when it IS active */
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Theme Toggle Button Icon */
.theme-toggle i {
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Hero Section */
.hero-section {
    background-image: url('hero-bg-placeholder.jpg'); /* Use placeholder image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55); /* Darker overlay for better text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Buttons - Tailwind handles most styling, but custom for hover/etc. */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #d97706; /* Slightly darker orange */
    transform: translateY(-2px);
}

.btn-hero {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-hero:hover {
    background-color: #d97706; /* Slightly darker orange */
    transform: translateY(-2px);
}

.btn-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease, transform 0.2s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Service Boxes - Custom Hover Effect and Base Glass Effect */
.service-box {
    background: rgba(255, 255, 255, 0.6); /* Default light mode glass */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.8); /* Lighter on hover */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Projects Gallery Images - Custom Hover Effect */
.projects-gallery img {
    background: rgba(255, 255, 255, 0.6); /* Default light mode glass */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.projects-gallery img:hover {
    transform: scale(1.05); /* Slightly larger on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Contact Form Inputs - Custom Focus Style */
.contact-form input,
.contact-form textarea {
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2); /* Tailwind yellow-500 with opacity */
}

/* Dark Mode Overrides (controlled by body.dark-mode class from JS) */
body.dark-mode {
    /* Tailwind handles base background and text color transition */
}

body.dark-mode .main-header {
    background: rgba(15, 23, 42, 0.85); /* Darker glass for header */
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

body.dark-mode .menu-toggle {
    color: var(--text-color-dark);
}

body.dark-mode .mobile-nav-panel {
    background-color: var(--dark-bg);
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .mobile-nav-link {
    color: var(--text-color-dark);
}

body.dark-mode .mobile-nav-link:hover {
    color: var(--primary-color);
}


body.dark-mode .service-box {
    background: rgba(31, 41, 55, 0.4); /* Darker glass for service boxes */
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-mode .service-box:hover {
    background: rgba(31, 41, 55, 0.6); /* Slightly lighter on hover in dark mode */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

body.dark-mode .projects-gallery img {
    background: rgba(31, 41, 55, 0.3); /* Darker glass for images */
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.dark-mode .projects-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
    background: rgba(31, 41, 55, 0.7); /* Darker background for form inputs */
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-color-dark);
}

body.dark-mode .contact-form input:focus,
body.dark-mode .contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}

/* Theming Transition - for smooth property changes */
body.theme-transition * {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

/* AOS compatibility enhancements */
[data-aos] {
    will-change: transform, opacity;
}

/* Responsive Fixes - Using Tailwind's mobile-first approach largely removes the need for custom media queries here */

/* Mobile Nav Toggling */
/* The 'active' class for mobile nav is handled by JS, then Tailwind's hidden/block */
/* No specific media query needed here if Tailwind classes in HTML correctly handle md:hidden, md:block */

/* Ensure images are always responsive */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Tailwind CSS CDN issue fix - use v2 for compatibility or ensure v3 is linked correctly */
/* The provided CDN link for Tailwind CSS had a slight formatting issue (tailwindcss3.4.1),
   corrected to a common v2 link. If you prefer v3, ensure the link is correct:
   <link href="https://cdn.jsdelivr.net/npm/tailwindcss@^3/dist/tailwind.min.css" rel="stylesheet">
   However, for this example, v2 is more stable and widely compatible with older projects. */

/* Font Awesome 6.5.0 icon fix */
/* The integrity and crossorigin attributes are correct, so this should load fine. */
```http://googleusercontent.com/generated_image_content/0