:root {
    --color-navy: #051126;
    --color-navy-light: #0f2444;
    --color-gold: #D4AF37;
    --color-gold-light: #F2D06B;
    --color-gold-dark: #AA8A26;
    --color-gray-soft: #F8F9FB;
    --color-white: #FFFFFF;
    --color-text-dark: #051126;
    --color-text-light: #E2E8F0;

    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F2D06B 50%, #D4AF37 100%);
    --gradient-navy: linear-gradient(135deg, #051126 0%, #0A1F40 100%);
    --gradient-glass: rgba(255, 255, 255, 0.95);

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

    --shadow-soft: 0 10px 30px rgba(5, 17, 38, 0.04);
    --shadow-card: 0 20px 40px rgba(5, 17, 38, 0.08);
    --shadow-gold: 0 10px 20px rgba(212, 175, 55, 0.2);

    --radius-card: 24px;
    --radius-btn: 50px;

    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-primary);
    color: var(--color-text-dark);
    background-color: var(--color-gray-soft);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: #4a5568;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
}

.bg-navy {
    background: var(--color-navy);
    color: var(--color-white);
}

.bg-gray {
    background-color: var(--color-gray-soft);
}

.text-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--color-gold);
    /* Fallback */
    display: inline-block;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--color-navy);
    background-size: 200% auto;
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    border-color: var(--color-gold);
    color: var(--color-gold-dark);
    background: transparent;
}

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

/* Header */
header {
    background: rgba(5, 17, 38, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.5px;
}

.logo span {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

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

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.btn {
    color: var(--color-navy);
}

.nav-links a.btn:hover::after {
    width: 0;
}

/* Hero */
.hero {
    background: linear-gradient(rgba(5, 17, 38, 0.9), rgba(5, 17, 38, 0.8)), url('../assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    padding: 12rem 0 10rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--color-gray-soft), transparent);
}

.hero h1 {
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero .subheadline {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    font-weight: 300;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s backwards;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s backwards;
    position: relative;
    z-index: 2;
}

/* Stats Section */
.stats-section {
    padding: 0;
    position: relative;
    z-index: 10;
    margin-top: -5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0;
    background: var(--color-white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.stat-item {
    padding: 3rem 2rem;
    text-align: center;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.stat-item:last-child {
    border-right: none;
}

.stat-item h3 {
    font-size: 3rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-item p {
    color: var(--color-navy-light);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Portal Styles */
.portal-layout {
    display: flex;
    min-height: 100vh;
    background-color: #f0f2f5;
}

.sidebar {
    width: 260px;
    background-color: var(--color-navy);
    color: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.sidebar .logo {
    margin-bottom: 3rem;
}

.sidebar-menu a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-gold);
}

.sidebar-menu i {
    width: 25px;
}

.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 1.5rem;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-action {
    background: #cce5ff;
    color: #004085;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-card);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    display: inline-block;
}

/* How It Works */
.steps-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 4rem;
    position: relative;
}

.step-item {
    flex: 1;
    min-width: 220px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--gradient-navy);
    color: var(--color-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.75rem;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 20px rgba(5, 17, 38, 0.2);
    border: 2px solid var(--color-gold);
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: var(--radius-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.stars {
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: start;
}

.contact-form {
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    background: #f8fafc;
    transition: var(--transition-smooth);
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.contact-form button {
    width: 100%;
}

/* Footer */
footer {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 6rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--color-gold);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-smooth);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--color-gold);
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .section {
        padding: 5rem 0;
    }

    .hero {
        padding: 8rem 0 6rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .steps-container {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
        color: var(--color-white);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 17, 38, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links.active {
        display: flex;
    }
}

/* Hamburger - Hidden on Desktop */
.hamburger {
    display: none;
}

/* Messaging System Styles */
.chat-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    background: white;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    height: calc(100vh - 140px);
    min-height: 600px;
}

.chat-list {
    border-right: 1px solid #eee;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
}

.chat-list-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.chat-item {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    gap: 1rem;
    align-items: center;
}

.chat-item:hover {
    background: white;
}

.chat-item.active {
    background: white;
    border-left: 4px solid var(--color-gold);
}

.chat-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--color-navy);
    position: relative;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #2ed573;
    border: 2px solid white;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    right: 0;
}

.chat-window {
    display: flex;
    flex-direction: column;
    background: white;
}

.chat-header {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
}

.chat-messages {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    background: #f8f9fb;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.message-bubble {
    max-width: 70%;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    font-size: 0.95rem;
    position: relative;
    line-height: 1.5;
}

.message-received {
    align-self: flex-start;
    background: white;
    color: var(--color-text-dark);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-soft);
}

.message-sent {
    align-self: flex-end;
    background: var(--gradient-navy);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: var(--shadow-soft);
}

.message-time {
    font-size: 0.7rem;
    margin-top: 5px;
    opacity: 0.7;
    display: block;
    text-align: right;
}

.chat-input-area {
    padding: 1.5rem 2rem;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    resize: none;
    height: 50px;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.chat-input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: var(--color-navy);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: #e2e8f0;
}

.btn-send {
    background: var(--gradient-gold);
    color: var(--color-navy);
}

.btn-send:hover {
    transform: scale(1.05);
}