/* 
* Anchor Elevators - Main Stylesheet
* A modern, clean, and professional website for an elevator manufacturer
*/

/* ===== GENERAL STYLES ===== */
:root {
    --primary-color: #1a237e;
    --primary-red: #d6133f;
    --primary-light: #fff1f1;
    --primary-dark: #0b5ed7;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --transition: all 0.3s ease;
    --border-radius: 10px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    /* font-size: 14px; */
    color: var(--dark-color);
    overflow-x: hidden;
    padding-top: 120px; /* Account for header + topbar height */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

section {
    overflow: hidden;
}

/* text colors */
.text-anchor-primary {
    color: var(--primary-color);
}
.text-anchor-secondary {
    color: var(--secondary-color);
}
.text-anchor-dark {
    color: var(--primary-dark);
}

.page-header {
    background-color: var(--primary-color);
}

/* ===== COMMON STYLES ===== */
.btn {
    padding: 10px 25px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

/* Feature Cards for Why Choose Us */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.hover-card {
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.hover-card:hover {
    transform: translateY(-5px);
    border-bottom: 3px solid var(--primary-color);
}

.hover-card:hover .feature-icon {
    transform: scale(1.1);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-outline-light:hover {
    transform: translateY(-3px);
}

/* ===== TOPBAR ===== */
.topbar {
    background-color: var(--primary-color);
    padding: 8px 0;
    font-size: 14px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.topbar-info-item a,
.topbar-info-item i,
.topbar-social a {
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.9;
}

.topbar-info-item a:hover,
.topbar-info-item i:hover,
.topbar-social a:hover {
    opacity: 1;
}

.topbar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.topbar-social a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ===== HEADER & NAVIGATION ===== */
header.header-main {
    transition: top 0.3s ease;
    position: fixed;
    width: 100%;
    z-index: 1020; /* Lower than topbar */
}

.header-scrolled {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.navbar {
    transition: var(--transition);
    padding: 5px 0;
}

.header-scrolled .navbar {
    padding: 10px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    width: 500px;
}

.navbar-brand h1 {
    font-size: 1.8rem;
    margin: 0;
    line-height: 1;
}

.nav-link {
    font-weight: 500;
    padding: 8px 10px !important;
    position: relative;
    color: var(--primary-color) !important;
    font-size: 16px;
}

.nav-link::after {
    /* content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: var(--transition); */
}

.nav-link:hover::after,
.nav-link.active::after {
    /* width: 70%; */
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red) !important;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 10px 0;
    /* margin-top: 10px; */
    min-width: 200px;
    animation: fadeIn 0.3s ease-in-out;
}

.dropdown-item {
    padding: 8px 20px;
    font-weight: 500;
    color: var(--dark-color);
    transition: var(--transition);
}

.dropdown-item:hover, 
.dropdown-item:focus {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
}

.dropdown-toggle::after {
    margin-left: 0.3em;
    vertical-align: 0.15em;
    transition: var(--transition);
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.desktop-nav .dropdown:hover .dropdown-menu {
    display: block;
}

/* Off-Canvas Mobile Menu */
.offcanvas {
    width: 500px;
    background-color: #fff;
    border-radius: 0;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.offcanvas-title {
    font-weight: 700;
    color: var(--dark-color);
}

.offcanvas .nav-link {
    padding: 12px 20px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Custom Mobile Dropdown Menu */
.mobile-dropdown {
    position: relative;
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.mobile-dropdown-toggle i {
    transition: transform 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-toggle i {
    transform: rotate(180deg);
}

.mobile-dropdown-menu {
    display: none;
    background-color: rgba(0, 0, 0, 0.02);
    padding: 0;
    width: 100%;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    display: block;
}

.mobile-dropdown-item {
    display: block;
    padding: 10px 30px;
    color: var(--dark-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.mobile-dropdown-item:hover,
.mobile-dropdown-item:focus {
    color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
    padding-left: 35px;
}

.offcanvas .nav-link::after {
    left: 0;
    transform: none;
    bottom: auto;
    height: 100%;
    width: 3px;
    top: 0;
}

.offcanvas .nav-link:hover::after,
.offcanvas .nav-link.active::after {
    width: 3px;
    height: 100%;
}

.offcanvas-btn {
    margin-top: 20px;
    width: 100%;
    border-radius: 50px;
}

/* ===== HERO SECTION ===== */
.hero-section {
    height: 100vh;
    min-height: 600px;
    position: relative;
    margin-top: 0;
}

.hero-swiper {
    width: 100%;
    height: 100%;
}

.hero-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    max-width: 650px;
    z-index: 1;
    position: relative;
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: var(--transition);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-color);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #fff;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

/* ===== ABOUT PREVIEW ===== */
.rounded-4 {
    border-radius: var(--border-radius);
}

/* counter */
.counter__bg {
  position: relative;
  z-index: 1;
  background: var(--primary-color);
  margin-bottom: 10px;
}

.counter__wrapper {
  padding: 22px 0;
  /* padding-left: 40px; */
}

.counter__item {
  position: relative;
  border-right: 1px solid var(--primary-light);
}

@media (max-width: 767px) {
  .counter__item {
    margin-top: 30px;
  }
  .navbar-brand img {
    width: 400px;
}
}

.counter__item h3 {
  font-size: 34px;
  color: var(--primary-light);
  margin-bottom: 15px;
}

.counter__item p {
  color: var(--primary-light);
  font-size: 16px;
  margin-bottom: 0;
}

.counter__item img {
  position: absolute;
  top: 0;
  right: -20px;
}

/* ===== VISION, MISSION, GOALS ===== */
.icon-box {
    height: 80px;
    width: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(253, 13, 13, 0.1);
    transition: var(--transition);
}

.card:hover .icon-box {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.card:hover .icon-box i {
    color: #fff !important;
}

.card {
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.card:hover {
    transform: translateY(-10px);
}

/* ===== WHY CHOOSE US ===== */
.why-choose {
    position: relative;
    background-color: var(--primary-color);
}

.why-choose .left-shape {
  position: absolute;
  bottom: 0;
  right: 3%;
}

@media (max-width: 1199px) {
  .why-choose .left-shape {
    display: none;
  }
}

.why-choose .left-shape-2 {
  position: absolute;
  bottom: 0;
  right: 8%;
}

@media (max-width: 1199px) {
  .why-choose .left-shape-2 {
    display: none;
  }
}

.feature-box {
    background-color: #fff;
    height: 280px;
    transition: var(--transition);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.feature-box:hover {
    transform: translateY(-10px);
    
}

.icon-circle {
    height: 80px;
    width: 80px;
    border-radius: 50%;
    background-color: rgba(253, 13, 13, 0.1);
    transition: var(--transition);
}

.feature-box:hover .icon-circle {
    background-color: var(--primary-color);
}

.feature-box:hover .icon-circle i {
    color: #fff !important;
}

/* ===== TESTIMONIALS ===== */
.testimonial-swiper {
    padding-bottom: 50px;
}

.testimonial-card {
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

/* ===== CONTACT CTA ===== */
#contact-cta {
    position: relative;
    background-color: var(--primary-color);
}

#contact-cta .left-shape {
  position: absolute;
  bottom: 0;
  right: 3%;
}

@media (max-width: 1199px) {
  #contact-cta .left-shape {
    display: none;
  }
}

#contact-cta .left-shape-2 {
  position: absolute;
  bottom: 0;
  right: 8%;
}

@media (max-width: 1199px) {
  #contact-cta .left-shape-2 {
    display: none;
  }
}

/* director-message */
#director-message {
    background: var(--primary-color);
    color: #fff;
}

#vc-message {
    background: var(--light-color);
    color: #000;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--primary-color);
}

footer a {
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-light) !important;
    padding-left: 5px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-3px);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 991.98px) {
    .navbar-toggler {
        border: none;
        padding: 0;
        font-size: 1.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .navbar-toggler-icon {
        width: 1.5em;
        height: 1.5em;
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-content .d-flex {
        justify-content: center;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        height: 80vh;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .navbar-brand img {
    width: 300px;
}
}

@media (max-width: 575.98px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 8px 20px;
    }
}

/* ===== ANIMATIONS ===== */
.animate-fade-in {
    animation: fadeIn 1s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}




/* marquee */

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    /* padding: 20px 0; */
    position: relative;

  }

  .marquee-header h4 {
    background: var(--primary-color);

  }
.marquee-body {
    background: var(--primary-dark);
}

  .marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 15s linear infinite;
  }

  .marquee-content:hover {
    animation-play-state: paused;
  }

  .marquee-item {
    display: inline-block;
    margin: 0 30px;
    font-size: 15px;
    color: var(--primary-light);
  }

  @keyframes scroll-left {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-40%);
    }
  }



  /* timeline */
  .timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 10px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 40px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
}

.left {
    left: 0;
    padding-right: 70px;
    text-align: right;
}

.right {
    left: 50%;
    padding-left: 70px;
}

.left::after {
    right: -12px;
}

.right::after {
    left: -12px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.left .timeline-year {
    justify-content: flex-end;
}

.timeline-year i {
    margin-right: 10px;
    font-size: 1.2em;
}

.timeline-list {
    list-style-type: none;
    padding-left: 0;
}

.timeline-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.timeline-list li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.award-badge {
    display: inline-block;
    background-color: #e9f5ff;
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-top: 8px;
    font-weight: 500;
}

@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: left !important;
    }
    
    .left::after, .right::after {
        left: 19px;
    }
    
    .left, .right {
        left: 0;
        padding-right: 0;
        padding-left: 70px;
    }
    
    .timeline-year {
        justify-content: flex-start !important;
    }
}

.back-to-home {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    transition: all 0.3s ease;
}

.back-to-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
    color: white;
}


/* about */
.about-section {
    background-color: var(--primary-color);
    padding: 80px 0;
}
.section-title {
    position: relative;
    margin-bottom: 50px;
    text-align: center;
}
.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}
.title-divider {
    width: 80px;
    height: 3px;
    background: #00bcd4;
    margin: 0 auto 30px;
}
.feature-box {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    height: 100%;
}
.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.feature-icon {
    width: 70px;
    height: 70px;
    background: rgba(63, 81, 181, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.feature-icon i {
    font-size: 30px;
    color: #3f51b5;
}
.bg-light-blue {
    background-color: #f8f9fa;
}
.bg-gradient-primary {
    background: linear-gradient(135deg, #3f51b5 0%, #00bcd4 100%);
}
.counter-box {
    padding: 30px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    margin-bottom: 30px;
    color: #fff;
    text-align: center;
}
.counter {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}