@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --navy: #0F172A;
    --navy-light: #1E293B;
    --royal: #2563EB;
    --royal-hover: #1D4ED8;
    --sky: #60A5FA;
    --ice: #F1F5F9;
    --slate: #475569;
    --muted: #94A3B8;
    --white: #FFFFFF;
    --accent: #F59E0B; /* Gold for trust/awards */
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    --grad-royal: linear-gradient(135deg, var(--royal) 0%, var(--sky) 100%);
    --grad-glass: rgba(255, 255, 255, 0.85);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.25);

    /* Layout */
    --header-height: 80px;
    --container-max: 1280px;
    --radius: 12px;
    --radius-lg: 24px;
}

/* Base resets */
*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--navy);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .serif {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul { list-style: none; }

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--grad-royal);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--royal);
    color: var(--royal);
}

.btn-outline:hover {
    background: var(--royal);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--navy);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    background: var(--ice);
    transform: translateY(-2px);
}

/* Nav Bar */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    background: var(--grad-glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--grad-royal);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
}

.logo-text {
    line-height: 1.1;
}

.logo-name {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
    color: var(--navy);
}

.logo-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--slate);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--royal);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-phone {
    font-weight: 600;
    font-size: 0.875rem;
}

.nav-phone span {
    color: var(--royal);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 8rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 0; right: 0;
    height: 200px;
    background: #fff;
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0% 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--royal);
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 em {
    font-style: italic;
    color: var(--royal);
}

.hero p {
    font-size: 1.125rem;
    color: var(--slate);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
}

.hero-img-container {
    border-radius: 3rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: rotate(2deg);
}

.hero-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card {
    position: absolute;
    background: var(--grad-glass);
    backdrop-filter: blur(8px);
    padding: 1.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 10;
}

.hero-card-1 {
    top: -20px; right: -20px;
    animation: float 6s ease-in-out infinite;
}

.hero-card-2 {
    bottom: 20px; left: -20px;
    animation: float 6s ease-in-out infinite 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Services Grid */
.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-head h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

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

.service-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 2rem;
    border: 1px solid var(--ice);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--royal);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--ice);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--grad-royal);
    color: white;
}

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

.service-card p {
    color: var(--slate);
    margin-bottom: 2rem;
}

.service-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--royal);
}

/* Stats Bar */
.stats-bar {
    background: var(--navy);
    padding: 5rem 0;
    color: white;
    position: relative;
    z-index: 5;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat-item h3 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

/* Footer */
footer {
    background: var(--navy);
    color: white;
    padding: 6rem 0 3rem;
}

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

.footer-about p {
    margin-top: 1.5rem;
    opacity: 0.7;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px; left: 0;
    width: 30px; height: 3px;
    background: var(--royal);
}

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

.footer-links a {
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--royal);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    opacity: 0.6;
}

/* Mobile responsive fixes */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 3.5rem; }
    .hero p { margin: 0 auto 2.5rem; }
    .hero-btns { justify-content: center; }
    .hero-visual { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .nav-links, .nav-actions .btn { display: none; }
    .hero h1 { font-size: 2.75rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .stats-grid { grid-template-columns: 1fr; }
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.2, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
