/* 
   HFC Premium Theme v2.0
   Design: Industrial Modern / High-Tech
   Inspiration: Axxeron Hydrolux & Hindustan Flow Control
*/

@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Color Palette */
    --primary: #0b1c2e;
    /* Deep Industrial Blue */
    --secondary: #1a2f45;
    /* Lighter Navy */
    --accent: #ff4500;
    /* Safety Orange / Red-Orange */
    --accent-dark: #cc3700;

    --text-main: #1f2933;
    --text-muted: #5e6c7d;
    --text-light: #9aa5b1;
    --white: #ffffff;
    --light-bg: #f5f7fa;
    --border: #e4e7eb;

    /* Metrics */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 50px;
    /* Pill shape for buttons */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 20px rgba(11, 28, 46, 0.08);
    --shadow-lg: 0 15px 35px rgba(11, 28, 46, 0.12);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    --font-heading: 'Exo 2', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Legacy Aliases (Fixes inline styles in HTML) */
    --primary-color: var(--primary);
    --accent-color: var(--accent);
}

/* --- Resets & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--secondary);
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
    gap: 25px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-item i {
    color: var(--accent);
}

/* --- Header & Navigation --- */
header {
    background: var(--white);
    height: 90px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.navbar {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 32px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* --- Buttons (Premium Style) --- */
.btn {
    display: inline-block;
    padding: 14px 35px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.5);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- Hero Section (Refined Industrial Style) --- */
.hero {
    height: 100vh;
    /* Full screen height like reference */
    min-height: 600px;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center horizontally */
    position: relative;
    overflow: hidden;
    color: var(--white);
    text-align: center;
    /* Center text */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0.7;
}

/* Enhancing Overlay for Text Pop */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(11, 28, 46, 0.7),
            rgba(11, 28, 46, 0.45) 50%,
            rgba(11, 28, 46, 0.7));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 1.2s ease-out;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 4.8rem);
    /* Responsive fluid typography */
    font-weight: 800;
    /* Extra bold for impact */
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 25px;
    line-height: 1;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content p {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto 45px;
    max-width: 700px;
    font-weight: 400;
}

.hero-btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    /* Center buttons */
}

/* --- Stats Strip --- */
.stats-strip {
    background: var(--white);
    padding: 40px 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item {
    padding: 0 20px;
    border-right: 1px solid var(--border);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
}

/* --- Layout & Sections --- */
.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.split-section {
    display: flex;
    align-items: center;
    gap: 80px;
}

.split-text {
    flex: 1;
}

.split-img {
    flex: 1;
    position: relative;
}

.split-img img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.split-img::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--accent);
    z-index: -1;
    border-radius: var(--radius-md);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin-bottom: 20px;
}

.split-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.read-more {
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.read-more:hover {
    gap: 12px;
}

/* --- Services (Cards) --- */
.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* Zoom effect on hover */
.service-card:hover .service-img {
    transform: scale(1.1);
}

.service-content {
    padding: 30px;
}

.service-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 20px;
    background: rgba(255, 69, 0, 0.1);
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 50%;
}

.service-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.service-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* --- Pages (Contact / About) --- */
.page-header {
    height: 400px;
    background: linear-gradient(rgba(11, 28, 46, 0.9), rgba(11, 28, 46, 0.8)),
        url('../images/contact-header.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-bottom: 50px;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
}

/* Contact Form Styling */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.contact-info-box {
    background: var(--primary);
    color: var(--white);
    padding: 50px;
    border-radius: var(--radius-md);
    height: 100%;
}

.info-item {
    margin-bottom: 40px;
}

.info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--white);
}

.info-item p {
    color: rgba(255, 255, 255, 0.7);
}

.info-item i {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.contact-form {
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--light-bg);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    background: var(--white);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 69, 0, 0.1);
}

/* --- Footer --- */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on tablets */
    }

    .stats-strip {
        margin-top: 0;
        border-radius: 0;
        max-width: 100%;
        box-shadow: none;
        border-bottom: 1px solid var(--border);
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        border-right: none;
    }

    .stat-item {
        border: none;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
        /* Stack cards on mobile */
    }

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

    .split-section {
        flex-direction: column;
    }

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

    .top-bar {
        display: none;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        gap: 10px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: 15px 0;
        border-bottom: 1px solid var(--border);
    }

    .hamburger {
        display: block;
    }

    .container {
        padding: 0 15px;
    }

    .section {
        padding: 50px 0;
    }
}

@media (max-width: 576px) {
    .hero {
        height: auto;
        min-height: 100vh;
        /* Full screen on mobile */
        padding: 100px 0 60px;
        text-align: center;
    }

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

    .hero-content p {
        font-size: 1rem;
    }

    .hero-btn-group {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
    }

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

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .service-content {
        padding: 20px;
        text-align: center;
    }

    .service-icon {
        margin: 0 auto 20px;
    }
}

/* --- Brand Slider Styles --- */
.brand-section {
    padding: 60px 0 80px;
    background: var(--light-bg);
    overflow: hidden;
}

.brand-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Fade effect on edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    padding: 20px 0;
}

.brand-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scroll 25s linear infinite;
}

/* Pause animation on hover for better UX */
.brand-track:hover {
    animation-play-state: paused;
}

.brand-box {
    width: 200px;
    height: 120px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    border: 1px solid var(--border);
    transition: var(--transition);
    flex-shrink: 0;
}

.brand-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.brand-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 1;
    /* Keeping original colors */
    transition: var(--transition);
}

.brand-box:hover img {
    transform: scale(1.05);
    /* Smooth hover zoom */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        /* 
           Calculation: 
           (Item Width 200px + Gap 40px) * 5 Items = 1200px
           Move left by 1200px to seamlessly loop the first set.
        */
        transform: translateX(-1200px);
    }
}