/* 
 * Responsive Stylesheet for Dr. Sharma's Academy Website
 * Author: AI Assistant
 * Version: 1.0
 */

/* ===== LARGE DESKTOPS (1200px and up) ===== */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section {
        min-height: 90vh;
    }
    
    .main-heading {
        font-size: 3.5rem;
    }
    
    .typing-container {
        font-size: 1.75rem;
    }
}

/* ===== DESKTOPS (992px to 1199px) ===== */
@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-section {
        min-height: 80vh;
    }
    
    .main-heading {
        font-size: 3rem;
    }
    
    .typing-container {
        font-size: 1.5rem;
    }
    
    .hero-content {
        gap: 1rem;
    }
    
    .philosophy-points {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .courses-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== TABLETS (768px to 991px) ===== */
@media (max-width: 991px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
        width: 100%;
        overflow-x: hidden;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    .hero-section {
        min-height: 70vh;
        text-align: center;
    }

    .main-heading {
        font-size: 2.5rem;
    }

    .typing-container {
        font-size: 1.25rem;
        justify-content: center;
    }

    .hero-content {
        margin-top: 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        margin: 0 auto;
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-image {
        margin-top: 2rem;
    }

    .stats-counter {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        margin-bottom: 2rem;
    }

    .philosophy-points {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::before {
        left: -10px;
    }

    .timeline-item:nth-child(odd)::before {
        right: auto;
        left: -10px;
    }

    .courses-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .course-card {
        max-width: 100%;
        min-width: 0;
        margin: 0 auto;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .newsletter-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        justify-content: space-between;
        width: 100%;
    }

    /* Mobile Navigation */
    .nav-toggle {
        display: flex;
        order: 1;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        order: 2;
        gap: 0;
    }
    .navbar .cta-button{
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
    }
}

/* ===== LARGE PHONES (576px to 767px) ===== */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        max-width: 540px;
    }
}

/* ===== SMALL PHONES (up to 575px) ===== */
@media (max-width: 575px) {
    * {
        box-sizing: border-box;
    }
    
    body {
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .container {
        margin-top: 0;
        padding: 0 0.75rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .philosophy-points {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
    }
    
    .philosophy-item {
        width: 100%;
        margin: 0;
        padding: 1rem;
        box-sizing: border-box;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .philosophy-icon {
        margin: 0 auto;
    }
    .course-header {
        padding: 1.5rem 1rem 1rem 1rem;
    }
    .course-details {
        padding: 1.5rem 1rem 1rem 1rem;
    }
    .course-title {
        font-size: 1.1rem;
    }
    .course-features li {
        font-size: 0.95rem;
    }
    .price {
        font-size: 1.2rem;
    }
}

/* ===== EXTRA SMALL PHONES (375px and below) ===== */
@media (max-width: 375px) {
    .container {
        padding: 0 0.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .philosophy-item {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .whatsapp-float {
        width: 40px;
        height: 40px;
        bottom: 10px;
        right: 10px;
        font-size: 16px;
    }
    .main-heading {
        font-size: 1.5rem;
    }
    
    .typing-container {
        font-size: 0.9rem;
        height: 25px;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .timeline-item::before {
        width: 50px;
        font-size: 0.7rem;
    }
    
    .timeline-content {
        padding: 0.75rem;
    }
    
    .timeline-title {
        font-size: 1.1rem;
    }
    
    .timeline-description {
        font-size: 0.9rem;
    }
    
    .course-header {
        padding: 1.5rem 1rem;
    }
    
    .course-title {
        font-size: 1.25rem;
    }
    
    .course-details {
        padding: 1.5rem 1rem;
    }
    
    .price {
        font-size: 1.5rem;
    }
    
    .info-card {
        padding: 1rem;
    }
    
    .info-content h3 {
        font-size: 1.1rem;
    }
    
    .form-header h3 {
        font-size: 1.25rem;
    }
    
    .newsletter-content h2 {
        font-size: 1.5rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-column h4 {
        font-size: 1.1rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .hero-cta,
    .contact-form-container,
    .newsletter-section,
    .footer,
    .whatsapp-float {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
    
    .hero-section,
    .about-section,
    .experience-section,
    .results-section,
    .courses-section,
    .roadmap-section {
        padding: 1cm 0;
        page-break-inside: avoid;
    }
    
    .section-title::after {
        display: none;
    }
}

/* ===== ACCESSIBILITY STYLES ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .typing-text::after {
        animation: none !important;
    }
    
    .scroll-indicator {
        display: none !important;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: more) {
    :root {
        --primary-color: #0000cc;
        --secondary-color: #cc7700;
        --dark-blue: #000099;
        --light-blue: #0066ff;
        --white: #ffffff;
        --off-white: #f8f8f8;
        --light-gray: #dddddd;
        --medium-gray: #666666;
        --dark-gray: #333333;
        --black: #000000;
    }
    
    body {
        color: var(--black);
    }
    
    a, button, .cta-button {
        text-decoration: underline;
    }
    
    .glassmorphism {
        background: var(--white);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: 2px solid var(--black);
    }
    
    .timeline-content,
    .course-card,
    .info-card,
    .philosophy-item {
        border: 2px solid var(--black);
    }
}

/* ===== DARK MODE ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #3b82f6;
        --secondary-color: #f59e0b;
        --dark-blue: #1e40af;
        --light-blue: #60a5fa;
        --white: #1f2937;
        --off-white: #111827;
        --light-gray: #374151;
        --medium-gray: #9ca3af;
        --dark-gray: #d1d5db;
        --black: #f9fafb;
    }
    
    body {
        background-color: var(--off-white);
        color: var(--dark-gray);
    }
    
    .hero-section {
        background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    }
    
    .navbar,
    .contact-form-container,
    .course-card,
    .info-card,
    .philosophy-item,
    .testimonial-item {
        background-color: var(--white);
    }
    
    .footer {
        background-color: #0f172a;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: var(--light-gray);
        color: var(--dark-gray);
        border-color: #4b5563;
    }
    
    .trust-logo {
        filter: brightness(0.8) invert(1);
    }
}