@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&family=Amiri:wght@400;700&display=swap');

:root {
    --bg-dark: #020617;
    --bg-card: #0f172a;
    --accent-emerald: #10b981;
    --accent-gold: #f59e0b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass: rgba(30, 41, 59, 0.7);
    --border: rgba(255, 255, 255, 0.1);
    --primary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    /* 18px base for premium readability */
    line-height: 1.8;
    /* Increased line height for focus */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    padding-top: 80px;
    /* Offset for sticky/fixed navbar */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    color: white;
}

h1 {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Responsive Grid Utility */
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Glassmorphism */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-emerald);
}

/* Responsive Utilities */
.responsive-about-img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    transition: height 0.3s ease;
}

.responsive-cta-padding {
    padding: 5rem;
}

@media (max-width: 1024px) {
    body {
        padding-top: 0 !important;
    }

    .container {
        padding: 0 2rem;
    }

    .grid-responsive {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    section {
        padding: 5rem 0 !important;
    }

    .hero {
        padding-top: 4rem !important;
        text-align: center;
    }

    .hero .container {
        display: flex !important;
        flex-direction: column-reverse;
        gap: 3rem !important;
    }

    .hero-title {
        font-size: 2.25rem !important;
    }

    .hero-cta {
        justify-content: center;
    }

    .responsive-about-img {
        height: 400px !important;
    }

    .responsive-cta-padding {
        padding: 3rem !important;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .glass-card {
        padding: 1.5rem !important;
    }

    .responsive-about-img {
        height: 300px !important;
    }

    .responsive-cta-padding {
        padding: 2rem !important;
    }
}

/* Footer Responsive Utilities */
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 4rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 3rem !important;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 3rem 2rem !important;
        text-align: left;
    }

    .footer-grid> :first-child,
    .footer-grid> :last-child {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-grid> :first-child div {
        justify-content: center;
        flex-direction: row !important;
        /* Icons in one line */
    }

    .footer-grid> :first-child p {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-grid> :last-child form {
        max-width: 400px;
        margin: 0 auto;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        margin-top: 4rem !important;
    }

    .footer-bottom>div {
        justify-content: center;
    }
}

/* Typography Gradient */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-primary {
    background: var(--primary-gradient);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: opacity 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    border: 1px solid var(--border);
    transition: background 0.3s ease;
}

.btn-secondary:hover {
    background: var(--glass);
}

/* Animations Helpers */
.reveal {
    opacity: 0;
    transform: translateY(20px);
}

/* Layout Specific */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-emerald);
}

/* Sticky Navbar Transitions */
.navbar {
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.navbar-scrolled {
    height: 110px !important;
    background: rgba(2, 6, 23, 0.95) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}