/* CSS Reset & Variables */
:root {
    --primary-color: #ffaa00;
    /* Warm Amber/Gold */
    --accent-color: #fff8e7;
    /* Soft Warm White */
    --secondary-color: #1a1a1a;
    /* Dark Charcoal */
    --bg-dark: #121212;
    /* Deep Grey/Black */
    --bg-darker: #000000;
    /* Pure Black */
    --text-light: #f4f4f4;
    --text-grey: #a0a0a0;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --font-main: 'Manrope', sans-serif;
    --glow: 0 0 15px rgba(255, 170, 0, 0.4), 0 0 30px rgba(255, 170, 0, 0.2);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.mt-4 {
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    /* Slightly more rounded */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-primary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: var(--bg-darker);
    box-shadow: 0 0 30px rgba(255, 170, 0, 0.4);
}

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

.btn-outline:hover {
    background-color: var(--text-grey);
    color: var(--bg-darker);
}

.btn-block {
    display: block;
    width: 100%;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(255, 170, 0, 0.3);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 50px;
    font-weight: 300;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background-color: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--white);
    text-shadow: none;
}

.logo span {
    color: var(--primary-color);
    font-weight: 300;
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}

.navbar .nav-links {
    display: flex;
    gap: 30px;
}

.navbar .nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-grey);
    position: relative;
}

.navbar .nav-links a.active,
.navbar .nav-links a:hover {
    color: var(--white);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.navbar .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--white);
    transition: var(--transition);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

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

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

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    /* Using the new Ecrin Warm building image */
    background: linear-gradient(to right, rgba(18, 18, 18, 0.9) 0%, rgba(18, 18, 18, 0.7) 40%, rgba(18, 18, 18, 0.2) 100%), url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
}




.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--white);
}

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

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-grey);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Stats Bar */
.stats-bar {
    background-color: var(--secondary-color);
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 170, 0, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.stat-item p {
    color: var(--text-grey);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    min-height: 400px;
    position: relative;
    border: 2px solid var(--primary-color);
    padding: 15px;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    background-color: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-grey);
    font-size: 1.5rem;
    /* Gradient fallback */
    background: linear-gradient(45deg, #1a1a1a, #2c2c2c);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-features {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
}

.about-features i {
    color: var(--primary-color);
}

/* Projects Section */
.projects {
    background-color: var(--bg-darker);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--secondary-color);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 170, 0, 0.1);
    border-color: var(--primary-color);
}

.project-img {
    height: 250px;
    background-color: #333;
    position: relative;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Removed placeholder ::after */

/* Assign different placeholders via nth-child if we had images, 
   but for now we will assume generated images or inline styles later */

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 5px;
}

.project-info p {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.project-info a {
    color: var(--text-grey);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.project-info a:hover {
    color: var(--white);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--secondary-color);
    padding: 40px 30px;
    text-align: center;
    border-radius: 2px;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.service-card:hover {
    border-bottom-color: var(--primary-color);
    background-color: #222;
}

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

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--white);
}

.service-card p {
    color: var(--text-grey);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-container {
    display: flex;
    justify-content: center;
    text-align: center;
}

.contact-info {
    max-width: 600px;
}

.contact-item {
    justify-content: center;
}

.contact-info p {
    color: var(--text-grey);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background-color: rgba(255, 170, 0, 0.05);
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-item h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-form-wrapper {
    background-color: var(--secondary-color);
    padding: 40px;
    border-radius: 2px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: inherit;
    border-radius: 2px;
    transition: var(--transition);
}

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

/* Footer */
.footer {
    background-color: var(--bg-darker);
    padding: 80px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

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

.footer-col h3 span {
    color: var(--primary-color);
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

.footer-col ul li a {
    color: var(--text-grey);
}

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

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--bg-darker);
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.5);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    color: var(--text-grey);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 80px;
        right: -100%;
        background-color: var(--secondary-color);
        width: 80%;
        height: calc(100vh - 80px);
        /* Height minus header */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        border-left: 2px solid var(--primary-color);
    }

    .navbar.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .hamburger {
        display: block;
    }

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

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* Animation Classes */
.hidden-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}