:root {
    /* Color Palette */
    --clr-bg-dark: #0f172a;       
    --clr-bg-card: #1e293b;     
    --clr-primary-gold: #c5a880; 
    --clr-primary-gold-hover: #e0cca7; 
    --clr-text-light: #f8fafc;
    --clr-text-muted: #94a3b8;
    --clr-error: #ef4444;
    --clr-success: #22c55e;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing & Utilities */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 4px;
    --glow-shadow: 0 10px 30px -10px rgba(197, 168, 128, 0.3);
}

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

html {
    scroll-behavior: smooth; /* Smooth scroll default but JS will handle offsets better */
}

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

a {
    text-decoration: none;
    color: inherit;
}

li {
    list-style: none;
}

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

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

.secondary-bg {
    background-color: #0b1121; /* Slightly darker */
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title p {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--clr-primary-gold);
    margin: 20px auto;
}

.divider-left {
    height: 3px;
    width: 60px;
    background-color: var(--clr-primary-gold);
    margin: 20px 0;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    border-radius: var(--border-radius);
}

.btn-primary {
    background-color: var(--clr-primary-gold);
    color: var(--clr-bg-dark);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--clr-primary-gold-hover);
    box-shadow: var(--glow-shadow);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    border-color: var(--clr-primary-gold);
    color: var(--clr-primary-gold);
}

.full-width {
    width: 100%;
}

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

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-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(--clr-text-light);
    letter-spacing: 2px;
}

.logo span {
    color: var(--clr-primary-gold);
}

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
    color: var(--clr-text-light);
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--clr-primary-gold);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--clr-primary-gold);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--clr-text-light);
    transition: var(--transition);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.05);
    animation: slowZoom 20s infinite alternate;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.6) 50%, rgba(15,23,42,0.2) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    color: var(--clr-text-light);
}

.hero-content p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 40px;
}

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

@keyframes slowZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.15); }
}

/* --- SERVICES SECTION --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--clr-bg-card);
    padding: 50px 40px;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background-color: var(--clr-primary-gold);
    transition: height 0.4s ease;
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(197, 168, 128, 0.2);
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 25px;
    display: inline-block;
}

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

.service-card p {
    color: var(--clr-text-muted);
    margin-bottom: 25px;
}

.read-more {
    font-weight: 600;
    color: var(--clr-primary-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
}

.read-more .arrow {
    margin-left: 8px;
    transition: var(--transition);
}

.service-card:hover .arrow {
    transform: translateX(5px);
}

/* --- ABOUT SECTION --- */
.about-flex {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text p {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item .counter, .stat-item span {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--clr-primary-gold);
    line-height: 1;
}

.stat-item p {
    margin-top: 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image {
    flex: 1;
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    /* In a real project, put an image here, we'll use a sophisticated gradient placeholder */
    background: url('https://images.unsplash.com/photo-1589829085413-56de8ae18c73?auto=format&fit=crop&q=80&w=800') center/cover no-repeat;
}

.floating-box {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background-color: var(--clr-primary-gold);
    color: var(--clr-bg-dark);
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 250px;
    box-shadow: var(--glow-shadow);
}

.floating-box h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #000;
}

.floating-box p {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0;
    color: rgba(0,0,0,0.8);
}

/* --- CONTACT SECTION --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

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

.info-block {
    margin-bottom: 25px;
}

.info-block h4 {
    color: var(--clr-primary-gold);
    margin-bottom: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.info-block p {
    margin-bottom: 0;
    color: var(--clr-text-light);
}

.contact-form-wrapper {
    background-color: var(--clr-bg-card);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.05);
}

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

input, select, textarea {
    width: 100%;
    padding: 15px;
    background-color: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    color: var(--clr-text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--clr-primary-gold);
    background-color: rgba(0,0,0,0.4);
}

.error-msg {
    color: var(--clr-error);
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
    position: absolute;
    bottom: -20px;
    left: 0;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--clr-error);
}

.form-group.error .error-msg {
    display: block;
}

.success-msg {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(34, 197, 94, 0.1);
    color: var(--clr-success);
    border: 1px solid var(--clr-success);
    border-radius: var(--border-radius);
    text-align: center;
    display: none;
}

/* --- FOOTER --- */
footer {
    background-color: #080c17;
    padding-top: 80px;
}

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

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-brand span {
    color: var(--clr-primary-gold);
}

.footer-brand p {
    color: var(--clr-text-muted);
}

.footer-links h4, .footer-legal h4 {
    font-family: var(--font-body);
    color: var(--clr-text-light);
    margin-bottom: 20px;
}

.footer-links a, .footer-legal a {
    display: block;
    color: var(--clr-text-muted);
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-links a:hover, .footer-legal a:hover {
    color: var(--clr-primary-gold);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

/* --- MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: var(--clr-bg-card);
    border: 1px solid rgba(197, 168, 128, 0.2);
    border-radius: 8px;
    padding: 50px;
    max-width: 620px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(40px) scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    display: none; /* hidden by default, JS shows the target */
}

.modal-overlay.active .modal.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    display: block;
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: none;
    border: none;
    color: var(--clr-text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--clr-primary-gold);
    transform: rotate(90deg);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.modal h2 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.modal .divider {
    margin: 15px 0 25px 0;
}

.modal-body p {
    color: var(--clr-text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.modal-body h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--clr-primary-gold);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-body ul {
    margin-bottom: 25px;
    padding-left: 0;
}

.modal-body ul li {
    color: var(--clr-text-light);
    padding: 8px 0 8px 25px;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.modal-body ul li::before {
    content: '›';
    position: absolute;
    left: 5px;
    color: var(--clr-primary-gold);
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-cta {
    margin-top: 10px;
}

/* Scrollbar styling for modals */
.modal::-webkit-scrollbar {
    width: 6px;
}

.modal::-webkit-scrollbar-track {
    background: transparent;
}

.modal::-webkit-scrollbar-thumb {
    background: rgba(197, 168, 128, 0.3);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .modal {
        padding: 30px 25px;
    }
    .modal h2 {
        font-size: 1.5rem;
    }
}

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

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

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

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .about-flex, .contact-grid {
        flex-direction: column;
        gap: 40px;
    }
    .about-image {
        width: 100%;
        margin-top: 40px;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-overlay {
        background: linear-gradient(180deg, rgba(15,23,42,0.8) 0%, rgba(15,23,42,0.95) 100%);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--clr-bg-card);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
    .floating-box {
        left: 20px;
        right: 20px;
        bottom: -20px;
        max-width: none;
    }
}
