/*--------------------------------------------------------------
# MEDIA.CSS
# Refined Responsive Styles
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Desktop Navigation
--------------------------------------------------------------*/
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu > ul > li {
    white-space: nowrap;
    padding: 15px 14px;
  }

  .navmenu > ul > li:last-child {
    padding-right: 0;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    font-size: 15px;
    padding: 0 2px;
    font-family: var(--nav-font);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    position: relative;
    transition: 0.3s ease;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
  }

  .navmenu > ul > li > a::before {
    content: "";
    position: absolute;
    height: 2px;
    bottom: -7px;
    left: 0;
    width: 0;
    visibility: hidden;
    background-color: var(--nav-hover-color);
    transition: 0.3s ease;
  }

  .navmenu a:hover::before,
  .navmenu li:hover > a::before,
  .navmenu .active::before {
    visibility: visible;
    width: 100%;
  }

  .navmenu li:hover > a,
  .navmenu .active,
  .navmenu .active:focus {
    color: #ffffff;
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    border-radius: 14px;
    z-index: 99;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: 0.3s ease;
  }

  .navmenu .dropdown ul li {
    min-width: 220px;
  }

  .navmenu .dropdown ul a {
    padding: 12px 20px;
    font-size: 15px;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover > a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover > ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover > ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }

  .pricing .featured {
    transform: scale(1.06);
  }
}

/*--------------------------------------------------------------
# Laptop & Tablet
--------------------------------------------------------------*/
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 30px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 70px 20px 20px 20px;

    padding: 16px 0;
    margin: 0;

    border-radius: 18px;

    background-color: var(--nav-mobile-background-color);

    border: 1px solid var(--border-color);

    overflow-y: auto;

    z-index: 9998;

    box-shadow: var(--shadow-soft);
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);

    padding: 14px 24px;

    font-family: var(--nav-font);
    font-size: 16px;
    font-weight: 500;

    display: flex;
    align-items: center;
    justify-content: space-between;

    white-space: nowrap;
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;

    padding: 10px 0;
    margin: 10px 20px;

    background-color: #0f172a;

    border-radius: 12px;
  }

  .navmenu .dropdown > .dropdown-active {
    display: block;
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #ffffff;

    position: absolute;

    font-size: 34px;

    top: 18px;
    right: 18px;

    margin-right: 0;

    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;

    background: rgba(15, 23, 42, 0.92);
  }

  .mobile-nav-active .navmenu > ul {
    display: block;
  }

  section,
  .section {
    scroll-margin-top: 90px;
  }
}

/*--------------------------------------------------------------
# Tablet
--------------------------------------------------------------*/
@media (max-width: 991px) {
  .header .topbar {
    height: auto;
    padding: 8px 0;
  }

  .hero h2 {
    font-size: 42px;
  }

  .hero p {
    font-size: 16px;
  }

  .page-title .heading {
    padding: 145px 0 65px 0;
  }

  .page-title .heading h1 {
    font-size: 36px;
  }

  .pricing .featured {
    transform: none;
  }

  .call-to-action .container {
    padding: 55px 30px;
  }

  .call-to-action h2,
  .call-to-action h3 {
    font-size: 34px;
  }

  .cta-card {
    margin-top: 32px;
  }

  .team .member {
    max-width: 100%;
  }

  .footer-bottom-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .portfolio .portfolio-content > a {
    height: 240px;
  }
}

/*--------------------------------------------------------------
# Mobile
--------------------------------------------------------------*/
@media (max-width: 767px) {
  section,
  .section {
    padding: 60px 0;
  }

  .section-title {
    padding-bottom: 40px;
  }

  .section-title h2 {
    font-size: 30px;
  }

  .hero {
    padding-top: 130px;
    text-align: center;
  }

  .hero h2 {
    font-size: 34px;
    line-height: 1.3;
  }

  .hero p {
    font-size: 15px;
  }

  .hero .btn-get-started,
  .hero .btn-watch-video {
    font-size: 14px;
  }

  .hero .btn-watch-video {
    margin-left: 14px;
  }

  .portfolio .portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .portfolio .portfolio-filters li {
    font-size: 13px;
    margin: 0;
  }

  .portfolio .portfolio-content > a {
    height: 220px;
  }

  .portfolio .portfolio-content img {
    height: 100%;
    object-fit: cover;
  }

  .portfolio .portfolio-content .portfolio-info {
    min-height: auto;
  }

  .team .member img {
    height: 240px;
  }

  .team .member h4 {
    font-size: 22px;
  }

  .team .member p {
    font-size: 13px;
  }

  .team .member-info {
    flex-direction: column;
    gap: 10px;
  }

  .cta-features,
  .cta-stats {
    grid-template-columns: 1fr;
  }

  .cta-buttons,
  .newsletter-form,
  .recent-posts .post-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-btn,
  .cta-outline-btn,
  .newsletter-form button {
    width: 100%;
  }

  .newsletter-form {
    border-radius: 28px;
    padding: 18px;
    gap: 12px;
  }

  .newsletter-form input {
    width: 100%;
    height: 60px;

    background: rgba(255, 255, 255, 0.04);

    border-radius: 16px;

    padding: 0 18px;

    font-size: 16px;
  }

  .newsletter-form button {
    width: 100%;
    height: 60px;

    border-radius: 16px;

    font-size: 18px;
    font-weight: 700;
  }

  .recent-posts .post-card .post-img img {
    height: 220px;
  }

  .footer .footer-top {
    padding-top: 45px;
  }
}

/*--------------------------------------------------------------
# Small Mobile
--------------------------------------------------------------*/
@media (max-width: 575px) {
  .header .topbar .contact-info {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .header .topbar .contact-info i a,
  .header .topbar .contact-info i span {
    font-size: 13px;
  }

  .header .logo h1,
  .header .logo .sitename {
    font-size: 28px;
  }

  .page-title .heading h1 {
    font-size: 30px;
  }

  .page-title nav ol {
    font-size: 14px;
  }

  .service-details .services-img,
  .service-details img.img-fluid {
    max-height: 170px;
  }

  .portfolio .portfolio-content > a {
    height: 200px;
  }

  .portfolio .portfolio-info h4 {
    font-size: 16px;
  }

  .portfolio .portfolio-info p {
    font-size: 13px;
  }

  .recent-posts .post-card .post-img img {
    height: 200px;
  }
}

/*--------------------------------------------------------------
# Disable AOS Delay on Mobile
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}
