/* Responsive Design - Additional Breakpoints and Adjustments */

/* Tablet and Large Mobile (768px - 1024px) */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .concepts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .progress-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .examples-container {
        max-width: 800px;
    }
}

/* Mobile Landscape and Small Tablets (481px - 767px) */
@media (max-width: 767px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 90px 1rem 2rem;
        min-height: auto;
        padding-bottom: 4rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .path-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .path-icon {
        margin: 0 auto;
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .concepts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .concept-card {
        padding: 1.5rem;
    }
    
    .examples-container {
        gap: 1.5rem;
    }
    
    .example-card {
        padding: 1.5rem;
    }
    
    .example-demo {
        padding: 1rem;
    }
    
    .conditions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .conditions label {
        font-size: 0.9rem;
    }
    
    .learning-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-item {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .quiz-card {
        padding: 1.5rem;
    }
    
    .quiz-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .quiz-question {
        font-size: 1rem;
    }
    
    .quiz-options {
        gap: 0.5rem;
    }
    
    .quiz-option {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .progress-dashboard {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .progress-card {
        padding: 1.5rem;
    }
    
    .circular-progress {
        height: 150px;
    }
    
    .progress-circle {
        width: 120px;
        height: 120px;
    }
    
    .progress-text {
        font-size: 1.2rem;
    }
    
    .achievements {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .achievement {
        padding: 0.75rem;
    }
    
    .achievement i {
        font-size: 1.2rem;
    }
    
    .achievement span {
        font-size: 0.8rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .modal h3 {
        font-size: 1.3rem;
    }
    
    .modal h4 {
        font-size: 1rem;
    }
    
    .footer {
        padding: 1.5rem 0;
    }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .nav-logo {
        font-size: 1.2rem;
    }
    
    .nav-logo i {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 80px 0.75rem 2rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat {
        text-align: center;
    }
    
    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .section {
        padding: 2rem 0.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .path-item {
        padding: 1rem;
        gap: 1rem;
    }
    
    .path-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .path-content h3 {
        font-size: 1.2rem;
    }
    
    .path-content p {
        font-size: 0.9rem;
    }
    
    .learn-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .concept-card {
        padding: 1.2rem;
    }
    
    .concept-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .concept-card h3 {
        font-size: 1.1rem;
    }
    
    .concept-card p {
        font-size: 0.9rem;
    }
    
    .example-card {
        padding: 1.2rem;
    }
    
    .example-card h3 {
        font-size: 1.2rem;
    }
    
    .example-card p {
        font-size: 0.9rem;
    }
    
    .example-demo {
        padding: 0.75rem;
    }
    
    .conditions label {
        font-size: 0.85rem;
    }
    
    .run-btn, .reset-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        margin: 0.25rem;
    }
    
    .learning-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 0.4rem;
        font-size: 0.85rem;
    }
    
    .quiz-card {
        padding: 1.2rem;
    }
    
    .quiz-header {
        margin-bottom: 1rem;
    }
    
    .quiz-question {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .quiz-option {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .quiz-feedback {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .next-btn, .restart-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .progress-card {
        padding: 1.2rem;
    }
    
    .progress-card h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .circular-progress {
        height: 120px;
    }
    
    .progress-circle {
        width: 100px;
        height: 100px;
    }
    
    .progress-text {
        font-size: 1rem;
    }
    
    .achievements {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .achievement {
        padding: 0.6rem;
        flex-direction: row;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .achievement i {
        font-size: 1.1rem;
    }
    
    .achievement span {
        font-size: 0.85rem;
    }
    
    .modal-content {
        padding: 1.2rem;
    }
    
    .modal h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .modal h4 {
        font-size: 0.95rem;
        margin: 1rem 0 0.5rem;
    }
    
    .modal p, .modal li {
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 1rem 0;
    }
    
    .footer p {
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile (below 320px) */
@media (max-width: 320px) {
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .hero {
        padding: 75px 0.5rem 1.5rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section {
        padding: 1.5rem 0.5rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .path-item {
        padding: 0.75rem;
    }
    
    .path-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .path-content h3 {
        font-size: 1.1rem;
    }
    
    .path-content p {
        font-size: 0.85rem;
    }
    
    .concept-card {
        padding: 1rem;
    }
    
    .concept-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .concept-card h3 {
        font-size: 1rem;
    }
    
    .concept-card p {
        font-size: 0.85rem;
    }
    
    .example-card {
        padding: 1rem;
    }
    
    .example-card h3 {
        font-size: 1.1rem;
    }
    
    .example-card p {
        font-size: 0.85rem;
    }
    
    .quiz-card {
        padding: 1rem;
    }
    
    .quiz-question {
        font-size: 0.9rem;
    }
    
    .quiz-option {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .progress-card {
        padding: 1rem;
    }
    
    .progress-card h3 {
        font-size: 1rem;
    }
    
    .circular-progress {
        height: 100px;
    }
    
    .progress-circle {
        width: 80px;
        height: 80px;
    }
    
    .progress-text {
        font-size: 0.9rem;
    }
    
    .achievement {
        padding: 0.5rem;
    }
    
    .achievement i {
        font-size: 1rem;
    }
    
    .achievement span {
        font-size: 0.8rem;
    }
    
    .modal-content {
        padding: 1rem;
    }
    
    .modal h3 {
        font-size: 1.1rem;
    }
    
    .modal p, .modal li {
        font-size: 0.85rem;
    }
}

/* High DPI and Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-title {
        font-weight: 600;
    }
    
    .section-title {
        font-weight: 600;
    }
    
    .path-content h3,
    .concept-card h3,
    .example-card h3,
    .modal h3 {
        font-weight: 600;
    }
}

/* Landscape Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 90px 2rem 2rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: flex-start;
        gap: 1.5rem;
    }
    
    .section {
        padding: 2rem 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hamburger,
    .cta-button,
    .learn-btn,
    .run-btn,
    .reset-btn,
    .next-btn,
    .restart-btn {
        display: none;
    }
    
    .hero {
        background: white;
        color: black;
        min-height: auto;
        padding: 2rem 1rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .path-item,
    .concept-card,
    .example-card,
    .quiz-card,
    .progress-card {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    .section {
        padding: 1rem;
        page-break-inside: avoid;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}