/* ============================================
   CSS Custom Properties (Theme Variables)
   ============================================ */
:root {
    /* Dark Theme (Default) */
    --bg-primary: #0a192f;
    --bg-secondary: #1e293b;
    --bg-tertiary: #0f172a;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --accent-primary: #3b82f6;
    --accent-secondary: #60a5fa;
    --accent-tertiary: #7dd3fc;
    --card-bg: rgba(30, 41, 59, 0.5);
    --card-border: rgba(51, 65, 85, 0.5);
    --nav-bg: rgba(10, 25, 47, 0.8);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --gradient-start: #0a192f;
    --gradient-end: #1e293b;
}

body.light-theme {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --accent-primary: #2563eb;
    --accent-secondary: #3b82f6;
    --accent-tertiary: #60a5fa;
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-border: rgba(226, 232, 240, 0.8);
    --nav-bg: rgba(248, 250, 252, 0.8);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --gradient-start: #f8fafc;
    --gradient-end: #e2e8f0;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
    min-height: 100vh;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 2rem;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.4s ease;
    pointer-events: none;
}

.navbar.visible {
    opacity: 1;
    transform: translateY(0);
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    pointer-events: all;
}

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

.nav-logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--accent-secondary);
}

.theme-toggle {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: rotate(180deg);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a2847 50%, var(--accent-primary) 100%);
}

.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 1s ease;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-container {
    margin-bottom: 3rem;
    animation: logoFadeIn 1.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.5rem;
}

.hero-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(59, 130, 246, 0.5));
    animation: float 6s ease-in-out infinite;
    display: block;
    margin: 0 auto;
}

/* Text Logo with Splash Effect */
.text-logo-wrapper {
    margin-top: -1rem;
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 900px;
}

.text-logo {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem 3rem;
    text-align: center;
    margin: 0 auto;
}

.text-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180%;
    height: 200%;
    background: radial-gradient(ellipse at center,
        rgba(59, 130, 246, 0.7) 0%,
        rgba(96, 165, 250, 0.5) 15%,
        rgba(125, 211, 252, 0.4) 30%,
        rgba(59, 130, 246, 0.2) 50%,
        transparent 80%);
    filter: blur(50px);
    animation: splashPulse 4s ease-in-out infinite;
    z-index: -1;
}

.text-logo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.3) 0%,
        rgba(96, 165, 250, 0.2) 50%,
        rgba(125, 211, 252, 0.15) 100%);
    border-radius: 30px;
    filter: blur(20px);
    z-index: -1;
}

.text-logo-main {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    letter-spacing: 0.2em;
    color: #7dd3fc;
    text-shadow:
        0 0 20px rgba(59, 130, 246, 1),
        0 0 40px rgba(96, 165, 250, 0.8),
        0 0 60px rgba(125, 211, 252, 0.6),
        0 0 80px rgba(59, 130, 246, 0.4),
        3px 3px 6px rgba(0, 0, 0, 0.5);
    -webkit-text-stroke: 2px rgba(59, 130, 246, 0.7);
    animation: textGlow 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.8));
}

.text-logo-domain {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 400;
    letter-spacing: 0.15em;
    color: #e2e8f0;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

body.light-theme .text-logo-main {
    color: #2563eb;
    text-shadow:
        0 0 20px rgba(37, 99, 235, 0.9),
        0 0 40px rgba(59, 130, 246, 0.7),
        0 0 60px rgba(96, 165, 250, 0.5),
        0 0 80px rgba(37, 99, 235, 0.3),
        3px 3px 6px rgba(0, 0, 0, 0.2);
    -webkit-text-stroke: 2px rgba(37, 99, 235, 0.6);
    filter: drop-shadow(0 0 30px rgba(37, 99, 235, 0.7));
}

body.light-theme .text-logo::before {
    background: radial-gradient(ellipse at center,
        rgba(37, 99, 235, 0.6) 0%,
        rgba(59, 130, 246, 0.4) 15%,
        rgba(96, 165, 250, 0.3) 30%,
        rgba(37, 99, 235, 0.15) 50%,
        transparent 80%);
}

body.light-theme .text-logo::after {
    background: linear-gradient(135deg,
        rgba(37, 99, 235, 0.25) 0%,
        rgba(59, 130, 246, 0.15) 50%,
        rgba(96, 165, 250, 0.1) 100%);
}

body.light-theme .text-logo-domain {
    color: #1e293b;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 6rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.title-line-1 {
    background: linear-gradient(135deg, var(--accent-tertiary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease 0.3s both;
}

.title-line-2 {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: clamp(1.5rem, 4vw, 3rem);
    animation: fadeInUp 1s ease 0.6s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease-in-out infinite;
    z-index: 10;
}

.scroll-arrow {
    font-size: 2rem;
    color: var(--accent-secondary);
    opacity: 0.7;
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: 8rem 2rem;
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ============================================
   Coming Soon Section
   ============================================ */
.coming-soon {
    background: var(--bg-secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* ============================================
   Product Cards
   ============================================ */
.product-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px var(--shadow-color),
                0 0 30px rgba(59, 130, 246, 0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.card-icon.large {
    font-size: 4rem;
}

.card-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.coming-soon-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   Live Apps Section
   ============================================ */
.garmin-apps {
    background: var(--bg-primary);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.live-card {
    background: var(--card-bg);
}

.feature-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
    font-weight: bold;
}

.cta-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-tertiary);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--card-border);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-secondary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.footer-domain {
    margin-top: 0.5rem;
    color: var(--accent-secondary);
    font-weight: 500;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

@keyframes splashPulse {
    0%, 100% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow:
            0 0 20px rgba(59, 130, 246, 1),
            0 0 40px rgba(96, 165, 250, 0.8),
            0 0 60px rgba(125, 211, 252, 0.6),
            0 0 80px rgba(59, 130, 246, 0.4),
            3px 3px 6px rgba(0, 0, 0, 0.5);
    }
    50% {
        text-shadow:
            0 0 30px rgba(59, 130, 246, 1),
            0 0 50px rgba(96, 165, 250, 1),
            0 0 70px rgba(125, 211, 252, 0.8),
            0 0 90px rgba(59, 130, 246, 0.6),
            3px 3px 6px rgba(0, 0, 0, 0.5);
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .hero-logo {
        max-width: 280px;
    }

    .text-logo {
        padding: 2rem 2rem;
    }

    .text-logo-main {
        font-size: 2rem;
        letter-spacing: 0.15em;
    }

    .text-logo-domain {
        font-size: 1rem;
    }

    .text-logo::before {
        width: 160%;
        height: 180%;
        filter: blur(40px);
    }

    .section {
        padding: 4rem 1.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .title-line-2 {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .card-icon {
        font-size: 2.5rem;
    }
}