/* === MASTER STYLESHEET === */

/* --- 1. Variables & Global Resets --- */
:root {
    --primary-color: #fd950d; /* A vibrant, modern Bootstrap blue */
    --secondary-color: #6c757d; /* A muted grey for secondary text */
    --dark-color: #212529; /* A deep, near-black for primary text */
    --light-color: #e0e0e0; /* Set background to pure white */
    --white-color: #ffffff;
    --success-color: #198754;
    --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --shadow-sm: 0 .125rem .25rem rgba(0,0,0,.075);
    --shadow-md: 0 .5rem 1rem rgba(0,0,0,.15);
    --border-radius: .375rem;
    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family);
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.7;
}

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

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

.section {
    padding: 80px 0;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}
.section-title p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 10px auto 0;
}


/* --- 2. Header & Navigation --- */
.site-header {
    background: var(--white-color);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
     background: rgba(255, 255, 255, 0.95);
     backdrop-filter: blur(10px);
     box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo img {
    max-height: 50px; /* Control the height of the logo */
    width: auto;
}

.main-nav .nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--dark-color);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

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

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

.nav-toggle {
    display: none;
}

/* --- 3. Hero Section (for Homepage) --- */
.hero {
    color: var(--white-color);
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* Parallax effect */
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.hero p {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 2rem;
}
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white-color);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--white-color);
}
.btn-secondary {
    background: var(--secondary-color);
}
.btn-secondary:hover {
    background: #5c636a;
}

/* --- Homepage Specifics --- */
.hero-split {
    padding: var(--header-height) 0;
    display: flex;
    align-items: center;
    min-height: 80vh;
}
.hero-split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
}
.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.3;
}
.hero-text .lead {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin: 1.5rem 0;
}
.hero-text .btn {
    margin-right: 1rem;
}
.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.bg-light {
    background-color: #f8f9fa !important;
}

.services-grid-alt {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.service-card-alt {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
}
.service-icon-alt {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
    padding-top: 5px;
}

.cta-section {
    background: var(--light-color);
    color: var(--secondary-color);
}
.cta-section h2 {
    color: var(--secondary-color);
}
.cta-section .btn-light {
    color: var(--primary-color);
    font-weight: bold;
}

/* --- 4. Page Content & Cards --- */
.page-header {
    padding: calc(var(--header-height) + 60px) 0 60px;
    text-align: center;
    background-color: var(--dark-color);
    color: var(--white-color);
}
.page-header h1 {
    font-size: 3rem;
    color: var(--white-color);
}

.page-content {
    padding: 60px 0;
}

.card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.card-body {
    padding: 2rem;
}

/* --- 5. Specific Page Styles --- */

/* Services Page & Homepage Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.service-card {
    text-align: center;
    padding: 2rem 1.5rem;
}
.service-icon {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}
.service-card:hover .service-icon {
    transform: scale(1.2);
}

/* Projects Page */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}
.project-item {
    padding: 0;
    overflow: hidden;
}
.project-item img {
    height: 450px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.project-item:hover img {
    transform: scale(1.05);
}
.project-info {
    padding: 1.5rem;
}
.project-info h3 {
    margin-top: 0;
}

/* Contact Page */
.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: flex-start;
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
}

/* --- 6. Footer --- */
.site-footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0;
}
.site-footer .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}
.site-footer h3 {
    color: var(--white-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}
.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}
.site-footer a:hover {
    color: var(--white-color);
}
.footer-section.links ul {
    list-style: none;
}
.footer-section.links ul li a {
    display: block;
    margin-bottom: 0.6rem;
}
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- 7. Responsive --- */
@media (max-width: 850px) {
    .nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001; /* Ensure it's above other elements */
    }

    .hamburger {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--dark-color);
        position: relative;
        transition: background 0.2s ease-out;
    }

    .hamburger::before, .hamburger::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background: var(--dark-color);
        left: 0;
        transition: transform 0.2s ease-out, top 0.2s ease-out, bottom 0.2s ease-out;
    }

    .hamburger::before { top: -8px; }
    .hamburger::after { bottom: -8px; }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .main-nav .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .main-nav .nav-links a {
        font-size: 1.5rem;
    }
    
    .nav-open .hamburger { background: transparent; }
    .nav-open .hamburger::before { transform: rotate(45deg); top: 0; }
    .nav-open .hamburger::after { transform: rotate(-45deg); bottom: 0; }

    /* Homepage Hero Split */
    .hero-split {
        padding-top: var(--header-height);
        text-align: center;
    }
    .hero-split-content {
        grid-template-columns: 1fr;
    }
    .hero-image {
        grid-row: 1; /* Move image to the top on mobile */
        margin-bottom: 2rem;
    }
    .hero-text .btn {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    /* Contact Page */
    .contact-container {
        grid-template-columns: 1fr;
    }
} 