/* ===========================
   CSS Reset & Base Styles
   =========================== */

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

:root {
    /* Color Palette - Industrial with Orange Accent */
    --primary-color: #F0682D;
    --primary-dark: #D85A1F;
    --secondary-color: #2C3E50;
    --dark-bg: #1A1A1A;
    --light-bg: #F5F5F5;
    --text-dark: #2C3E50;
    --text-light: #FFFFFF;
    --text-gray: #7F8C8D;
    --border-color: #E0E0E0;

    /* Typography */
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    --font-heading: 'Arial Black', 'Arial Bold', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Effects */
    --transition-speed: 0.3s;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

/* ===========================
   Typography
   =========================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--spacing-sm);
}

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

/* ===========================
   Layout Utilities
   =========================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    text-align: center;
    color: var(--secondary-color);
    letter-spacing: 2px;
    margin-bottom: var(--spacing-md);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: var(--spacing-sm) auto 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
}

/* ===========================
   Buttons
   =========================== */

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--secondary-color);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* ===========================
   Navigation
   =========================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--dark-bg);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: var(--box-shadow);
}

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

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.nav-brand .logo {
    height: 100px;
    width: auto;
    display: block;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: all var(--transition-speed);
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===========================
   Hero Section
   =========================== */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%232C3E50" width="1200" height="600"/><g fill-opacity="0.1"><polygon fill="%23444" points="1200 0 800 600 1200 600"/><polygon fill="%23222" points="0 600 400 0 0 0"/></g></svg>');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: var(--spacing-md);
}

.hero-title {
    font-size: 4.5rem;
    letter-spacing: 4px;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
    color: var(--light-bg);
    letter-spacing: 2px;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================
   Services Section
   =========================== */

.services {
    background: var(--text-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background: var(--light-bg);
    padding: var(--spacing-lg);
    text-align: center;
    border-radius: 8px;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* ===========================
   About Section
   =========================== */

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

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text h3 {
    color: var(--secondary-color);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    text-align: justify;
}

/* ===========================
   Services Details
   =========================== */

.services-details {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--border-color);
}

.services-details h3 {
    color: var(--secondary-color);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
}

.services-details h3:first-child {
    margin-top: 0;
}

.services-details p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

/* ===========================
   FAQ Section
   =========================== */

.faq {
    background: var(--text-light);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-md);
}

.faq-item {
    background: var(--light-bg);
    padding: var(--spacing-md);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all var(--transition-speed);
}

.faq-item:hover {
    transform: translateX(5px);
    box-shadow: var(--box-shadow);
}

.faq-item h3 {
    color: var(--secondary-color);
    font-size: 1.15rem;
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-main);
    font-weight: 700;
}

.faq-item p {
    color: var(--text-gray);
    line-height: 1.8;
    margin: 0;
    font-size: 0.95rem;
}

/* ===========================
   Portfolio Section
   =========================== */

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

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    background: var(--secondary-color);
    cursor: pointer;
}

.portfolio-image {
    width: 100%;
    height: 100%;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: var(--text-light);
    padding: var(--spacing-md);
    transform: translateY(100%);
    transition: transform var(--transition-speed);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.portfolio-overlay p {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin: 0;
}

/* ===========================
   Contact Section
   =========================== */

.contact {
    background: var(--text-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-method {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.contact-icon {
    font-size: 2.5rem;
}

.contact-details h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.contact-link {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

.contact-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-hours {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Contact Form */
.contact-form-container {
    background: var(--light-bg);
    padding: var(--spacing-lg);
    border-radius: 8px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

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

.form-group textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
}

/* ===========================
   Footer
   =========================== */

.footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-brand h3 {
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: var(--spacing-sm);
}

.footer-brand p {
    color: var(--text-gray);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-gray);
    transition: color var(--transition-speed);
}

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

.footer-contact p {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

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

.footer-contact a:hover {
    color: var(--text-light);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0;
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .navbar .container {
        flex-wrap: nowrap;
    }

    .nav-brand .logo {
        height: 40px;
    }

    .hamburger {
        display: flex;
        order: 3;
    }

    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--dark-bg);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transition: right var(--transition-speed);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }

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

    .nav-menu {
        flex-direction: column;
        width: 100%;
        text-align: left;
        gap: 0;
        margin: 0;
    }

    .nav-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 1rem;
    }

    .nav-quote-btn {
        margin-top: 2rem;
        width: 100%;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

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

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .about-text p {
        text-align: left;
    }

    section {
        padding: var(--spacing-lg) 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        width: 100%;
    }

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

/* ===========================
   Gallery Page Styles
   =========================== */

.gallery-hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--dark-bg) 100%);
    color: var(--text-light);
    padding: calc(80px + var(--spacing-lg)) 0 var(--spacing-lg) 0;
    text-align: center;
}

.gallery-hero .section-title {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.gallery-hero .section-title::after {
    background: var(--primary-color);
}

.gallery-hero .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
}

.gallery-category {
    padding: var(--spacing-lg) 0;
    background: var(--light-bg);
}

.gallery-category:nth-child(even) {
    background: #FFFFFF;
}

.category-title {
    text-align: center;
    color: var(--secondary-color);
    font-size: 2rem;
    letter-spacing: 1.5px;
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.category-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: var(--spacing-sm) auto 0;
}

.category-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
}

.gallery-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.gallery-cta h2 {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.gallery-cta p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.gallery-cta .btn {
    background: var(--text-light);
    color: var(--primary-color);
    font-weight: bold;
}

.gallery-cta .btn:hover {
    background: var(--light-bg);
    transform: translateY(-3px);
}

/* Portfolio Link Wrapper */
.portfolio-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.portfolio-item a.portfolio-link {
    position: relative;
}

/* Portfolio CTA on Main Page */
.portfolio-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-hero {
        padding: calc(60px + var(--spacing-md)) 0 var(--spacing-md) 0;
    }

    .gallery-hero .section-title {
        font-size: 2rem;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .gallery-cta h2 {
        font-size: 1.75rem;
    }

    .gallery-cta p {
        font-size: 1rem;
    }
}
