/* Servomax Industrial Automation Website - Enhanced CSS */

/* Root Variables */
:root {
    /*--primary-color: #1e40af;*/
    --primary-color: #eb6402;
    --primary-dark: #969393;
    --secondary-color: #64748b;
    --accent-color: #eb6402;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #eb6402;
    --info-color: #3b82f6;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --font-family: 'Roboto', sans-serif;
    --heading-font: 'Poppins', sans-serif;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px -1px #eb6402;
    --box-shadow-lg: 0 20px 25px -5px #eb6402;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, #f97316 100%);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader-content {
    text-align: center;
    color: white;
}

.servo-loader {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
}

.gear {
    position: absolute;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid white;
}

.gear-1 {
    width: 60px;
    height: 60px;
    top: 0;
    left: 30px;
    animation: spin 2s linear infinite;
}

.gear-2 {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 0;
    animation: spin-reverse 1.5s linear infinite;
}

.gear-3 {
    width: 40px;
    height: 40px;
    top: 20px;
    right: 0;
    animation: spin 1.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    background: rgba(255,255,255,1);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: white;
    box-shadow: var(--box-shadow-lg);
}

.brand-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}
.brand-logo img
{
    width:30%;
}
.about-image i {
    font-size: 10rem;
    color: white;
    margin-top: -30rem;
    margin-right: 0.5rem;
    animation: rotate 4s linear infinite;
}

.brand-text {
    background: linear-gradient(45deg, #fff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.navbar-nav .nav-link {
    color: rgba(0, 0, 0, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

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

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: 80%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #f59e0b !important;
}

.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0,0,0,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.dropdown-menu {
  border: none;
  box-shadow: var(--box-shadow-lg);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.dropdown-item {
  padding: 0.75rem 1.5rem;
  transition: var(--transition);
  border-radius: 8px;
  margin: 2px 8px;
}

.dropdown-item:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateX(5px);
}

/* Hover effect for dropdowns */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  z-index: 1000;
}

.nav-item.dropdown .dropdown-menu {
  display: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* base dropdown look */
.dropdown-menu {
  border: none;
  box-shadow: var(--box-shadow-lg);
  border-radius: var(--border-radius);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
}

/* items */
.dropdown-item {
  padding: 0.75rem 1.5rem;
  transition: var(--transition);
  border-radius: 8px;
  margin: 2px 8px;
}

.dropdown-item:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateX(5px);
}

/* default Bootstrap dropdown show/hidden handling */
.nav-item.dropdown .dropdown-menu {
  display: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s ease, visibility .3s ease;
}
.nav-item.dropdown.show .dropdown-menu,
.nav-item.dropdown:hover .dropdown-menu { /* hover fallback */
  display: block;
  visibility: visible;
  opacity: 1;
  z-index: 1000;
}



/* arrow caret */
.dropdown-submenu > .dropdown-toggle::after {
  content: "";
  float: right;
  margin-left: .3em;
  font-size: .8rem;
}

/* mobile styles */
@media (max-width: 991px) {
  .dropdown-submenu .subdropdown-menu {
    position: relative;
    left: 0;
    margin: 0;
    box-shadow: none;
  }
  .dropdown-submenu > .dropdown-toggle::after {
    content: "";
  }
  .brand-logo img
{
    width:30%;
    align-self: right;
}

}

/* nested dropdown hidden by default */
.subdropdown-menu {
  display: none!important;
  position: absolute;      /* stack vertically on mobile */
  margin-left: 1rem;
  left: 90%;
  bottom:0%;
  /* small indent */
}
.dropdown-submenu:hover .subdropdown-menu
{
    display: block!important;
}
.subdropdown-menu.show {
  display: block;
}


/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(../img/banner.jpg);
    /*background: var(--gradient-primary);*/
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.0);
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.circuit-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    animation: pulse 3s ease-in-out infinite;
}

.line-1 {
    width: 2px;
    height: 100%;
    left: 20%;
    animation-delay: 0s;
}

.line-2 {
    width: 100%;
    height: 2px;
    top: 30%;
    animation-delay: 1s;
}

.line-3 {
    width: 2px;
    height: 100%;
    right: 25%;
    animation-delay: 2s;
}

.floating-gear {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.gear-bg-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.gear-bg-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.gear-bg-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.typing-animation {
    overflow: hidden;
    border-right: 3px solid var(--accent-color);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent-color); }
}

.highlight {
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.fade-in-up {
    animation: fadeInUp 1s ease-out 0.5s both;
}

.fade-in-right {
    animation: fadeInRight 1s ease-out 0.8s both;
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-stats {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
}

.counter {
    font-size: 2.5rem;
    font-weight: 800;
    /*color: var(--accent-color);*/
     color: white;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.servo-showcase {
    position: relative;
    text-align: center;
}

.main-product {
    width: 100%;
    max-width: 500px;
    border-radius: var(--border-radius);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    animation: float 4s ease-in-out infinite;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.tech-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: var(--box-shadow);
    animation: bounce 2s ease-in-out infinite;
}

.badge-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.badge-2 {
    top: 50%;
    right: -15%;
    animation-delay: 1s;
}

.badge-3 {
    bottom: 20%;
    left: -5%;
    animation-delay: 2s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid white;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg);
    animation: bounce 2s infinite;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

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

.btn-primary:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.pulse-btn {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    text-align: center;
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 64, 175, 0.1), transparent);
    transition: var(--transition);
}

.feature-card:hover::before {
    left: 100%;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.hover-lift:hover .feature-icon {
    transform: scale(1.1) rotate(360deg);
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(248,130,19,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 1.5rem;
}

.product-specs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.spec-badge {
    background: var(--gradient-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* About Section */
.about-image {
    position: relative;
}

.experience-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow-lg);
}

.experience-badge h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.about-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.feature-item i {
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Industry Cards */
.industry-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

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

.industry-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

.industry-card:hover .industry-icon {
    transform: scale(1.1) rotate(360deg);
}

/* Testimonial Cards */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.testimonial-card:hover::before {
    opacity: 0.05;
}

.testimonial-content {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.stars {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

/* News Cards */
.news-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

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

.news-image {
    position: relative;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
}

.news-date .day {
    display: block;
    font-size: 1.2rem;
}

.news-date .month {
    display: block;
    font-size: 0.8rem;
}

.news-content {
    padding: 1.5rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--accent-color);
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #666666 0%, #eb6402 100%);
    color: white;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.footer-brand .brand-logo {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .typing-animation {
        animation: none;
        border-right: none;
        white-space: normal;
    }
    
    .hero-stats {
        padding: 1rem;
    }
    
    .counter {
        font-size: 2rem;
    }
    
    .tech-badge {
        position: static;
        display: inline-block;
        margin: 0.5rem;
    }
    
    .floating-elements {
        position: static;
        text-align: center;
        margin-top: 1rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .feature-icon,
    .industry-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .hero-stats .row {
        text-align: center;
    }
    
    .hero-stats .col-4 {
        margin-bottom: 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}
/* Card Hover Effects */
.hover-zoom:hover img {
  transform: scale(1.1);
  transition: 0.4s ease-in-out;
}
.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: 0.3s;
}
.hover-glow:hover {
  box-shadow: 0 0 20px #eb6402;
  transition: 0.3s;
}
.hover-tilt:hover {
  transform: rotate(-2deg) scale(1.05);
  transition: 0.3s;
}
.hover-rotate:hover {
  transform: rotateY(15deg);
  transition: 0.4s;
}

.card:hover
{
     box-shadow: 0 0 20px #eb6402;
}

/* Lead Form Styling */
.lead-form {
  max-width: 500px;
  animation: fadeInUp 0.8s ease-in-out;
  border-radius: var(--border-radius);
}

.form-header h4 {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.form-header p {
  font-size: 0.9rem;
  color: var(--secondary-color);
}

.input-group-text {
  background: #f8f9fa;
  border-radius: 8px 0 0 8px;
  border: 1px solid #ddd;
}

.form-control {
  border-radius: 0 8px 8px 0;
  border: 1px solid #ddd;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(235, 100, 2, 0.3);
}

/* Fix textarea issue */
textarea.form-control {
  border-radius: 8px;
  resize: none; /* cleaner UI */
}

/* Gradient button */
.btn-gradient {
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  transition: var(--transition);
}

.btn-gradient:hover {
  background: var(--gradient-accent);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-lg);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}



/*----------------------other pages----------------------------------*/
/* =========================
   Products Page Styles
   ========================= */

/* Page Header */
.page-header {
    margin: 100px 0 0;
  background: var(--gradient-primary);
  color: #fff;
  padding: 10rem 0 4rem;
  text-align: center;
  position: relative;
}
.page-header h1 {
  font-family: var(--heading-font);
  font-weight: 700;
}
.page-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}
.breadcrumb {
  justify-content: center;
  margin-top: 1rem;
}
.breadcrumb .breadcrumb-item a {
  color: #fff;
  text-decoration: none;
}
.breadcrumb .breadcrumb-item.active {
  color: #facc15;
}

/* Product Filter */
.product-filter .filter-buttons .btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
}
.product-filter .btn.active,
.product-filter .btn:hover {
  background: var(--gradient-accent);
  color: #fff;
  border: none;
}

/* Product Items */
.product-item {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.product-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-lg);
}
.product-image {
  position: relative;
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}
.product-item:hover .product-image img {
  transform: scale(1.1);
}
.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.product-item:hover .product-overlay {
  opacity: 1;
}
.product-overlay .btn {
  margin: 0 5px;
}

.product-info {
  padding: 1rem 1.2rem;
}
.product-info h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0.8rem 0;
}
.spec-item {
  font-size: 0.85rem;
  background: #f8f9fa;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
}
.spec-label {
  font-weight: 600;
  margin-right: 4px;
}

/* Automation Cards */
.automation-card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.automation-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--box-shadow-lg);
}
.automation-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.automation-content {
  padding: 1.5rem;
}
.automation-content h4 {
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.feature-list li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Support Section */
.support-section {
  background: #f8fafc;
}
.support-features {
  margin-top: 1.5rem;
}
.support-item {
  display: flex;
  align-items: start;
  margin-bottom: 1.2rem;
}
.support-item i {
  font-size: 1.3rem;
  margin-right: 1rem;
  color: var(--accent-color);
}
.support-form {
  background: #fff;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}
.support-form h5 {
  margin-bottom: 1rem;
  font-weight: 600;
}
.support-form .form-control,
.support-form .form-select {
  border-radius: var(--border-radius);
}
.support-form button {
  background: var(--gradient-accent);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
}
.support-form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-lg);
}

/* Responsive */
@media (max-width: 768px) {
  .page-header {
    padding: 4rem 0 2rem;
  }
  .automation-card {
    flex-direction: column;
  }
}

/*----------about--------------------*/
/* ===========================
   ABOUT PAGE STYLES
   =========================== */

/* Page Header */
.page-header {
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url("../img/banner12.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 100px 0;
}
.page-header h1 {
  font-weight: 700;
}
.page-header .breadcrumb {
  justify-content: center;
}
.page-header .breadcrumb a {
  color: #f8f9fa;
  text-decoration: none;
}
.page-header .breadcrumb-item.active {
  color: #eb6402;
}

/* Company Story */
.company-story .story-image {
  position: relative;
  overflow: hidden;
}
.company-story .story-image img {
  transition: transform 0.5s ease;
}
.company-story .story-image:hover img {
  transform: scale(1.05);
}
.company-story .story-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
}
.story-badge {
  background: #eb6402;
  color: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  text-align: center;
}
.story-stats .stat-item h3 {
  font-size: 2rem;
  font-weight: 700;
}

/* Mission Vision Values */
.mvv-card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mvv-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.mvv-icon {
  font-size: 40px;
  color: #eb6402;
  margin-bottom: 15px;
}
.values-list {
  list-style: none;
  padding: 0;
}
.values-list li {
  margin-bottom: 8px;
}

/* Leadership Team */
.team-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.team-image img {
  width: 100%;
  border-bottom: 4px solid #eb6402;
}
.team-info {
  padding: 20px;
}
.team-position {
  font-weight: 500;
  color: #eb6402;
  margin-bottom: 10px;
}
.team-social .social-link {
  display: inline-block;
  margin: 0 6px;
  font-size: 16px;
  color: #eb6402;
  transition: color 0.3s ease;
}
.team-social .social-link:hover {
  color: #212529;
}

/* Capabilities */
.capability-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: flex-start;
}
.capability-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.capability-icon {
  font-size: 35px;
  color: #eb6402;
  margin-right: 15px;
}
.capability-features {
  list-style: none;
  padding-left: 0;
}
.capability-features li {
  margin-bottom: 6px;
}

/* Certifications */
.certification-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.certification-card:hover {
  transform: translateY(-8px);
}
.cert-icon {
  font-size: 35px;
  color: #eb6402;
  margin-bottom: 10px;
}

/* Timeline */
.timeline {
  position: relative;
  margin: 20px 0;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  width: 3px;
  height: 100%;
  background: #eb6402;
}
.timeline-item {
  position: relative;
  margin-bottom: 40px;
}
.timeline-year {
  position: absolute;
  left: -60px;
  top: 0;
  background: #eb6402;
  color: #fff;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
}
.timeline-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* CTA */
.cta-section {
  background: linear-gradient(90deg, #eb6402, #0b5ed7);
  color: #fff;
  border-radius: 12px;
  padding: 50px 30px;
}
.cta-section h3 {
  font-weight: 700;
}
.cta-section .btn {
  font-weight: 600;
}
.pulse-btn {
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.6); }
  70% { box-shadow: 0 0 0 15px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}


/*----------------- contact us -----------------------------*/
/* ===========================
   CONTACT PAGE STYLES (Orange Primary)
   =========================== */

.page-header h1 {
  font-weight: 700;
}
.page-header .breadcrumb a {
  color: #eb6402;
  text-decoration: none;
}
.page-header .breadcrumb-item.active {
  color: #eb6402;
}
.btn-outline-primary
{
    background: #eb6402 !important;
    color: #000000!important;
}
/* Contact Information Cards */
.contact-card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}
.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.contact-icon {
  font-size: 40px;
  color: #eb6402;
  margin-bottom: 15px;
}

/* Contact Form */
.contact-form-wrapper {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.contact-form .form-control,
.contact-form .form-select {
  border-radius: 8px;
  box-shadow: none;
  transition: border-color 0.3s ease;
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: #eb6402;
  box-shadow: 0 0 0 0.2rem rgba(235, 100, 2, .25);
}
.contact-form label {
  font-weight: 500;
}
.contact-form button {
  font-weight: 600;
  border-radius: 8px;
  background-color: #eb6402;
  border: none;
}
.contact-form button:hover {
  background-color: #eb6402;
}

/* Regional Offices */
.office-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.office-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.office-header {
  border-bottom: 2px solid #f1f1f1;
  padding-bottom: 10px;
  margin-bottom: 10px;
  font-weight: 600;
  color: #eb6402;
}

/* Business Hours */
.hours-list .hour-item {
  padding: 10px 0;
  border-bottom: 1px dashed #e0e0e0;
}
.hours-list .hour-item:last-child {
  border-bottom: none;
}
.emergency-contact {
  background: #eb6402 !important;
  box-shadow: 0 8px 20px #eb6402;
}
.emergency-contact h4 {
  font-weight: 600;
}

/* Map Section */
.map-container iframe {
  width: 100%;
  border: none;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* FAQ Section */
.faq-section .accordion-item {
  border-radius: 8px;
  margin-bottom: 15px;
  border: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.faq-section .accordion-button {
  border-radius: 8px;
  font-weight: 500;
}
.faq-section .accordion-button:focus {
  box-shadow: none;
}
.faq-section .accordion-button:not(.collapsed) {
  background-color: #eb6402;
  color: #fff;
}
.faq-section .accordion-body {
  background: #fff;
  border-top: 1px solid #e9ecef;
  border-radius: 0 0 8px 8px;
}

/* Hover Lift Effect (shared) */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px #eb6402;
}

/*--------------- gallery-----------------------*/
/* ===============================
   GALLERY PAGE STYLES (Orange Theme)
   =============================== */

.page-header h1,
.page-header p,
.page-header .breadcrumb {
  color: #fff;
}
.page-header .breadcrumb-item.active {
  color: #eb6402;
}
.page-header .breadcrumb a {
  color: #f8f9fa;
  text-decoration: none;
}
.page-header .breadcrumb a:hover {
  color: #eb6402;
}

/* Filter Buttons */
.gallery-filter .btn {
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.gallery-filter .btn-outline-primary {
  color: #eb6402;
  border-color: #eb6402;
}
.gallery-filter .btn-outline-primary:hover,
.gallery-filter .btn-outline-primary.active {
  background-color: #eb6402;
  color: #fff;
  border-color: #eb6402;
}

/* Gallery Grid */
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.gallery-card img {
  border-radius: 12px;
  width: 100%;
  transition: transform 0.5s ease;
}
.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}
.gallery-card:hover img {
  transform: scale(1.1);
}
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(235,100,2,0.85);
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  border-radius: 12px;
}
.gallery-card:hover .gallery-overlay {
  opacity: 1;
}
.gallery-content h5 {
  font-weight: 600;
  margin-bottom: 8px;
}
.gallery-content p {
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.gallery-content .badge {
  background-color: #fff !important;
  color: #eb6402;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
}

/* Project Stats */
.stat-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}
.stat-number h3 {
  font-weight: 700;
  color: #eb6402;
}

/* CTA Section */
.cta-section {
  background: #eb6402 !important;
  color: #fff;
  border-radius: 0;
}
.cta-section h3 {
  font-weight: 700;
}
.cta-section p {
  opacity: 0.9;
}
.cta-section .btn {
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.cta-section .btn-light {
  color: #eb6402;
}
.cta-section .btn-light:hover {
  background: #fff;
  color: #d35400;
}

.related-products .card {
  border-radius: 12px;
  height: 500px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.related-products .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.related-products img {
  height: 300px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}
.truncate-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;  /* show only 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 40px; /* keeps height consistent */
}

/* Make cards take slide width */
.swiper-slide .card {
  width: 100%;
  height: auto;
}
.swiper-slide
{
    width:50%;
}
/* Color for arrows */
.swiper-button-prev,
.swiper-button-next {
  color: #eb6402;
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
  color: #333;
}
/* Position the buttons outside the swiper container */
.swiper {
  position: relative; /* ensure reference for absolutely positioned arrows */
  padding: 0 40px;    /* add side space so arrows don't cover cards */
}

.swiper-button-prev,
.swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  z-index: 10;
  color: #eb6402;
}

/* move them outside the container */
.swiper-button-prev {
  left: -10px; /* adjust as needed */
}
.swiper-button-next {
  right: -10PX; /* adjust as needed */
}


/* overlay hidden by default */
.modal-container {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.45);
}

/* visible state — enables overlay + fade */
.modal-container.active {
  display: block;
  animation: fadeIn 0.28s ease-in-out;
}

/* panel */
.modal-content {
  background: #fff;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) translateX(100%); /* off-screen to right */
  padding: 7px 22px;
  width: 100%;
  max-width: 420px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 16px 0 0 16px;
  box-shadow: -6px 6px 25px rgba(0,0,0,0.22);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial;
  transition: transform 0.42s cubic-bezier(.2,.9,.2,1);
}

/* slide-in when active */
.modal-container.active .modal-content {
  transform: translateY(-50%) translateX(0);
}


/* labels & inputs */
.modal-content label {
  display:block;
  font-size:13px;
  margin-bottom:6px;
  color:#333;
  font-weight:600;
}
/* remove old label styles */
.modal-content label {
  display: none;
}

.modal-content input,
.modal-content textarea,
.modal-content button {
  width:100%;
  padding:10px 12px;
  margin-bottom:14px;
  border-radius:8px;
  border:1px solid #d0d0d0;
  font-size:14px;
  font-family:inherit;
  box-sizing:border-box;
  transition: box-shadow .18s, border-color .18s;
}

.modal-content textarea { resize:none; min-height:80px; }

.modal-content input:focus,
.modal-content textarea:focus {
  outline: none;
  border-color: #eb6402;
  box-shadow: 0 0 0 4px rgba(0,123,255,0.06);
}

/* close button */
.modal-close {
  position: absolute;
  right: 12px;
  /*padding: 5px;*/
  width: 10px !important;
  top: 8px;
  font-size: 22px;
  line-height: 1;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #666;
}
.modal-close:hover { color: #666; }
/* submit button */
.modal-content button {
  background:#eb6402;
  color:#fff;
  border: none;
  font-weight:700;
  cursor:pointer;
  padding:11px 14px;
}
.modal-content button:hover { background:var(--gradient-primary) }

/* feedback */
#leadFeedback { color:#155724; }
#leadFeedback.error { color:#842029; }

/* animations */
@keyframes fadeIn {
  from { background-color: rgba(0,0,0,0); }
  to   { background-color: rgba(0,0,0,0.45); }
}

/* mobile: slide up from bottom */
@media (max-width: 480px) {
  .modal-content {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    transform: translateY(100%); /* off-screen bottom */
    border-radius: 12px 12px 0 0;
    max-width: 100%;
    padding:18px;
  }
  .modal-container.active .modal-content {
    transform: translateY(0); /* slide up */
  }
}

.modal-content select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid #eb6402;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  background: #fff;
  appearance: none; /* removes default browser arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: box-shadow .18s, border-color .18s;
}

.modal-content select:focus {
  outline: none;
  border-color: #eb6402;
  box-shadow: 0 0 0 4px rgba(0,123,255,0.06);
}

/* optional custom arrow for select */
.modal-content select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 34px; /* space for arrow */
}
.modal-content select option:hover{
    background: #eb6402 !important;
}
