/* Global Styles */
@import url("https://fonts.googleapis.com/css2?family=Karla:wght@400;700&family=Montserrat:wght@400;700&family=Open+Sans:wght@300;400;500;600;700&family=Source+Sans+Pro:wght@400&family=Lato:wght@400&display=swap");

:root {
    --primary-color: #003E51;
    --secondary-color: #FDCB48;
    --accent-color: #3c97b0;
    --text-dark: #06172F;
    --text-light: #ffffff;
    --bg-dark: #00153E;
    --bg-footer: #061440;
    --font-main: "Open Sans", sans-serif;
    --font-karla: "Karla", sans-serif;
    --font-montserrat: "Montserrat", sans-serif;
    --header-height: 100px;
    --header-scrolled-height: 80px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    margin: 0;
    overflow-x: hidden;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

/* /* Header & Navbar */
header#main-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24.2px 15px;
    background: transparent;
}

header#main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 10px 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.logo-link {
    margin-right: 32px;
}

.logo-link img {
    height: 94px;
    width: auto;
    transition: all 0.4s ease;
}

header#main-header.scrolled .logo-link img {
    height: 60px;
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 18px;
    flex: 1;
    margin-left: 0;
    margin-bottom: 5px;
    list-style: none;
    padding: 0;
    margin-top: 0;
}

@media (min-width: 1024px) {
    .nav-menu {
        display: flex;
    }
}

/* Global Styles */
@import url("https://fonts.googleapis.com/css2?family=Karla:wght@400;700&family=Montserrat:wght@400;700&family=Open+Sans:wght@300;400;500;600;700&family=Source+Sans+Pro:wght@400&family=Lato:wght@400&display=swap");

:root {
    --primary-color: #003E51;
    --secondary-color: #FDCB48;
    --accent-color: #3c97b0;
    --text-dark: #06172F;
    --text-light: #ffffff;
    --bg-dark: #00153E;
    --bg-footer: #061440;
    --font-main: "Open Sans", sans-serif;
    --font-karla: "Karla", sans-serif;
    --font-montserrat: "Montserrat", sans-serif;
    --header-height: 100px;
    --header-scrolled-height: 80px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    margin: 0;
    overflow-x: hidden;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

/* /* Header & Navbar */
header#main-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 33.2px 15px;
    background: transparent;
}

header#main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 33.2px 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e2e8f0;
}

.nav-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
}

.logo-link {
    margin-right: 32px;
}

.logo-link img {
    height: 93.99px !important;
    width: 400px !important;
    max-width: none;
    object-fit: contain;
    object-position: left center;
    transition: all 0.4s ease;
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 18px;
    flex: 1;
    margin-left: 0;
    margin-bottom: 5px;
    list-style: none;
    padding: 0;
    margin-top: 0;
}

@media (min-width: 1024px) {
    .nav-menu {
        display: flex;
    }
}

.nav-group {
    position: relative;
    padding: 0;
    display: flex;
    align-items: center;
}

.nav-link {
    font-size: 18px;
    font-weight: 400;
    color: white;
    display: flex;
    align-items: center;
    gap: 1px;
    transition: color 0.3s ease;
    letter-spacing: 0.1px;
    position: relative;
    padding: 0;
    text-decoration: none;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2.5px;
    background: currentColor;
    transition: width 400ms ease;
}

.nav-link:hover {
    color: white;
    text-decoration: none;
}

.nav-link:hover::after,
.nav-group:hover .nav-link::after,
.nav-link.active::after,
a.nav-link.active::after {
    width: 100%;
}

.nav-link:has(.chevron):hover::after,
.nav-group:hover .nav-link:has(.chevron):after,
.nav-link:has(.chevron).active::after,
a.nav-link:has(.chevron).active::after {
    width: calc(100% - 16px);
}

header#main-header.scrolled .nav-link {
    color: #1e293b;
}

header#main-header.scrolled .nav-link:hover {
    color: #0f172a;
    text-decoration: none;
}

.chevron {
    width: 14px;
    height: 14px;
    font-weight: 600;
    transition: transform 0.3s ease;
    margin-left: 1px;
    margin-bottom: 2px;
}

.nav-group:hover .chevron {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 12px;
    transform: translateY(15px);
    background: white;
    min-width: 170px;
    padding: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 10px 10px -5px rgba(0, 0, 0, .04);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 10;
}

.dropdown::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    height: 20px;
}

.nav-group:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dropdown ul li a {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 14px;
    color: #475569;
    font-weight: 400;
    transition: color 0.3s ease;
    padding: 0;
    text-decoration: none;
}

.dropdown ul li a:hover {
    color: #059669;
    text-decoration: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-right: 16px;
    margin-bottom: 8px;
}



.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    padding: 0;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

header#main-header.scrolled .search-toggle {
    color: rgba(0, 0, 0, 0.9);
}

.search-toggle:hover {
    color: white;
}

header#main-header.scrolled .search-toggle:hover {
    color: black;
}

.search-bar-container {
    position: absolute;
    right: 0;
    background: white;
    border-radius: 99px;
    padding: 4px 16px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #d1d5db;
    width: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
    overflow: hidden;
}

.search-bar-container.active {
    width: 250px;
    opacity: 1;
    visibility: visible;
}

.search-input {
    border: none;
    outline: none;
    background: none;
    width: 100%;
    padding: 4px 8px;
    font-size: 14px;
    color: #374151;
}

.search-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 16px;
    margin-left: 8px;
}

.search-close:hover {
    color: #ef4444;
}

/* Portal Button */
.portal-button {
    background-color: rgba(68, 68, 68, 1);
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    font-size: 18px;
    font-family: "Source Sans Pro", "Lato", sans-serif !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 33px;
    width: auto;
    transition: background-color 200ms ease;
}

.portal-button:hover {
    background-color: #2b2b2b;
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, #00598A 0%, #061541 100%);
    color: white;
    text-align: center;
    padding: 140px 15px 180px;
    overflow: hidden;
}

.hero-content {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero h4 {
    font-size: 24px;
    font-weight: 400;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 120px;
}

/* Problems Section */
.problems {
    background: white;
    padding: 80px 0 160px;
    position: relative;
}

.problems-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 800;
    color: #115b8a;
    margin-bottom: 16px;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 48px;
}

@media (min-width: 768px) {
    .problems-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.problem-item {
    text-align: center;
    padding: 40px 24px;
    transition: transform 0.3s ease;
}

.problem-item:hover {
    transform: translateY(-10px);
}

.problem-icon {
    width: 64px;
    height: 64px;
    background: #f0f9ff;
    color: #0ea5e9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
}

.problem-icon svg {
    width: 32px;
    height: 32px;
}

.problem-item h3 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
}

.problem-item p {
    color: #64748b;
    line-height: 1.6;
    font-size: 16px;
}

.problems-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.problems-wave svg {
    display: block;
    width: 100%;
    height: 120px;
}

/* Customers Section */
.customers {
    background: #003154;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.customers-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.customers h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 24px;
}

.customers-intro {
    font-size: 18px;
    color: #cbd5e1;
    max-width: 900px;
    margin: 0 auto 80px;
    line-height: 1.6;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 64px 48px;
}

@media (min-width: 640px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.benefit-item img {
    width: 64px;
    height: 64px;
    margin-bottom: 32px;
}

.benefit-item h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.benefit-item p {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.6;
}

/* Footer Sections */
.footer-upper {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0;
}

.footer-upper-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-upper-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
}

@media (min-width: 768px) {
    .footer-upper-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.footer-info-columns {
    display: flex;
    gap: 128px;
}

.footer-info-column h3 {
    color: var(--accent-color);
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 12px;
}

.footer-list a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-list a:hover {
    color: var(--secondary-color);
}

.footer-newsletter h3 {
    color: var(--accent-color);
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 24px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input,
.newsletter-form select {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 14px;
}

.form-disclaimer {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    margin: 8px 0;
}

.form-disclaimer a {
    color: #5E7CE2;
    text-decoration: underline;
}

.submit-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.submit-btn:hover {
    background: #0d9488;
    transform: scale(1.05);
}

.footer-main {
    background: var(--bg-footer);
    color: white;
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-container {
    max-width: 1312px;
    /* 82rem */
    margin: 0 auto;
    padding: 0 40px;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding-top: 32px;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        align-items: center;
    }
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    max-width: 400px;
    max-height: 94px;
    height: auto;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-legal a,
.footer-legal span {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: none;
}

.footer-legal a:hover {
    color: white;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: white;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #10b981;
    /* emerald-400 */
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Mobile Menu Button */
.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

header#main-header.scrolled .mobile-menu-toggle {
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.max-7xl {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* Back to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: #2b2d42;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: #3e415a;
    transform: translateY(-5px);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
}