/* ANISH SIR CLASSES - Custom Stylesheet
    Author: AI Assistant (for Anish Sir)
    Color Palette: 
        - Primary: #004d40 (Dark Teal/Forest Green) - Professional, Trustworthy
        - Secondary: #ffb300 (Amber/Orange) - Highlight, Energy, Modern
        - Text/Accent: #1e1e1e (Near Black)
        - Background: #f4f4f4 (Light Gray)
        - Light Background: #ffffff (White)
*/

/* --- 1. Global Reset & Typography --- */
:root {
    --primary-color: #004d40;
    --secondary-color: #ffb300;
    --text-color: #1e1e1e;
    --light-text-color: #ffffff;
    --bg-light: #f4f4f4;
    --bg-white: #ffffff;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; 
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

.section-padding {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 2rem;
    color: #555;
    font-weight: 400;
}

.bg-light {
    background-color: var(--bg-light);
}

.highlight {
    color: var(--secondary-color);
    font-weight: 700;
}


/* --- 2. Buttons & Utility --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.btn-primary:hover {
    background-color: #00332c; /* Darker primary */
    color: var(--light-text-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.6rem 1.2rem;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.text-center {
    text-align: center;
}

.icon-large {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}


/* --- 3. Header & Navigation --- */
.header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-list {
    list-style: none;
    display: flex;
}

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-color);
    transition: var(--transition);
}


/* --- 4. Hero Section --- */
.hero {
    background: linear-gradient(rgba(0, 77, 64, 0.8), rgba(0, 77, 64, 0.8)), url('images/hero-bg.jpg') no-repeat center center/cover; /* Placeholder image path */
    color: var(--light-text-color);
    padding: 8rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content .lead {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}


/* --- 5. About Section --- */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}


/* --- 6. Academic & Programming Sections (Card/Grid Styles) --- */
.card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 5px solid var(--secondary-color);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.programming-grid {
    margin-top: 3rem;
}

.programming-area {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    height: 100%; /* Important for equal height in grid */
}

.programming-area h3 {
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.programming-area ul {
    list-style: none;
}

.programming-area ul li {
    padding: 0.5rem 0;
    font-weight: 400;
}

.programming-area ul li i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.special-care {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    text-align: center;
}

.special-care h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.special-care p {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.special-care i {
    margin-right: 0.75rem;
    font-size: 1.3rem;
}


/* --- 7. Experience (Timeline) Section --- */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 1.5rem;
    background-color: var(--bg-light);
    position: relative;
    border-radius: 6px;
    box-shadow: var(--box-shadow);
}

.timeline-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.timeline-content strong {
    color: var(--secondary-color);
}

.timeline-content ul {
    margin-top: 10px;
    padding-left: 20px;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--secondary-color);
    border: 4px solid var(--primary-color);
    top: 30px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-item:nth-child(odd) .timeline-date {
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-date {
    text-align: left;
}


/* --- 8. Testimonials Section --- */
.testimonial-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    border-left: 5px solid var(--secondary-color);
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    opacity: 0.3;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
}

.reviewer {
    font-style: normal !important;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.stars i {
    color: gold;
    font-size: 1rem;
}


/* --- 9. Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info {
    padding: 2rem;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border-radius: 10px;
}

.contact-info h3 {
    color: var(--secondary-color);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 1rem;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.contact-info a {
    color: var(--light-text-color);
    border-bottom: 1px dashed var(--secondary-color);
}

.contact-info a:hover {
    color: var(--secondary-color);
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 0.75rem;
    transition: var(--transition);
    border: none;
}

.social-links a:hover {
    background-color: #ffd666; /* Lighter secondary */
    color: var(--primary-color);
}

.contact-form-container {
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 10px;
}

.contact-form .form-group {
    margin-bottom: 1.2rem;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-status {
    margin-top: 1rem;
    padding: 0.5rem;
    border-radius: 5px;
    text-align: center;
}


/* --- 10. Footer --- */
.footer {
    background-color: var(--text-color);
    color: #a0a0a0;
    padding: 2rem 0;
    font-size: 0.9rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

.text-red {
    color: #ff5252;
}


/* --- 11. Media Queries (Responsiveness) --- */
@media (max-width: 992px) {
    /* Timeline - Stack on mobile */
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0%;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 25px;
        margin-left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-date {
        text-align: left;
    }

    /* Contact - Stack on mobile */
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Header & Navigation */
    .nav {
        /* Mobile Menu State */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        display: none; /* Hidden by default for JS toggle */
    }

    .nav-list {
        flex-direction: column;
        padding: 1rem 0;
    }

    .nav-link {
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid var(--bg-light);
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* Hero */
    .hero {
        padding: 6rem 0;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content .lead {
        font-size: 1.2rem;
    }

    /* General */
    .section-padding {
        padding: 3rem 0;
    }
    
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .testimonial-cards {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        margin-bottom: 1.5rem;
    }

    /* Buttons */
    .hero-content a.btn {
        width: 100%;
        margin-bottom: 10px;
    }
}