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

:root {
    --primary: #0f172a;
    /* Deep Slate */
    --primary-light: #1e293b;
    --accent: #0ea5e9;
    /* Sky Blue */
    --accent-glow: rgba(14, 165, 233, 0.3);
    --secondary: #64748b;
    /* Muted Blue-Grey */

    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --border-glass: rgba(255, 255, 255, 0.5);

    --text-main: #0f172a;
    --text-muted: #64748b;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 20px var(--accent-glow);
}

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

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

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

ul {
    list-style: none;
}

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

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--accent);
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.nav-btn {
    padding: 0.6rem 1.5rem !important;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    line-height: normal;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    height: 100%;
}

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

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

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.1), transparent 40%),
        radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.05), transparent 40%);
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

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

/* Features/Value Prop */
.features {
    padding: 80px 0;
}

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

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-glow);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--secondary);
    font-size: 0.95rem;
}

/* Services Preview */
.services-preview {
    background: var(--primary);
    color: white;
    padding: 100px 0;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

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

.service-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.service-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.service-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--accent);
}

.service-item p {
    color: #cbd5e1;
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: white;
    padding: 60px 0 20px;
    border-top: 1px solid #e2e8f0;
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--secondary);
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 2rem;
    color: var(--secondary);
    font-size: 0.9rem;
}

/* Mobile Nav */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
    }

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

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Page Headers */
.page-header {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    color: #cbd5e1;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Inner Page Content */
.content-section {
    padding: 80px 0;
}

.content-block {
    margin-bottom: 4rem;
}

.content-block h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.content-block p {
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.content-block ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.content-block ul li {
    margin-bottom: 0.5rem;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-top: 0.2rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* =========================================
   Mobile Optimization Overrides
   ========================================= */
@media (max-width: 768px) {

    /* Global Layout & Typography */
    .container {
        padding: 0 1.5rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    h1 {
        font-size: 2.2rem !important;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    /* Navigation */
    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        color: var(--primary);
    }

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

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

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 0.5rem;
        font-size: 1.1rem;
    }

    /* Hero Section */
    .hero {
        padding: 120px 0 60px !important;
        /* Override current padding */
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero p {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .hero-btns .btn {
        width: 100%;
        display: block;
        text-align: center;
    }

    /* Inner Pages */
    .page-header {
        padding: 110px 0 50px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .content-section {
        padding: 50px 0;
    }

    .content-block {
        margin-bottom: 3rem;
    }

    /* Grids: Force Single Column */
    .features-grid,
    .service-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Contact Page */
    .contact-grid {
        gap: 3rem;
    }

    .contact-info-item {
        flex-direction: row;
        gap: 1rem;
    }

    /* Footer */
    .footer-main {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-col {
        min-width: 100%;
        align-items: center;
    }

    .footer-col .logo {
        justify-content: center;
    }

    .footer-col p {
        margin: 0 auto;
    }

    /* Specific adjustment for the Mission Section in index.html */
    section[style*="background: white"] .container {
        flex-direction: column;
        gap: 2rem !important;
    }

    section[style*="background: white"] .glass-card {
        border-left-width: 0 !important;
        border-top: 4px solid var(--accent);
        text-align: center;
    }
}