/* --- VARIABLES & RESET --- */
:root {
    /* Brand Colors extracted from images */
    --brand-gold: #E5A454;
    --brand-green: #9CB573;
    --brand-blue: #7BC1D6;

    /* Corporate Palette */
    --bg-body: #F9F9F9;
    --bg-white: #FFFFFF;
    --text-dark: #0F172A;
    --text-gray: #475569;
    --bg-dark: #0B0F19;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px;
}

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

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--brand-gold);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--text-dark);
    color: white;
}

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

.text-gold {
    color: var(--brand-gold);
}

.text-blue {
    color: var(--brand-blue);
}

.text-white {
    color: white;
}

/* New Utilities for Inline Styles */
.bg-gold {
    background: var(--brand-gold);
}

.bg-green {
    background: var(--brand-green);
}

.bg-blue {
    background: var(--brand-blue);
}

.mt-10 {
    margin-top: 10px;
}

.mb-40 {
    margin-bottom: 40px;
}

.btn-hero-outline {
    margin-left: 10px;
    color: white;
    border-color: white;
}

.tech-description {
    max-width: 600px;
    color: var(--text-gray);
}

.projects-footer {
    text-align: center;
    margin-top: 60px;
}

.about-lead {
    margin-bottom: 20px;
    opacity: 0.8;
}

.about-desc {
    margin-bottom: 40px;
    opacity: 0.8;
}

.btn-inverse {
    background: white;
    color: var(--bg-dark);
}

.about-image-container {
    height: 400px;
    background: #222;
    border-radius: 4px;
    overflow: hidden;
}

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

.footer-address {
    color: var(--brand-gold);
    margin-top: 20px;
}

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Manrope', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.logo span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-family: 'Manrope', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}


.logo-text-footer {
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding-bottom: 5px;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

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

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

.nav-links a:hover {
    color: var(--brand-gold);
}

/* --- HERO --- */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: white;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 200;
    opacity: 0.9;
    max-width: 600px;
}

/* --- STATS BAR --- */
.stats-bar {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-item h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 3rem;
    color: var(--brand-gold);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
}

/* --- TECHNOLOGIES --- */
.tech-section {
    padding: var(--section-padding) 0;
    background: var(--bg-white);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.tech-card {
    background: var(--bg-body);
    padding: 40px;
    border-left: 3px solid transparent;
    transition: 0.3s;
}

.tech-card:hover {
    border-left: 3px solid var(--brand-gold);
    background: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transform: translateY(-10px);
}

.tech-card h3 {
    font-family: 'Manrope', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.tech-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--brand-blue);
}

/* --- PROJECTS --- */
.projects-section {
    padding: var(--section-padding) 0;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.project-item {
    position: relative;
    height: 500px;
    overflow: hidden;
    cursor: pointer;
}

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

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 40px;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.project-item:hover img {
    transform: scale(1.05);
}

.project-item:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-meta {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-gold);
    margin-bottom: 5px;
}

.project-overlay h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.project-overlay p {
    color: rgba(255, 255, 255, 0.8);
}

/* --- ABOUT / PHILOSOPHY --- */
.about-section {
    padding: var(--section-padding) 0;
    background: var(--bg-dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    color: white;
}

.logo-mark {
    font-size: 300px;
    position: absolute;
    right: -50px;
    bottom: -50px;
    opacity: 0.03;
    font-weight: 900;
    font-family: 'Manrope', sans-serif;
    pointer-events: none;
}

/* --- FOOTER --- */
footer {
    background: #05080f;
    color: white;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-brand p {
    color: var(--text-gray);
    margin-top: 20px;
    max-width: 300px;
}

.footer-links h4 {
    font-family: 'Manrope', sans-serif;
    color: white;
    margin-bottom: 20px;
    font-size: 1rem;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 10px;
    color: white;
}

.footer-links a {
    color: white;
}

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

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    font-size: 0.8rem;
}

/* --- GALLERY MODAL --- */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    overflow-y: auto;
}

.gallery-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-content {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    position: relative;
}

.gallery-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 40px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.gallery-close:hover {
    color: var(--brand-gold);
}

.gallery-header {
    text-align: center;
    margin-bottom: 20px;
}

.gallery-title {
    color: white;
    font-size: 2rem;
    margin-bottom: 5px;
}

.gallery-subtitle {
    color: var(--brand-gold);
    font-size: 1rem;
}

.gallery-main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.gallery-image {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 4px;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 24px;
    padding: 20px 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.gallery-nav:hover {
    background: var(--brand-gold);
}

.gallery-prev {
    left: 0;
}

.gallery-next {
    right: 0;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
    border: 2px solid transparent;
    border-radius: 4px;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    opacity: 1;
    border-color: var(--brand-gold);
}

.gallery-counter {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* --- HAMBURGER MENU --- */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: 0.3s;
}

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

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

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

/* --- MOBILE --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .btn {
        display: block;
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }

    .btn-hero-outline {
        margin-left: 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

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

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

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

    .gallery-nav {
        padding: 15px 10px;
        font-size: 18px;
    }

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

    .gallery-thumb {
        width: 60px;
        height: 45px;
    }
}