/* ----- CSS Variables ----- */
:root {
    --primary-gold: #dda63c;
    /* Base gold from logo */
    --primary-gold-dark: #b88a31;
    --dark-bg: #1a1a1a;
    --dark-grey: #2c2c2c;
    --light-grey: #f4f4f4;
    --text-dark: #333333;
    --text-light: #ffffff;
    --text-muted: #888888;

    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    --transition: all 0.3s ease;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ----- Reset & Base Styles ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
    overflow: hidden;
}

.bg-light {
    background-color: var(--light-grey);
}

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

.text-white {
    color: var(--text-light);
}

/* ----- Typography ----- */
.section-subtitle {
    color: var(--primary-gold);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--font-heading);
}

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

/* ----- Buttons ----- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-gold);
    color: var(--text-light);
}

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

.btn-secondary {
    background-color: transparent;
    border-color: var(--text-light);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--dark-bg);
}

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

/* ----- Navigation ----- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo img {
    height: 40px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-abbr {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-light);
    letter-spacing: 1px;
    transition: var(--transition);
}

.navbar.scrolled .logo-abbr {
    color: var(--dark-bg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.navbar.scrolled .nav-links a:not(.nav-btn) {
    color: var(--dark-bg);
}

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

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

.nav-btn {
    padding: 10px 20px;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    z-index: 1001;
}

.navbar.scrolled .hamburger {
    color: var(--dark-bg);
}

/* ----- Hero Section ----- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: url('img/hero-bg.png') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(26, 26, 26, 0.9) 0%, rgba(26, 26, 26, 0.5) 100%);
    z-index: 1;
}

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

.hero-title {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--light-grey);
    margin-bottom: 40px;
    font-weight: 300;
}

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

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

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.about-features {
    margin-top: 30px;
}

.about-features li {
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-features i {
    color: var(--primary-gold);
    font-size: 1.2rem;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
}

.img-placeholder {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, var(--dark-grey), var(--dark-bg));
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.1);
    font-size: 8rem;
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background-color: var(--primary-gold);
    padding: 30px;
    border-radius: 8px;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.exp-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.exp-text {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 5px;
}

/* ----- Services Section ----- */
.section-header {
    margin-bottom: 60px;
}

.header-line {
    width: 60px;
    height: 3px;
    background-color: var(--primary-gold);
    margin: 0 auto;
}

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

.service-card {
    background-color: var(--text-light);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--primary-gold);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(221, 166, 60, 0.1);
    color: var(--primary-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    border-radius: 50%;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary-gold);
    color: var(--text-light);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

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

/* ----- Team Section ----- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.team-member {
    background-color: var(--text-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--primary-gold);
}

.team-image-frame,
.team-image-placeholder {
    min-height: 260px;
    border-bottom: 1px solid rgba(221, 166, 60, 0.25);
}

.team-image-frame {
    background-color: var(--dark-bg);
}

.team-photo {
    width: 100%;
    height: 260px;
    object-fit: contain;
    object-position: center top;
}

.team-image-placeholder {
    background:
        linear-gradient(135deg, rgba(221, 166, 60, 0.18), rgba(26, 26, 26, 0.88)),
        linear-gradient(135deg, var(--dark-grey), var(--dark-bg));
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 5rem;
}

.team-content {
    padding: 40px 30px;
}

.team-content h3 {
    margin-bottom: 5px;
    color: var(--dark-bg);
    font-size: 1.5rem;
}

.team-title {
    font-weight: 600;
    margin-bottom: 25px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-details p {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.team-details strong {
    color: var(--dark-grey);
}

/* ----- Contact Section ----- */
.contact {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

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

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item i {
    color: var(--primary-gold);
    font-size: 1.5rem;
    margin-top: 5px;
}

.contact-item h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item p {
    margin-bottom: 0;
    color: var(--light-grey);
}

.contact-form-container {
    background-color: var(--text-light);
    padding: 40px;
    border-radius: 8px;
    color: var(--text-dark);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fafafa;
}

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

/* ----- Footer ----- */
.footer {
    background-color: #111;
    color: var(--text-muted);
    padding: 30px 0;
    text-align: center;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--light-grey);
}

.social-links a:hover {
    background-color: var(--primary-gold);
    color: var(--text-light);
}

/* ----- Animations ----- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.in-view {
    opacity: 1;
    transform: translate(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.delay-4 {
    transition-delay: 0.8s;
}

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

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .experience-badge {
        left: 0;
        bottom: 0;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 0;
        background-color: rgba(26, 26, 26, 0.95);
    }

    .logo-abbr {
        color: var(--text-light);
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--dark-bg);
        flex-direction: column;
        justify-content: start;
        align-items: center;
        transition: 0.5s;
    }

    .nav-links.active {
        left: 0;
    }

    /* Fix: Keep mobile menu links white even when navbar is scrolled */
    .navbar.scrolled .nav-links a:not(.nav-btn),
    .nav-links a:not(.nav-btn) {
        color: var(--text-light) !important;
    }

    /* Fix: Ensure the hamburger icon remains visible (white) when menu is active */
    .nav-links.active+.hamburger {
        color: var(--text-light) !important;
    }

    /* Fix: Prevent navbar background from turning white when scrolled AND mobile menu is active */
    .navbar.scrolled:has(.nav-links.active) {
        background-color: var(--dark-bg) !important;
    }

    /* Fix: Keep logo white when mobile menu is active, even if scrolled */
    .navbar.scrolled:has(.nav-links.active) .logo-abbr {
        color: var(--text-light) !important;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        justify-content: center;
    }
}
