/* ============================================
   TASIR ACADEMY - GLASSMORPHISM 2.0 (PREMIUM)
   Focus: Readability, Depth, Motion
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;700;800&display=swap');

:root {
    /* Colors */
    --primary: #009D3F;
    --primary-dark: #007A32;
    --primary-glow: rgba(0, 157, 63, 0.4);

    --dark: #0f172a;
    --dark-glass: rgba(15, 23, 42, 0.6);
    --light: #ffffff;

    /* Text */
    --text-main: #1e293b;
    --text-muted: #475569;

    /* Glass Systems */
    --glass-surface: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --glass-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);

    --glass-hover-surface: rgba(255, 255, 255, 0.85);
    --glass-hover-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);

    /* Structure */
    --container: 1100px;
    --radius: 24px;
}

/* ============================
   RESET & SETUP
   ============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Ambient Background - Improved */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: #f8fafc;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0, 157, 63, 0.15), transparent 70%);
    animation: float 25s infinite alternate;
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.15), transparent 70%);
    animation: float 30s infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(40px, 40px);
    }
}

/* ============================
   TYPOGRAPHY
   =========================== */
h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ============================
   COMPONENTS
   =========================== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px -5px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 20px 30px -10px var(--primary-glow);
}

.glass-card {
    background: var(--glass-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius);
}

/* ============================
   NAVIGATION
   =========================== */
.navbar {
    position: sticky;
    top: 20px;
    width: calc(100% - 40px);
    margin: 0 auto;
    z-index: 1000;
    border-radius: 100px;
    /* Pill shape */
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 32px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* ============================
   HERO SECTION
   =========================== */
.hero {
    padding: 140px 0 100px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border-radius: 100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.hero h1 {
    margin-bottom: 24px;
    background: linear-gradient(180deg, var(--dark) 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.25rem;
}

/* 3D Cards Animation */
.hero-visual {
    position: relative;
    height: 400px;
    margin-top: 60px;
    perspective: 1000px;
}

.hero-card {
    position: absolute;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    animation: float-y 6s ease-in-out infinite;
}

.hero-card svg {
    color: var(--primary);
}

.hero-card h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.hero-card span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.card-1 {
    top: 10%;
    left: 10%;
    transform: rotate(-5deg);
    z-index: 1;
}

.card-2 {
    top: 50%;
    right: 10%;
    transform: rotate(5deg);
    animation-delay: -2s;
    z-index: 2;
}

.card-3 {
    bottom: 0;
    left: 30%;
    transform: rotate(-2deg);
    animation-delay: -4s;
    z-index: 3;
}

@keyframes float-y {

    0%,
    100% {
        transform: translateY(0) rotate(var(--r, 0deg));
    }

    50% {
        transform: translateY(-20px) rotate(var(--r, 0deg));
    }
}

/* ============================
   FEATURES SECTION
   =========================== */
.section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 40px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius);
    transition: all 0.4s ease;
}

.feature-card:hover {
    background: white;
    transform: translateY(-8px);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.1);
    border-color: white;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 24px;
    box-shadow: 0 10px 20px -5px var(--primary-glow);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

/* ============================
   CONTACT SECTION
   =========================== */
.contact-wrapper {
    background: linear-gradient(135deg, #009D3F 0%, #007A32 100%);
    border-radius: 40px;
    padding: 80px 24px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-wrapper h2 {
    color: white;
    margin-bottom: 16px;
}

.contact-wrapper p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-white:hover {
    background: #f0fff4;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.15) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

/* ============================
   FOOTER
   =========================== */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 80px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.footer-brand p {
    max-width: 300px;
    margin-top: 16px;
}

.footer-social {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: 0.3s;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================
   RESPONSIVE
   =========================== */
/* ============================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {

    /* Layout */
    .section {
        padding: 40px 0;
    }

    .container {
        padding: 0 20px;
    }

    /* Navbar Mobile */
    .navbar {
        top: 10px;
        width: calc(100% - 20px);
        padding: 10px 16px;
    }

    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: block;
        color: var(--text-main);
    }

    /* Hero */
    .hero {
        padding: 100px 0 40px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    /* Hero Visual - Mobile Friendly Stack */
    .hero-visual {
        height: auto;
        margin-top: 30px;
        display: flex;
        flex-direction: column;
        gap: 12px;
        perspective: none;
    }

    .hero-card {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        animation: none;
        width: 100%;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Footer */
    .footer-main {
        flex-direction: column;
        gap: 30px;
    }

    .footer-brand,
    .footer-info {
        text-align: center;
        align-items: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
    }

    .footer-social {
        justify-content: center;
    }

    .contact-wrapper {
        padding: 40px 20px;
        border-radius: 20px;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .navbar {
        top: 0;
        width: 100%;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-badge {
        width: 100%;
        justify-content: center;
    }

    .feature-card {
        padding: 24px;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}