/* 
 * Wisdom Tutoring Academy E-Learning Platform
 * Modern Stylesheet - Updated Design 2025
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    /* White Smoke Dominant with Subtle Blue Accents */
    --primary-color: #6B9BD1; /* Subtle blue accent */
    --secondary-color: #4A90B8; /* Deeper blue for depth */
    --accent-color: #87CEEB; /* Light blue highlight */
    --success-color: #7FB3D3;
    --light-color: #F5F5F5; /* White smoke - dominant */
    --background-color: #F8F8FF; /* Ghost white (white smoke) */
    --dark-color: #2C2C2C; /* Dark readable text */
    --white-color: #FFFFFF;
    --gray-color: #555555; /* Readable gray text */
    --gray-light-color: #F0F8FF; /* Alice blue - very subtle */
    --gray-dark-color: #404040;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles - White Smoke Dominant */
body {
    font-family: var(--font-primary);
    color: var(--dark-color);
    line-height: 1.7;
    background-color: var(--background-color);
    overflow-x: hidden;
}

/* Hero Section Text Centering Fix */
.hero-section .lead {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--dark-color);
    letter-spacing: -0.3px;
}

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

a:hover {
    color: var(--secondary-color);
}

.btn {
    border-radius: 50px; /* More modern rounded buttons */
    padding: 0.75rem 2rem;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
    color: var(--light-color);
    border-color: var(--light-color);
    background: transparent;
}

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

section {
    padding: 6rem 0;
}

/* Modern Clean Navbar Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.2rem 0;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(135, 206, 235, 0.15);
    border-bottom: 1px solid rgba(135, 206, 235, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 25px rgba(135, 206, 235, 0.2);
    padding: 0.8rem 0;
}

.navbar.scrolled .navbar-brand img {
    max-height: 50px;
}

.navbar.scrolled .navbar-nav .nav-link {
    color: var(--primary-color);
}

.navbar-brand img {
    max-height: 60px;
    transition: var(--transition);
}

.navbar-nav .nav-link {
    color: var(--dark-color) !important;
    font-weight: 600;
    padding: 0.7rem 1.2rem;
    position: relative;
    margin: 0 0.3rem;
    border-radius: 25px;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: var(--gray-light-color);
    transform: translateY(-1px);
}

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 30px;
}

.login-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: white !important;
    margin-left: 1rem;
    padding: 0.7rem 2rem;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.3);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.4);
    color: white !important;
}

/* Modern Hero Section - White Smoke Dominant */
.hero-section {
    position: relative;
    padding: 8rem 0 6rem;
    min-height: 100vh;
    background: var(--background-color);
    color: var(--dark-color);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-section .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
    max-width: 600px;
}

.hero-svg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.08; /* Much more subtle */
    pointer-events: none;
    filter: blur(1px);
}

.hero-section .highlight-text {
    color: var(--primary-color);
    font-weight: 700;
}

.hero-img-container {
    position: relative;
    z-index: 2;
}

.hero-img {
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    transform: perspective(1000px) rotateY(-10deg);
}

.hero-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

/* Barely Visible Floating Animation Elements */
.floating-element {
    position: absolute;
    z-index: 1;
    opacity: 0.03; /* Barely visible */
    filter: blur(3px);
    color: #E8E8E8; /* Almost white smoke color */
}

.floating-element.pencil {
    top: 15%;
    left: 10%;
    animation: float 8s ease-in-out infinite;
}

.floating-element.book {
    bottom: 20%;
    right: 10%;
    animation: float 7s ease-in-out infinite 1s;
}

.floating-element.calculator {
    top: 60%;
    left: 15%;
    animation: float 9s ease-in-out infinite 1.5s;
}

.floating-element.atom {
    top: 20%;
    right: 15%;
    animation: float 10s ease-in-out infinite 0.5s;
}

.floating-element.graduation {
    bottom: 15%;
    left: 50%;
    animation: float 12s ease-in-out infinite 2s;
}

.floating-element.formula {
    top: 40%;
    right: 20%;
    animation: float 11s ease-in-out infinite 1s;
}

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

/* Features Section - White Smoke Dominant */
.features-section {
    padding: 8rem 0;
    background: var(--light-color);
}

.section-title {
    margin-bottom: 4rem;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50px;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}

.feature-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(107, 155, 209, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(107, 155, 209, 0.05);
    margin-bottom: 30px;
    height: 100%;
    background: var(--white-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(107, 155, 209, 0.15);
    border-color: rgba(107, 155, 209, 0.2);
}

.feature-card .card-body {
    padding: 2.5rem;
}

.feature-icon {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.3);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(135, 206, 235, 0.4);
}

.feature-card .card-title {
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.feature-card .card-text {
    text-align: center;
    color: var(--gray-color);
    font-weight: 400;
    line-height: 1.6;
}

/* Subjects Section - White Smoke Dominant */
.subjects-section {
    background: var(--background-color);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.subject-item {
    background: var(--white-color);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 6px 25px rgba(135, 206, 235, 0.12);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgba(135, 206, 235, 0.08);
}

.subject-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.subject-item:before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    transform: scale(0);
    transition: var(--transition);
    border-radius: 20px;
}

.subject-item:hover:before {
    transform: scale(1);
}

.subject-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background-color: #f8f9fa;
    color: var(--primary-color);
    font-size: 1.8rem;
    transition: var(--transition);
}

.subject-item:hover .subject-icon {
    background-color: white;
}

.subject-item h3 {
    transition: var(--transition);
    font-size: 1.2rem;
    margin-bottom: 0;
}

.subject-item:hover h3 {
    color: white;
}

/* Call to Action */
.cta-section {
    padding: 8rem 0;
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 40%;
}

.cta-shape-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    right: -100px;
}

.cta-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -50px;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    color: white;
    font-weight: 700;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.cta-section .lead {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.cta-section .btn {
    background-color: white;
    color: var(--primary-color);
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-section .btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 6rem 0 2rem;
    position: relative;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

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

.footer .social-icons {
    margin-top: 1.5rem;
}

.footer .social-icons a {
    color: white;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.8rem;
    font-size: 1rem;
    transition: var(--transition);
}

.footer .social-icons a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer .contact-info li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.footer .contact-info li i {
    margin-right: 0.75rem;
    color: var(--accent-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-section {
        padding: 6rem 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.8rem;
    }
    
    .hero-section .lead {
        margin: 0 auto 2rem;
    }
    
    .hero-img-container {
        margin-top: 3rem;
    }
    
    .navbar {
        background-color: var(--white-color);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        padding: 0.8rem 0;
    }
    
    .navbar-nav .nav-link {
        color: var(--dark-color);
    }
}

@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .floating-element {
        display: none;
    }
    
    .cta-section h2 {
        font-size: 2.2rem;
    }
}

/* Animation effects */
.fade-in-up {
    animation: fadeInUp 1.5s ease forwards;
    opacity: 0;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.floating-educational-element {
    filter: drop-shadow(0 0 10px rgba(67, 97, 238, 0.2));
    color: var(--primary-color) !important;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

.delay-3 {
    animation-delay: 0.9s;
}
