@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* New Palette: Deep Indigo & Slate */
    --primary-bg: #0f172a;
    /* Very dark slate */
    --secondary-bg: #1e293b;
    /* Dark slate */
    --card-bg: rgba(30, 41, 59, 0.7);

    --primary-text: #f8fafc;
    /* White-ish */
    --muted-text: #94a3b8;
    /* Light grey */

    --accent-primary: #6366f1;
    /* Indigo 500 */
    --accent-secondary: #a855f7;
    /* Purple 500 */
    --accent-tertiary: #ec4899;
    /* Pink 500 */

    --border-color: rgba(255, 255, 255, 0.1);

    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

    --accent-gradient-start: #6366f1;
    --accent-gradient-end: #a855f7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--primary-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-text);
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradient-move 5s ease infinite;
}

@keyframes gradient-move {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    color: white;
}

.section-padding {
    padding: 100px 0;
}

/* Header & Mobile Menu */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    /* Force reduced size */
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    /* Make logo white for dark theme */
}

/* Mobile Nav Links */
.nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #1e293b;
    flex-direction: column;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
}

.nav-links.active {
    display: flex;
}

/* Mobile Nav Links Item */
.nav-links a {
    font-weight: 500;
    font-size: 16px;
    color: var(--primary-text);
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: block;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-primary);
    padding-left: 10px;
}

/* Dropdown for Mobile */
.dropdown {
    width: 100%;
}

.dropdown>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-content {
    display: none;
    background-color: var(--secondary-bg);
    border-radius: 8px;
    margin-top: 5px;
    padding-left: 15px;
}

.dropdown.active .dropdown-content {
    display: block;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 160px;
    /* Increased padding */
    padding-bottom: 100px;
    min-height: 80vh;
    /* Ensure strictly tall */
    display: flex;
    align-items: center;
    background: url('../images/hero-bg-1.jpg') no-repeat center center/cover;
    background-color: var(--primary-bg);
    /* Fallback */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark overlay + Gradient */
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.7) 50%, rgba(15, 23, 42, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero p {
    font-size: 18px;
    color: var(--muted-text);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

/* Services Section */
.services {
    background-color: var(--primary-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header span {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    font-size: 14px;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--muted-text);
    font-size: 18px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.service-card {
    background: var(--secondary-bg);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 28px;
    color: var(--accent-primary);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--accent-primary);
    color: white;
    transform: rotate(5deg);
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 600;
}

.service-card p {
    color: var(--muted-text);
    font-size: 15px;
    line-height: 1.6;
}

/* Feature/About Section CSS */
.about-flex {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.about-img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Contact Section */
.contact {
    background-color: var(--primary-bg);
}

.contact-container {
    display: flex;
    flex-direction: column;
    background: var(--secondary-bg);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info {
    width: 100%;
    padding: 40px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}

.contact-form {
    width: 100%;
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted-text);
    font-size: 14px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background-color: var(--primary-bg);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--primary-text);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    outline: none;
}

/* Footer */
footer {
    background-color: #020617;
    /* Even darker for footer */
    color: var(--primary-text);
    padding-top: 80px;
    padding-bottom: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer h4 {
    color: white;
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 600;
}

.footer-links a {
    color: var(--muted-text);
    margin-bottom: 12px;
    display: block;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-primary);
    padding-left: 5px;
}

.bottom-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
    padding-top: 30px;
    text-align: center;
    color: var(--muted-text);
    font-size: 14px;
}

/* Hide desktop header action on mobile */
.header-action {
    display: none;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.pricing-card {
    background: var(--secondary-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    border: 1px solid var(--accent-primary);
    transform: scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.2);
    z-index: 2;
}

.card-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: white;
}

.price-tag {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.price-tag span {
    font-size: 14px;
    color: var(--muted-text);
    font-weight: 400;
}

.features-list {
    margin: 20px 0 30px;
    flex-grow: 1;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--primary-text);
    font-size: 15px;
}

.features-list li ion-icon {
    color: var(--accent-primary);
    font-size: 20px;
    min-width: 20px;
}

/* DESKTOP STYLES (Min-Width 768px) */
@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: center;
        /* Align cards vertically center if they have diff heights, or stretch */
    }

    .pricing-card {
        padding: 40px;
    }

    .pricing-card.featured {
        transform: scale(1.1);
    }

    .section-padding {
        padding: 120px 0;
    }

    .mobile-toggle {
        display: none;
    }

    .mobile-only-btn {
        display: none !important;
    }

    .header-action {
        display: block;
    }

    .nav-links {
        display: flex !important;
        position: static;
        flex-direction: row;
        width: auto;
        background: transparent;
        padding: 0;
        box-shadow: none;
        border: none;
        gap: 32px;
        align-items: center;
    }

    .nav-links a {
        padding: 0;
        border: none;
        font-size: 15px;
        font-weight: 500;
        color: var(--muted-text);
    }

    .nav-links a:hover {
        color: white;
        padding-left: 0;
    }

    .dropdown {
        width: auto;
        position: relative;
    }

    .dropdown>a {
        gap: 6px;
    }

    .dropdown-content {
        position: absolute;
        top: 100%;
        /* Changed from calc(100% + 15px) to keep it connected or closer */
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        min-width: 260px;
        box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 8px;
        background: rgba(15, 23, 42, 0.95);
        /* Darker background */
        backdrop-filter: blur(12px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        display: block;
        /* Overriding display:none to use opacity/visibility for transition */
        margin-top: 15px;
        /* Using margin instead of top gap */
    }

    .dropdown:hover .dropdown-content {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .dropdown-content a {
        padding: 12px 16px;
        border-radius: 6px;
        color: var(--muted-text);
        display: block;
        /* Ensure block display */
    }

    .dropdown-content a:hover {
        background: rgba(255, 255, 255, 0.05);
        color: white;
        padding-left: 12px;
    }

    /* Hero */
    .hero {
        padding-top: 200px;
        padding-bottom: 120px;
        text-align: center;
    }

    .hero h1 {
        font-size: 64px;
        margin-bottom: 32px;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    /* Services */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .section-header h2 {
        font-size: 42px;
    }

    /* About */
    .about-flex {
        flex-direction: row;
        gap: 80px;
    }

    /* Contact */
    .contact-container {
        flex-direction: row;
    }

    .contact-info {
        width: 40%;
        padding: 60px;
    }

    .contact-form {
        width: 60%;
        padding: 60px;
    }

    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    /* Footer */
    .footer-grid {
        display: grid;
        grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
        /* Custom widths for better spacing */
        gap: 40px;
    }

    .footer-col h4 {
        margin-bottom: 24px;
        color: white;
        font-size: 18px;
        font-weight: 600;
    }

    .footer-links-group {
        flex-direction: row;
        gap: 80px;
    }
}