/* ============================================
   ROOT VARIABLES & GLOBAL SETTINGS
============================================ */

:root {
    /* ========== Colors ========== */
    --primary-color: #1569FD;
    --secondary-color: #0B3C5D;

    --bg-main: #FFFFFF;
    --bg-light: #F5F7FA;
    --bg-transparent: transparent;

    --bg-header-fixed: linear-gradient(to right,
            rgba(11, 60, 93, 1) -26%,
            rgba(11, 60, 93, 0.6));

    --bg-mobile: rgba(11, 60, 93, 0.95);

    --text-primary: #1C1C1C;
    --text-secondary: #5F6C7B;
    --text-dark: #1C1C1C;
    --text-white: #FFFFFF;
    --text-light: rgba(255, 255, 255, 0.75);

    --border-color: #E0E0E0;
    --border-light: #ffffff69;
    --border-dark-soft: rgba(0, 0, 0, 0.1);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);

    /* ========== Typography - Font Sizes ========== */
    --font-size-60: 3.75rem;
    --font-size-54: 3.375rem;
    --font-size-44: 2.75rem;
    --font-size-36: 2.25rem;
    --font-size-32: 2rem;
    --font-size-30: 1.875rem;
    --font-size-28: 1.75rem;
    --font-size-26: 1.625rem;
    --font-size-24: 1.5rem;
    --font-size-22: 1.375rem;
    --font-size-20: 1.25rem;
    --font-size-18: 1.125rem;
    --font-size-16: 1rem;
    --font-size-15: 0.9375rem;
    --font-size-14: 0.875rem;
    --font-size-12: 0.75rem;
    --font-size-10: 0.625rem;

    /* ========== Typography - Headings ========== */
    --heading-xl: var(--font-size-60);
    --heading-xl-weight: 700;
    --heading-xl-line: 1.15;

    --heading-lg: var(--font-size-44);
    --heading-lg-weight: 700;
    --heading-lg-line: 1.2;

    --heading-md: var(--font-size-32);
    --heading-md-weight: 600;
    --heading-md-line: 1.3;

    --heading-sm: var(--font-size-24);
    --heading-sm-weight: 600;
    --heading-sm-line: 1.4;

    /* ========== Typography - Paragraphs ========== */
    --text-xl: var(--font-size-20);
    --text-xl-weight: 400;
    --text-xl-line: 1.8;

    --text-lg: var(--font-size-18);
    --text-lg-weight: 400;
    --text-lg-line: 1.8;

    --text-md: var(--font-size-16);
    --text-md-weight: 400;
    --text-md-line: 1.6;

    --text-sm: var(--font-size-14);
    --text-sm-weight: 400;
    --text-sm-line: 1.5;

    /* ========== Font Families ========== */
    --font-primary: 'Mulish', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Mulish', -apple-system, BlinkMacSystemFont, sans-serif;
    --mulish: "Mulish", sans-serif;

    /* ========== Section Spacing ========== */
    --section-padding: 40px;
    --section-padding-lg: 40px;
    --section-padding-md: 40px;
    --section-padding-sm: 40px;

    /* ========== Card & Grid Gaps ========== */
    --card-gap: 20px;
    --card-gap-lg: 20px;
    --card-gap-md: 20px;
    --card-gap-sm: 20px;
}


/* ============================================
   GLOBAL RESET & BASE STYLES
============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: var(--text-md-line);
    font-size: var(--text-md);
}


/* ============================================
   COMMON TYPOGRAPHY CLASSES
============================================ */

.heading-xl {
    font-family: var(--font-heading);
    font-size: var(--heading-xl);
    font-weight: var(--heading-xl-weight);
    line-height: var(--heading-xl-line);
    color: var(--text-dark);
}

.heading-lg {
    font-family: var(--font-heading);
    font-size: var(--heading-lg);
    font-weight: var(--heading-lg-weight);
    line-height: var(--heading-lg-line);
    color: var(--text-dark);
}

.heading-md {
    font-family: var(--font-heading);
    font-size: var(--heading-md);
    font-weight: var(--heading-md-weight);
    line-height: var(--heading-md-line);
    color: var(--text-dark);
}

.heading-sm {
    font-family: var(--font-heading);
    font-size: var(--heading-sm);
    font-weight: var(--heading-sm-weight);
    line-height: var(--heading-sm-line);
    color: var(--text-dark);
}

.text-xl {
    font-family: var(--font-primary);
    font-size: var(--text-xl);
    font-weight: var(--text-xl-weight);
    line-height: var(--text-xl-line);
    color: var(--text-secondary);
}

.text-lg {
    font-family: var(--font-primary);
    font-size: var(--text-lg);
    font-weight: var(--text-lg-weight);
    line-height: var(--text-lg-line);
    color: var(--text-secondary);
}

.text-md {
    font-family: var(--font-primary);
    font-size: var(--text-md);
    font-weight: var(--text-md-weight);
    line-height: var(--text-md-line);
    color: var(--text-secondary);
}

.text-sm {
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: var(--text-sm-weight);
    line-height: var(--text-sm-line);
    color: var(--text-secondary);
}


/* ============================================
   COMMON SECTION STYLES
============================================ */

.section-padding {
    padding: var(--section-padding) 0;
}

.section-padding-lg {
    padding: var(--section-padding-lg) 0;
}

.section-padding-md {
    padding: var(--section-padding-md) 0;
}

.section-padding-sm {
    padding: var(--section-padding-sm) 0;
}


/* ============================================
   COMMON SECTION TAG & TITLE
============================================ */

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(21, 105, 253, 0.2);
    border-left: 3px solid var(--primary-color);
    color: var(--primary-color);
    font-size: var(--font-size-16);
    font-weight: 600;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--heading-lg);
    font-weight: var(--heading-lg-weight);
    line-height: var(--heading-lg-line);
    color: var(--secondary-color);
    margin: 0;
}

.section-heading-center {
    margin-bottom: 20px;
    text-align: center;
}


/* ============================================
   HEADER STYLES
============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.header.scrolled {
    background: var(--bg-header-fixed);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 55px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: var(--font-size-16);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}


/* ============================================
   UNIVERSAL BUTTON STYLES
============================================ */

.btn {
    font-family: var(--mulish);
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-light);
    padding: 1rem 2rem;
    border-radius: 0;
    font-size: var(--font-size-18);
    font-weight: 700;
    line-height: 27px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
    position: relative;
}

.btn i {
    font-size: var(--font-size-14);
    transition: transform 0.3s ease;
}

.btn:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(11, 60, 93, 0.3);
}

.btn:hover i {
    transform: translateX(5px);
}

.btn-medium {
    padding: 0.5rem .9rem;
    font-size: var(--font-size-16);
    font-weight: 500;
    gap: 0.5rem;
}

.btn-medium i {
    font-size: var(--font-size-12);
}


/* ============================================
   MOBILE MENU
============================================ */

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px 12px;
    z-index: 1001;
    border: 1px solid var(--bg-main);
    border-radius: 8px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(11, 60, 93, 0.8);
    border-color: var(--secondary-color);
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    backdrop-filter: blur(10px);
    background: rgba(11, 60, 93, 0.2);
    position: fixed;
    height: 100%;
    z-index: 1000;
    top: 0;
    right: 0;
    width: 300px;
    transform: translate(100%, 0);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: 0.6s cubic-bezier(0.16, 0.71, 0.17, 1);
    overflow: auto;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
}

.mobile-menu.active {
    transform: translate(0, 0);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-logo {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-logo img {
    height: 40px;
}

.mobile-close {
    width: 40px;
    height: 40px;
    border: 1px solid var(--bg-main);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--secondary-color);
    transition: all 0.3s ease;
}

.mobile-close:hover {
    background: rgba(11, 60, 93, 0.8);
    border-color: var(--secondary-color);
}

.mobile-close i {
    color: var(--text-white);
    font-size: var(--font-size-18);
}

.mobile-nav-menu {
    list-style: none;
    padding: 0 2rem;
    margin: 0 0 2rem 0;
}

.mobile-nav-menu li {
    margin-bottom: 0;
    opacity: 0;
    transform: translateX(30px);
    animation: slideInMobile 0.5s forwards;
}

.mobile-nav-menu li:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-menu li:nth-child(2) { animation-delay: 0.15s; }
.mobile-nav-menu li:nth-child(3) { animation-delay: 0.2s; }
.mobile-nav-menu li:nth-child(4) { animation-delay: 0.25s; }
.mobile-nav-menu li:nth-child(5) { animation-delay: 0.3s; }
.mobile-nav-menu li:nth-child(6) { animation-delay: 0.35s; }

.mobile-nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-family: var(--mulish);
    font-size: var(--font-size-16);
    font-weight: 400;
    line-height: 24px;
    display: block;
    padding: 0.875rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--text-white);
    padding-left: 0.75rem;
    opacity: 1;
}

.mobile-nav-link.active {
    color: var(--text-white);
    opacity: 1;
}

@keyframes slideInMobile {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ============================================
   FOOTER STYLES
============================================ */

footer {
    background-color: #F8F9FA;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 20px 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 60px;
    padding-bottom: 50px;
}

.footer-column {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }

.footer-logo {
    display: inline-block;
    margin-bottom: 28px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-logo:hover {
    transform: translateY(-3px);
    opacity: 0.85;
}

.footer-logo img {
    height: 60px;
    width: auto;
    display: block;
}

.footer-about p {
    font-size: var(--text-md);
    font-weight: var(--text-md-weight);
    line-height: var(--text-lg-line);
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #E8EAED;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(21, 105, 253, 0.3);
}

.footer-heading {
    font-size: var(--text-lg);
    font-weight: var(--heading-lg-weight);
    color: var(--secondary-color);
    margin-bottom: 28px;
    position: relative;
}

.footer-links {
    list-style: none;
    padding-left: 0px;
}

.footer-links li {
    margin-bottom: 16px;
    animation: slideInLeft 0.5s ease-out forwards;
    opacity: 0;
}

.footer-links li:nth-child(1) { animation-delay: 0.5s; }
.footer-links li:nth-child(2) { animation-delay: 0.6s; }
.footer-links li:nth-child(3) { animation-delay: 0.7s; }
.footer-links li:nth-child(4) { animation-delay: 0.8s; }
.footer-links li:nth-child(5) { animation-delay: 0.9s; }

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--text-md);
    font-weight: var(--text-md-weight);
    line-height: var(--text-md-line);
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.newsletter-form {
    margin-top: 0;
}

.newsletter-input-wrapper {
    position: relative;
    display: flex;
    gap: 0;
    margin-bottom: 20px;
}

.newsletter-input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 5px 0 0 5px;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-size: var(--text-md);
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: #999;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(21, 105, 253, 0.1);
}

.newsletter-btn {
    padding: 14px 28px;
    background-color: var(--secondary-color);
    color: var(--text-white);
    border: none;
    border-radius: 0 5px 5px 0;
    font-size: var(--text-md);
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(21, 105, 253, 0.3);
}

.newsletter-btn:active {
    transform: scale(0.98);
}

.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: fadeInUp 0.6s ease-out 0.6s forwards;
    opacity: 0;
}

.privacy-checkbox input[type="checkbox"] {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.privacy-checkbox label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--text-md-line);
    cursor: pointer;
}

.privacy-checkbox a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-checkbox a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.footer-bottom {
    background-color: #E8EAED;
    padding: 25px 0;
    text-align: center;
    animation: fadeInUp 0.6s ease-out 0.8s forwards;
    opacity: 0;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-copyright {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--text-sm-line);
}

.footer-copyright a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: var(--primary-color);
}


/* ============================================
   SCROLL TO TOP BUTTON
============================================ */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--bg-header-fixed);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(21, 105, 253, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--primary-color);
    color: var(--bg-main);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(21, 105, 253, 0.4);
}


/* ============================================
   COMMON ANIMATIONS
============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ============================================
   UTILITY CLASSES
============================================ */

.no-scroll {
    overflow: hidden;
    height: 100vh;
}

.mt-60 {
    margin-top: 60px;
}


/* ============================================
   RESPONSIVE STYLES
============================================ */

@media (max-width: 991px) {
    :root {
        --heading-xl: var(--font-size-44);
        --heading-lg: var(--font-size-36);
        --heading-md: var(--font-size-28);
        --heading-sm: var(--font-size-22);
        --section-padding: var(--section-padding-sm);
    }

    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-column:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --heading-xl: var(--font-size-36);
        --heading-lg: var(--font-size-30);
        --heading-md: var(--font-size-24);
        --heading-sm: var(--font-size-20);
        --text-lg: var(--font-size-16);
        --section-padding: var(--section-padding-sm);
    }

    .logo img {
        height: 45px;
    }

    .btn-medium {
        padding: 0.625rem 1.25rem;
        font-size: var(--font-size-14);
    }

    .footer-container {
        padding: 50px 20px 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 40px;
    }

    .footer-column:first-child {
        grid-column: auto;
    }

    .footer-about p {
        max-width: 100%;
    }

    .newsletter-input-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-input {
        border-radius: 5px;
        border-right: 1px solid var(--border-color);
    }

    .newsletter-btn {
        border-radius: 5px;
        width: 100%;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    :root {
        --heading-xl: var(--font-size-30);
        --heading-lg: var(--font-size-26);
        --heading-md: var(--font-size-22);
        --heading-sm: var(--font-size-18);
    }

    .sm-hidden {
        display: none;
    }

    .mobile-menu {
        max-width: 100%;
    }

    .logo img {
        height: 40px;
    }

    .btn-medium {
        font-size: var(--font-size-12);
        padding: 0.5rem 1rem;
        gap: 0.25rem;
    }

    .btn-medium i {
        font-size: var(--font-size-10);
    }

    .footer-logo img {
        height: 50px;
    }

    .footer-social {
        justify-content: flex-start;
    }
}