/*==================================================
=            Bootstrap 3 Media Queries             =
==================================================*/

/*----------------------------------------
  Global Dropdown Aesthetic (All Screens)
-----------------------------------------*/
.navbar-nav .dropdown-menu {
  background-color: #333;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  margin-top: 0;
  min-width: 180px;
  transition: all 0.3s ease;
}

.navbar-nav .dropdown-menu > li > a {
  color: #fff;
  padding: 10px 20px;
  text-transform: uppercase;
}

.navbar-nav .dropdown-menu > li > a:hover,
.navbar-nav .dropdown-menu > li > a:focus {
  background-color: #444;
  color: #fff;
}

/*==========  Mobile First Method  ==========*/
/* Unified styles for screens up to 767px */
@media only screen and (max-width: 767px) {
  .page-scroll {
    position: static;
    top: auto;
  }
  
  #main-navbar {
    height: auto !important;
  }
  
  .fact {
    height: auto;
  }
  
  #bs-example-navbar-collapse-1 {
    max-height: 440px;
    float: none !important;
    padding-right: 4% !important;
  }
  
  #fb {
    float: none !important;
  }
  
  #fb_foot {
    position: static;
    left: auto;
  }
  
  .navbar-toggle {
    margin-top: 18px;
    border: none;
  }
  .navbar-toggle:hover, .navbar-toggle:focus {
    background-color: transparent !important;
  }
  .navbar-toggle .icon-bar {
    height: 3px;
  }
  
  .navbar-inverse .navbar-collapse {
    background-color: #111;
  }
  
  .navbar-nav > li > a {
    padding: 10px 0 !important;
    color: #FFF;
  }
  
  .navbar-nav .open .dropdown-menu > li > a {
    padding: 10px 10px 10px 45px !important;
  }
  
  /* --- FANCY GLASSMORPHISM DROPDOWN (MOBILE) --- */
  .navbar-default .navbar-nav .dropdown-menu {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3) !important;
    margin-top: 10px !important;
    min-width: 220px !important;
    /* Start off slightly scaled down and hidden */
    transform: scale(0.9) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out, visibility 0.4s ease-out !important;
  }
  
  .navbar-default .navbar-nav .open > .dropdown-menu {
    transform: scale(1) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .navbar-default .navbar-nav .dropdown-menu > li > a {
    color: #fff !important;
    padding: 15px 25px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-weight: 600 !important;
    transition: background 0.3s ease, color 0.3s ease !important;
  }
  
  .navbar-default .navbar-nav .dropdown-menu > li > a:hover,
  .navbar-default .navbar-nav .dropdown-menu > li > a:focus {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #ffcc00 !important;
  }
  
  /* Additional mobile tweaks */
  #partners-section {
    padding-top: 10% !important;
    padding-bottom: 10% !important;
  }
  #contact-section {
    padding-top: 10% !important;
  }
  .navbar-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .navbar-brand {
    float: none !important;
    margin: 0;
    padding: 0;
  }
  .navbar-toggle {
    float: none !important;
    margin: 0;
    padding: 0;
  }
}

/* Small Devices, Tablets (≥ 768px) */
@media only screen and (min-width: 768px) {
  .dropdown-hover:hover > .dropdown-menu {
    display: block;
  }
}

/* Medium Devices, Desktops (≥ 992px) */
@media only screen and (min-width: 992px) {
  #prtn {
    padding-left: 12%;
  }
  #brand {
    max-width: 200px;
  }
}

/* Large Devices, Wide Screens (≥ 1200px) */
@media only screen and (min-width: 1200px) {
  /* Add large-screen overrides if needed */
}

/*==========  Non-Mobile First Method  ==========*/
/* Unmodified sections for larger screens */
@media only screen and (max-width: 1200px) {
  #text-carousel-intro-section .caption h1 {
    font-size: 50px;
  }
  .team-item .team-triangle {
    width: 90px;
    height: 90px;
  }
  .team-triangle .content {
    width: 160px;
    height: 160px;
  }
  .team-hover i {
    margin-top: 50px;
  }
  .team-hover p {
    font-size: 14px;
  }
}
@media only screen and (max-width: 992px) {
  .team-item .team-triangle {
    width: 120px;
    height: 120px;
  }
  .team-triangle .content {
    width: 190px;
    height: 190px;
  }
  .team-hover i {
    margin-top: 57px;
  }
  #team-section .col-md-2:nth-child(7n+5),
  #team-section .col-md-2:nth-child(7n+1) {
    margin-left: 0 !important;
    clear: none !important;
  }
  #team-section .col-md-2 {
    float: left;
    margin-bottom: 80px;
    width: 33.3333%;
  }
  .price-box-featured .panel {
    box-shadow: none;
    transform: scale(1);
  }
  .prices .price-box-featured .panel-footer {
    box-shadow: none !important;
  }
  .parallax {
    background-attachment: scroll !important;
    background-position: 50% 50% !important;
  }
  #text-carousel-intro-section .caption {
    top: 65% !important;
  }
  #text-carousel-intro-section .caption h1 {
    font-size: 34px;
  }
  #text-carousel-intro-section .caption h3 {
    font-size: 12px;
  }
  #error-section .caption h1 {
    font-size: 100px;
  }
  #error-section .caption h2 {
    font-size: 13px;
  }
  .counter-up .fact-inner .counter {
    font-size: 42px;
  }
  .counter-up .fact-inner .fa-3x {
    font-size: 36px;
  }
}
@media only screen and (max-width: 767px) {
  .navbar-brand, .navbar-brand:focus {
    margin-left: 10px;
  }
  .page {
    padding-top: 30px;
  }
  #cta-section, #about-section, #contact-section,
  #contact-section .contact .form-control {
    text-align: center;
  }
  .rotate-box-1 .rotate-box-info {
    padding-left: 0;
    text-align: center;
  }
  .rotate-box-1 .rotate-box-icon {
    float: none;
    margin-right: 0;
    margin-bottom: 30px;
  }
  a.rotate-box-1 {
    text-align: center;
    margin-top: 0;
  }
  #team-section .col-md-2 {
    width: 50%;
    float: left;
    margin-bottom: 80px;
  }
  ul.contact-address {
    margin-bottom: 50px;
  }
  #partners-section,
  footer {
    text-align: center;
  }
  .testimonial:before,
  .owl-prev,
  .owl-next {
    display: none !important;
  }
}
@media only screen and (max-width: 480px) {
  #team-section .col-md-2 {
    width: 100%;
  }
}
@media only screen and (max-width: 320px) {
  /* Custom styles for very small screens if desired */
}
