/* Responsive CSS for Kristina Portfolio Website */

/* Large Desktop (1200px and above) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-avatar {
        width: 450px;
        height: 450px;
    }
}

/* Desktop (992px - 1199px) */
@media (max-width: 1199px) {
    .hero-container {
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-avatar {
        width: 350px;
        height: 350px;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-avatar {
        width: 320px;
        height: 320px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .course-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .course-preview-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .course-preview-card {
        padding: 2rem 1.5rem;
    }
    
    .course-preview-cta {
        padding: 2rem;
    }
    
    .course-preview-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .course-preview-cta-buttons .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .course-hero-title {
        font-size: 2.5rem;
    }
    
    .course-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .blog-link-container {
        padding: 1.5rem 0;
    }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 767px) {
    .navbar {
        padding: 0.8rem 0;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding-top: 70px;
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    

    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .hero-avatar {
        width: 280px;
        height: 280px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .about {
        padding: 4rem 0;
    }
    
    .portfolio {
        padding: 4rem 0;
    }
    
    .blog {
        padding: 4rem 0;
    }
    
    .contact {
        padding: 4rem 0;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .course-preview-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .course-preview-card {
        padding: 1.5rem;
    }
    
    .course-preview-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .course-preview-stats {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .course-cta {
        padding: 2rem;
    }
    
    .blog-link-container {
        padding: 1rem 0;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

/* Mobile Medium (480px - 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-avatar {
        width: 250px;
        height: 250px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .about-content {
        gap: 1.5rem;
    }
    
    .contact-content {
        gap: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
    
    .course-card {
        margin-bottom: 1rem;
    }
    
    .course-image {
        height: 200px;
    }
    
    .course-topics {
        padding: 0.8rem;
    }
    
    .course-topics h4 {
        font-size: 0.95rem;
    }
    
    .course-topics li {
        font-size: 0.85rem;
        padding: 0.25rem 0;
    }
    
    .blog-card {
        margin-bottom: 1rem;
    }
}

/* Mobile Small (320px - 479px) */
@media (max-width: 479px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .course-image {
        height: 180px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-avatar {
        width: 220px;
        height: 220px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .skill-name {
        font-size: 0.95rem;
    }
    
    .portfolio-overlay h4 {
        font-size: 1.2rem;
    }
    
    .portfolio-overlay p {
        font-size: 0.9rem;
    }
    
    .blog-title {
        font-size: 1.2rem;
    }
    
    .blog-excerpt {
        font-size: 0.95rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .contact-details h4 {
        font-size: 1.1rem;
    }
    
    .contact-details p {
        font-size: 0.95rem;
    }
    
    .footer-logo h3 {
        font-size: 1.5rem;
    }
    
    .footer-logo p {
        font-size: 0.9rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-container {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-avatar {
        width: 200px;
        height: 200px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-avatar {
        border-width: 6px;
    }
    
    .portfolio-item,
    .blog-card {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .portfolio-filters,
    .contact-form,
    .footer {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-avatar {
        width: 150px;
        height: 150px;
    }
    
    .section-title {
        color: #000;
        border-bottom: 2px solid #000;
        padding-bottom: 0.5rem;
    }
    
    .portfolio-item,
    .blog-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-avatar {
        animation: none;
    }
    
    .portfolio-item:hover,
    .blog-card:hover {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        color: #fff;
        border: 2px solid #000;
    }
    
    .btn-secondary {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
    
    .nav-link::after {
        background: #000;
    }
    
    .skill-progress {
        background: #000;
    }
}
