/* ==========================================================================
   Base & Resets
   ========================================================================== */

:root {
    /* Brand Colors */
    --color-gold: #c29a5b;
    --color-gold-light: #d4b075;
    --color-gold-dark: #a17d46;
    
    --color-bg-dark: #1a1c20;
    --color-bg-light: #22252a;
    --color-bg-lighter: #2c3036;
    
    --color-text: #e0e0e0;
    --color-text-muted: #a0a0a0;
    --color-white: #ffffff;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-white);
    font-weight: 400;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

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

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

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

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

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--color-gold);
    color: var(--color-bg-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--color-gold);
    border-radius: 4px;
    transition: var(--transition-fast);
    cursor: pointer;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-gold);
}

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

.btn-huge {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    border-radius: 50px;
}

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

#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(26, 28, 32, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
    padding: 1rem 0;
}

#navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-link {
    display: flex;
    align-items: center;
}

#nav-logo {
    height: 50px; /* Adjust based on actual logo aspect ratio */
    margin-right: 15px;
    transition: var(--transition-fast);
}

#navbar.scrolled #nav-logo {
    height: 40px;
}

#logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 2px;
}

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

.nav-links a:not(.btn-primary) {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: var(--transition-fast);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--color-white);
}

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

.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('../assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(26, 28, 32, 0.7), rgba(26, 28, 32, 0.9));
}

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

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--color-text);
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

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

.about-section {
    padding: 6rem 0;
    background-color: var(--color-bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat-card {
    background-color: var(--color-bg-lighter);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform var(--transition-fast);
}

.stat-card:hover {
    transform: translateX(10px);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.1rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Expertise Section
   ========================================================================== */

.expertise-section {
    padding: 6rem 0;
}

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

.expertise-card {
    background-color: var(--color-bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    group: hover;
}

.expertise-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(26, 28, 32, 0.9));
}

.card-content {
    padding: 2rem;
    position: relative;
}

.card-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 2rem;
    width: 40px;
    height: 3px;
    background-color: var(--color-gold);
}

.card-content h3 {
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.card-content p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
    padding: 8rem 0;
    background: linear-gradient(rgba(26, 28, 32, 0.8), rgba(26, 28, 32, 0.95)), url('../assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}

.cta-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--color-text-muted);
}

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

footer {
    background-color: #111215;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-img {
    height: 80px;
    margin-bottom: 10px;
}

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

/* ==========================================================================
   Animations
   ========================================================================== */

.fade-in-up {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

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

@media (max-width: 1024px) {
    /* Fix for mobile Safari background-attachment: fixed bug */
    .hero, .cta-section {
        background-attachment: scroll !important;
    }
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* In a full build, add a hamburger menu */
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-section h2 {
        font-size: 2.2rem;
    }
}
