/* =================================
   1. GLOBAL & ROOT STYLES
==================================== */

:root {
    --bg-dark: #121212; /* A deep charcoal, not pure black */
    --bg-light-dark: #1E1E1E; /* A slightly lighter background for cards */
    --text-primary: #E0E0E0; /* Off-white for body text */
    --text-headings: #FFFFFF; /* Pure white for headings */
    --accent-gold: #D4AF37; /* A classic, elegant gold */
    --border-color: #333333; /* Subtle border color */

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-headings);
    margin: 0 0 1rem 0;
    line-height: 1.3;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-headings);
}

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

/* =================================
   2. REUSABLE & SECTION STYLES
==================================== */

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

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

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--accent-gold);
}

.section-title p {
    font-size: 1.1rem;
    color: #a0a0a0;
    margin-top: 0.5rem;
}


/* =================================
   3. HEADER
==================================== */
.site-header {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-headings);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    color: var(--text-primary);
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* =================================
   4. HERO SECTION
==================================== */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

.hero-text .subtitle {
    display: block;
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.2rem;
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-socials {
    display: flex;
    gap: 1.5rem;
}

.hero-socials a {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.hero-image {
    flex-basis: 400px;
    flex-shrink: 0;
}

.hero-image img {
    border-radius: 8px;
    border: 3px solid var(--border-color);
    padding: 10px;
}

/* =================================
   5. CLIENTS SECTION
==================================== */
/* =================================
   5. CLIENTS SECTION
==================================== */
.clients-section {
    padding: 4rem 0;
    background-color: var(--bg-light-dark);
}

.clients-title {
    text-align: center;
    font-family: var(--font-body);
    color: #a0a0a0;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

.client-logos {
    display: flex;
    justify-content: center; /* Changed from space-around for better alignment */
    align-items: center;
    gap: 3rem; /* Increased gap slightly for better spacing */
    flex-wrap: wrap;
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.3s ease; /* Smooth transition for hover */
}

/* Add this new block of code */
.client-logos img {
    max-width: 185px;   /* Cap the maximum width of any logo */
    max-height: 70px;   /* Cap the maximum height to keep the row even */
    object-fit: contain; /* IMPORTANT: Keeps aspect ratio, prevents squishing */
    width: 100%;        /* Allows the logo to be smaller if its container is smaller */
}

/* =================================
   6. SERVICES SECTION
==================================== */
.services-section {
    padding: 100px 0;
}

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

.service-item {
    background: var(--bg-light-dark);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
}

.service-item i {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.service-item h3 {
    font-size: 1.5rem;
}

/* =================================
   7. PORTFOLIO SECTION
==================================== */
.portfolio-section {
    padding: 100px 0;
    background: var(--bg-light-dark);
}

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

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.portfolio-item img {
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(18, 18, 18, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

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

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin: 0;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.portfolio-overlay span {
    color: var(--accent-gold);
    transform: translateY(20px);
    transition: transform 0.5s ease 0.1s;
}

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

/* =================================
   8. ABOUT SECTION
==================================== */
.about-section {
    padding: 100px 0;
}
.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}
.about-text { flex: 1.5; }
.about-stats { flex: 1; }

.about-text .section-title h2::after { left: 0; transform: none; }

.about-text blockquote {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-headings);
    border-left: 3px solid var(--accent-gold);
    padding-left: 1.5rem;
    margin: 2rem 0;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.stat-number {
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--accent-gold);
    font-weight: 700;
}
.stat-label {
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* =================================
   9. PROCESS SECTION (TIMELINE)
==================================== */
.process-section {
    padding: 100px 0;
    background: var(--bg-light-dark);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 20px;
}

.timeline-item {
    padding: 1rem 0 3rem 60px;
    position: relative;
}

.timeline-dot {
    content: '';
    position: absolute;
    left: 10px;
    top: 15px;
    width: 20px;
    height: 20px;
    border: 3px solid var(--accent-gold);
    border-radius: 50%;
    background-color: var(--bg-dark);
    z-index: 1;
}

.timeline-content h3 {
    font-size: 1.5rem;
}

/* =================================
   10. CTA & FOOTER
==================================== */
.cta-section {
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 { font-size: 2.5rem; }

.cta-button {
    display: inline-block;
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    margin-top: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #f0c95d; /* Lighter gold on hover */
    color: var(--bg-dark);
}

.site-footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: #a0a0a0;
}

/* =================================
   11. RESPONSIVE DESIGN
==================================== */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-image {
        margin-bottom: 2rem;
        flex-basis: auto;
        width: 60%;
        max-width: 350px;
    }
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .about-text .section-title h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    body { font-size: 15px; }
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    .header-content { flex-direction: column; gap: 1rem; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .timeline::after { left: 10px; }
    .timeline-item { padding-left: 40px; }
    .timeline-dot { left: 0; }
}



/* --- Language Switcher Styles (add to your CSS) --- */
.lang-switcher {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    overflow: hidden;
}

.lang-switcher button {
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 0.4rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background-color 0.3s, color 0.3s;
}

.lang-switcher button:hover {
    color: var(--text-headings);
}

.lang-switcher button.active {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
}