/* ==========================================================================
   ASTRIX TUTORIALS - LUXURY PASTEL DESIGN SYSTEM
   ========================================================================== */

/* --- Variables --- */
:root {
    /* Color Palette */
    --clr-mint: #4ade80; /* Brighter mint for buttons */
    --clr-mint-soft: #a7f3d0;
    --clr-mint-card: #6ee7b7;
    
    --clr-lilac: #c084fc;
    --clr-lilac-soft: #e9d5ff;
    --clr-lilac-card: #d8b4fe;
    
    --clr-yellow: #fde047;
    --clr-yellow-soft: #fef08a;
    
    --clr-peach: #fda4af;
    --clr-peach-soft: #fecdd3;
    
    --clr-bg: #faf5ff; /* Soft lavender/ghost white page background */
    --clr-canvas: #ffffff; /* White center canvas */
    
    --clr-text-main: #1f2937;
    --clr-text-light: #4b5563;
    --clr-dark: #111827;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Layout */
    --radius-sm: 8px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-pill: 500px;
    
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.04);
    --shadow-float: 0 20px 50px rgba(0, 0, 0, 0.08);
    --shadow-inner: inset 0 2px 4px rgba(255, 255, 255, 0.5);
    
    /* Transition */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--clr-text-main);
    background-color: var(--clr-bg);
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-sm {
    max-width: 1024px;
}

.text-center { text-align: center; }
.mb-loose { margin-bottom: 3rem; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--clr-dark);
}

.accent-serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--clr-dark);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--clr-text-light);
    font-weight: 400;
    margin-bottom: 3rem;
}

/* --- Utilities --- */
.chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-inner);
}

.chip-mint { background-color: var(--clr-mint-soft); color: #065f46; }
.chip-lilac { background-color: var(--clr-lilac-soft); color: #5b21b6; }
.chip-yellow { background-color: var(--clr-yellow-soft); color: #854d0e; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    gap: 8px;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--clr-dark);
    color: white;
    box-shadow: 0 10px 25px rgba(17, 24, 39, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(17, 24, 39, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--clr-dark);
    color: var(--clr-dark);
}

.btn-outline:hover {
    background: var(--clr-dark);
    color: white;
}

.btn-text {
    background: transparent;
    color: var(--clr-dark);
    padding: 16px;
}

.btn-text .arrow {
    transition: var(--transition-smooth);
}

.btn-text:hover .arrow {
    transform: translateX(5px);
}

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

.btn-dark:hover {
    transform: translateY(-2px);
    background-color: #000;
}

.btn-full {
    width: 100%;
}

/* --- Layout & Backgrounds --- */
.bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.bg-decor {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
}

.bg-shape-1 {
    top: -10%;
    left: -5%;
    width: 50vw;
    height: 50vw;
    background: var(--clr-lilac-soft);
}

.bg-shape-2 {
    top: 20%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: var(--clr-mint-soft);
}

.bg-shape-3 {
    bottom: -10%;
    left: 20%;
    width: 60vw;
    height: 30vw;
    background: var(--clr-yellow-soft);
}

.main-canvas {
    background-color: var(--clr-canvas);
    border-radius: var(--radius-lg);
    margin: 0 16px 32px 16px;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: #fafbfc;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 1280px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-pill);
    padding: 12px 24px;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--clr-dark);
}

.logo-icon {
    color: var(--clr-mint);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--clr-text-main);
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--clr-mint);
    transition: var(--transition-smooth);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* --- Hero Section --- */
.hero {
    padding: 160px 0 60px;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 6rem);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--clr-text-light);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-subtitle .highlight {
    color: var(--clr-dark);
    font-weight: 700;
    position: relative;
    white-space: nowrap;
}

.hero-subtitle .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: -2px;
    right: -2px;
    height: 8px;
    background: var(--clr-yellow-soft);
    z-index: -1;
    border-radius: 4px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    border-radius: var(--radius-lg);
}

.hero-image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-float);
    animation: floating 6s ease-in-out infinite;
}

/* Floating UI Elements */
.floating-chip {
    position: absolute;
    background: white;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    box-shadow: var(--shadow-float);
    z-index: 10;
}

.float-1 {
    top: 10%;
    left: -10%;
    color: var(--clr-lilac);
    animation: floating 5s ease-in-out infinite alternate;
}

.float-2 {
    bottom: 20%;
    right: -10%;
    color: var(--clr-mint);
    animation: floating 7s ease-in-out infinite alternate-reverse;
}

.floating-circle {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--clr-mint-soft), var(--clr-yellow-soft));
    top: -20px;
    right: 20px;
    z-index: -1;
    animation: spin 20s linear infinite;
}

.section-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    transform: translateY(2px); /* overlap hack */
}

/* --- About Section --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.profile-card {
    position: relative;
    padding: 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-float);
    max-width: 400px;
    margin: 0 auto;
}

.profile-img {
    border-radius: var(--radius-md);
    width: 100%;
    background: linear-gradient(to bottom right, var(--clr-peach-soft), var(--clr-lilac-soft));
}

.profile-tag {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
    background: var(--clr-dark);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.about-text {
    font-size: 1.125rem;
    margin-bottom: 32px;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.feature-list .icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--clr-bg);
    border-radius: 50%;
}

/* --- Programs Section --- */
.course-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.course-card {
    border-radius: var(--radius-lg);
    padding: 48px;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.6), var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.6), var(--shadow-float);
}

.card-mint {
    background: linear-gradient(135deg, var(--clr-mint-soft), #d1fae5);
}

.card-lilac {
    background: linear-gradient(135deg, var(--clr-lilac-soft), #f3e8ff);
}

.card-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.6);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 24px;
    align-self: flex-start;
}

.card-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.card-desc {
    margin-bottom: 32px;
    font-size: 1.125rem;
    opacity: 0.8;
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    background: rgba(255,255,255,0.4);
    padding: 24px;
    border-radius: var(--radius-md);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 12px;
}

.detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    font-weight: 600;
}

.card-benefits {
    margin-bottom: 40px;
    flex-grow: 1;
}

.card-benefits li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    font-weight: 500;
}

.card-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 800;
    color: var(--clr-dark);
}

/* --- Schedule Section --- */
.schedule-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 60px;
    box-shadow: var(--shadow-float);
    position: relative;
}

.schedule-decor-img {
    position: absolute;
    top: -50px;
    right: -20px;
    width: 200px;
    opacity: 0.8;
    pointer-events: none;
    animation: floating 8s ease-in-out infinite;
}

.timetable {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.time-block {
    display: flex;
    align-items: center;
    gap: 32px;
}

.time-count {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    background: var(--clr-mint-soft);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: var(--clr-dark);
    box-shadow: var(--shadow-inner);
}

.time-count.test {
    background: var(--clr-yellow-soft);
}

.time-desc strong {
    display: block;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    margin-bottom: 8px;
}

.time-desc span {
    color: var(--clr-text-light);
    font-size: 1.125rem;
}

.time-divider {
    height: 1px;
    background: rgba(0,0,0,0.05);
    width: 100%;
}

/* --- Why Us Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-box {
    background: white;
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-float);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.bg-mint { background: var(--clr-mint-soft); }
.bg-yellow { background: var(--clr-yellow-soft); }
.bg-lilac { background: var(--clr-lilac-soft); }
.bg-peach { background: var(--clr-peach-soft); }

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

/* --- Contact Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: var(--clr-bg);
    border-radius: var(--radius-lg);
    padding: 60px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.contact-method:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-soft);
}

.method-icon {
    font-size: 1.5rem;
    background: var(--clr-lilac-soft);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.method-label {
    display: block;
    font-size: 0.875rem;
    color: var(--clr-text-light);
}

.method-value {
    font-weight: 700;
    color: var(--clr-dark);
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-float);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    background: #fafbfc;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--clr-lilac);
    background: white;
    box-shadow: 0 0 0 4px var(--clr-lilac-soft);
}

.submit-btn {
    margin-top: 20px;
}

.form-success {
    margin-top: 20px;
    padding: 16px;
    background: var(--clr-mint-soft);
    color: #065f46;
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 600;
}

/* --- Footer --- */
.footer {
    padding: 60px 0;
    text-align: center;
}

.footer-brand {
    margin-bottom: 32px;
}

.footer-brand .logo {
    justify-content: center;
    margin-bottom: 16px;
}

.footer-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(0,0,0,0.1);
    color: var(--clr-text-light);
}

/* --- Animations --- */
@keyframes floating {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* JS Animation Classes */
[data-animate] {
    opacity: 0;
    transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.is-visible[data-animate="fade-in"] {
    opacity: 1;
}

.is-visible[data-animate="slide-up"] {
    opacity: 1;
    transform: translateY(0);
}
[data-animate="slide-up"] { transform: translateY(50px); }

.is-visible[data-animate="slide-right"] {
    opacity: 1;
    transform: translateX(0);
}
[data-animate="slide-right"] { transform: translateX(-50px); }

.is-visible[data-animate="slide-left"] {
    opacity: 1;
    transform: translateX(0);
}
[data-animate="slide-left"] { transform: translateX(50px); }

.is-visible[data-animate="zoom-in"] {
    opacity: 1;
    transform: scale(1);
}
[data-animate="zoom-in"] { transform: scale(0.95); }

/* --- Floating Actions --- */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-actions.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-float);
    color: white;
    transition: var(--transition-smooth);
    position: relative;
    outline: none;
}

.fab:hover {
    transform: scale(1.1);
}

.fab:active {
    transform: scale(0.95);
}

.fab-whatsapp {
    background: linear-gradient(135deg, var(--clr-mint), #22c55e);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
    animation: pulse-fab 3s infinite;
}

.fab-whatsapp:hover {
    box-shadow: 0 15px 35px rgba(34, 197, 94, 0.4);
}

.fab-top {
    background: linear-gradient(135deg, var(--clr-lilac), #a855f7);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3);
}

.fab-top:hover {
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.4);
}

@keyframes pulse-fab {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* Tooltips */
.tooltip-container {
    position: relative;
}

.tooltip-text {
    position: absolute;
    right: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background-color: var(--clr-dark);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent var(--clr-dark);
}

.tooltip-container:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hero-container,
    .about-container,
    .course-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero {
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-badges,
    .hero-cta {
        justify-content: center;
    }
    
    .hero-subtitle {
        margin: 0 auto 40px;
    }
    
    .about-visual {
        order: -1;
    }
    
    .floating-chip {
        display: none; /* Simplify on mobile */
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Simple block for mobile, or could add burger menu */
    }
    
    .section {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .timetable {
        gap: 20px;
    }
    
    .time-block {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .time-divider {
        display: none;
    }
    
    .contact-wrapper {
        padding: 30px;
    }
    
    .floating-actions {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }
    
    .fab {
        width: 50px;
        height: 50px;
    }
    
    .tooltip-text {
        display: none;
    }
}
