/* Base Styles */
:root {
    --primary: #1a365d;       /* Dark Blue */
    --secondary: #2d3748;     /* Medium Dark Blue */
    --accent: #48bb78;        /* Light Green */
    --accent-dark: #38a169;   /* Darker Green for hover */
    --light: #f7fafc;         /* Light Gray/White */
    --dark: #2d3748;          /* Dark Blue Gray */
    --text: #2d3748;          /* Dark Text */
    --text-light: #718096;    /* Light Text */
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #1a365d, #2d3748);
    --gradient-2: linear-gradient(135deg, #2d3748, #4a5568);
    --gradient-green: linear-gradient(135deg, #48bb78, #38a169);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--text);
    line-height: 1.6;
    background-color: var(--light);
    overflow-x: hidden;
}

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

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.bounce-in {
    animation: bounceIn 1s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Hero Section with Slider */
.hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    color: var(--white);
    opacity: 0;
    transition: opacity 1s ease-in-out;
    text-align: center;
}

.slide.active {
    opacity: 1;
}

.slide:nth-child(1) {
    background: var(--gradient-1);
}

.slide:nth-child(2) {
    background: var(--gradient-2);
}

.slide:nth-child(3) {
    background: linear-gradient(135deg, #1a365d, #2c5282);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background: var(--gradient-green);
    color: var(--white);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(72, 187, 120, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: linear-gradient(135deg, #38a169, #2f855a);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(72, 187, 120, 0.4);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent);
    transform: scale(1.2);
}

.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.slider-nav button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--white);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.slider-nav button:hover {
    background: var(--accent);
    transform: scale(1.1);
}

/* Schoobee Logo Styles */
.schoobee-intro {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}

.schoobee-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-green);
}

.schoobee-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.schoobee-logo {
    flex: 0 0 250px;
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(26, 54, 93, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid var(--accent);
}

.schoobee-logo:hover {
    transform: rotate(-5deg) scale(1.05);
    box-shadow: 0 25px 50px rgba(26, 54, 93, 0.15);
}

.logo-container {
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
    border: 3px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
}

.schoobee-logo-img {
    max-width: 100%;
    max-height: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.schoobee-logo:hover .schoobee-logo-img {
    transform: scale(1.1);
}

.schoobee-logo p {
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

.schoobee-text {
    flex: 1;
}

.schoobee-text h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.schoobee-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-green);
    border-radius: 2px;
}

.schoobee-text p {
    margin-bottom: 25px;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Capabilities Section */
.capabilities {
    padding: 100px 0;
    background: var(--light);
    position: relative;
}

.capabilities::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-green);
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-green);
    border-radius: 2px;
}

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

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

.capability-card {
    background: var(--white);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(26, 54, 93, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent);
}

.capability-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(26, 54, 93, 0.15);
}

/* Different colored cards with dark blue and green variations */
.card-1 { border-top: 5px solid #1a365d; }
.card-2 { border-top: 5px solid #2d3748; }
.card-3 { border-top: 5px solid #2d3748; }
.card-4 { border-top: 5px solid #1a365d; }
.card-5 { border-top: 5px solid #48bb78; }
.card-6 { border-top: 5px solid #38a169; }
.card-7 { border-top: 5px solid #1a365d; }
.card-8 { border-top: 5px solid #2d3748; }
.card-9 { border-top: 5px solid #48bb78; }

.capability-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.capability-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--gradient-1);
    color: var(--white);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-green);
}

.features .section-title h2 {
    color: var(--white);
    -webkit-text-fill-color: var(--white);
}

.features .section-title h2::after {
    background: var(--accent);
}

.features .section-title p {
    color: rgba(255,255,255,0.8);
}

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

.feature-card {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.15);
}

.feature-header {
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-1 .feature-header { background: rgba(26, 54, 93, 0.9); }
.feature-2 .feature-header { background: rgba(45, 55, 72, 0.9); }
.feature-3 .feature-header { background: rgba(72, 187, 120, 0.9); }
.feature-4 .feature-header { background: rgba(56, 161, 105, 0.9); }

.feature-header h3 {
    margin: 0;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
    font-weight: 600;
}

.feature-content {
    padding: 30px;
}

.feature-content p {
    margin-bottom: 20px;
    line-height: 1.7;
    opacity: 0.9;
}

.feature-content ul {
    list-style-type: none;
}

.feature-content li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    opacity: 0.9;
}

.feature-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 1.1rem;
}

/* See More Button Styles */
.see-more-btn {
    background: var(--gradient-green);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 10px rgba(72, 187, 120, 0.3);
    width: 100%;
}

.see-more-btn:hover {
    background: linear-gradient(135deg, #38a169, #2f855a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(72, 187, 120, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 54, 93, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: var(--white);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 2;
    transition: color 0.3s ease;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: var(--accent);
}

.modal-header {
    background: var(--gradient-1);
    color: var(--white);
    padding: 25px;
    text-align: center;
    position: relative;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-feature-list {
    list-style-type: none;
    padding: 0;
}

.modal-feature-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    padding-left: 25px;
}

.modal-feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.modal-feature-list li:last-child {
    border-bottom: none;
}

/* CTA Sections */
.cta {
    padding: 80px 0;
    text-align: center;
    color: var(--white);
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-green);
}

.cta-1 {
    background: var(--gradient-2);
}

.cta-2 {
    background: var(--gradient-1);
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 700;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 35px;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .schoobee-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .slider-nav {
        padding: 0 10px;
    }
    
    .slider-nav button {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .schoobee-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}