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

:root {
    /* Colors */
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #eef2ff;
    --secondary: #0d9488;
    --secondary-dark: #0f766e;
    --accent: #fb923c;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-main: #ffffff;
    --bg-soft: #f8fafc;
    --white: #ffffff;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, #4f46e5 0%, #0d9488 100%);
    --grad-soft: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background: var(--grad-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary-light);
}

/* Utils */
.highlight {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.bg-soft {
    background-color: var(--bg-soft);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
}

.mt-4 { margin-top: 2rem; }
.text-center { text-align: center; }

/* Navbar */
header {
    transition: var(--transition);
}

header.scrolled {
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

/* Announcement Banner */
.announcement-banner {
    background: var(--grad-primary);
    color: white;
    text-align: center;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    z-index: 1001;
}

.announcement-banner a {
    text-decoration: underline;
    font-weight: 700;
    margin-left: 0.5rem;
}

/* Update Navbar Top Position */
header {
    top: 0;
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

/* Premium Login Dropdown Menu Styling */
.nav-links .dropdown {
    position: relative;
    display: inline-block;
}

.nav-links .dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: 1rem;
    padding: 0.5rem 0;
    z-index: 1000;
    border: 1px solid #f1f5f9;
    margin-top: 0.5rem;
    
    /* Smooth opacity + translate transitions */
    visibility: hidden;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links .dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.nav-links .dropdown-menu a {
    color: var(--text-main) !important;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    border-radius: 0.5rem;
    margin: 0.25rem 0.5rem;
}

.nav-links .dropdown-menu a:hover {
    background-color: var(--primary-light);
    color: var(--primary) !important;
}

.nav-links .dropdown-menu a i {
    color: var(--primary);
    font-size: 1rem;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding: 10rem 0 5rem;
    background: radial-gradient(circle at top right, #eff6ff 0%, #ffffff 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-item h3 {
    font-size: 1.75rem;
    color: var(--primary);
}

.stat-item p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

.hero-image {
    position: relative;
}

.image-box {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    color: var(--primary);
    font-size: 1.25rem;
}

.c1 { top: 10%; left: -5%; }
.c2 { bottom: 10%; right: -5%; animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Pillar Cards */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pillar-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.pillar-card.active {
    background: var(--grad-primary);
    color: var(--white);
}

.pillar-card.active .icon-box {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.pillar-card.active p {
    color: rgba(255, 255, 255, 0.8);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

/* Explore Course Cards & Slider Layout */
.courses-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.5rem;
    text-align: center;
}
.highlight-underline {
    position: relative;
    display: inline-block;
    color: var(--primary);
}
.highlight-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 8px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2,6 Q50,2 98,7 Q50,9 2,6' stroke='%232563eb' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
    background-size: 100% 100%;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}
.tab-btn {
    padding: 0.65rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.65rem;
    border: 1.5px solid #facc15;
    background: transparent;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.3s ease;
}
.tab-btn.active {
    background: #fbbf24;
    border-color: #fbbf24;
    color: #000000;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}
.tab-btn:hover:not(.active) {
    background: rgba(251, 191, 36, 0.08);
    transform: translateY(-2px);
}

.course-slider-container {
    position: relative;
    padding: 0 3.5rem;
    margin: 0 auto;
    max-width: 1200px;
}
.course-slider-viewport {
    overflow: hidden;
    border-radius: 1.5rem;
    width: 100%;
}
.course-slider-track {
    display: none;
    flex-direction: row;
    gap: 2rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}
.course-slider-track.active-track {
    display: flex;
}

.course-explore-card {
    flex: 0 0 calc(25% - 1.5rem);
    min-width: 250px;
    border-radius: 1.25rem;
    padding: 2.25rem 1.75rem 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 380px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02), 0 2px 4px -1px rgba(0,0,0,0.01);
}
.course-explore-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05), 0 10px 10px -5px rgba(0,0,0,0.02);
}

/* Card Themes */
.course-explore-card.card-blue {
    background-color: #f0f9ff;
}
.course-explore-card.card-yellow {
    background-color: #fffbeb;
}
.course-explore-card.card-pink {
    background-color: #fdf2f8;
}
.course-explore-card.card-purple {
    background-color: #faf5ff;
}
.course-explore-card.card-green {
    background-color: #f0fdf4;
}

/* Card Details */
.course-explore-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.35rem;
    line-height: 1.2;
}
.course-explore-card p {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0;
}

/* Chevron Link Arrow */
.chevron-link {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    transition: all 0.3s ease;
}
.chevron-svg {
    width: 1.2rem;
    height: 1.2rem;
    transition: transform 0.3s ease;
}
.course-explore-card:hover .chevron-link {
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
}
.course-explore-card:hover .chevron-svg {
    transform: translateX(3px);
}

/* Vector Illustration Positioning */
.illustration-container {
    width: 100%;
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 220px;
}
.course-svg {
    width: 92%;
    height: auto;
    max-height: 210px;
    display: block;
    transform-origin: bottom;
    transition: transform 0.4s ease;
}
.course-explore-card:hover .course-svg {
    transform: scale(1.05);
}

/* Navigation Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    z-index: 10;
    transition: all 0.3s ease;
}
.slider-arrow:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}
.slider-arrow svg {
    width: 1.25rem;
    height: 1.25rem;
}
.arrow-left {
    left: 0.5rem;
}
.arrow-right {
    right: 0.5rem;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    align-items: center;
}
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #fde047;
    cursor: pointer;
    transition: all 0.3s ease;
}
.slider-dot.active-dot {
    width: 24px;
    height: 8px;
    border-radius: 4px;
    background-color: #eab308;
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
    .course-explore-card {
        flex: 0 0 calc(33.333% - 1.333rem);
    }
}
@media (max-width: 992px) {
    .course-explore-card {
        flex: 0 0 calc(50% - 1rem);
    }
    .course-slider-container {
        padding: 0 1rem;
    }
    .slider-arrow {
        display: none; /* Swipe/drag and dots on tablet */
    }
}
@media (max-width: 576px) {
    .course-explore-card {
        flex: 0 0 100%;
    }
    .category-tabs {
        gap: 0.75rem;
    }
    .tab-btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Teacher Section */
.teacher-box {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.teacher-image {
    position: relative;
}

.teacher-image img {
    border-radius: 2rem;
    box-shadow: var(--shadow-xl);
}

.exp-badge {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    background: var(--accent);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.check-list {
    margin: 1.5rem 0 2rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.check-list i {
    color: var(--secondary);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #f1f5f9;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.product-img {
    position: relative;
    height: 250px;
    background: var(--bg-soft);
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: var(--transition);
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(79, 70, 229, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.category {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.p-rating {
    font-weight: 600;
    color: #f59e0b;
}

/* Footer */
.footer {
    background: #0f172a;
    color: var(--white);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: #94a3b8;
    margin: 1.5rem 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-links a:hover {
    background: var(--primary);
}

.footer-links h4, .footer-newsletter h4 {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: #94a3b8;
}

.footer-links ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-newsletter p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-grid, .teacher-box, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content p, .hero-btns, .hero-stats {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
    
    .pillar-grid {
        grid-template-columns: 1fr;
    }
}


/* Workflow / How It Works Section */
.workflow-section {
    padding: 6rem 0;
    background-color: var(--bg-soft);
    position: relative;
    overflow: hidden;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem;
    position: relative;
    padding: 3.5rem 0;
}

.workflow-card {
    background: white;
    border-radius: 1.75rem;
    padding: 4.5rem 2rem 3rem;
    text-align: center;
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.02);
    z-index: 5;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Card Themes */
.workflow-card.theme-blue {
    background-color: #f0f7ff;
    border-color: rgba(59, 130, 246, 0.08);
}

.workflow-card.theme-peach {
    background-color: #fff8ec;
    border-color: rgba(249, 115, 22, 0.08);
}

.workflow-card.theme-green {
    background-color: #f0fdf4;
    border-color: rgba(34, 197, 94, 0.08);
}

/* Hover Effects */
.workflow-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

/* Cutout Badge Styling */
.cutout-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 106px;
    height: 106px;
    background-color: var(--bg-soft); /* Matches section bg to create cutout effect */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
}

.badge-inner {
    width: 82px;
    height: 82px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.workflow-card:hover .badge-inner {
    transform: scale(1.08);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Typography inside cards */
.workflow-card h3 {
    font-size: 1.35rem;
    color: #1e293b;
    margin-bottom: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.workflow-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Dotted Arrows */
.workflow-arrow {
    position: absolute;
    pointer-events: none;
    display: block;
    z-index: 10;
}

.arrow-bottom {
    left: 23%;
    bottom: 18%;
    width: 20%;
    max-width: 220px;
    height: auto;
}

.arrow-top {
    left: 57%;
    top: -8%;
    width: 20%;
    max-width: 220px;
    height: auto;
}

/* Micro-animations for Icons */
.icon-svg {
    width: 64px;
    height: 64px;
    transition: var(--transition);
}

/* Monitor Checkmark Animation */
.workflow-card:hover .icon-monitor {
    transform: translateY(-2px);
}
.workflow-card:hover .icon-monitor-check {
    animation: monitorPulse 1.5s ease-in-out infinite;
}
@keyframes monitorPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.18); }
}

/* Rocket Launch Animation */
.workflow-card:hover .icon-rocket-group {
    animation: rocketLaunch 1.8s ease-in-out infinite;
}
@keyframes rocketLaunch {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(4px, -6px); }
}
.workflow-card:hover .icon-rocket-flame {
    animation: flameFlicker 0.2s linear infinite;
}
@keyframes flameFlicker {
    0%, 100% { opacity: 0.8; transform: scaleY(0.9); }
    50% { opacity: 1; transform: scaleY(1.1); }
}

/* Bar Chart Rising Animation */
.workflow-card:hover .icon-chart-bar-1 { animation: barRise1 1s ease-out forwards; }
.workflow-card:hover .icon-chart-bar-2 { animation: barRise2 1s ease-out forwards; }
.workflow-card:hover .icon-chart-bar-3 { animation: barRise3 1s ease-out forwards; }
.workflow-card:hover .icon-chart-bar-4 { animation: barRise4 1s ease-out forwards; }

@keyframes barRise1 {
    0% { transform: scaleY(0.5); transform-origin: bottom; }
    100% { transform: scaleY(1); transform-origin: bottom; }
}
@keyframes barRise2 {
    0% { transform: scaleY(0.4); transform-origin: bottom; }
    40% { transform: scaleY(0.4); transform-origin: bottom; }
    100% { transform: scaleY(1); transform-origin: bottom; }
}
@keyframes barRise3 {
    0% { transform: scaleY(0.3); transform-origin: bottom; }
    55% { transform: scaleY(0.3); transform-origin: bottom; }
    100% { transform: scaleY(1); transform-origin: bottom; }
}
@keyframes barRise4 {
    0% { transform: scaleY(0.2); transform-origin: bottom; }
    65% { transform: scaleY(0.2); transform-origin: bottom; }
    100% { transform: scaleY(1); transform-origin: bottom; }
}

/* Mobile Responsiveness for Workflow */
@media (max-width: 992px) {
    .workflow-grid {
        grid-template-columns: 1fr;
        gap: 5.5rem;
        padding-top: 2rem;
    }
    .workflow-arrow {
        display: none; /* Hide horizontal arrows on stack */
    }
    .workflow-card {
        max-width: 420px;
        margin: 0 auto;
    }
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
}

.t-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.t-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.t-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.t-stars {
    color: #f59e0b;
}

/* FAQ Section */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Partners */
.partners {
    padding: 3rem 0;
    border-top: 1px solid #f1f5f9;
}

.partners-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.5;
    filter: grayscale(1);
    transition: var(--transition);
}

.partners-row:hover {
    opacity: 1;
    filter: grayscale(0);
}

.partner-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}
/* CTA Banner */
.cta-banner {
    background: #0f172a;
    background-image: var(--grad-primary);
    color: white;
    text-align: center;
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 40%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(30deg);
}

.cta-banner h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.cta-banner p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.cta-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    position: relative;
    z-index: 1;
}

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

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

.btn-outline-white {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
}

.highlight-white {
    color: white;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 4px;
}

/* Contact Page Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
}

.contact-form-card h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.w-100 { width: 100%; }

.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-card .icon-box {
    margin: 0;
    flex-shrink: 0;
}

.info-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.info-card p {
    color: var(--text-muted);
}

.map-placeholder {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    height: 250px;
    box-shadow: var(--shadow-lg);
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 1rem;
    opacity: 0;
    transition: var(--transition);
    cursor: pointer;
}

.map-placeholder:hover .map-overlay {
    opacity: 1;
}

.active-link {
    color: var(--primary) !important;
    font-weight: 700 !important;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Tutor Page Styles */
.search-filter-box {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    align-items: center;
}

.search-input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-soft);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
}

.search-input i {
    color: var(--text-muted);
}

.search-input input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
}

.filter-selects {
    display: flex;
    gap: 1rem;
}

.filter-selects select {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: white;
    outline: none;
}

.tutor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.tutor-card {
    background: var(--white);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid #f1f5f9;
}

.tutor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.tutor-header {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.tutor-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.tutor-card:hover .tutor-header img {
    transform: scale(1.06);
}

.tutor-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: #f59e0b;
    box-shadow: var(--shadow-sm);
}

.tutor-body {
    padding: 1.5rem;
}

.tutor-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.tutor-subj {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.tutor-exp {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.tutor-bio {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.tutor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.tutor-rate {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.tutor-rate span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .search-filter-box {
        flex-direction: column;
        padding: 1rem;
    }
    .search-input, .filter-selects, .filter-selects button {
        width: 100%;
    }
}

/* Methodology Section */
.methodology-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.method-item {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.m-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.method-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.method-item p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

@media (max-width: 992px) {
    .methodology-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}
/* Floating Buttons */
.floating-btns {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 999;
}

.back-to-top {
    width: 50px;
    height: 50px;
    background: var(--white);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    animation: pulse 2s infinite;
}

.whatsapp-btn .tooltip {
    position: absolute;
    right: 70px;
    background: #0f172a;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.whatsapp-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* At Home Section Styles */
.at-home-section {
    padding: 6rem 0;
    background: radial-gradient(circle at bottom left, #f3f7ff 0%, #ffffff 70%);
    overflow: hidden;
}

.at-home-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

/* Left Image Container Styling */
.at-home-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Yellow Circle Frame */
.at-home-circle-frame {
    position: relative;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    border: 12px solid #facc15;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
}

.at-home-circle-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Decorative Dots */
.dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #93c5fd;
}

.dot-left {
    top: 20%;
    left: 2%;
    width: 10px;
    height: 10px;
    background-color: #60a5fa;
}

.dot-right {
    bottom: 12%;
    right: 6%;
    width: 16px;
    height: 16px;
    background-color: #3b82f6;
    opacity: 0.6;
}

/* Right Content Column Styling */
.at-home-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge-pill {
    background-color: #2563eb;
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    display: inline-block;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.at-home-content h2 {
    font-size: 3.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    margin-bottom: 2rem;
}

/* Squiggly Pink Underline */
.squiggly-underline {
    position: relative;
    display: inline-block;
    color: #db2777;
}

.squiggly-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2,6 C15,1 25,10 35,6 C45,2 55,10 65,6 C75,2 85,10 98,6' stroke='%23db2777' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
    background-size: 100% 100%;
}

.at-home-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Info Cards Layout */
.info-cards-row {
    display: flex;
    gap: 2rem;
    width: 100%;
    margin-bottom: 3rem;
}

.info-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 1.75rem;
    border-radius: 1.25rem;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-3px);
}

/* Soft Blue Card Theme */
.soft-blue-card {
    background-color: #eff6ff;
    border: 1px solid rgba(37, 99, 235, 0.05);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.03);
}

.soft-blue-card:hover {
    box-shadow: 0 15px 20px -3px rgba(37, 99, 235, 0.08);
}

/* Bordered Card Theme */
.bordered-card {
    background-color: var(--white);
    border: 2px solid #bfdbfe;
    box-shadow: var(--shadow-sm);
}

.bordered-card:hover {
    border-color: #3b82f6;
    box-shadow: var(--shadow-md);
}

.info-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-card-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-card-text strong {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
}

.info-card-text span {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Book a Trial Button */
.btn-book-trial {
    background: #2563eb;
    color: var(--white);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    transition: var(--transition);
}

.btn-book-trial:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -3px rgba(37, 99, 235, 0.4);
}

.at-home-btn-container {
    width: 100%;
}

/* Responsive Styles for At Home Section */
@media (max-width: 992px) {
    .at-home-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    
    .at-home-content {
        align-items: center;
    }
    
    .at-home-content h2 {
        font-size: 2.75rem;
    }
    
    .info-cards-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .info-card {
        width: 100%;
        max-width: 460px;
        margin: 0 auto;
        text-align: left;
    }
}

@media (max-width: 576px) {
    .at-home-circle-frame {
        width: 320px;
        height: 320px;
        border-width: 8px;
    }
    
    .at-home-content h2 {
        font-size: 2.25rem;
    }
    
    .at-home-desc {
        font-size: 1rem;
    }
    
    .btn-book-trial {
        width: 100%;
        max-width: 320px;
        padding: 0.85rem 2rem;
    }
}

/* Subscription & Pricing Cards Section */
.subscription-section {
    background-color: var(--bg-soft);
    position: relative;
    padding: 6rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 960px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 3rem 2.5rem;
    border: 1px solid #e2e8f0;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: #cbd5e1;
}

.pricing-card.premium-card {
    border: 2px solid var(--primary);
    box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.15);
}

.pricing-card.premium-card:hover {
    box-shadow: 0 20px 40px -5px rgba(79, 70, 229, 0.25);
}

/* Most Popular Badge styling */
.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--grad-primary);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.pricing-card-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 2rem;
}

.pricing-card-header h3 {
    font-size: 1.75rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 700;
}

.pricing-card.premium-card .pricing-card-header h3 {
    color: var(--primary);
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.currency {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
}

.amount {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.period {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.price-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.pricing-features {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #475569;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.4;
}

.pricing-features li i {
    color: var(--secondary);
    font-size: 1.15rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.pricing-card.premium-card .pricing-features li i {
    color: var(--primary);
}

.pricing-action {
    text-align: center;
    width: 100%;
}

.btn-outline-pricing {
    display: block;
    width: 100%;
    text-align: center;
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.btn-outline-pricing:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
}

.btn-premium-pricing {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--grad-primary);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

.btn-premium-pricing:hover {
    background: var(--grad-primary);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(79, 70, 229, 0.3);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .pricing-grid {
        gap: 2.5rem;
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        gap: 4rem;
    }
    
    .pricing-card {
        padding: 2.5rem 2rem;
    }
}

