/* ========================================
   Header & Footer Improvements
   Red & Blue Theme
   ======================================== */

/* ========================================
   HEADER IMPROVEMENTS
   ======================================== */

.header-area {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    background-color: #1a1a2e !important;
    padding: 0;
    box-shadow: 0 4px 25px rgba(0,0,0,0.15) !important;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
    transition: all 0.3s ease;
    border-bottom: 2px solid rgba(231, 76, 60, 0.3);
}

.header-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e74c3c 0%, #3498db 50%, #e74c3c 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.header-area.scrolled {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    background-color: #1a1a2e !important;
    box-shadow: 0 6px 35px rgba(0,0,0,0.25) !important;
}

.background-header,
header.background-header,
.header-area.background-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    background-color: #1a1a2e !important;
    box-shadow: 0 6px 35px rgba(0,0,0,0.25) !important;
}

.background-header .logo,
.background-header .main-nav .nav li a {
    color: rgba(255, 255, 255, 0.9) !important;
}

.background-header .main-nav .nav li:hover a,
.background-header .main-nav .nav li a.active {
    color: #ffffff !important;
}

.header-area .container {
    padding-top: 0;
    padding-bottom: 0;
}

.header-area .row {
    margin: 0;
    align-items: center;
}

.header-area .col-12 {
    padding: 0 15px;
    display: flex;
    align-items: center;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    min-height: 65px;
    height: 65px;
    width: 100%;
}




/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
    height: 65px;
    flex-shrink: 0;
}

.logo h4 {
    font-size: 26px;
    font-weight: 800;
    margin: 0;
    padding: 0;
    line-height: 65px;
    color: #ffffff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
}

.logo h4 span {
    background: linear-gradient(135deg, #e74c3c 0%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo:hover h4 {
    transform: scale(1.05);
    text-shadow: 0 4px 15px rgba(231, 76, 60, 0.5);
}

/* Navigation Menu */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    height: 65px;
    flex-shrink: 0;
}

.main-nav ul li {
    position: relative;
    display: flex;
    align-items: center;
    height: 65px;
}

.main-nav ul li a {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 13px;
    font-weight: 600;
    padding: 0 12px;
    display: flex;
    align-items: center;
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: #ffffff !important;
    background: rgba(231, 76, 60, 0.2) !important;
    transform: translateY(-2px);
}

.header-area .main-nav .nav li a,
.background-header .main-nav .nav li a {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* .header-area .main-nav .nav li:hover a,
.header-area .main-nav .nav li a.active,
.background-header .main-nav .nav li:hover a,
.background-header .main-nav .nav li a.active {
    color: #ffffff !important;
} */

@media (min-width: 992px) {
  .header-area .main-nav .nav li:hover a,
  .header-area .main-nav .nav li a.active,
  .background-header .main-nav .nav li:hover a,
  .background-header .main-nav .nav li a.active {
      color: #ffffff !important;
  }
}



/* Services Dropdown Menu */
.main-nav ul li.has-submenu {
    position: relative;
}

.main-nav ul li.has-submenu > a::after {
    content: '\f107';
    font-family: 'FontAwesome';
    margin-left: 3px;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.main-nav ul li.has-submenu:hover > a::after {
    transform: rotate(180deg);
}

/* Ensure menu items stay in one line */
.main-nav .nav {
    flex-wrap: nowrap;
}

.scroll-to-section {
    flex-shrink: 0;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    width: 720px;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.25), 0 0 0 2px rgba(231, 76, 60, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    margin-top: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    border-top: 3px solid;
    border-image: linear-gradient(90deg, #e74c3c, #3498db) 1;
}

.main-nav ul li.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.submenu-item {
    padding: 20px 18px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    text-decoration: none;
    position: relative;
    overflow: visible;
    min-height: 100px;
}

.submenu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e74c3c, #3498db);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.submenu-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.12), rgba(52, 152, 219, 0.12));
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.submenu-icon i {
    font-size: 24px;
    color: #e74c3c;
    transition: all 0.3s ease;
}

.submenu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.submenu-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: #1e1e1e;
    margin: 0 0 6px 0;
    transition: color 0.3s ease;
    line-height: 1.4;
    display: block;
}

.submenu-content p {
    font-size: 12px;
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
    transition: color 0.3s ease;
    display: block;
    padding-bottom: 2px;
}

.submenu-item:hover {
    background: #ffffff;
    border-color: rgba(231, 76, 60, 0.2);
    box-shadow: 0 8px 24px rgba(231, 76, 60, 0.15);
    transform: translateY(-4px);
}

.submenu-item:hover::before {
    transform: scaleX(1);
}

.submenu-item:hover .submenu-icon {
    background: linear-gradient(135deg, #e74c3c, #3498db);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.submenu-item:hover .submenu-icon i {
    color: #ffffff;
}

.submenu-item:hover .submenu-content h4 {
    color: #e74c3c;
}

.submenu-item:hover .submenu-content p {
    color: #2c3e50;
}

/* Get Started Button */
.main-red-button-hover {
    margin-left: 8px;
    /* display: flex;
    align-items: center; */
    /* height: 40px; */
}

.main-red-button-hover a {
    background: linear-gradient(135deg, #e74c3c 0%, #3498db 100%);
    color: #ffffff !important;
    padding: 9px 20px !important;
    border-radius: 25px;
    font-weight: 600;
    font-size: 12px !important;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(231, 76, 60, 0.35);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: auto;
    letter-spacing: 0.2px;
    position: relative;
    overflow: hidden;
    line-height: 1;
}

.main-red-button-hover a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.main-red-button-hover a:hover::before {
    left: 100%;
}

.main-red-button-hover a:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.45);
    background: linear-gradient(135deg, #c0392b 0%, #2980b9 100%);
}

/* Mobile Menu Toggle */
.menu-trigger {
    display: none;
    width: 40px;
    height: 40px;
    /* background: linear-gradient(135deg, #e74c3c, #3498db); */
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.menu-trigger span {
    position: absolute;
    width: 24px;
    height: 2px;
    background: #ffffff;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.menu-trigger span::before,
.menu-trigger span::after {
content: '';
position: absolute;
width: 24px;
height: 2px;
background: #ffffff;
left: 0;
transition: all 0.3s ease;
}

.menu-trigger span::before {
top: -8px;
}

.menu-trigger span::after {
    bottom: -8px;
}

.menu-trigger.active span {
    background: transparent;
}

.menu-trigger.active span::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-trigger.active span::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* ========================================
   FOOTER IMPROVEMENTS
   ======================================== */

footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c 0%, #3498db 100%);
}

footer::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(231, 76, 60, 0.1) 0%, transparent 70%);
    bottom: -250px;
    right: -250px;
    border-radius: 50%;
}

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

/* Footer Columns */
.footer-item {
    margin-bottom: 40px;
}

.footer-item .logo h4 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #e74c3c 0%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-item h4 {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-bottom: 25px !important;
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.footer-item h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #e74c3c, #3498db);
    border-radius: 2px;
}

.footer-item h5 {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
}

.footer-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Footer Links */
.footer-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-item ul li {
    margin-bottom: 12px;
}

.footer-item ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-item ul li a:hover {
    color: #ffffff;
    padding-left: 8px;
}

.footer-item ul li a:hover i {
    color: #3498db;
    transform: translateX(3px);
}

.footer-item ul li a i {
    transition: all 0.3s ease;
}

/* Social Media Icons */
.footer-item ul.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-item ul.social-icons li {
    margin: 0;
}

.footer-item ul.social-icons li a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff;
    transition: all 0.3s ease;
    padding: 0;
}

.footer-item ul.social-icons li a::before {
    display: none;
}

.footer-item ul.social-icons li a:hover {
    background: linear-gradient(135deg, #e74c3c, #3498db);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4);
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    color: #ffffff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input:focus {
    outline: none;
    border-color: #e74c3c;
    background: rgba(255, 255, 255, 0.1);
}

.newsletter-form button {
    padding: 14px 30px;
    background: linear-gradient(135deg, #e74c3c, #3498db);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(231, 76, 60, 0.4);
}

/* Copyright Section */
.copyright {
    margin-top: 20px;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 991px) {
    .menu-trigger {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .main-nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        gap: 0;
    }
    
    .main-nav ul.active {
        display: flex;
    }
    
    .main-nav ul li {
        width: 100%;
    }
    
    .main-nav ul li a {
        padding: 15px 20px;
    }

 
    /* .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 250px;
        background: rgba(231, 76, 60, 0.05);
        display: none;
       
    }
     */


     /* ===== BEAUTIFIED SUBMENU DESIGN ===== */
.submenu {
    position: static;
    display: none;
    margin: 12px 16px;
    padding: 12px;

    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.95),
        rgba(245,247,250,0.95)
    );

    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);

    opacity: 1;
    visibility: visible;
    transform: none;
}

/* Each submenu item */
.submenu-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 12px 14px;
    margin-bottom: 10px;

    background: #ffffff;
    border-radius: 12px;

    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

/* Remove last gap */
.submenu-item:last-child {
    margin-bottom: 0;
}

/* Hover / tap effect */
.submenu-item:hover {
    background: #f0f4ff;
    transform: translateY(-2px);
}

/* Icon style */
.submenu-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    background: linear-gradient(135deg, #66667a, #21283a);
    color: #ffffff;
    font-size: 16px;
}

/* Content */
.submenu-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1f2937;
}

.submenu-content p {
    font-size: 12px;
    line-height: 1.4;
    color: #6b7280;
}

@media (max-width: 991px) {
    .main-nav ul li.has-submenu.active .submenu {
        display: block;
        margin-top: 150px !important;
    }
}


    /* .main-nav ul li.has-submenu.active .submenu {
        display: block;
        margin-top: 188px !important;
    } */
    
    .main-red-button-hover {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .main-red-button-hover a {
        display: block;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .logo h4 {
        font-size: 15px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
}




/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1);
    }
}

/* Newsletter button hover effect */
.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.5);
}

.newsletter-form input:focus {
    outline: none;
    border-color: #e74c3c;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}


/* footer email */


/* input[type="email"] {
    border: none !important;
} */



/* ================================
   FINAL MOBILE MENU FIX
   ================================ */
@media (max-width: 991px) {

  /* Force normal text color */
  .header-area .main-nav .nav li a,
  .background-header .main-nav .nav li a,
  .main-nav ul li a {
    color: #222 !important;
    background: transparent !important;
    transform: none !important;
  }

  /* REMOVE hover effect completely */
  .header-area .main-nav .nav li:hover a,
  .background-header .main-nav .nav li:hover a,
  .main-nav ul li:hover a {
    color: #222 !important;
    background: transparent !important;
    transform: none !important;
  }

  /* ACTIVE item (highlight visible but not white) */
  .header-area .main-nav .nav li a.active,
  .background-header .main-nav .nav li a.active,
  .main-nav ul li a.active {
    color: #e74c3c !important;
    background: rgba(231, 76, 60, 0.1) !important;
  }

}


@media (max-width: 991px) {

  .submenu {
    padding: 6px !important;
    margin: 8px !important;
  }

  .submenu-item {
    padding: 8px 12px !important;   /* 👈 padding kam */
    margin-bottom: 6px !important;  /* 👈 gap kam */
    min-height: auto !important;    /* 👈 height fix */
  }

  .submenu-content h4 {
    font-size: 13px;
    margin: 0;
    line-height: 1.3;
  }

  .submenu-content p {
    font-size: 11px;
    margin: 0;
  }

}