/* ===========================
   GLOBAL STYLES
   =========================== */

html {
    height: 100%;
}

   :root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.7;
    min-height: 100%;
    min-height: 100dvh;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    line-height: 1.3;
}

a {
    transition: var(--transition);
}

/* ===========================
   NAVBAR
   =========================== */

#mainNav {
    padding: 1rem 0;
    transition: var(--transition);
    background: transparent;
}

#mainNav.scrolled {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px);
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 60%;
}

/* ===========================
   FOOTER
   =========================== */

.footer-section {
    background: var(--secondary);
    padding-top: 2rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links li a,
.footer-links li {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links li a:hover {
    color: white;
    padding-left: 5px;
}

.social-links a:hover {
    color: white !important;
    transform: scale(1.2);
}

/* ===========================
   BUTTONS
   =========================== */

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

.btn-light {
    font-weight: 600;
}

/* ===========================
   SECTION COMMON
   =========================== */

.section-padding {
    padding: 6rem 0;
}

.section-badge {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    background: rgba(37, 99, 235, 0.08);
    padding: 0.4rem 1rem;
    border-radius: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ===========================
   SCROLLBAR
   =========================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ===========================
   ALERT ANIMATION
   =========================== */

.alert {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-padding {
        padding: 4rem 0;
    }

    .nav-cta {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-section .row {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .btn-lg {
        font-size: 1rem;
        padding: 0.65rem 1.5rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .section-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.75rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .dropdown-menu {
        min-width: auto;
        width: 100%;
    }
}

/* ===========================
   DROPDOWN MENUS
   =========================== */

   .dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(37, 99, 235, 0.06);
}

.dropdown-divider {
    margin: 0.25rem 0;
}

/* ===========================
   LOADING ANIMATION
   =========================== */

.page-transition {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   IMPROVED FORM STYLES
   =========================== */

.form-control::-webkit-input-placeholder {
    color: #94a3b8;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control-color {
    width: 100%;
    height: 42px;
    padding: 0.25rem;
    cursor: pointer;
}

/* ===========================
   BADGE COLORS
   =========================== */

.bg-purple-subtle {
    background-color: rgba(124, 58, 237, 0.1) !important;
}

.text-purple {
    color: #7c3aed !important;
}