/* style.css - Fixed and Optimized */
:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --white: #fff;
    --black: #000;
    --gray: #95a5a6;
    --light-gray: #f5f5f5;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 30px;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

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

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('images/school.jpg') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero .tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

/* Principal's Desk Section */
.principal-desk {
    background-color: var(--white);
    color: var(--text-color);
    padding: 80px 0;
    transition: var(--transition);
}
.principal-desk .container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.principal-content {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
}
.principal-photo {
    flex: 0 0 220px;
    max-width: 220px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
}
.principal-photo img {
    width: 100%;
    height: auto;
    display: block;
}
.principal-message {
    flex: 1 1 300px;
    color: var(--text-color);
    transition: var(--transition);
}
.principal-message h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 15px;
    transition: var(--transition);
}
.principal-message h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}
.principal-message p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    transition: var(--transition);
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background-color: var(--white);
    transition: var(--transition);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 1.8rem;
}

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

/* About Preview Section */
.about-preview {
    padding: 100px 0;
    background-color: var(--light-gray);
    transition: var(--transition);
}
.about-preview .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-content {
    padding-right: 30px;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.about-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
    transition: var(--transition);
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: var(--white);
    transition: var(--transition);
}
.testimonials .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial {
    background-color: var(--light-gray);
    padding: 40px;
    border-radius: var(--border-radius);
    margin: 20px;
    position: relative;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.testimonial::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 5rem;
    color: var(--primary-color);
    position: absolute;
    top: 20px;
    left: 20px;
    opacity: 0.2;
}

.testimonial-content {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author {
    text-align: right;
}

.testimonial-author h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.testimonial-author p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Gallery Preview Section */
.gallery-preview {
    padding: 100px 0;
    background-color: var(--light-gray);
    transition: var(--transition);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 250px;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay a {
    color: var(--white);
    font-weight: 600;
    font-size: 1.2rem;
    padding: 10px 20px;
    border: 2px solid var(--white);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.gallery-overlay a:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Call to Action Section */
.cta-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    transition: var(--transition);
}
.cta-section .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.contact-info li {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.school-hours li {
    margin-bottom: 10px;
}

.newsletter form {
    display: flex;
    margin-top: 15px;
}

.newsletter input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    transition: var(--transition);
}

.newsletter button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 20px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter button:hover {
    background-color: var(--primary-dark);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.footer-links a {
    color: var(--white);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}
/* Dark mode for all content sections */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .principal-desk,
body.dark-mode .features-section,
body.dark-mode .about-preview,
body.dark-mode .testimonials,
body.dark-mode .gallery-preview {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

/* Dark mode for footer */
body.dark-mode footer {
    background-color: var(--black);
}

/* Dark mode for text elements */
body.dark-mode .section-title,
body.dark-mode .section-subtitle,
body.dark-mode .feature-card h3,
body.dark-mode .principal-message h2,
body.dark-mode .testimonial-author h4,
body.dark-mode .about-content h2 {
    color:var(--light-color);
}

body.dark-mode .section-subtitle,
body.dark-mode .principal-message p,
body.dark-mode .about-content p {
    color: var(--light-color);
}

/* Dark mode for cards and containers */
body.dark-mode .feature-card,
body.dark-mode .testimonial {
    background-color: #252525;
    color: var(--light-color)0;
}

/* Dark mode for form elements */
body.dark-mode .newsletter input {
    background-color: #2d2d2d;
    color: var(--light-color);
}

body.dark-mode .newsletter input::placeholder {
    color: var(--light-color);
}

/* Dark mode for navigation */
body.dark-mode .top-nav {
    background-color: #181b20;
    color:var(--light-color);
}

body.dark-mode .top-nav-content,
body.dark-mode .top-nav-links a,
body.dark-mode .top-nav-social a {
    color:var(--light-color);
}

body.dark-mode .top-nav-links a:hover,
body.dark-mode .top-nav-social a:hover {
    color: var(--accent-color);
}

body.dark-mode .main-nav {
    background-color: #181b20;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

body.dark-mode .nav-brand span {
    color: var(--light-color);
}

body.dark-mode .nav-links a {
    color:var(--light-color);
}

body.dark-mode .nav-links a:hover {
    color: var(--accent-color);
}

body.dark-mode .theme-toggle {
    color: var(--light-color);
}

/* Dark mode for buttons */
body.dark-mode .btn-outline {
    border-color: var(--light-color);
    color: var(--light-color);
}

body.dark-mode .btn-outline:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}
body.dark-mode .cta-section{
 background-color: #2d2d2d;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero .tagline {
        font-size: 1.3rem;
    }
    
    .about-preview .container {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .tagline {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .principal-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        color: var(--text-color);
        flex-direction: column;
        padding: 100px 30px 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        padding: 10px 0;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .nav-actions {
        margin-left: 15px;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span {
        background-color: var(--primary-color);
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .features-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .newsletter form {
        flex-direction: column;
    }
    
    .newsletter input {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }
    
    .newsletter button {
        border-radius: var(--border-radius);
        width: 100%;
        padding: 12px 0;
    }
}