/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);

    --accent: #b829dd;
    --accent-light: #d45af7;
    --accent-dark: #8a1aad;
    --accent-gradient: linear-gradient(135deg, #b829dd, #7b2ff7);
    --accent-gradient-hover: linear-gradient(135deg, #d45af7, #9b4dff);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.45);

    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    --glow-purple: rgba(139, 47, 247, 0.3);
    --glow-pink: rgba(212, 90, 247, 0.2);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --section-padding: 100px 0;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   UTILITY / COMMON
   ============================================================ */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section--dark {
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

/* Buttons */
.btn-primary {
    background: var(--accent-gradient);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
    box-shadow: 0 4px 20px rgba(184, 41, 221, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--accent-gradient-hover);
    color: #fff;
    box-shadow: 0 6px 30px rgba(184, 41, 221, 0.45);
    transform: translateY(-1px);
}

.btn-outline-light {
    border-color: var(--border-hover);
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--bg-card);
    border-color: var(--accent);
    color: var(--text-primary);
}

/* Flash alerts */
.flash-alert {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
}

.flash-alert.alert-success {
    margin-top: 70px;
    border-color: rgba(76, 175, 80, 0.3);
    background: rgba(76, 175, 80, 0.1);
}

.flash-alert.alert-danger {
    margin-top: 70px;
    border-color: rgba(244, 67, 54, 0.3);
    background: rgba(244, 67, 54, 0.1);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition-normal);
}

.header__navbar {
    padding: 1rem 0;
    background: transparent;
    transition: var(--transition-normal);
}

.header__navbar.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.6rem 0;
}

.header__brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
}

.header__logo-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.header__nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    transition: var(--transition-fast);
}

.header__nav-link:hover,
.header__nav-link.active {
    color: var(--text-primary) !important;
}

.header__cta-btn {
    background: var(--accent-gradient);
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
    text-decoration: none;
}

.header__cta-btn:hover {
    box-shadow: 0 4px 20px rgba(184, 41, 221, 0.4);
    transform: translateY(-1px);
    color: #fff;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero__bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 20%, rgba(139, 47, 247, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(184, 41, 221, 0.1), transparent);
    pointer-events: none;
}

.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.hero__glow--left {
    width: 500px;
    height: 500px;
    background: var(--glow-purple);
    top: -10%;
    left: -15%;
    opacity: 0.4;
}

.hero__glow--right {
    width: 400px;
    height: 400px;
    background: var(--glow-pink);
    bottom: -10%;
    right: -10%;
    opacity: 0.3;
}

.hero__content-col {
    position: relative;
    z-index: 2;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero__title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero__title-accent {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Hero Card Grid */
.hero__visual-col {
    position: relative;
    z-index: 2;
}

.hero__card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
}

.hero__card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    transition: var(--transition-normal);
}

.hero__card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.hero__card-icon {
    font-size: 1.5rem;
    color: var(--accent-light);
}

.hero__card-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.about__description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

.about__features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about__feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.about__feature-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(184, 41, 221, 0.5);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.services__subtitle {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
}

/* Service Card — BEM */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    height: 100%;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition-normal);
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.service-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-card__text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.contact__subtitle {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.contact__detail-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent-light);
    flex-shrink: 0;
}

.contact__detail-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.contact__detail-link:hover {
    color: var(--accent-light);
}

.contact__form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

/* Form elements */
.contact__form .form-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.contact__form .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.contact__form .form-control::placeholder {
    color: var(--text-muted);
}

.contact__form .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(184, 41, 221, 0.15);
    color: var(--text-primary);
}

.contact__form .form-control.is-invalid {
    border-color: #f44336;
    box-shadow: none;
}

.contact__form .invalid-feedback {
    font-size: 0.8rem;
    color: #f44336;
}

.contact__submit-btn {
    background: var(--accent-gradient);
    border: none;
    font-weight: 600;
    padding: 0.875rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
    box-shadow: 0 4px 20px rgba(184, 41, 221, 0.3);
}

.contact__submit-btn:hover {
    box-shadow: 0 6px 30px rgba(184, 41, 221, 0.45);
    transform: translateY(-1px);
}

/* ============================================================
   SUCCESS PAGE
   ============================================================ */
.success__icon {
    display: inline-block;
}

.success__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
}

.success__text {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.footer__copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 991.98px) {
    :root {
        --section-padding: 4px 0;
    }

    .hero__visual-col {
        margin-top: 3rem;
    }

    .hero__card-grid {
        max-width: 500px;
        margin: 0 auto;
    }

    .header__navbar {
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-color);
    }

    .header__nav-link {
        padding: 0.75rem 1rem !important;
    }

    .about__features-col {
        margin-top: 1rem;
    }
}

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 767.98px) {
    :root {
        --section-padding: 10px 0;
    }

    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .hero__title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .hero__card-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 12px;
    }

    .hero__card {
        padding: 1rem;
    }

    .hero__card-icon {
        font-size: 1.2rem;
    }

    .hero__card-text {
        font-size: 0.75rem;
    }

    .service-card {
        padding: 1.5rem 1.25rem;
    }

    .contact__form-card .card-body {
        padding: 1.5rem !important;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        text-align: center;
    }

    .hero__glow--left {
        width: 300px;
        height: 300px;
    }

    .hero__glow--right {
        width: 250px;
        height: 250px;
    }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__content-col>* {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero__content-col>*:nth-child(1) {
    animation-delay: 0.1s;
}

.hero__content-col>*:nth-child(2) {
    animation-delay: 0.2s;
}

.hero__content-col>*:nth-child(3) {
    animation-delay: 0.3s;
}

.hero__content-col>*:nth-child(4) {
    animation-delay: 0.4s;
}

.hero__card-grid {
    animation: fadeInUp 0.8s ease 0.5s forwards;
    opacity: 0;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card-hover);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark);
}

/* Selection */
::selection {
    background: rgba(184, 41, 221, 0.3);
    color: #fff;
}