:root {
    --primary-gold: #D4AF37;
    --dark-navy: #1a1a2e;
    --rich-navy: #16213e;
    --light-gold: #f4e8c1;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --white: #ffffff;
    --section-bg: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f1419 100%);
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
}

/* Loading Spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--dark-navy);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--light-gold);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 4px;
}

/* Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    padding: 1rem 0;
    z-index: 1000;
}
.navbar.scrolled {
    background: rgba(26, 26, 46, 0.98);
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}
.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-gold) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}
.navbar-brand:hover {
    color: var(--light-gold) !important;
    transform: scale(1.05);
}
.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 1rem;
    position: relative;
    transition: all 0.3s ease;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--primary-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.navbar-nav .nav-link:hover::after {
    width: 100%;
}
.navbar-nav .nav-link:hover {
    color: var(--primary-gold) !important;
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Account for fixed navbar */
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(212,175,55,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}
.hero .lead {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
}
.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease 1.1s forwards;
}
.hero-stat {
    text-align: center;
    color: var(--white);
}
.hero-stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}
.hero-stat p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Hero Portrait Styles */
.hero-portrait {
    position: relative;
    text-align: center;
    animation: fadeInUp 1s ease forwards;
}
.hero-portrait img {
    max-height: 400px;
    width: auto;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    transition: transform 0.4s ease;
}
.hero-portrait img:hover {
    transform: scale(1.03);
}

/* Section Styles */
.section {
    padding: 100px 0;
    position: relative;
    z-index: 10; /* Ensure sections are above hero */
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Section */
.services {
    background: var(--section-bg);
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border-color: var(--primary-gold);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* About Section */
.about {
    background: var(--white);
}

.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.about-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.about-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
    color: var(--text-light);
}

.about-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Team Section */
.team {
    background: var(--section-bg);
}

.team-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.team-image {
    position: relative;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.team-social {
    display: flex;
    gap: 1rem;
}

.team-social a {
    width: 50px;
    height: 50px;
    background: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.team-card:hover .team-social a {
    transform: translateY(0);
}

.team-social a:hover {
    background: var(--white);
    color: var(--primary-gold);
}

.team-info {
    padding: 2rem;
    text-align: center;
}

.team-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.position {
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-info p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Contact Section */
.contact {
    background: var(--white);
}

.contact-info {
    padding: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--section-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.contact-item h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-light);
    margin-bottom: 0;
}

.contact-form {
    background: var(--section-bg);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-control {
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: var(--white);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* Footer */
.footer {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer h5 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Buttons */
.btn-gold {
    background: var(--gradient-gold);
    border: none;
    color: var(--white);
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.btn-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.btn-gold:hover::before {
    left: 100%;
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212,175,55,0.4);
}
.btn-outline-gold {
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    background: transparent;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
.btn-outline-gold:hover {
    background: var(--primary-gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212,175,55,0.3);
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Animation */
@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.floating {
    animation: floating 3s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero .lead {
        font-size: 1.1rem;
    }
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .navbar-collapse {
        background: rgba(26,26,46,0.95);
        backdrop-filter: blur(20px);
        border-radius: 10px;
        padding: 1rem;
        margin-top: 1rem;
    }
    .section {
        padding: 60px 0;
    }
    .hero-portrait {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .btn-gold, .btn-outline-gold {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    .contact-form {
        padding: 1.5rem;
    }
    .service-card {
        padding: 2rem;
    }
}