/* Custom Styles for Mobile App Launch Website */

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --accent: #8b5cf6;
    --navbar-height-desktop: 80px;
    --navbar-height-mobile: 64px;
}

header#navbar {
    height: var(--navbar-height-mobile);
}

@media (min-width: 1024px) {
    header#navbar {
        height: var(--navbar-height-desktop);
    }
}

/* Base Typography Adjustments */
h1,
h2,
h3,
h4 {
    letter-spacing: -0.025em;
    font-weight: 800;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 2rem;
    line-height: 1.2;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.3;
}

h4 {
    font-size: 1.25rem;
    line-height: 1.4;
}

@media (min-width: 1024px) {
    h1 {
        font-size: 4.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

/* Navigation Links */
.nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    /* slate-600 */
    transition-property: color;
    transition-duration: 300ms;
    position: relative;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.dark .nav-link {
    color: #94a3b8;
    /* slate-400 */
}

.nav-link:hover,
.nav-link.active {
    color: #0ea5e9;
    /* primary-600 */
}

.dark .nav-link:hover,
.dark .nav-link.active {
    color: #38bdf8;
    /* primary-400 */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0ea5e9;
    transition: all 0.3s;
}

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

/* Mobile Nav Links */
.mobile-nav-link {
    display: block;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    padding-left: 1rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: #334155;
    /* slate-700 */
    border-left: 4px solid transparent;
    transition: all 0.3s;
}

.dark .mobile-nav-link {
    color: #e2e8f0;
    /* slate-200 */
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #0ea5e9;
    border-left-color: #0ea5e9;
}

/* Buttons */
.cta-button {
    padding-left: 2rem;
    padding-right: 2rem;
    border-radius: 9999px;
    font-weight: 700;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 56px;
    cursor: pointer;
}

.cta-button:active {
    transform: scale(0.95);
}

.cta-button.primary {
    background-color: #0284c7;
    color: white;
}

.cta-button.primary:hover {
    background-color: #0369a1;
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.25);
}

.cta-button.secondary {
    background-color: white;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.dark .cta-button.secondary {
    background-color: #1e293b;
    color: white;
    border-color: #334155;
}

.cta-button.secondary:hover {
    background-color: #f8fafc;
}

.dark .cta-button.secondary:hover {
    background-color: #334155;
}

/* Glassmorphism Cards */
.glass-card {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: transform 0.3s;
}

.dark .glass-card {
    background-color: rgba(15, 23, 42, 0.4);
    border-color: rgba(51, 65, 85, 0.5);
}

.glass-card:hover {
    transform: translateY(-8px);
}

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

::-webkit-scrollbar-track {
    background-color: #f8fafc;
}

.dark ::-webkit-scrollbar-track {
    background-color: #0f172a;
}

::-webkit-scrollbar-thumb {
    background-color: #e2e8f0;
    border-radius: 9999px;
    border: 4px solid transparent;
    background-clip: padding-box;
}

.dark ::-webkit-scrollbar-thumb {
    background-color: #1e293b;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #cbd5e1;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background-color: #334155;
}

/* Tablet Adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .cta-button {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        height: 48px;
    }
}

/* Hamburger Fixes */
#mobileMenu.visible {
    visibility: visible;
    pointer-events: auto;
}

#mobileMenu.visible #mobileMenuOverlay {
    opacity: 1;
}

#mobileMenu.visible #mobileMenuDrawer {
    transform: translateX(0);
}

/* Section Spacing */
section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 1024px) {
    section {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}