:root {
    --primary-color: #007AFF;
    --secondary-color: #5856D6;
    --accent-color: #FF6B6B;
    --text-primary: #1D1D1F;
    --text-secondary: #6E6E73;
    --text-muted: #8E8E93;
    --background-primary: #FBFBFD;
    --background-secondary: #F2F2F7;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow-light: 0 8px 32px rgba(31, 38, 135, 0.37);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #FBFBFD 0%, #F2F2F7 50%, #E5E5EA 100%);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Three-Part Navbar Layout */
.navbar-glass {
    background: transparent;
    border: none;
    padding: 1.5rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.navbar-glass.scrolled {
    padding: 1rem 0;
}

.navbar-main-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-brand {
    flex: 0 0 auto;
}

.navbar-brand img {
    height: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.navbar-pill-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 0.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.44) inset, 
                0 4px 20px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-glass.scrolled .navbar-pill-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(25px);
    -webkit-backdrop-filter: saturate(180%) blur(25px);
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.44) inset, 
                0 8px 30px 0 rgba(0, 0, 0, 0.15);
}

.navbar-nav {
    flex-direction: row;
    gap: 0.25rem;
    margin: 0;
}

.navbar-nav .nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    padding: 0.4rem 0.8rem !important;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-radius: 20px;
    font-size: 0.95rem;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(0, 122, 255, 0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 700;
}

.navbar-cta {
    flex: 0 0 auto;
}

.btn-glass {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 122, 255, 0.3);
}

.btn-glass:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.4);
    color: white;
}

.btn-secondary-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(15px);
    -webkit-backdrop-filter: saturate(180%) blur(15px);
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    padding: 14px 32px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.44) inset, 
                0 4px 15px 0 rgba(0, 0, 0, 0.1);
}

.btn-secondary-glass:hover {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.44) inset, 
                0 8px 25px 0 rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
}

.btn-primary-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 14px 32px;
    border-radius: 25px;
    font-weight: 600;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 4px 15px 0 rgba(0, 122, 255, 0.3);
}

.btn-primary-gradient:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px 0 rgba(0, 122, 255, 0.4);
    color: white;
}

/* Section Titles */
.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-title .gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #4A5568 0%, #2D3748 50%, #1A202C 100%);
    position: relative;
    overflow: hidden;
    color: white;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0.2;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(0, 122, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(88, 86, 214, 0.15) 0%, transparent 50%);
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.btn-cta-primary {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(15px);
    -webkit-backdrop-filter: saturate(180%) blur(15px);
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    padding: 16px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.44) inset, 
                0 8px 25px 0 rgba(0, 0, 0, 0.2);
}

.btn-cta-primary:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.44) inset, 
                0 15px 40px 0 rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
}

.btn-cta-secondary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 16px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.4);
}

.btn-cta-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 122, 255, 0.5);
    color: white;
}

/* Footer */
.footer {
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 0.5px solid rgba(0, 0, 0, 0.1);
}

.footer-logo {
    height: 55px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    padding: 0.25rem 0;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-icons a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border: 0.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 0.4rem;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.44) inset, 
                0 2px 8px 0 rgba(0, 0, 0, 0.1);
}

.social-icons a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.44) inset, 
                0 8px 20px 0 rgba(0, 122, 255, 0.4);
}

/* Mobile Hamburger Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 0.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.44) inset, 
                0 4px 20px 0 rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.44) inset, 
                0 8px 25px 0 rgba(0, 122, 255, 0.2);
}

.mobile-menu-toggle:hover .hamburger-line {
    background: var(--primary-color);
}

.mobile-menu-toggle.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.44) inset, 
                0 8px 25px 0 rgba(0, 122, 255, 0.4);
}

.mobile-menu-toggle.active .hamburger-line {
    background: white;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    margin: 2px 0;
    transform-origin: center;
}

/* Mobile Drawer */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 122, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

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

.mobile-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    box-shadow: 0 -10px 40px 0 rgba(0, 122, 255, 0.4);
    z-index: 9999;
    max-height: 85vh;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.mobile-drawer.active {
    transform: translateY(0);
}

.mobile-drawer-handle {
    width: 100px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    margin: 16px auto 0;
    cursor: grab;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mobile-drawer-content {
    overflow-y: auto;
    height: calc(100% - 24px);
}

.drawer-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.drawer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.drawer-logo img {
    height: 45px;
    filter: brightness(0) invert(1);
}

.drawer-navigation {
    padding: 1.5rem 0;
}

.nav-links-section {
    display: flex;
    flex-direction: column;
    padding: 0 1.5rem;
}

.drawer-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.drawer-nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    margin: 0 -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.drawer-nav-link.active {
    color: white;
    font-weight: 600;
}

.drawer-nav-link span {
    font-size: 1rem;
}

.drawer-cta-section {
    margin-top: 2rem;
    padding: 0 1.5rem;
}

.drawer-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(15px);
    -webkit-backdrop-filter: saturate(180%) blur(15px);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 12px;
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.44) inset, 
                0 4px 15px 0 rgba(255, 255, 255, 0.2);
}

.drawer-cta-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.44) inset, 
                0 8px 25px 0 rgba(255, 255, 255, 0.3);
    color: var(--primary-color);
}

/* Mobile Responsive Layout */
@media (max-width: 991px) {
    .navbar-main-container {
        justify-content: space-between;
    }
    
    .navbar-brand img {
        height: 50px;
    }
    
    /* Show mobile hamburger menu */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Add proper mobile margins */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
        padding: 0 15px;
        margin-bottom: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        padding: 0 15px;
        margin-bottom: 3rem;
    }
    
    .navbar-glass {
        padding: 1rem 0;
    }
    
    /* Enhanced mobile spacing */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* CTA buttons mobile spacing */
    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 14px 28px;
        font-size: 0.95rem;
        margin: 0.5rem;
    }
    
    /* Footer mobile spacing */
    .footer {
        padding: 3rem 0 2rem;
    }
    
    .footer .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Mobile drawer tablet optimization */
    .mobile-drawer {
        max-height: 80vh;
    }
    
    .drawer-navigation {
        padding: 2rem 0;
    }
    
    .nav-links-section {
        padding: 0 2rem;
    }
    
    .drawer-cta-section {
        padding: 0 2rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand img {
        height: 38px;
    }
    
    /* Mobile hamburger menu adjustments */
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
    }
    
    .hamburger-line {
        width: 18px;
        height: 1.5px;
    }
    
    /* Extra small mobile margins */
    .container {
        padding-left: 12px;
        padding-right: 12px;
        max-width: 100%;
    }
    
    .section-title {
        font-size: 2.2rem;
        padding: 0 10px;
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 10px;
        line-height: 1.5;
    }
    
    /* CTA section mobile */
    .cta-section {
        padding: 4rem 0;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        padding: 12px 24px;
        font-size: 0.9rem;
        margin: 0.4rem;
        display: block;
        width: calc(100% - 20px);
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    /* Footer mobile adjustments */
    .footer {
        padding: 2.5rem 0 1.5rem;
    }
    
    .footer .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .social-icons {
        margin-top: 1.5rem;
        text-align: center;
    }
    
    .social-icons a {
        width: 38px;
        height: 38px;
        margin: 0 0.3rem;
    }
    
    /* Mobile drawer adjustments for small screens */
    .drawer-logo img {
        height: 40px;
    }
    
    .drawer-nav-link {
        padding: 0.8rem 0;
        font-size: 0.95rem;
    }
    
    .drawer-cta-button {
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
    }
}

/* Mobile Utility Classes */
.mobile-padding {
    padding-left: 15px;
    padding-right: 15px;
}

.mobile-margin {
    margin-left: 15px;
    margin-right: 15px;
}

/* Enhanced Mobile Spacing - Override Bootstrap */
@media (max-width: 768px) {
    .container, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl {
        padding-left: 20px !important;
        padding-right: 20px !important;
        max-width: 100% !important;
    }
}

@media (max-width: 576px) {
    .container, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
    }
    
    /* Ensure text has breathing room */
    .row {
        margin-left: -8px !important;
        margin-right: -8px !important;
    }
    
    .col, .col-12, .col-md-6, .col-lg-4, .col-lg-6, .col-lg-8 {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    /* Override Bootstrap container for better mobile spacing */
    .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Specific text elements mobile spacing */
@media (max-width: 480px) {
    .container, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    /* Extra padding for very small screens */
    p, h1, h2, h3, h4, h5, h6 {
        padding-left: 5px;
        padding-right: 5px;
    }
}

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}