/* 
==========================================
    Responsive Stylesheet - responsive.css
    Author: Yashas Rajanna Naidu
    Version: 1.0
==========================================
*/

/* ===== LARGE DESKTOPS (≥ 1200px) ===== */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .hero-title {
        font-size: 56px;
    }
}

/* ===== DESKTOPS (≥ 992px and < 1200px) ===== */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }

    .hero-title {
        font-size: 48px;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* ===== TABLETS (≥ 768px and < 992px) ===== */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }

    .hero-title {
        font-size: 40px;
    }

    .about-content,
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        order: -1;
        margin-bottom: 30px;
    }

    .hero-image img {
        max-width: 300px;
        margin: 0 auto;
    }

    .social-icons,
    .hero-cta {
        justify-content: center;
    }

    .section-title {
        font-size: 32px;
    }

    /* Section container adjustments */
    .section .container {
        padding: var(--spacing-md);
    }

    /* Timeline adjustments for tablet */
    .timeline::before {
        left: 30px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        border-radius: 15px !important;
    }

    .timeline-dot {
        left: 30px;
    }

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

    /* Skills */
    .skills-categories {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

/* ===== LARGE PHONES (≥ 576px and < 768px) ===== */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }

    /* Section container adjustments */
    .section .container {
        padding: var(--spacing-sm);
        margin: 0 var(--spacing-xs);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 25px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 20px 30px;
    }

    /* Skills */
    .skills-categories {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .skill-category {
        padding: 1.2rem;
    }
}

/* ===== SMALL PHONES (< 576px) ===== */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .greeting {
        font-size: 18px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .about-text h3 {
        font-size: 22px;
    }

    /* Section container adjustments */
    .section .container {
        padding: var(--spacing-xs);
        border-radius: var(--border-radius-md);
    }

    .project-image {
        height: 180px;
    }

    .project-title {
        font-size: 20px;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-title {
        font-size: 18px;
    }

    .timeline-subtitle {
        font-size: 14px;
    }

    .contact-form {
        padding: 20px;
    }

    .footer-social {
        flex-wrap: wrap;
    }

    /* Skills */
    .skill-category h3 {
        font-size: 1.1rem;
    }
    
    .skill-tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* Project links */
    .project-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .project-links a {
        width: 100%;
        justify-content: center;
    }
    
    /* CV button */
    .cv-button {
        padding: 10px 20px;
    }
}

/* ===== LANDSCAPE ORIENTATION ADJUSTMENTS ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        padding: 100px 0 50px;
    }

    .hero-content {
        flex-direction: row;
    }

    .hero-image {
        order: 2;
        margin-bottom: 0;
    }

    .hero-image img {
        max-width: 200px;
    }

    /* Adjust Vanta background for landscape */
    .vanta-background {
        height: 100vh;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    body {
        background-color: white;
        color: black;
    }

    /* Hide background effects for print */
    .vanta-background,
    section::before {
        display: none !important;
    }

    nav, 
    .mobile-menu,
    .social-icons,
    .hero-cta,
    #contact,
    footer {
        display: none !important;
    }

    .container {
        max-width: 100%;
        padding: 0;
        background-color: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }

    .hero {
        height: auto;
        padding: 20px 0;
    }

    .hero-content, 
    .about-content,
    .skills-content .row {
        display: block;
    }

    .hero-image {
        display: none;
    }

    .hero-title,
    .section-title,
    .project-title,
    .timeline-title {
        color: black;
    }

    .hero-title span::before,
    .section-title::after {
        display: none;
    }

    .skill-progress-bar {
        border: 1px solid #ccc;
    }

    .skill-progress-value {
        background-color: #333;
    }

    .project-card,
    .timeline-content {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .project-tag,
    .skill-tag {
        border: 1px solid #ccc;
        background: none;
    }
}