/* Responsive Design - Mobile First Approach */

/* Base responsive variables */
:root {
    --mobile-padding: 1rem;
    --tablet-padding: 1.5rem;
    --desktop-padding: 2rem;
}

/* Mobile First - Base styles (320px and up) */
@media screen and (max-width: 480px) {
    :root {
        --font-size-xs: 0.75rem;
        --font-size-sm: 0.875rem;
        --font-size-base: 0.9rem;
        --font-size-lg: 1.1rem;
        --font-size-xl: 1.25rem;
        --font-size-2xl: 1.5rem;
        --font-size-3xl: 1.75rem;
    }
    
    .container {
        padding: 0 var(--mobile-padding);
    }
    
    /* Typography adjustments */
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
    h3 { font-size: var(--font-size-xl); }
    h4 { font-size: var(--font-size-lg); }
    
    /* Header mobile styles */
    .header {
        padding: 0.5rem 0;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .logo-subtitle {
        font-size: 0.625rem;
    }
    
    /* Mobile navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background: var(--bg-secondary);
        transition: right 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu.active {
        right: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-list {
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--bg-tertiary);
    }
    
    /* Hamburger menu */
    .hamburger {
        display: flex;
        flex-direction: column;
        width: 30px;
        height: 20px;
        justify-content: space-between;
    }
    
    .hamburger span {
        width: 100%;
        height: 2px;
        background: var(--text-primary);
        transition: all 0.3s ease;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero section mobile */
    .hero {
        min-height: 90vh;
        padding: 4rem 0 2rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 2rem 0;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.875rem 1.5rem;
    }
    
    /* Section mobile spacing */
    section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
        margin-bottom: 0.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
    
    /* Courses grid mobile */
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .course-card {
        margin: 0 0.5rem;
    }
    
    .course-image {
        height: 150px;
    }
    
    .course-content {
        padding: 1.25rem;
    }
    
    .course-title {
        font-size: 1.25rem;
    }
    
    .course-description {
        font-size: 0.875rem;
    }
    
    .course-tech {
        gap: 0.25rem;
    }
    
    .tech-tag {
        padding: 0.125rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .course-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .course-price {
        font-size: 1.25rem;
        text-align: center;
    }
    
    /* About section mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-text {
        padding: 0 1rem;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-image img {
        border-radius: 1rem;
    }
    
    /* Admissions mobile */
    .admissions-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .process-steps {
        gap: 1rem;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .step-number {
        margin-bottom: 0.5rem;
    }
    
    /* Forms mobile */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    /* Contact section mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .social-icons {
        gap: 0.5rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-section {
        padding: 0 1rem;
    }
    
    /* Theme toggle mobile */
    .theme-toggle {
        right: 1rem;
        width: 40px;
        height: 40px;
        top: auto;
        bottom: 1rem;
    }
    
    /* Custom cursor disable on mobile */
    .cursor,
    .cursor-follower {
        display: none;
    }
    
    /* Touch target improvements */
    .btn,
    .nav-link,
    .social-link,
    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Reduced motion for mobile */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* Tablet styles (481px - 768px) */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 var(--tablet-padding);
    }
    
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content,
    .admissions-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small desktop (769px - 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 960px;
        padding: 0 var(--desktop-padding);
    }
    
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content,
    .admissions-content,
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Large desktop (1025px and up) */
@media screen and (min-width: 1025px) {
    .container {
        max-width: 1200px;
    }
    
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .about-content,
    .admissions-content,
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Ultra-wide screens (1440px and up) */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Landscape orientation adjustments */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .btn,
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-weight: 500;
    }
}

/* Dark mode responsive adjustments */
@media (prefers-color-scheme: dark) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.05);
        --glass-border: rgba(255, 255, 255, 0.1);
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .theme-toggle,
    .cursor,
    .cursor-follower {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero {
        min-height: auto;
        page-break-inside: avoid;
    }
    
    .course-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
