/* UpScale Skills Academy - Premium Design System v2 */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --secondary-gradient: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #22d3ee;
    --accent-glow: rgba(34, 211, 238, 0.3);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 40%);
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: white;
    margin-top: 0;
}

/* Glassmorphism Nav */
.upscale-nav {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:hover {
    color: white;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    padding: 8rem 0 6rem;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-tagline {
    font-size: 1rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: rgba(34, 211, 238, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -1px;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-description {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Cards & Grid */
.section-padding {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 0 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.premium-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.premium-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(99, 102, 241, 0.2);
}

.premium-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-size: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Salary Table Enhanced */
.salary-table-container {
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-lg);
}

.salary-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

.salary-table th {
    background: rgba(15, 23, 42, 0.8);
    padding: 1.5rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--glass-border);
}

.salary-table td {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.salary-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
    color: white;
}

.salary-table tr:last-child td {
    border-bottom: none;
}

/* Accordion Enhanced */
.course-accordion {
    display: grid;
    gap: 1rem;
}

.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.accordion-header {
    padding: 1.25rem 1.75rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    font-weight: 600;
    color: var(--text-main);
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.accordion-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0, 1, 0, 1);
    background: rgba(0, 0, 0, 0.2);
}

.accordion-content.active {
    padding: 1.75rem;
    max-height: 1000px;
    /* arbitrary large height */
    transition: all 0.5s cubic-bezier(1, 0, 1, 0);
    border-top: 1px solid var(--glass-border);
}

/* Buttons */
.btn-premium {
    background: var(--primary-gradient);
    background-size: 200% auto;
    color: white;
    padding: 1rem 3rem;
    border-radius: 3rem;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-premium:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
    color: white;
}

/* Floating CTAs - Optimized */
.floating-wa {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-wa:hover {
    transform: scale(1.1) rotate(10deg);
}

.floating-call {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: var(--primary-gradient);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.floating-call:hover {
    transform: translateY(-3px);
}

.floating-enquiry {
    position: fixed !important;
    top: 50% !important;
    right: 0 !important;
    transform: translateY(-50%) !important;
    background: var(--secondary-gradient) !important;
    color: white !important;
    padding: 1.5rem 0.8rem !important;
    border-radius: 12px 0 0 12px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.3) !important;
    z-index: 99999 !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    writing-mode: vertical-rl !important;
    text-orientation: mixed !important;
}

.floating-enquiry:hover {
    padding-right: 1.2rem !important;
    box-shadow: -8px 8px 25px rgba(0, 0, 0, 0.4) !important;
}

.floating-enquiry i {
    transform: rotate(90deg) !important;
    font-size: 1.2rem !important;
    margin-bottom: 5px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2.2rem;
        padding: 0 1rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .btn-premium {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .salary-table th,
    .salary-table td {
        padding: 1rem;
        font-size: 0.9rem;
    }

    /* Floating CTA Mobile Fixes */
    .floating-enquiry {
        top: auto !important;
        bottom: 6rem !important;
        /* Position above bottom navbar/buttons */
        right: 0 !important;
        transform: none !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        border-radius: 20px 0 0 20px !important;
        padding: 0.8rem 1.2rem !important;
        flex-direction: row !important;
        background: var(--secondary-gradient) !important;
        box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.3) !important;
    }

    .floating-enquiry:hover {
        padding-right: 1.2rem !important;
    }

    .floating-enquiry i {
        transform: none !important;
        margin-right: 0.5rem;
        margin-bottom: 0 !important;
    }

    .floating-wa {
        bottom: 1.5rem !important;
        right: 1rem !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
        z-index: 9999 !important;
    }

    .floating-call {
        bottom: 1.5rem !important;
        left: 1rem !important;
        width: auto !important;
        transform: none !important;
        padding: 0.8rem 1.2rem !important;
        font-size: 0.9rem !important;
        z-index: 9999 !important;
        justify-content: flex-start;
    }

    .floating-call:hover {
        transform: none !important;
    }

    /* Container adjustments */
    .nav-container {
        padding: 0 1rem;
    }

    /* Hero Buttons container */
    .hero-section div[style*="display: flex"] {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        padding: 0 1rem;
    }

    /* Hide less important stats on very small screens */
    .stat-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}