/* 
   Premium Landing Page Styles for SchoolSaaS 
   Fonts: Inter & Outfit
*/
:root {
    --primary: #4e73df;
    --primary-hover: #2e59d9;
    --secondary: #1cc88a;
    --dark: #0f172a;
    --light: #f8fafc;
    --text: #334155;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    
    --gradient-bg: linear-gradient(135deg, #f0f4ff 0%, #eef2ff 100%);
    --purple-grad: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --blue-grad: linear-gradient(135deg, #4e73df 0%, #36b9cc 100%);
    --green-grad: linear-gradient(135deg, #1cc88a 0%, #13855f 100%);
}

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

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

h1, h2, h3, h4, .logo {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.text-primary { color: var(--primary) !important; }
.text-success { color: var(--secondary) !important; }
.text-warning { color: #f6c23e !important; }
.text-purple { color: #6f42c1 !important; }

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

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

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    color: var(--primary);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

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

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

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

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

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-full {
    display: block;
    width: 100%;
}

.btn-glow {
    box-shadow: 0 10px 20px -10px var(--primary);
}
.btn-glow:hover {
    box-shadow: 0 15px 25px -10px var(--primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--gradient-bg);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(78,115,223,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.badge-pill {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(78, 115, 223, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(78, 115, 223, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(78, 115, 223, 0); }
    100% { box-shadow: 0 0 0 0 rgba(78, 115, 223, 0); }
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-visual {
    flex: 1;
    position: relative;
    z-index: 2;
}

/* Glass Mockup */
.mockup {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.skeleton-nav {
    height: 30px;
    background: #e2e8f0;
    border-radius: 6px;
    margin-bottom: 20px;
}

.skeleton-content {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.skeleton-card {
    flex: 1;
    height: 80px;
    background: #e2e8f0;
    border-radius: 8px;
}

.skeleton-card:nth-child(1) { background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%); }
.skeleton-card:nth-child(2) { background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%); }
.skeleton-card:nth-child(3) { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); }

.skeleton-chart {
    height: 150px;
    background: #e2e8f0;
    border-radius: 8px;
}

/* Floating Elements */
.float-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    animation: float 6s ease-in-out infinite;
}

.float-1 { top: -20px; left: -20px; color: var(--primary); animation-delay: 0s; }
.float-2 { bottom: 40px; right: -30px; color: var(--secondary); animation-delay: 2s; }
.float-3 { top: 50%; left: -40px; color: #f6c23e; animation-delay: 4s; }

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

/* Features */
.features {
    padding: 100px 0;
    background: white;
}

.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.text-center { text-align: center; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px -15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}

.glass-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.1);
    border-color: rgba(78, 115, 223, 0.2);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 25px;
}

.gradient-1 { background: var(--blue-grad); }
.gradient-2 { background: var(--green-grad); }
.gradient-3 { background: var(--purple-grad); }

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--dark);
}

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

/* Module Slider Section */
.modules-slider-section {
    padding: 100px 0;
    background: var(--dark);
    color: white;
    overflow: hidden;
}

.modules-slider-section .section-title h2 {
    color: white;
}

.modules-slider-section .section-title p {
    color: #94a3b8;
}

.moduleSwiper {
    padding-bottom: 60px; /* Space for pagination */
    padding-top: 20px;
}

.module-slide-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.module-slide-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.module-slide-card .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 25px;
}

.module-slide-card h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: white;
}

.submodule-list {
    list-style: none;
    flex: 1;
}

.submodule-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}

.submodule-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.submodule-list strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: #e2e8f0;
}

.submodule-list strong i {
    margin-right: 8px;
    font-size: 0.9rem;
}

.submodule-list span {
    display: block;
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* Swiper Customizations */
.swiper-pagination-bullet {
    background: white;
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary);
    width: 24px;
    border-radius: 10px;
}

.swiper-button-next, .swiper-button-prev {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 16px;
    font-weight: bold;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--primary);
}

/* Pricing */
.pricing {
    padding: 100px 0;
    background: var(--light);
}

.pricing-card {
    max-width: 400px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(78, 115, 223, 0.2);
}

.premium-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px -15px rgba(78, 115, 223, 0.15);
}

.pricing-header h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    margin-bottom: 30px;
}

.price span {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-body ul {
    list-style: none;
    text-align: left;
    margin-bottom: 40px;
}

.pricing-body li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}

.pricing-body i {
    color: var(--primary);
    font-size: 14px;
}

/* Footer */
.footer {
    background: white;
    padding: 60px 0 20px;
    border-top: 1px solid #e2e8f0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 15px;
    max-width: 300px;
}

.footer-links h4 {
    color: var(--dark);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content p {
        margin: 0 auto 35px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .modules-layout {
        flex-direction: column;
    }
    .nav-links {
        display: none; /* simple mobile nav approach */
    }
    .mockup {
        transform: none;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
}
