/* =========================================
   RESPONSIVE DESIGN
========================================= */


/* =========================================
   LARGE TABLETS / SMALL DESKTOPS
   Below 1200px
========================================= */

@media (max-width: 1199px) {

    .hero-title {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

}


/* =========================================
   TABLETS
   Below 992px
========================================= */

@media (max-width: 991px) {

    /* General section spacing */
    .section-padding {
        padding: 3rem 0;
    }


    /* Hero */

    .hero-section,
    .about-hero-section {
        text-align: center;
    }

    .hero-section {
        padding-top: 4rem;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }


    /* Center hero buttons on stacked layout */

    .hero-section .col-lg-7 > .d-flex {
        justify-content: center;
    }


    /* Hero highlights */

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


    /* Profile */

    .profile-card {
        margin-top: 2rem;
    }

    .profile-image {
        height: 320px;
    }


    /* Navbar */

    .portfolio-navbar {
        padding: 1rem 0;
    }

    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 20px;
    }

    .portfolio-nav-links {
        margin-top: 1rem;
    }

    .portfolio-nav-links .nav-link {
        padding: 0.85rem 1rem !important;
    }

    .navbar-cta {
        width: 100%;
        margin-top: 1rem;
        text-align: center;
    }


    /* CTA */

    .cta-box {
        padding: 2rem 1.25rem;
    }

}


/* =========================================
   MOBILE / SMALL TABLETS
   Below 768px
========================================= */

@media (max-width: 767px) {

    .hero-title {
        font-size: 2.7rem;
        line-height: 1.15;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-description,
    .section-description {
        font-size: 1rem;
        line-height: 1.7;
    }


    /* Cards */

    .feature-card,
    .skill-card,
    .project-card,
    .service-card,
    .why-card,
    .blog-card {
        padding: 1.3rem;
    }


    /* CTA */

    .cta-box {
        border-radius: 24px;
    }


    /* Footer */

    .footer-bottom {
        text-align: center;
    }

}


/* =========================================
   SMALL MOBILE
   Below 576px
========================================= */

@media (max-width: 575px) {

    .section-padding {
        padding: 4rem 0;
    }


    /* Hero typography */

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.15;
    }


    /* Section typography */

    .section-title {
        font-size: 1.75rem;
    }


    /* Buttons */

    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        justify-content: center;
        text-align: center;
    }


    /* Hero highlights */

    .hero-highlights span {
        width: 100%;
        text-align: center;
    }


    /* Profile */

    .profile-card {
        padding: 1rem;
        border-radius: 22px;
    }

    .profile-image {
        height: 300px;
    }


    /* CTA */

    .cta-box {
        padding: 2.5rem 1.2rem;
    }


    /* Footer */

    .footer-social {
        justify-content: center;
    }

}

/* =========================================
   MOBILE SECTION ALIGNMENT
========================================= */

@media (max-width: 767px) {

  /* Standalone section introductions */
  .section-header {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* Content/two-column sections should remain left aligned */
  .section-header-left {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  /* Keep card content independent from section heading alignment */
  .skill-card,
  .project-card,
  .why-card,
  .blog-card {
    text-align: left;
  }
}