/* =========================================================
   FILE: css/responsive.css
   Responsive Layout Optimizations
========================================================= */

/* ================================
   Large Screens
================================ */

@media (max-width: 1440px) {

    .container,
    .section {
        padding-left: 60px;
        padding-right: 60px;
    }
}

/* ================================
   Laptop Screens
================================ */

@media (max-width: 1200px) {

    .hero h1 {
        font-size: 72px;
    }

    .hero-description {
        font-size: 18px;
    }

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

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

/* ================================
   Small Laptops
================================ */

@media (max-width: 992px) {

    .navbar {
        padding: 20px 30px;
    }

    .navbar nav {
        gap: 20px;
    }

    .hero {
        padding: 140px 30px 80px;
    }

    .hero h1 {
        font-size: 58px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .hero-description {
        font-size: 17px;
        line-height: 1.8;
    }

    .hero-buttons {
        flex-wrap: wrap;
    }

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

    .section {
        padding: 90px 30px;
    }

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

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

    .role-status-card {
        grid-template-columns: 1fr;
    }

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

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

    .contact-card {
        flex-direction: column;
        gap: 40px;
    }

    .contact-form {
        width: 100%;
    }
}

/* ================================
   Tablet
================================ */

@media (max-width: 768px) {

    body {
        overflow-x: hidden;
    }

    .navbar.menu-open .mobile-nav-panel {
        max-height: calc(100vh - 76px);
    }

    .hero {
        padding: 120px 24px 70px;
        text-align: center;
    }

    .hero-badge {
        font-size: 13px;
        padding: 10px 18px;
    }

    .hero h1 {
        font-size: 48px;
        line-height: 1.1;
    }

    .hero h2 {
        font-size: 24px;
        line-height: 1.5;
    }

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons a {
        width: 100%;
        justify-content: center;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .section {
        padding: 80px 24px;
    }

    .section-heading h2 {
        font-size: 38px;
    }

    .section-heading p {
        font-size: 16px;
    }

    .large-card,
    .project-card,
    .expertise-card,
    .contact-card {
        padding: 28px;
    }

    .stats-grid {
        gap: 18px;
    }

    .stat-card h3 {
        font-size: 32px;
    }

    .project-card h3 {
        font-size: 24px;
    }

    .project-tags {
        flex-wrap: wrap;
    }

    .project-actions {
        flex-direction: column;
    }

    .project-actions a,
    .project-actions button {
        width: 100%;
        justify-content: center;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        padding-left: 28px;
    }

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

    .contact-left h2 {
        font-size: 38px;
    }

    .contact-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 15px;
    }
}

/* ================================
   Mobile
================================ */

@media (max-width: 576px) {

    .navbar {
        padding: 20px 18px;
    }

    .logo {
        font-size: 24px;
    }

    .navbar nav a {
        font-size: 14px;
    }

    .resume-btn {
        width: 100%;
        justify-content: center;
    }

    .hero {
        padding: 110px 18px 60px;
    }

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

    .hero h2 {
        font-size: 21px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-tags span {
        font-size: 12px;
        padding: 10px 14px;
    }

    .section {
        padding: 70px 18px;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .large-card,
    .project-card,
    .expertise-card,
    .contact-card {
        padding: 22px;
        border-radius: 22px;
    }

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

    .project-card h3 {
        font-size: 22px;
    }

    .project-card p {
        font-size: 15px;
    }

    .expertise-card h3 {
        font-size: 20px;
    }

    .contact-left h2 {
        font-size: 30px;
        line-height: 1.3;
    }

    .contact-left p {
        font-size: 15px;
    }

    .contact-form textarea {
        min-height: 140px;
    }
}

/* ================================
   Small Mobile
================================ */

@media (max-width: 420px) {

    .hero h1 {
        font-size: 34px;
    }

    .hero h2 {
        font-size: 18px;
    }

    .hero-description {
        font-size: 14px;
    }

    .section-heading h2 {
        font-size: 28px;
    }

    .project-card h3 {
        font-size: 20px;
    }

    .project-tags span {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .contact-left h2 {
        font-size: 26px;
    }

    .contact-links a {
        font-size: 14px;
        word-break: break-word;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }
}

/* ================================
   Landscape Phones
================================ */

@media (max-height: 500px) and (orientation: landscape) {

    .hero {
        padding-top: 140px;
        padding-bottom: 80px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-description {
        max-width: 100%;
    }
}
