@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    /* Premium Dark Theme Palette */
    --primary: #818CF8;
    /* Vibrant Indigo Accent */
    --primary-light: #A5B4FC;
    --primary-dark: #4F46E5;
    --secondary: #FBBF24;
    /* Amber Gold */
    --secondary-light: #FDE68A;
    --secondary-dark: #D97706;

    /* Backgrounds */
    --bg-dark: #0F172A;
    /* Midnight Slate */
    --bg-card: #1E293B;
    /* Card Slate */
    --bg-glass: rgba(30, 41, 59, 0.7);
    --border-glass: rgba(255, 255, 255, 0.1);

    /* Text */
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;

    /* Spacing & Borders */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Mesh Background Effect */
    background-image:
        radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(251, 191, 36, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

/* Premium Navigation Fix */
header nav {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Glassmorphism Cards */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.glass:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Advanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Button Improvements */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
    filter: brightness(1.1);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
    color: var(--bg-dark);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.3);
    filter: brightness(1.1);
}

/* Forms UX */
input,
select,
textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 15px;
    border-radius: 12px;
    transition: var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

/* Utilities */
.flex-mobile-col {
    display: flex;
}

/* Tables UX */
section {
    padding: 100px 0;
}

.hero-title {
    font-size: 3.8rem;
}

table {
    background: var(--bg-card);
    border-radius: var(--radius-md);
}

th {
    background: rgba(255, 255, 255, 0.05);
}

td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive Design */

/* Tablet & Smaller Laptops (1024px) */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .nav-links {
        gap: 20px;
    }
}

/* Mobile Devices (768px) */
@media (max-width: 768px) {
    #nav-toggle {
        display: block !important;
    }

    .nav-links {
        display: flex !important;
        position: absolute;
        top: calc(100% + 15px);
        right: 0;
        width: 280px;
        flex-direction: column;
        background: rgba(30, 41, 59, 0.95);
        padding: 25px;
        gap: 15px;
        border-radius: 20px;
        border: 1px solid var(--border-glass);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links li {
        width: 100%;
        text-align: left;
    }

    .nav-links li a {
        display: block;
        padding: 12px 15px;
        font-size: 1rem;
        border-radius: 12px;
        transition: 0.2s;
    }

    .nav-links li a:hover {
        background: rgba(129, 140, 248, 0.1);
        color: var(--primary-light);
    }

    /* Typography & Spacing */
    h1 {
        font-size: 2.2rem !important;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    section {
        padding: 60px 0 !important;
    }

    .page-header {
        padding: 80px 0 !important;
    }

    /* Layout Adjustments */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    [style*="display: grid"] {
        gap: 20px !important;
    }

    /* Sticky fixes - Disable sticky on mobile for better UX */
    header {
        position: sticky !important;
        /* Keep header sticky */
        margin: 0 !important;
        border-radius: 0 !important;
    }

    [style*="position: sticky"] {
        position: relative !important;
        top: 0 !important;
    }

    /* Form Adjustments */
    form {
        padding: 30px !important;
    }

    input,
    select,
    textarea {
        width: 100% !important;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* Column-based Flex layouts */
    .flex-mobile-col {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    header .container {
        flex-direction: row !important;
        /* Keep logo and hamburger side by side */
        align-items: center !important;
    }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem !important;
    }

    .container {
        padding: 0 15px;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(18, 140, 126, 0.4);
    color: #FFF;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
}