﻿/* 
  ShuleDigi - School Management System
  Main CSS Stylesheet
*/

:root {
    /* Colors */
    --shule-primary: #0EA5E9;
    --shule-primary-dark: #0284C7;
    --shule-secondary: #0284C7;
    --shule-accent: #06D6A0;
    --shule-dark: #1F2937;
    --shule-light: #F1F5F9;
    /* Fonts */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Dark Mode Colors */
[data-theme="dark"] {
    --shule-dark: #F1F5F9;
    --shule-light: #111827;
    --background: #0F172A;
    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --card-bg: #1E293B;
    --border-color: #334155;
    color-scheme: dark;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

[data-theme="dark"] body {
    color: var(--text-primary);
    background-color: var(--background);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--shule-primary);
    transition: color var(--transition-fast);
}

    a:hover {
        color: var(--shule-primary-dark);
    }

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    font-size: 1rem;
}

    .btn i, .btn svg {
        margin-right: 0.5rem;
    }

.btn-primary {
    background-color: var(--shule-primary);
    color: white;
}

    .btn-primary:hover {
        background-color: var(--shule-primary-dark);
        color: white;
    }

[data-theme="dark"] .btn-primary {
    background-color: var(--shule-primary);
    color: var(--background);
}

    [data-theme="dark"] .btn-primary:hover {
        background-color: var(--shule-primary-dark);
        color: var(--background);
    }

.btn-secondary {
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
}

    .btn-secondary:hover {
        background-color: #f5f5f5;
    }

[data-theme="dark"] .btn-secondary {
    background-color: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

    [data-theme="dark"] .btn-secondary:hover {
        background-color: var(--card-bg);
        filter: brightness(1.1);
    }

/* Section Styles */
section {
    padding: 4rem 0;
}

[data-theme="dark"] section {
    border-color: var(--border-color);
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #666;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

[data-theme="dark"] .section-subtitle {
    color: var(--text-secondary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: transparent;
    transition: all var(--transition-normal);
    padding: 1rem 0;
}

    .navbar.scrolled {
        background-color: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 0.5rem 0;
    }

[data-theme="dark"] .navbar.scrolled {
    background-color: var(--background);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    /*.navbar .container .nav-desktop {        
        flex-grow: 1;*/ /* Allow items to expand into available space */
        /* Optional: Set min-width if needed */
        /*min-width: 100px;
    }*/


.logo {
    display: flex;
    align-items: center;
}

    .logo img {
        height: 2.5rem;
    }

[data-theme="dark"] .logo img {
    filter: brightness(0) invert(1);
}

.nav-desktop {
    display: none;
}

.nav-link {
    color: #333;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

    .nav-link:hover {
        color: var(--shule-primary);
    }

[data-theme="dark"] .nav-link {
    color: var(--text-primary);
}

    [data-theme="dark"] .nav-link:hover {
        color: var(--shule-primary);
    }

.menu-toggle {
    background: none;
    border: none;
    color: #333;
    font-size: 1.5rem;
    cursor: pointer;
}

[data-theme="dark"] .menu-toggle {
    color: var(--text-primary);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0;
}

[data-theme="dark"] .mobile-menu {
    background-color: var(--card-bg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu .nav-link {
    display: block;
    padding: 1rem 1.5rem;
    margin: 0;
    border-bottom: 1px solid #eee;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

[data-theme="dark"] .mobile-menu .nav-link {
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu .nav-link:hover {
    background-color: #f5f5f5;
    color: var(--shule-primary);
}

[data-theme="dark"] .mobile-menu .nav-link:hover {
    background-color: var(--background);
    color: var(--shule-primary);
}

.mobile-menu .btn {
    margin: 1rem 1.5rem;
    width: calc(100% - 3rem);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(240,249,255,1) 50%, rgba(214,242,255,1) 100%);
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        right: -8rem;
        bottom: -8rem;
        width: 24rem;
        height: 24rem;
        background-color: rgba(6, 214, 160, 0.1);
        border-radius: 50%;
        filter: blur(3rem);
        z-index: 1;
    }

    .hero-section::after {
        content: '';
        position: absolute;
        left: -8rem;
        top: 8rem;
        width: 24rem;
        height: 24rem;
        background-color: rgba(14, 165, 233, 0.1);
        border-radius: 50%;
        filter: blur(3rem);
        z-index: 1;
    }

.hero-content {
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--shule-dark);
}

.hero-section p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: #666;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.image-wrapper {
    position: relative;
}

    .image-wrapper::before {
        content: '';
        position: absolute;
        top: -1rem;
        right: -1rem;
        width: 100%;
        height: 100%;
        background-color: rgba(14, 165, 233, 0.2);
        border-radius: var(--radius-lg);
        z-index: -1;
    }

    .image-wrapper img {
        border-radius: var(--radius-lg);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        background-color: white;
        padding: 1rem;
    }

/* Features Section */
.features-section {
    background-color: var(--shule-light);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
}

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--shule-primary);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: #666;
}

/* Trusted By Section */
.trusted-by-section {
    background-color: white;
}

.marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.marquee {
    display: flex;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

    .marquee.paused {
        animation-play-state: paused;
    }

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% / 2));
    }
}

.school-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 0 2rem;
}

.school-logo {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.school-name {
    font-weight: 500;
    color: #333;
}

/* Why Choose Us Section */
.why-choose-us-section {
    background-color: var(--shule-light);
}

.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.why-choose-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: left;
}

.why-choose-content > p {
    color: #666;
    margin-bottom: 2rem;
    text-align: left;
}

.benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.benefit {
    display: flex;
    align-items: flex-start;
}

.benefit-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--shule-primary);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    margin-right: 1rem;
}

.benefit-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.benefit-content p {
    color: #666;
}

.cloud-stats {
    margin-top: 2rem;
}

.cloud-stats-box {
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cloud-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    color: rgba(14, 165, 233, 0.1);
    z-index: 0;
}

.cloud-stats-box h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.cloud-stats-box > p {
    color: #666;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.stats {
    position: relative;
    z-index: 1;
}

.stat {
    margin-bottom: 1.5rem;
}

.stat-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 0.5rem;
    background-color: #eee;
    border-radius: 1rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--shule-primary);
    border-radius: 1rem;
}

    .progress.success {
        background-color: var(--shule-accent);
    }

    .progress.info {
        background-color: var(--shule-secondary);
    }

/* Contact Section */
.contact-section {
    background-color: var(--shule-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group label {
        font-weight: 500;
        margin-bottom: 0.5rem;
        font-size: 0.875rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.75rem 1rem;
        border: 1px solid #ddd;
        border-radius: var(--radius-md);
        font-family: var(--font-sans);
        transition: border-color var(--transition-fast);
    }

        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--shule-primary);
            box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
        }

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.map {
    height: 20rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.contact-details {
    display: grid;
    gap: 1.5rem;
}

.contact-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #666;
}

/* Footer */
.footer {
    background-color: var(--shule-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 2.5rem;
    margin-bottom: 1.5rem;
}

.footer-col p {
    color: #aaa;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

    .social-link:hover {
        background-color: var(--shule-primary);
        color: white;
    }

.footer-col h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links,
.contact-links {
    display: grid;
    gap: 0.75rem;
}

    .footer-links a {
        color: #aaa;
        transition: color var(--transition-fast);
    }

        .footer-links a:hover {
            color: white;
        }

    .contact-links li {
        display: flex;
        align-items: center;
    }

        .contact-links li i {
            margin-right: 0.75rem;
            color: #aaa;
        }

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

    .modal.active {
        display: flex;
    }

.modal-content {
    background-color: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

    .modal-header h3 {
        font-size: 1.25rem;
    }

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.modal-body {
    padding: 1.5rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.required {
    color: #ef4444;
}

.success-message {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.success-message p {
    color: #666;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2000;
    transform: translateX(150%);
    transition: transform var(--transition-normal);
}

    .toast.active {
        transform: translateX(0);
    }

.toast-content {
    display: flex;
    align-items: center;
    background-color: white;
    border-left: 4px solid var(--shule-accent);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    min-width: 300px;
    max-width: 400px;
}

.toast-icon {
    margin-right: 1rem;
    font-size: 1.5rem;
    color: var(--shule-accent);
}

.toast-message {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.toast-description {
    font-size: 0.875rem;
    color: #666;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #666;
    margin-left: 0.5rem;
}

/* Responsive Styles */
@media (min-width: 640px) {
    .section-title {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 880px) {
    .nav-desktop {
        display: flex;
        align-items:center;
    }

    .mobile-controls, .menu-toggle {
        display: none;
    }

    .hero-section .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
    }

    .hero-section h1 {
        font-size: 3rem;
    }

    .why-choose-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }

    .section-subtitle {
        font-size: 1.25rem;
    }

    .hero-section h1 {
        font-size: 3.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Dark Mode Styles */
[data-theme="dark"] {
    --shule-dark: #F1F5F9;
    --shule-light: #1F2937;
    --background: #0F172A;
    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --card-bg: #1E293B;
    --border-color: #334155;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.25rem;
    transition: color var(--transition-fast);
}

    .theme-toggle:hover {
        color: var(--shule-primary);
    }

/* Mobile Controls */
.mobile-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Navigation CTA */
.nav-cta {
    margin-left: 1.5rem;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--shule-light);
    padding: 4rem 0;
}

.testimonials-carousel {
    display: flex;
    overflow: hidden;
    position: relative;
    margin-top: 3rem;
}

.testimonial {
    flex: 0 0 100%;
    padding: 2rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    left: 0;
    right: 0;
}

    .testimonial.active {
        opacity: 1;
        position: relative;
    }

.testimonial-logo {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.testimonial blockquote {
    font-size: 1.25rem;
    color: var(--shule-dark);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial cite {
    font-style: normal;
    color: var(--shule-primary);
    font-weight: 500;
}

/* FAQ Section - Enhanced */
.faq-section {
    background-color: white;
    padding: 4rem 0;
}

[data-theme="dark"] .faq-section {
    background-color: var(--background);
}

.faq-accordion {
    max-width: 800px;
    margin: 3rem auto 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .faq-accordion {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.faq-item {
    border-bottom: 1px solid #eee;
    overflow: hidden;
}

[data-theme="dark"] .faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: #ffffff;
    border: none;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-fast);
}

[data-theme="dark"] .faq-question {
    background: var(--card-bg);
    color: var(--text-primary);
}

.faq-question:hover {
    background-color: #f9f9f9;
}

[data-theme="dark"] .faq-question:hover {
    background-color: #263449;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--shule-primary);
    font-size: 1.2rem;
}

.faq-item.active .faq-question {
    background-color: #f9f9f9;
}

[data-theme="dark"] .faq-item.active .faq-question {
    background-color: #263449;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    background-color: #f9f9f9;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

[data-theme="dark"] .faq-answer {
    background-color: #263449;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

/* Footer CTA */
.footer-cta {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .footer-cta h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
