/* Variables and Reset */
:root {
    --primary-color: #D32F2F;
    /* Fire Red */
    --primary-hover: #b71c1c;
    --dark-bg: #ffffff;
    /* White Background */
    --card-bg: #f8f8f8;
    /* Light Grey */
    --text-main: #222222;
    --text-muted: #555555;
    --border-color: #e0e0e0;

    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-muted);
    line-height: 1.6;
    overflow-x: hidden;
    /* Industrial Grid Background */
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1400px;
    /* Wider for industrial look */
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.section-dark {
    background-color: #f4f4f4;
    /* Very Light Grey */
}

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

.highlight {
    color: var(--primary-color);
}

/* Utilities */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    border-radius: 0;
    /* Sharp corners */
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #fff;
    z-index: -1;
    transition: width 0.3s ease;
}

.btn-primary:hover::before {
    width: 100%;
}

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

.btn-secondary {
    display: inline-block;
    padding: 12px 35px;
    background-color: transparent;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 1.5px;
    border: 1px solid var(--border-color);
    border-radius: 0;
    text-transform: uppercase;
    margin-top: 1rem;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo {
    height: 45px;
    width: auto;
    /* Original colors */
}

nav ul {
    display: flex;
    gap: 40px;
    align-items: center;
}

nav ul li a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

.btn-nav {
    padding: 8px 25px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color) !important;
}

.btn-nav:hover {
    background-color: var(--primary-color);
    color: white !important;
}

.btn-nav::after {
    display: none;
}

/* Hero Section */
#hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/hero_bg.png') no-repeat center center/cover;
    background-attachment: fixed;
    /* Parallax feel */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    border-left: 5px solid var(--primary-color);
    padding-left: 40px;
}

#hero h1 {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 25px;
    text-transform: uppercase;
    color: #ffffff;
}

#hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 650px;
    color: #e0e0e0;
}

/* About Section */
.row {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.col-text {
    flex: 1;
}

.col-image {
    flex: 1;
    position: relative;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: '//';
    color: var(--primary-color);
    margin-right: 10px;
}

.lead {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #444;
}

.image-placeholder {
    width: 100%;
    height: 450px;
    background: url('assets/about_us.png') center/cover;
    filter: none;
    transition: filter 0.5s ease;
    border: 1px solid var(--border-color);
}

.image-placeholder:hover {
    filter: grayscale(0%);
}

.col-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    border-bottom: 5px solid var(--primary-color);
    border-right: 5px solid var(--primary-color);
    z-index: -1;
}

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

.quality-item {
    padding: 30px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    text-align: left;
    transition: transform 0.3s ease;
}

.quality-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.quality-item h3 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quality-item h3::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Technical Corner Accents */
.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover::after {
    width: 100%;
    height: 100%;
    border-color: var(--primary-color);
    opacity: 0.1;
    background-color: var(--primary-color);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 2;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    background-color: #f0f0f0;
    transform: translateY(-5px);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}



/* Contact Section */
#contact {
    background-color: #f9f9f9;
    position: relative;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('https://images.unsplash.com/photo-1565610261709-5c5159748022?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.contact-wrapper {
    display: flex;
    gap: 60px;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

.contact-info {
    flex: 1;
}

.info-item {
    margin-bottom: 40px;
    padding-left: 20px;
    border-left: 2px solid var(--primary-color);
}

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

.info-item p {
    color: #555;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee;
    color: #444;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.contact-form-container {
    flex: 1.5;
    background: rgba(255, 255, 255, 0.9);
    padding: 50px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(5px);
}

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

.form-group label {
    display: block;
    color: var(--text-main);
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
    display: block;
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    color: #333;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    margin-top: 20px;
}

/* Footer */
footer {
    background-color: #eee;
    border-top: 1px solid #ddd;
    padding: 30px 0;
    font-size: 0.9rem;
    color: #666;
    letter-spacing: 1px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 3rem;
    }

    .hero-content {
        padding-left: 20px;
        border-left-width: 3px;
    }

    .row {
        flex-direction: column;
    }

    .qualities-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    nav ul {
        display: none;
    }

    .mobile-menu-icon {
        display: block;
        color: #222;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .col-image::after {
        display: none;
    }
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.preloader-logo {
    width: 150px;
    margin-bottom: 20px;
    animation: pulseLogo 2s infinite ease-in-out;
}

.loading-bar {
    width: 200px;
    height: 2px;
    background-color: #eee;
    position: relative;
    overflow: hidden;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background-color: var(--primary-color);
    animation: loading 1.5s infinite linear;
}

@keyframes pulseLogo {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(0.95);
    }
}

@keyframes loading {
    0% {
        left: -30%;
    }

    100% {
        left: 100%;
    }
}