:root {
    --navy-grad: linear-gradient(135deg, #1A2B48 0%, #0a1424 100%);
    --gold-grad: linear-gradient(45deg, #C5A059 0%, #f1d293 100%);
    --navy: #1A2B48; --gold: #C5A059; --white: #ffffff;
    --text-dark: #1A2B48; --bg-theme: #e9eff5; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-theme); color: var(--text-dark); overflow-x: hidden; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* --- NAV ANIMATIONS RESTORED --- */
header { background: var(--white); padding: 1rem 0; position: sticky; top: 0; z-index: 2000; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
nav { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 60px; }
.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--navy); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; position: relative; padding: 5px 0; }
.nav-links a:not(.nav-cta)::after {
    content: ''; position: absolute; width: 0; height: 3px; bottom: -5px; left: 0;
    background: var(--gold-grad); transition: width 0.3s cubic-bezier(0.65, 0.05, 0.36, 1);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { background: var(--navy-grad); color: white !important; padding: 10px 20px; border-radius: 50px; transition: 0.3s; }
.nav-cta:hover { background: var(--gold-grad) !important; color: #1a1a1a !important; transform: translateY(-3px); }

/* --- HERO --- */
.hero { background: var(--navy-grad); min-height: 85vh; display: flex; align-items: center; text-align: center; color: white; clip-path: ellipse(150% 100% at 50% 0%); padding: 80px 20px; }
.text-gradient { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; margin-bottom: 1.5rem; }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 3rem; opacity: 0.9; }
.hero-actions { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.btn-primary, .btn-secondary { padding: 1.1rem 2.8rem; border-radius: 50px; text-decoration: none; font-weight: 700; transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.btn-primary { background: var(--gold-grad); color: #1a1a1a; }
.btn-primary:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(197, 160, 89, 0.4); }
.btn-secondary { border: 2px solid var(--gold); color: var(--gold); }
.btn-secondary:hover { transform: translateY(-10px); color: white; border-color: white; }

/* --- SERVICE CARD ANIMATIONS RESTORED --- */
.services { padding: 100px 0; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { background: white; padding: 50px 40px; border-radius: 20px; position: relative; overflow: hidden; transition: 0.4s; }
.service-card::before { 
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; 
    background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: 0.4s; 
}
.service-card:hover { transform: translateY(-12px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.service-card:hover::before { transform: scaleX(1); }
.card-number { font-size: 2.5rem; font-weight: 900; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 10px; }
/* --- SERVICES SECTION --- */
.services {
    padding: 100px 0;
    background-color: #ffffff;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.services-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 items per row on desktop */
    gap: 20px;
}

.service-item {
    background: #fdfdfd;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    gap: 15px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(26, 43, 72, 0.05);
}

.service-num {
    font-weight: 900;
    color: var(--gold);
    font-size: 0.85rem;
    background: rgba(197, 160, 89, 0.1);
    height: 30px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    flex-shrink: 0;
}

.service-content h3 {
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: 5px;
    font-weight: 700;
}

.service-content p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .services-matrix {
        grid-template-columns: repeat(2, 1fr); /* 2 items on tablet */
    }
}

@media (max-width: 768px) {
    .services-matrix {
        grid-template-columns: 1fr; /* 1 item on phone */
    }
}
/* --- ABOUT --- */
.about { padding: 100px 0; background: white; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0; }
.about-actions { margin-top: 2rem; }
.about-image { height: 500px; background: var(--navy) url('team-meeting.jpg') center/cover; border-radius: 30px; }
.about-image-container { position: relative; }
.image-overlay-card { position: absolute; bottom: -20px; left: -20px; background: var(--gold-grad); padding: 25px; border-radius: 15px; max-width: 280px; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

/* --- CAREERS & THE PREMIUM BUTTON --- */
.jobs { padding: 100px 0; background: var(--bg-theme); }
.jobs-list { display: flex; flex-direction: column; gap: 20px; max-width: 900px; margin: 40px auto 0; }
.job-card { background: white; padding: 30px; border-radius: 15px; display: flex; justify-content: space-between; align-items: center; transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94); border-left: 5px solid transparent; }
.job-card:hover { transform: translateX(15px); border-left-color: var(--gold); box-shadow: 0 15px 40px rgba(0,0,0,0.06); }
.job-tag { background: rgba(197, 160, 89, 0.1); color: var(--gold); padding: 4px 12px; border-radius: 5px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; display: inline-block; }

/* Premium Detail Button Fix */
.btn-premium-outline { 
    border: 2px solid var(--navy); padding: 12px 25px; border-radius: 50px; 
    text-decoration: none; color: var(--navy); font-weight: 800; font-size: 0.85rem;
    transition: 0.3s; position: relative; overflow: hidden; z-index: 1;
}
.btn-premium-outline::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: var(--navy-grad); transition: 0.4s; z-index: -1;
}
.btn-premium-outline:hover { color: white; border-color: var(--navy); }
.btn-premium-outline:hover::before { left: 0; }

/* --- MOBILE RESPONSIVE --- */
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.bar { width: 25px; height: 3px; background: var(--navy); border-radius: 10px; }

@media (max-width: 768px) {
    .menu-toggle { display: flex; z-index: 3000; }
    .nav-links { position: fixed; right: -100%; top: 0; height: 100vh; width: 75%; background: white; flex-direction: column; justify-content: center; transition: 0.5s; box-shadow: -10px 0 40px rgba(0,0,0,0.1); }
    .nav-links.active { right: 0; }
    .hero { clip-path: none; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn-primary, .btn-secondary { width: 100%; max-width: 300px; text-align: center; }
    .about-grid { grid-template-columns: 1fr; }
    .about-image { height: 350px; }
    .image-overlay-card { position: relative; bottom: 0; left: 0; margin: -40px auto 0; width: 90%; text-align: center; }
    .job-card { flex-direction: column; gap: 20px; text-align: center; padding: 40px 20px; }
    .job-card:hover { transform: translateY(-5px); }
}

/* REVEALS */
.reveal { opacity: 0; transform: translateY(40px); transition: 1.2s cubic-bezier(0.165, 0.84, 0.44, 1); }
.reveal-active { opacity: 1; transform: translateY(0); }
.main-footer { padding: 50px 0; text-align: center; background: var(--navy-grad); color: white; font-size: 0.9rem; opacity: 0.9; }
/* --- PAGE TRANSITION STATES --- */
body {
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Class we will apply via JS before leaving the page */
body.fade-out {
    opacity: 0;
    transform: translateY(-20px); /* Slides slightly up as it disappears */
}

/* Initial state for the new page loading in */
.contact-page {
    animation: pageIn 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}