@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Identity Colors - Black Hawk */
    --primary-color: #00c2cc;
    /* Cyan/Aqua */
    --primary-hover: #00959e;
    --secondary-color: #7000ff;
    /* Purple Accent */
    --accent-color: #ff0055;
    /* Red/Pink Accent */

    --bg-body: #050505;
    /* Deep Black */
    --bg-surface: #101010;
    /* Off-Black */
    --bg-card: #151515;
    /* Dark Grey */
    --bg-input: #1a1a1a;

    --text-main: #ffffff;
    --text-muted: #8b8b99;

    --border-color: #2a2a35;
    --danger: #ff4d4d;
    --success: #00ff9d;

    /* Removed heavy glassmorphism for optimization */
    --glass-bg: #151515;
    --glass-border: #2a2a35;

    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-body);
    background-image: radial-gradient(circle at 50% 0%, #151515 0%, #050505 60%);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Animations - Optimized (Removed loops) */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Helpers */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.w-full {
    width: 100%;
}

/* Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.container.flex {
    width: 100%;
}

/* Navbar */
.navbar {
    background: rgba(5, 5, 5, 0.95);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
    color: var(--text-muted);
}

.nav-link:hover {
    color: white;
}

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    color: #000;
    border: none;
    padding: 14px 32px;
    border-radius: 4px;
    /* Square/Sharp look from screenshots */
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: white;
    padding: 12px 28px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 35px;
    border-radius: 8px;
    /* Slightly rounded, solid */
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 242, 255, 0.3);
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 16px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Spacing & Flex */
.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mt-60 {
    margin-top: 60px;
}

.mt-120 {
    margin-top: 120px;
}

.py-80 {
    padding: 80px 0;
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-20 {
    gap: 20px;
}

/* Sections */
.section-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
    line-height: 1.1;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

/* Background Texture Utility */
.bg-texture {
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 600px;
    z-index: -1;
    pointer-events: none;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
    padding: 40px 0;
    margin-top: auto;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-danger {
    background: rgba(255, 77, 77, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.alert-success {
    background: rgba(0, 255, 157, 0.1);
    border-color: var(--success);
    color: var(--success);
}

/* Mobile Nav Toggle - Hidden by default on Desktop */
.menu-toggle {
    display: none !important;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 991px) {
    .navbar .container {
        padding: 5px 20px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block !important;
    }

    .nav-links {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background: var(--bg-surface);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transition: 0.3s ease-in-out;
        z-index: 999;
        border-top: 1px solid var(--border-color);
        gap: 20px;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a.btn-primary,
    .nav-links a.btn-outline {
        margin-left: 0 !important;
        width: 80%;
    }

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr !important;
    }

    .flex {
        flex-wrap: wrap;
    }

    .justify-between {
        justify-content: center;
        gap: 15px;
    }

    .section-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    .section-subtitle {
        font-size: 1rem !important;
        padding: 0 10px;
    }

    .container {
        padding: 0 20px;
    }

    /* Cards should full width on mobile */
    .card {
        padding: 24px;
    }

    .text-center-mobile {
        text-align: center !important;
    }

    /* Hero section mobile adjustments */
    .py-80 {
        padding: 40px 0 !important;
    }

    .mt-120 {
        margin-top: 60px !important;
    }

    .mt-60 {
        margin-top: 30px !important;
    }

    .mt-40 {
        margin-top: 20px !important;
    }

    .mb-40 {
        margin-bottom: 20px !important;
    }

    /* Button adjustments for mobile */
    .btn-primary,
    .btn-outline {
        width: 100%;
        max-width: 280px;
        padding: 14px 24px;
        font-size: 0.9rem;
    }

    /* Make flexbox items stack properly */
    .flex.items-center {
        flex-direction: column;
        text-align: center;
    }

    /* Adjust card padding for CTA sections */
    .card.flex {
        padding: 30px 20px !important;
        text-align: center;
    }

    .card.flex h2 {
        font-size: 1.8rem !important;
    }

    .card.flex p {
        font-size: 1rem !important;
    }

    /* Make grid items in nested grids responsive */
    .grid .grid {
        gap: 15px;
    }

    .grid .card {
        padding: 20px;
    }
}

/* Tablet breakpoint */
@media (max-width: 991px) and (min-width: 769px) {
    .section-title {
        font-size: 2.8rem;
    }

    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .container {
        padding: 0 30px;
    }
}

.hidden-mobile {
    display: none !important;
}

@media (min-width: 769px) {
    .hidden-desktop {
        display: none !important;
    }
}

/* Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(26px);
}