@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;0,500;1,100;1,300;1,400;1,500&display=swap');

*{
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-transform: capitalize;
    transition: all .2s linear;
    text-decoration: none;
}

html{
    font-size: 62.5%;
}

body{
    overflow-x: hidden;
}

/* ======================
   Header & Navigation
   ====================== */

/* Base Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 46, 95, 0.1);
}

/* Header on Scroll */
.header.scrolled {
    background: rgba(0, 46, 95, 0.95); /* Dark blue background on scroll */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header.scrolled .nav-link {
    color:rgba(255, 255, 255, 0.9);
}

.header.scrolled .nav-link:hover {
    color: #00bfff; 
}

.header.scrolled .nav-link.active {
    color: #00bfff;
}

.header.scrolled .nav-link.active::before {
    background: linear-gradient(90deg, #00bfff, #66d9ff); 
}

.header.scrolled .nav-link::before {
    background: linear-gradient(90deg, #00bfff, #66d9ff); 
}

.header.scrolled .company-name {
    color: white; 
}

.header.scrolled .bar {
    background: white;
}

.header.scrolled .logo-light {
    opacity: 0;
}

.header.scrolled .logo-dark {
    opacity: 1;
    filter: brightness(0) invert(1); /* Make logo white when scrolled */
}

.header.scrolled .header-btn {
    background: linear-gradient(135deg, #00bfff, #66d9ff);
    color: #002e5f;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3);
}

.header.scrolled .header-btn:hover {
    background: linear-gradient(135deg, #66d9ff, #00bfff);
    color: white;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 30px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1002;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-img {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.logo-light {
    opacity: 1;
}

.logo-dark {
    opacity: 0;
}


.company-name {
    margin-left: 12px;
    font-size: 22px;
    font-weight: 700;
    color: #002e5f;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header.scrolled .company-name {
    color: #ffffff;
}

/* Navigation Menu - Desktop only */
.navbar {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-link {
    position: relative;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #002e5f, #00bfff);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-link:hover {
    color: #00bfff;
    transform: translateY(-2px);
}

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

.nav-link.active {
    color: #002e5f;
    font-weight: 600;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1002;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #002e5f, #004a99);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 46, 95, 0.2);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.header-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 46, 95, 0.3);
    background: linear-gradient(135deg, #004a99, #002e5f);
    color: white;
}

.header-btn i {
    font-size: 14px;
}

/* Mobile Menu Button - Hidden on Desktop, Show on Mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.menu-toggle:hover {
    background-color: rgba(0, 46, 95, 0.05);
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    transition: transform 0.3s ease;
}

.bar {
    width: 100%;
    height: 2px;
    background: #002e5f;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ======================
   Responsive Design
   ====================== */

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    .header-container {
        padding: 10px 20px;
    }
    
    .navbar {
        display: none;
    }

     /* Show menu toggle button */
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 14px;
    }
    
    .header-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .company-name {
        font-size: 20px;
        margin-left: 10px;
    }
    
    .logo-img {
        width: 50px;
        height: 50px;
    }
    
    .logo-img img {
        width: 100%;
        height: 100%;
    }
}

/* Mobile (576px - 767px) */
@media (max-width: 767px) {
    .header-container {
        padding: 8px 15px;
    }
    
    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 80px 25px 25px;
        overflow-y: auto;
        display: block;
    }
    
    .navbar.active {
        right: 0;
    }
    
    /* Mobile overlay active */
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Hide desktop nav on mobile */
    .navbar:not(.mobile-nav) {
        display: none;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .nav-menu li {
        width: 100%;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }
    
    .navbar.active .nav-menu li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .navbar.active .nav-menu li:nth-child(1) { transition-delay: 0.1s; }
    .navbar.active .nav-menu li:nth-child(2) { transition-delay: 0.15s; }
    .navbar.active .nav-menu li:nth-child(3) { transition-delay: 0.2s; }
    .navbar.active .nav-menu li:nth-child(4) { transition-delay: 0.25s; }
    .navbar.active .nav-menu li:nth-child(5) { transition-delay: 0.3s; }
    .navbar.active .nav-menu li:nth-child(6) { transition-delay: 0.35s; }
    .navbar.active .nav-menu li:nth-child(7) { transition-delay: 0.4s; }
    
    .nav-link {
        display: block;
        padding: 12px 0;
        font-size: 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        text-transform: none;
        font-weight: 500;
        letter-spacing: 0;
        color: #333 !important; 
    }
    
    .nav-link::before {
        display: none;
    }
    
    .nav-link:hover {
        transform: translateX(5px);
        color: #002e5f !important;
    }
    
    .nav-link.active {
        color: #002e5f !important;
        font-weight: 600;
        background: rgba(0, 46, 95, 0.05);
        padding-left: 15px;
        border-radius: 8px;
        margin-left: -15px;
        padding-right: 15px;
    }
    
    /* Mobile header button */
    .header-btn span {
        display: none;
    }
    
    .header-btn {
        padding: 10px;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
        min-width: 40px;
    }
    
    .header-btn i {
        font-size: 16px;
        margin: 0;
    }
    
    .company-name {
        font-size: 18px;
        margin-left: 8px;
    }
    
    .logo-img {
        width: 45px;
        height: 45px;
    }
    
    .logo-img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    /* Animate hamburger to X */
    .navbar.active ~ .header-actions .hamburger,
    .navbar.active ~ .header-container .hamburger {
        transform: rotate(45deg);
    }
    
    .navbar.active ~ .header-actions .hamburger .bar:nth-child(1),
    .navbar.active ~ .header-container .hamburger .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .navbar.active ~ .header-actions .hamburger .bar:nth-child(2),
    .navbar.active ~ .header-container .hamburger .bar:nth-child(2) {
        opacity: 0;
    }
    
    .navbar.active ~ .header-actions .hamburger .bar:nth-child(3),
    .navbar.active ~ .header-container .hamburger .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Small Mobile (Below 576px) */
@media (max-width: 575px) {
    .header-container {
        padding: 6px 12px;
    }
    
    .navbar {
        width: 100%;
        max-width: none;
        padding: 70px 20px 20px;
    }
    
    .company-name {
        font-size: 16px;
        margin-left: 6px;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .logo-img img {
        width: 100%;
        height: 100%;
    }
    
    .header-btn {
        width: 36px;
        height: 36px;
        padding: 8px;
        min-width: 36px;
    }
    
    .header-btn i {
        font-size: 14px;
    }
    
    .menu-toggle {
        padding: 6px;
        width: 36px;
        height: 36px;
    }
    
    .hamburger {
        width: 20px;
        height: 16px;
    }
    
    .bar {
        height: 2px;
    }
    
    .company-name {
        display: none; /* Very small screens hide company name */
    }
}

/* Extra Small Mobile (Below 400px) */
@media (max-width: 400px) {
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .header-btn {
        width: 32px;
        height: 32px;
        padding: 6px;
        min-width: 32px;
    }
    
    .header-btn i {
        font-size: 12px;
    }
    
    .menu-toggle {
        width: 32px;
        height: 32px;
    }
}

/* Desktop Large Screens */
@media (min-width: 1400px) {
    .header-container {
        padding: 15px 0;
    }
    /* Hide mobile menu button on desktop */
    .menu-toggle {
        display: none !important;
    }
    
    /* Show regular navbar on desktop */
    .navbar {
        display: flex !important;
    }
}

/* end heaer section */

/* ======================
   Footer Section
   ====================== */

.footer {
    background: #002e5f;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%2300bfff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    opacity: 0.3;
}

.footer-top {
    padding: 80px 0 50px;
    position: relative;
    z-index: 1;
}

.footer-links,
.footer-contact,
.footer-newsletter {
    margin-bottom: 30px;
}

.footer h4 {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #00bfff;
    border-radius: 2px;
}

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

.footer-links ul li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

.footer-links ul li:last-child {
    margin-bottom: 0;
}

.footer-links ul li i {
    position: absolute;
    left: 0;
    top: 6px;
    color: #00bfff;
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.footer-links ul li:hover i {
    transform: translateX(5px);
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: #00bfff;
    transform: translateX(5px);
}

.footer-contact p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-contact p strong {
    color: #fff;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 1.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-links a:hover {
    background: #00bfff;
    transform: translateY(-5px);
    border-color: #00bfff;
    box-shadow: 0 10px 20px rgba(0, 191, 255, 0.2);
}

.footer-newsletter p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-newsletter .input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.footer-newsletter .input-group:focus-within {
    border-color: #00bfff;
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
}

.footer-newsletter .form-control {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 25px;
    color: #fff;
    font-size: 1.5rem;
    outline: none;
}

.footer-newsletter .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-newsletter .btn-primary {
    background: linear-gradient(135deg, #00bfff, #0066cc);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.footer-newsletter .btn-primary:hover {
    background: linear-gradient(135deg, #0066cc, #00bfff);
    transform: scale(1.05);
}

.footer-newsletter .alert-success {
    background: rgba(39, 174, 96, 0.2);
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: #27ae60;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.footer-newsletter .text-danger {
    color: #ff6b6b;
    font-size: 1.4rem;
    margin-top: 10px;
    display: block;
}

/* Footer Bottom */
.footer .container:last-child {
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.copyright {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer .text-end p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer .text-end p .heart {
    color: #ff6b6b;
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Modal Styles */
.modal-content {
    background: #fff;
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, #002e5f, #00bfff);
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 25px 30px;
    border-bottom: none;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
}

.btn-close {
    background: transparent;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.modal-body h6 {
    font-size: 1.8rem;
    color: #002e5f;
    margin-bottom: 10px;
    font-weight: 600;
}

.modal-body p {
    font-size: 1.5rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #f0f0f0;
    border-radius: 0 0 20px 20px;
}

.modal-footer .btn-secondary {
    background: #666;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-footer .btn-secondary:hover {
    background: #555;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #002e5f, #00bfff);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.back-to-top:hover {
    background: linear-gradient(135deg, #00bfff, #002e5f);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* ======================
   Responsive Design
   ====================== */

/* Tablet */
@media (max-width: 991px) {
    .footer-top {
        padding: 60px 0 40px;
    }
    
    .footer .row > div {
        margin-bottom: 40px;
    }
    
    .footer .row > div:last-child {
        margin-bottom: 0;
    }
    
    .footer .text-end {
        text-align: left !important;
        margin-top: 20px;
    }
    
    .social-links {
        justify-content: flex-start;
    }
    
    .modal-dialog {
        max-width: 90%;
        margin: 30px auto;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .footer-top {
        padding: 50px 0 30px;
    }
    
    .footer h4 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .footer-links ul li {
        margin-bottom: 12px;
    }
    
    .footer-links ul li a,
    .footer-contact p,
    .footer-newsletter p {
        font-size: 1.4rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
    }
    
    .footer-newsletter .input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        gap: 15px;
    }
    
    .footer-newsletter .form-control {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 50px;
        text-align: center;
    }
    
    .footer-newsletter .btn-primary {
        border-radius: 50px;
        width: 100%;
    }
    
    .copyright,
    .footer .text-end p {
        font-size: 1.4rem;
        text-align: center;
    }
    
    .footer .text-end {
        text-align: center !important;
        margin-top: 15px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .footer-top {
        padding: 40px 0 20px;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-body h6 {
        font-size: 1.6rem;
    }
    
    .modal-body p {
        font-size: 1.4rem;
    }
    
    .modal-footer {
        padding: 15px 20px;
    }
    
    .modal-footer .btn-secondary {
        padding: 10px 25px;
        font-size: 1.4rem;
    }
}