/* =============================================================================
   Nova – Personal Portfolio HTML Template
   responsive.css — Breakpoint overrides
   Author: Markanda Themes · Version 1.0
   Table of Contents
   =============================================================================
   00 - Desktop (>= 1221px)
   01 - Extra Large Screens (<= 2000px)
   02 - Large Desktops (<= 1555px)
   03 - Laptops / Tablets Landscape (<= 1220px)
   04 - Tablets (<= 787px)
   05 - Mobile Landscape / Small Tablets (<= 767px)
   06 - Mobile Portrait (<= 584px)
   =============================================================================
*/

/* -----------------------------------------------------------------------------
   00 - Desktop (>= 1221px): side navigation visible, menu toggle hidden
----------------------------------------------------------------------------- */
@media (min-width: 1221px) {
  .menu-toggle {
    display: none;
  }
}

/* -----------------------------------------------------------------------------
   01 - Extra Large Screens (<= 2000px)
   Sidebar width + vertical centering for side navigation
----------------------------------------------------------------------------- */
@media (max-width: 2000px) {
  /* 08 - Sidebar Panel */
  .sidebar-panel {
    max-width: 400px;
  }

  .sidebar-panel .sidebar-header {
    margin-bottom: 30px;
  }

  .sidebar-panel .social-links {
    margin-bottom: 30px;
  }

  .sidebar-panel .copyright-text {
    margin-bottom: 25px;
  }

  /* 05 - Navigation Menu */
  .main-navigation {
    top: 50%;
    transform: translateY(-50%);
  }
}

/* -----------------------------------------------------------------------------
   02 - Large Desktops (<= 1555px)
   Compact sidebar layout
----------------------------------------------------------------------------- */
@media (max-width: 1555px) {
  /* 08 - Sidebar Panel */
  .sidebar-panel {
    max-width: 350px;
    padding: 30px;
  }

  .sidebar-panel > img.profile-image {
    width: 100%;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 46px;
  }

  .sidebar-panel .sidebar-header .job-title {
    line-height: 1.4;
  }
}

/* -----------------------------------------------------------------------------
   03 - Laptops / Tablets Landscape (<= 1220px)
   Stack sidebar, hide desktop nav, adjust grids & modals
----------------------------------------------------------------------------- */
@media (max-width: 1220px) {
  /* 01 - Layout */
  .main-container {
    max-width: 767px;
  }

  .content-container {
    max-width: 100%;
  }

  /* 07 - Section Headers */
  .section-header h1 br,
  .section-header h2 br {
    display: none;
  }

  /* 08 - Sidebar Panel */
  .sidebar-panel {
    position: relative;
    max-width: 767px;
    left: 0;
    margin: auto;
    top: 0;
    transform: translateY(0);
    margin-top: 20px;
    display: none;
  }

  .portfolio-main .sidebar-panel {
    display: block;
  }

  .sidebar-panel > img.profile-image {
    width: auto;
  }

  /* 15 - Portfolio */
  .portfolio-bento {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .portfolio-item--featured {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .portfolio-item--featured .portfolio-media {
    min-height: 280px;
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .portfolio-item--featured h2 {
    font-size: 28px;
  }

  /* 04 - Menu Toggle / 05 - Navigation */
  .menu-toggle {
    display: flex;
    position: fixed;
    right: 16px;
    top: 16px;
  }

  .main-navigation {
    display: none !important;
  }

  .mobile-navigation .nav-panel .menu-container .main-navigation {
    display: flex !important;
  }

  /* 10 - About / 11 - Experience */
  .experience-section,
  .about-section {
    padding-bottom: 50px;
  }

  .about-section .about-content p {
    max-width: 100%;
  }

  /* 16 - Testimonials */
  .testimonial-section {
    padding-top: 50px;
  }

  /* 12 - Services Grid */
  .services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
  }

  .services-grid .service-card {
    margin-bottom: 0;
    padding: 30px;
    width: calc(50% - 8px);
  }

  .services-grid .service-card h2 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .services-grid .service-card p {
    margin-bottom: 25px;
  }

  .services-grid .service-card i {
    font-size: 20px;
    top: 25px;
    right: 20px;
  }

  /* 13 - Service Modal */
  .service-modal-banner {
    height: 200px;
  }

  .service-modal-body {
    padding: 28px 28px 20px;
  }

  .service-modal-footer {
    padding: 0 28px 28px;
  }

  .service-modal-body h2 {
    font-size: 28px;
  }

  /* 23 - Blog Modal */
  .blog-modal-featured img {
    max-height: 360px;
  }

  .blog-modal-body {
    padding: 28px 28px 24px;
  }

  .blog-modal-body .modal-title {
    font-size: 28px;
  }

  .blog-modal-footer {
    padding: 18px 28px;
  }

  /* 18 - Pricing */
  .pricing-grid .pricing-card .primary-button {
    padding: 11px 40px 10px 40px;
  }
}

/* -----------------------------------------------------------------------------
   03b - Small Tablets (<= 908px): keep sidebar header clear of the menu toggle
----------------------------------------------------------------------------- */
@media (max-width: 908px) {
  .portfolio-main .sidebar-panel .sidebar-header {
    padding-right: 56px;
  }
}

/* -----------------------------------------------------------------------------
   04 - Tablets (<= 787px)
   Hero typography scale-down
----------------------------------------------------------------------------- */
@media (max-width: 787px) {
  /* 09 - Hero Banner */
  .hero-banner {
    padding: 48px 0 36px;
  }

  .hero-banner .hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 24px;
  }

  .hero-banner .hero-content .stats-grid .counter {
    font-size: 40px;
    line-height: 1.1;
    margin-bottom: 16px;
  }

  .hero-banner .hero-content .stats-grid {
    gap: 28px 32px;
    margin-top: 36px;
  }

  /* 07 - Section Headers */
  .section-header h1,
  .section-header h2 {
    font-size: 36px;
    line-height: 1.3;
    margin-bottom: 22px;
  }

  .section-subtitle {
    margin-bottom: 28px;
    padding: 7px 14px;
  }
}

/* -----------------------------------------------------------------------------
   05 - Mobile Landscape / Small Tablets (<= 767px)
----------------------------------------------------------------------------- */
@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  .main-container {
    padding: 0 12px;
  }

  .mobile-navigation .nav-panel .menu-container {
    width: 56%;
  }

  .main-navigation{
   gap: 0;
  }

  .main-navigation li .nav-link, .main-navigation li a {
    padding: 2px 15px;
  }
  .main-navigation li .nav-link i, .main-navigation li a i {
    font-size: 18px;
}

  .mobile-navigation .nav-panel {
    padding-top: 20px;
}

  /* 04 - Menu Toggle */
  .menu-toggle {
    right: 16px;
    top: 16px;
    width: 44px;
    height: 44px;
  }

  /* Shared section padding */
  .about-section,
  .experience-section,
  .services-section,
  .skills-section,
  .portfolio-section,
  .pricing-section,
  .blog-section,
  .awards-section,
  .faq-section,
  .testimonial-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .skills-section {
    padding-bottom: 24px;
  }

  /* 07 - Section Headers */
  .section-header h1,
  .section-header h2 {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 18px;
  }

  .section-subtitle {
    margin-bottom: 22px;
    font-size: 11px;
    padding: 6px 12px;
  }

  /* 09 - Hero Banner */
  .hero-banner {
    padding: 40px 0 28px;
  }

  .hero-banner .hero-content h1 {
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 18px;
  }

  .hero-banner .hero-content > p,
  .hero-banner .hero-content .hero-intro > p {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.6;
  }

  .hero-banner .hero-content .hero-intro {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .hero-banner .hero-content .hero-actions {
    gap: 10px;
    margin-top: 18px;
  }

  .hero-banner .hero-content .hero-actions .primary-button,
  .hero-banner .hero-content .hero-actions .secondary-button {
    width: 100%;
  }

  .hero-banner .hero-content .hero-tags {
    margin-top: 14px;
    gap: 8px;
  }

  .hero-banner .hero-content .hero-tag {
    padding: 6px 12px;
    font-size: 11px;
  }

  .hero-banner .hero-content .stats-grid {
    gap: 20px 16px;
    margin-top: 28px;
  }

  .hero-banner .hero-content .stats-grid .counter {
    font-size: 36px;
    line-height: 1.1;
    margin-bottom: 12px;
  }

  .hero-banner .hero-content .stats-grid p {
    font-size: 12px;
    line-height: 1.5;
  }

  /* 10 - About */
  .about-section .about-content p {
    line-height: 1.65;
    font-size: 14px;
  }

  /* 11 - Experience */
  .experience-section .experience-content .timeline-list .timeline-item {
    padding-bottom: 36px;
  }

  .experience-section .experience-content .timeline-list .timeline-item .date-range {
    margin-bottom: 14px;
    font-size: 13px;
  }

  .experience-section .experience-content .timeline-list .timeline-item h2 {
    font-size: 20px;
  }

  .experience-section .experience-content .resume-groups {
    gap: 24px;
  }

  .experience-section .experience-content .resume-group {
    padding: 24px 18px;
  }

  .experience-section .experience-content .resume-group-title {
    font-size: 22px;
    margin-bottom: 18px;
  }

  /* 12 - Services */
  .services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .services-grid .service-card {
    width: 100%;
    padding: 22px 18px;
  }

  .services-grid .service-card h2 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .services-grid .service-card p {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .services-grid .service-card i {
    font-size: 18px;
    top: 18px;
    right: 16px;
  }

  /* 14 - Skills */
  .skills-section .skills-content .row .col-md-3 {
    flex: 0 0 auto;
    width: 50%;
  }

  .skills-grid .skill-item {
    margin-bottom: 16px;
  }

  .skills-grid .skill-item .skill-card {
    padding: 20px 0;
    margin-bottom: 12px;
  }

  .skills-grid .skill-item .skill-card img {
    width: 44px;
    margin-bottom: 16px;
  }

  .skills-grid .skill-item .skill-card .skill-percent {
    font-size: 24px;
  }

  .skills-grid .skill-item p {
    font-size: 13px;
  }

  /* 15 - Portfolio */
  .portfolio-bento {
    gap: 24px;
  }

  .portfolio-item {
    gap: 12px;
  }

  .portfolio-item--featured {
    gap: 14px;
    padding-bottom: 20px;
  }

  .portfolio-item--featured h2 {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .portfolio-item h2 {
    font-size: 18px;
  }

  .portfolio-desc {
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.6;
  }

  /* 16 - Testimonials */
  .testimonial-card .testimonial-body {
    padding: 28px 22px 24px;
  }

  .testimonial-card .testimonial-body .author-info {
    margin-bottom: 24px;
    gap: 12px;
  }

  .testimonial-card .testimonial-body .author-info h3 {
    font-size: 16px;
  }

  /* 17 - Client Logos */
  .client-logos .row .col-md-3 {
    flex: 0 0 auto;
    width: 33.3333%;
    margin-bottom: 28px;
  }

  /* 18 - Pricing */
  .pricing-grid .pricing-card {
    margin-bottom: 12px;
    display: block;
    height: auto;
    padding: 28px 22px;
  }

  .pricing-grid .pricing-card .card-header {
    margin-bottom: 22px;
    padding-bottom: 14px;
  }

  .pricing-grid .pricing-card .card-header .header-top {
    margin-bottom: 16px;
  }

  .pricing-grid .pricing-card .card-header .plan-price {
    font-size: 36px;
  }

  .pricing-grid .pricing-card .card-header .plan-price span {
    font-size: 18px;
  }

  .pricing-grid .pricing-card .primary-button {
    width: 100%;
    padding: 12px 18px;
  }

  .pricing-grid .pricing-card ul {
    margin-bottom: 28px;
  }

  .pricing-grid .pricing-info {
    margin-top: 32px;
  }

  /* 19 - Blog */
  .blog-post {
    margin-bottom: 28px;
  }

  .blog-post .post-thumbnail {
    margin-bottom: 18px;
  }

  .blog-post .post-meta {
    gap: 20px;
    margin-bottom: 8px;
  }

  .blog-post .post-meta li {
    font-size: 12px;
  }

  .blog-post .post-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
  }

  /* 20 - Awards / 21 - FAQ */
  .awards-list .award-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0;
  }

  .awards-list .award-year {
    font-size: 15px;
  }

  .awards-list .award-body h2 {
    font-size: 18px;
    margin-bottom: 4px;
  }

  .awards-list .award-body p {
    font-size: 13px;
  }

  .awards-list .award-org {
    padding-top: 0;
    font-size: 12px;
  }

  .faq-accordion .faq-question {
    font-size: 16px;
    padding: 16px 0;
    gap: 12px;
  }

  .faq-accordion .faq-question i {
    font-size: 16px;
  }

  .faq-accordion .faq-answer {
    padding-bottom: 16px;
  }

  /* 22 - Contact */
  .contact-section .contact-content h3 {
    font-size: 20px;
    margin-bottom: 28px;
  }

  /* 24 - Back to Top */
  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
  }

  .back-to-top i {
    font-size: 15px;
  }
  
}

/* -----------------------------------------------------------------------------
   06 - Mobile Portrait (<= 584px)
----------------------------------------------------------------------------- */
@media (max-width: 584px) {
  body {
    font-size: 14px;
  }

  .main-container {
    padding: 0 10px;
  }

  /* 07 - Section Headers */
  .section-subtitle {
    margin-bottom: 16px;
    padding: 5px 10px;
    font-size: 10px;
  }

  .section-subtitle i {
    font-size: 12px;
    margin-right: 6px;
  }

  .section-header h1,
  .section-header h2 {
    font-size: 28px;
    line-height: 1.25;
    margin-bottom: 14px;
  }

  /* Shared section padding */
  .about-section,
  .experience-section,
  .services-section,
  .skills-section,
  .portfolio-section,
  .pricing-section,
  .blog-section,
  .awards-section,
  .faq-section,
  .testimonial-section,
  .hero-banner {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .skills-section {
    padding-bottom: 16px;
  }

  .hero-banner {
    padding-top: 28px;
    padding-bottom: 20px;
  }

  /* 09 - Hero Banner */
  .hero-banner .hero-content h1 {
    font-size: 34px;
    line-height: 1.15;
    margin-bottom: 14px;
  }

  .hero-banner .hero-content > p,
  .hero-banner .hero-content .hero-intro > p {
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 10px;
  }

  .hero-banner .hero-content .hero-actions {
    margin-top: 14px;
  }

  .hero-banner .hero-content .hero-tags {
    margin-top: 12px;
  }

  .hero-banner .hero-content .stats-grid .counter {
    font-size: 30px;
    line-height: 1.1;
    margin-bottom: 8px;
  }

  .hero-banner .hero-content .stats-grid p br {
    display: none;
  }

  .hero-banner .hero-content .stats-grid {
    gap: 16px 12px;
    margin-top: 22px;
  }

  .hero-banner .hero-content .stats-grid .stat-item {
    min-width: calc(50% - 6px);
    max-width: calc(50% - 6px);
    flex: 0 0 calc(50% - 6px);
  }

  .hero-banner .hero-content .stats-grid p {
    font-size: 11px;
    line-height: 1.4;
  }

  /* 08 - Sidebar */
  .sidebar-panel {
    padding: 24px 18px;
    margin-top: 0px;
  }

  .sidebar-panel > img.profile-image {
    margin-bottom: 28px;
    max-width: 180px;
  }

  .sidebar-panel .sidebar-header {
    margin-bottom: 28px;
  }

  .sidebar-panel h2 {
    font-size: 20px;
  }

  .sidebar-panel .social-links {
    margin-bottom: 28px;
  }

  .sidebar-panel .social-links li a {
    width: 42px;
    height: 42px;
    line-height: 38px;
    font-size: 16px;
  }

  .sidebar-panel .copyright-text {
    font-size: 12px;
    margin-bottom: 20px;
  }

  /* 11 - Experience */
  .experience-section .experience-content .timeline-list .timeline-item {
    padding-left: 40px;
    padding-bottom: 28px;
  }

  .experience-section .experience-content .timeline-list .timeline-item h2 {
    font-size: 18px;
  }

  .experience-section .experience-content .resume-group {
    padding: 20px 16px;
    border-radius: 0px;
  }

  .experience-section .experience-content .resume-group-title {
    font-size: 20px;
    margin-bottom: 16px;
  }

  /* 12 - Services / 13 - Service Modal */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .services-grid .service-card {
    padding: 20px 16px;
  }

  .services-grid .service-card h2 {
    font-size: 17px;
  }

  .service-modal {
    padding: 10px;
  }

  .service-modal-dialog {
    max-height: calc(100vh - 20px);
  }

  .service-modal-content {
    max-height: calc(100vh - 20px);
  }

  .service-modal-banner {
    height: 140px;
  }

  .service-modal-icon {
    left: 16px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .service-modal-body {
    padding: 18px 16px 16px;
  }

  .service-modal-footer {
    padding: 0 16px 18px;
  }

  .service-modal-body h2 {
    font-size: 20px;
  }

  .service-modal-features {
    grid-template-columns: 1fr;
  }

  .service-modal-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  /* 14 - Skills */
  .skills-grid .skill-item .skill-card {
    padding: 16px 0;
  }

  .skills-grid .skill-item .skill-card .skill-percent {
    font-size: 22px;
  }

  /* 23 - Blog Modal */
  .blog-modal-featured {
    margin-bottom: 14px;
  }

  .blog-modal-featured img {
    max-height: 200px;
  }

  .blog-modal-body {
    padding: 18px 16px 16px;
  }

  .blog-modal-body .modal-title {
    font-size: 20px;
  }

  .blog-modal-footer {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px;
  }

  .blog-modal-footer .primary-button,
  .blog-modal-dismiss {
    width: 100%;
    text-align: center;
  }

  /* 15 - Portfolio */
  .portfolio-section {
    padding-top: 28px;
  }

  .portfolio-bento {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .portfolio-item--featured {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 18px;
    margin-bottom: 0;
  }

  .portfolio-item--featured .portfolio-media {
    min-height: 200px;
    aspect-ratio: 16 / 10;
    height: auto;
  }

  .portfolio-item--featured h2 {
    font-size: 22px;
    margin-bottom: 6px;
  }

  .portfolio-item h2 {
    font-size: 17px;
  }

  .portfolio-desc {
    max-width: none;
    font-size: 13px;
    margin-bottom: 10px;
  }

  .portfolio-meta {
    gap: 8px;
  }

  .portfolio-item .category-tags {
    gap: 6px 10px;
    margin-top: 8px;
  }

  .portfolio-link {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  /* 16 - Testimonials */
  .testimonial-card .testimonial-body {
    padding: 22px 16px 20px;
  }

  .testimonial-card .testimonial-body .author-info {
    margin-bottom: 18px;
  }

  /* 17 - Client Logos */
  .client-logos .row .col-md-3 {
    width: 50%;
    margin-bottom: 20px;
  }

  /* 18 - Pricing */
  .pricing-grid .pricing-card {
    padding: 22px 16px;
  }

  .pricing-grid .pricing-card .card-header .plan-price {
    font-size: 32px;
  }

  .pricing-grid .pricing-card .card-header .plan-name {
    font-size: 15px;
  }

  .pricing-grid .pricing-card ul {
    margin-bottom: 22px;
  }

  .pricing-grid .pricing-info {
    margin-top: 24px;
    font-size: 13px;
  }

  /* 19 - Blog */
  .blog-post {
    margin-bottom: 24px;
  }

  .blog-post .post-thumbnail {
    margin-bottom: 14px;
  }

  .blog-post .post-meta {
    gap: 16px;
    flex-wrap: wrap;
  }

  .blog-post .post-content h3 {
    font-size: 19px;
    margin-bottom: 10px;
  }

  .blog-post p {
    font-size: 13px;
    line-height: 1.65;
  }

  /* 20 - Awards / 21 - FAQ */
  .awards-list .award-item {
    padding: 14px 0;
  }

  .awards-list .award-body h2 {
    font-size: 16px;
  }

  .faq-accordion .faq-question {
    font-size: 15px;
    padding: 14px 0;
  }

  .faq-accordion .faq-answer p {
    font-size: 13px;
    line-height: 1.6;
  }

  /* 22 - Contact */
  .contact-section {
    padding-bottom: 48px;
  }

  .contact-section .contact-content h3 {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .contact-section .contact-content .contact-form .form-group {
    margin-bottom: 16px;
  }

  .primary-button,
  .secondary-button {
    padding: 10px 28px 9px;
    font-size: 13px;
  }
}
