@import 'variables.css';

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-main);
    line-height: 1.5;
    background-color: var(--color-bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Crisper text (Apple) */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    /* Authority */
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    /* Modern tightening */
    margin-bottom: var(--spacing-sm);
    color: var(--color-secondary);
}

p {
    font-size: 1.125rem;
    /* Larger, readable body text (Airbnb/Stripe/Apple) */
    color: var(--color-text-muted);
    /* Focus on headings, subtle body text */
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-standard);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 12px;
    /* Smooth corners (Apple/Stripe) */
}

/* Utilities */
.container {
    max-width: 1280px;
    /* Modern wide container */
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--spacing-xl) 0;
    /* Huge vertical spacing (Apple) */
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--color-primary);
}

.text-accent {
    color: var(--color-accent);
}

/* Buttons (Stripe-inspired) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 99px;
    /* Pill shape (Modern/Apple) */
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-standard);
    border: none;
}

.btn-primary {
    background: var(--color-primary);
    /* Solid Navy */
    color: white;
    box-shadow: 0 4px 14px 0 rgba(10, 37, 64, 0.35);
    /* Glow shadow */
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 37, 64, 0.45);
}

.btn-outline {
    background: transparent;
    /* Updated for pill style */
    color: var(--color-primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* Subtle default border */
}

.btn-outline:hover {
    background: rgba(0, 0, 0, 0.03);
    /* Subtle Interaction */
    border-color: rgba(0, 0, 0, 0.2);
}

/* Navigation Bar Styles (Apple Blur) */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-standard);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.navbar.navbar-dark {
    background: transparent;
    /* Transparent at top for Hero */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: none;
    /* Clearer view of hero */
}

.navbar.navbar-dark.scrolled {
    background: rgba(10, 37, 64, 0.95);
    /* Solid Navy when scrolled */
    backdrop-filter: blur(20px);
    border-bottom: none;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    letter-spacing: -0.5px;
}

.navbar-dark .logo {
    color: white;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--color-text-dark);
    /* Default dark (for white nav) */
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    opacity: 0.8;
}

.navbar-dark .nav-links a {
    color: rgba(255, 255, 255, 0.85);
    /* Proper white for dark nav */
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--color-secondary);
    /* Dark highlight */
}

.navbar-dark .nav-links a:hover,
.navbar-dark .nav-links a.active {
    color: white;
    /* White highlight */
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-secondary);
}

.navbar-dark .mobile-menu-btn {
    color: white;
}


/* Hero Section (Mosey-inspired) */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--color-bg-light);
    /* Fallback */
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero.dark-mode {
    background: radial-gradient(circle at top right, #1a2a6c, #b21f1f, #fdbb2d);
    /* Deep rich gradient */
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    /* Clean dark gradient */
    color: white;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    /* Combine parallax (vars) and float (animation) */
    transform: translate(var(--move-x, 0px), var(--move-y, 0px));
    animation: float 10s infinite ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: rgba(76, 175, 80, 0.3);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(33, 150, 243, 0.3);
    bottom: -50px;
    left: -100px;
    animation-delay: -2s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: rgba(156, 39, 176, 0.3);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -4s;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
    position: relative;
    /* Glassmorphism for content container if needed, but keeping clean for text readability */
}

.hero h1 {
    font-size: 5rem;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    color: inherit;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.5rem;
    max-width: 650px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Animations */
@keyframes float {
    0% {
        transform: translate(var(--move-x, 0px), var(--move-y, 0px)) translateY(0);
    }

    50% {
        transform: translate(var(--move-x, 0px), var(--move-y, 0px)) translateY(20px);
    }

    100% {
        transform: translate(var(--move-x, 0px), var(--move-y, 0px)) translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.fade-in-up.delay-1 {
    animation-delay: 0.2s;
}

.fade-in-up.delay-2 {
    animation-delay: 0.4s;
}


/* Components */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.service-card {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    /* Smooth corners */
    box-shadow: var(--shadow-sm);
    /* Subtle depth */
    transition: var(--transition-standard);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    /* Elevate on hover (Stripe) */
    border-color: rgba(0, 0, 0, 0.08);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

/* Footer (Clean & Modern) */
.footer {
    background: var(--color-bg-off-white);
    /* Light footer (Apple style) */
    color: var(--color-text-dark);
    padding: 6rem 0 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-grid {
        gap: 3rem;
    }
}

.footer h4 {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: none;
    /* Remove uppercase if it was there contextually, though previous css had it */
    letter-spacing: normal;
    margin-bottom: 1.5rem;
}

.footer p,
.footer-links,
.footer-links li,
.footer-links a {
    color: black;
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    opacity: 1;
    /* Ensure no opacity */
}

.footer-links a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        /* Full width mobile menu */
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .navbar-dark .nav-links {
        background: rgba(10, 37, 64, 0.98);
    }

    .nav-links.active {
        right: 0;
    }

    .navbar-dark .nav-links a {
        color: white;
        opacity: 1;
        font-size: 1.5rem;
    }

    .nav-links a {
        color: black;
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 3rem;
    }
}