:root {
    --primary: #f57c00; /* Industrial Orange */
    --secondary: #212121; /* Deep Charcoal */
    --accent: #00bcd4; /* Engineering Blue */
    --bg-dark: #121212;
    --bg-light: #ffffff;
    --surface: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-on-light: #212121;
    --border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

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 2rem;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    height: 50px;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    transition: var(--transition);
}

/* Page Header System */
.page-header {
    height: 40vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 80px;
}

/* Theme Variations */
.about-header { background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/slider/1.jpg'); }
.service-header { background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/slider/2.jpg'); }
.projects-header { background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/slider/2.jpg'); }
.contact-header { background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/slider/3.jpg'); }

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.8), transparent);
    z-index: 1;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    position: relative;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
}

/* Image & Badge Layout */
.about-img-container {
    position: relative;
    margin-top: 3rem;
}

.about-img-container img {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--primary);
    padding: 1.5rem 2.5rem;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(245, 124, 0, 0.3);
}

.experience-badge span {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.experience-badge small {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Grid Layout System */
.grid-1, .grid-2, .grid-3, .grid-4, .service-grid, .contact-grid { 
    display: grid; 
    gap: 4rem; 
    align-items: center; 
}

.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.service-grid { grid-template-columns: 2fr 1fr; align-items: stretch; }
.contact-grid { grid-template-columns: 1fr 1.5fr; }

/* Contact Specific Components */
.info-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #eee;
    margin-bottom: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-card i {
    font-size: 1.5rem;
    color: var(--primary);
    background: rgba(245, 124, 0, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-grid input,
.contact-grid textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
}

.contact-grid input:focus,
.contact-grid textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(245, 124, 0, 0.1);
}

/* Sidebar Component */
.sidebar-box {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    position: sticky;
    top: 100px;
}

.sidebar-links li {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

/* Global Cards & Components */
.card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-align: center;
}

/* Gallery Component */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4/3;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover img {
    transform: scale(1.1);
}

/* Footer Section */
footer {
    background: #0a0a0a;
    padding: 80px 0 20px;
    border-top: 1px solid var(--border);
}

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

footer img {
    height: 40px;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
}

.footer-head {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Utility Classes */
.text-primary { color: var(--primary); }
.bg-light { background: var(--bg-light); color: var(--text-on-light); }
.bg-light .section-title h2 { color: var(--text-on-light); }

/* --- Responsive Media Queries --- */

@media (max-width: 1024px) {
    .container { padding: 0 1.5rem; }
    .footer-grid { gap: 2rem; }
}

@media (max-width: 992px) {
    section { padding: 60px 0; }
    .grid-2, .grid-3, .grid-4, .service-grid, .contact-grid { 
        grid-template-columns: 1fr; 
        gap: 2rem; 
    }
    .hero { height: auto; min-height: 80vh; padding: 120px 0 60px; }
    .hero h1 { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #0a0a0a;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: 0.5s ease-in-out;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .experience-badge {
        position: static;
        margin-top: -40px;
        margin-left: 20px;
        display: inline-block;
    }

    .hero h1 { font-size: 2.5rem; }
    .section-title h2 { font-size: 2rem; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    footer img { margin-inline: auto; }
    .footer-links { text-align: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .btn { width: 100%; }
    .container { padding: 0 1rem; }
}
