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

:root {
    --primary-color: #60a5fa;
    --primary-dark: #3b82f6;
    --secondary-color: #94a3b8;
    --accent-color: #34d399;
    --text-primary: #e8eaed;
    --text-secondary: #cbd5e1;
    --icon-color: #e8eaed;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --border-color: #475569;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --shadow-3d: 0 10px 30px rgba(0, 0, 0, 0.5), 0 1px 8px rgba(0, 0, 0, 0.3);
    --shadow-3d-hover: 0 20px 60px rgba(96, 165, 250, 0.4), 0 5px 15px rgba(0, 0, 0, 0.5);
    --icon-glow: 0 0 20px rgba(232, 234, 237, 0.3);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    perspective: 1000px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
    position: -webkit-sticky; /* Safari */
    position: sticky;
    top: 0;
    z-index: 1000;
    -webkit-backdrop-filter: blur(10px); /* Safari */
    backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid var(--border-color);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    width: 100%;
    overflow: visible;
}

.nav-content {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 1rem 0;
    gap: 1rem;
    -webkit-gap: 1rem; /* Safari */
    min-width: -webkit-min-content;
    min-width: min-content;
    width: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    position: relative;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 900;
}

body.menu-open .nav-overlay {
    opacity: 1;
    pointer-events: auto;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    -webkit-transition: all 0.25s ease;
    transition: all 0.25s ease;
    z-index: 1150;
}

.nav-toggle:hover {
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 12px 28px rgba(96, 165, 250, 0.18);
    background: rgba(15, 23, 42, 0.85);
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 999px;
    position: relative;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 999px;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.nav-toggle-bar::before {
    top: -6px;
}

.nav-toggle-bar::after {
    top: 6px;
}

.nav-toggle.open .nav-toggle-bar {
    background: transparent;
}

.nav-toggle.open .nav-toggle-bar::before {
    top: 0;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    background: var(--primary-color);
    width: 24px;
}

.nav-toggle.open .nav-toggle-bar::after {
    top: 0;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    background: var(--primary-color);
    width: 24px;
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.logo {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.5rem;
    -webkit-gap: 0.5rem; /* Safari */
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    -webkit-flex-shrink: 1;
    -ms-flex-negative: 1;
    flex-shrink: 1;
    white-space: nowrap;
    min-width: 0;
    -webkit-transition: font-size 0.3s ease;
    transition: font-size 0.3s ease;
}

.logo-icon-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 20px rgba(74, 222, 128, 0.4);
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -o-object-fit: contain;
    object-fit: contain;
    -webkit-animation: logo-pulse 2s ease-in-out infinite;
    animation: logo-pulse 2s ease-in-out infinite;
}

.logo:hover .logo-icon-img {
    -webkit-transform: scale(1.15) rotate(8deg) translateZ(8px);
    transform: scale(1.15) rotate(8deg) translateZ(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 40px rgba(74, 222, 128, 0.7);
    -webkit-animation: logo-hover-pulse 0.6s ease-in-out infinite;
    animation: logo-hover-pulse 0.6s ease-in-out infinite;
}

@-webkit-keyframes logo-pulse {
    0%, 100% {
        -webkit-transform: scale(1) translateZ(0);
        transform: scale(1) translateZ(0);
        -webkit-filter: brightness(1);
        filter: brightness(1);
    }
    50% {
        -webkit-transform: scale(1.05) translateZ(2px);
        transform: scale(1.05) translateZ(2px);
        -webkit-filter: brightness(1.1);
        filter: brightness(1.1);
    }
}

@keyframes logo-pulse {
    0%, 100% {
        -webkit-transform: scale(1) translateZ(0);
        transform: scale(1) translateZ(0);
        -webkit-filter: brightness(1);
        filter: brightness(1);
    }
    50% {
        -webkit-transform: scale(1.05) translateZ(2px);
        transform: scale(1.05) translateZ(2px);
        -webkit-filter: brightness(1.1);
        filter: brightness(1.1);
    }
}

@-webkit-keyframes logo-hover-pulse {
    0%, 100% {
        -webkit-transform: scale(1.15) rotate(8deg) translateZ(8px);
        transform: scale(1.15) rotate(8deg) translateZ(8px);
        -webkit-filter: brightness(1.2);
        filter: brightness(1.2);
    }
    50% {
        -webkit-transform: scale(1.2) rotate(8deg) translateZ(10px);
        transform: scale(1.2) rotate(8deg) translateZ(10px);
        -webkit-filter: brightness(1.3);
        filter: brightness(1.3);
    }
}

@keyframes logo-hover-pulse {
    0%, 100% {
        -webkit-transform: scale(1.15) rotate(8deg) translateZ(8px);
        transform: scale(1.15) rotate(8deg) translateZ(8px);
        -webkit-filter: brightness(1.2);
        filter: brightness(1.2);
    }
    50% {
        -webkit-transform: scale(1.2) rotate(8deg) translateZ(10px);
        transform: scale(1.2) rotate(8deg) translateZ(10px);
        -webkit-filter: brightness(1.3);
        filter: brightness(1.3);
    }
}

.nav-links {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    gap: 1.25rem;
    -webkit-gap: 1.25rem; /* Safari */
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: -webkit-min-content;
    min-width: min-content;
    overflow: visible;
    white-space: nowrap;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
}

.nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scaleY(1);
}

@media (max-width: 1024px) {
    .nav-toggle {
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        right: clamp(0.75rem, 4vw, 1.5rem);
        left: auto;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: stretch;
        -webkit-align-items: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
        gap: clamp(0.5rem, 1.5vw, 0.85rem);
        -webkit-gap: clamp(0.5rem, 1.5vw, 0.85rem); /* Safari */
        background: rgba(15, 23, 42, 0.9);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        border: 1px solid var(--border-color);
        border-radius: 1rem;
        padding: clamp(0.75rem, 1.8vw, 1.25rem);
        box-shadow: var(--shadow-3d);
        transform-origin: top right;
        transform: translateY(-8px) scaleY(0);
        opacity: 0;
        pointer-events: none;
        -webkit-transition: opacity 0.2s ease, transform 0.2s ease;
        transition: opacity 0.2s ease, transform 0.2s ease;
        z-index: 1050;
        max-height: min(78vh, 520px);
        overflow-y: auto;
        width: min(420px, 92vw);
        text-align: left;
    }

    .nav-links a {
        width: 100%;
        background: var(--bg-secondary);
        border: 1px solid rgba(148, 163, 184, 0.6);
        border-radius: 0.85rem;
        padding: clamp(0.6rem, 1.5vw, 0.85rem) clamp(0.8rem, 2vw, 1.1rem);
        text-align: left;
        box-shadow: var(--shadow-sm);
        font-weight: 600;
        position: relative;
        overflow: hidden;
        transform-style: preserve-3d;
        -webkit-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links a::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(96, 165, 250, 0.14), transparent 70%);
        opacity: 0;
        pointer-events: none;
        -webkit-transition: opacity 0.25s ease;
        transition: opacity 0.25s ease;
    }

    .nav-links a:hover::before {
        opacity: 1;
    }

    .nav-links a:hover {
        transform: translateY(-2px) translateZ(10px);
        box-shadow: var(--shadow-md);
        border-color: rgba(96, 165, 250, 0.8);
    }

    .donation-links {
        display: none;
    }
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    -webkit-transition: color 0.3s ease, font-size 0.3s ease;
    transition: color 0.3s ease, font-size 0.3s ease;
    white-space: nowrap;
    padding: 0.25rem 0;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    -webkit-flex-basis: auto;
    -ms-flex-preferred-size: auto;
    flex-basis: auto;
    min-width: -webkit-fit-content;
    min-width: fit-content;
}

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

.nav-links a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 8px;
    color: var(--text-primary);
}

@media (min-width: 1025px) {
    .nav-links a {
        position: relative;
        padding: 0.25rem 0;
        -webkit-transition: color 0.2s ease, transform 0.2s ease;
        transition: color 0.2s ease, transform 0.2s ease;
    }

    .nav-links a::before {
        content: '';
        position: absolute;
        left: 50%;
        bottom: -0.2rem;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, rgba(96, 165, 250, 0.1), rgba(96, 165, 250, 0.9), rgba(52, 211, 153, 0.7));
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
        -webkit-transition: width 0.25s ease, opacity 0.25s ease;
        transition: width 0.25s ease, opacity 0.25s ease;
        opacity: 0;
        border-radius: 999px;
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 50% 100%, rgba(96, 165, 250, 0.18), transparent 60%);
        opacity: 0;
        pointer-events: none;
        -webkit-transition: opacity 0.25s ease;
        transition: opacity 0.25s ease;
    }

    .nav-links a:hover::before {
        width: 120%;
        opacity: 1;
    }

    .nav-links a:hover::after {
        opacity: 1;
    }

    .nav-links a:active {
        -webkit-transform: translateY(1px);
        transform: translateY(1px);
        color: var(--text-primary);
    }
}

body.menu-open {
    overflow: hidden;
}

/* Donation Links */
.donation-links {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 0.75rem;
    -webkit-gap: 0.75rem; /* Safari */
    -webkit-flex-shrink: 1;
    -ms-flex-negative: 1;
    flex-shrink: 1;
    white-space: nowrap;
    min-width: 0;
    -webkit-transition: gap 0.3s ease;
    transition: gap 0.3s ease;
}

.donation-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.8rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 2px solid rgba(96, 165, 250, 0.4);
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    min-width: 44px;
    min-height: 44px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(96, 165, 250, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    animation: donation-pulse 3s ease-in-out infinite;
}

.donation-link::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
    animation: donation-shimmer 4s ease-in-out infinite;
    pointer-events: none;
}

.donation-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0.75rem;
    padding: 2px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.5), rgba(52, 211, 153, 0.3), rgba(96, 165, 250, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: border-glow 3s ease-in-out infinite;
}

.donation-icon {
    width: auto;
    height: 26px;
    filter: brightness(1.2) contrast(1.1) drop-shadow(0 0 8px rgba(96, 165, 250, 0.5));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
    position: relative;
    z-index: 2;
}

/* BuyCoffee.to icon - white/light theme like Buy Me a Coffee */
.donation-link:first-child {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.donation-link:first-child .donation-icon {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 15px rgba(96, 165, 250, 0.4));
}

.donation-link:first-child::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.donation-link:first-child::after {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(96, 165, 250, 0.3), rgba(255, 255, 255, 0.4));
}

/* Buy Me a Coffee icon - white/light theme */
.donation-link:last-child .donation-icon {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 15px rgba(96, 165, 250, 0.4));
}

.donation-link .donation-text {
    transition: all 0.3s ease;
}

.donation-link:hover {
    background: linear-gradient(135deg, rgba(30, 41, 59, 1) 0%, rgba(15, 23, 42, 1) 100%);
    border-color: rgba(96, 165, 250, 0.8);
    color: var(--primary-color);
    transform: translateY(-4px) translateZ(10px) scale(1.05);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(96, 165, 250, 0.6),
        0 0 60px rgba(96, 165, 250, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: donation-hover-pulse 1s ease-in-out infinite;
}

.donation-link:first-child:hover {
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(255, 255, 255, 0.5),
        0 0 60px rgba(96, 165, 250, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.donation-link:hover::after {
    opacity: 1;
}

.donation-link:hover .donation-icon {
    transform: scale(1.25) rotate(-8deg) translateZ(5px);
    filter: brightness(1.5) contrast(1.4) drop-shadow(0 0 20px rgba(96, 165, 250, 0.8)) drop-shadow(0 0 30px rgba(96, 165, 250, 0.5));
}

.donation-link:first-child:hover .donation-icon {
    filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 30px rgba(96, 165, 250, 0.7)) drop-shadow(0 0 40px rgba(96, 165, 250, 0.4));
}

.donation-link:last-child:hover .donation-icon {
    filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 30px rgba(96, 165, 250, 0.7)) drop-shadow(0 0 40px rgba(96, 165, 250, 0.4));
}

@keyframes donation-pulse {
    0%, 100% {
        box-shadow: 
            0 4px 12px rgba(0, 0, 0, 0.5),
            0 0 20px rgba(96, 165, 250, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 
            0 4px 12px rgba(0, 0, 0, 0.5),
            0 0 25px rgba(96, 165, 250, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

@keyframes donation-hover-pulse {
    0%, 100% {
        box-shadow: 
            0 8px 24px rgba(0, 0, 0, 0.6),
            0 0 40px rgba(96, 165, 250, 0.6),
            0 0 60px rgba(96, 165, 250, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 8px 24px rgba(0, 0, 0, 0.6),
            0 0 50px rgba(96, 165, 250, 0.8),
            0 0 80px rgba(96, 165, 250, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

@keyframes donation-shimmer {
    0% {
        transform: translate(-100%, -100%) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translate(100%, 100%) rotate(360deg);
        opacity: 0;
    }
}

@keyframes border-glow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
}


/* Hero Section - Simplified */
.hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e1b4b 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.app-icon-large {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.app-icon-img {
    width: 140px;
    height: 140px;
    border-radius: 28px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(74, 222, 128, 0.5),
        0 0 100px rgba(74, 222, 128, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    object-fit: contain;
    animation: icon-float-gentle 3s ease-in-out infinite, icon-glow-pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(74, 222, 128, 0.4));
}

.app-icon-img:hover {
    transform: scale(1.15) translateZ(25px) rotateY(15deg) rotateX(5deg);
    box-shadow: 
        0 20px 80px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(74, 222, 128, 0.8),
        0 0 150px rgba(74, 222, 128, 0.5);
    filter: drop-shadow(0 0 40px rgba(74, 222, 128, 0.8)) brightness(1.1);
    animation: icon-hover-float 1s ease-in-out infinite, icon-hover-glow 0.8s ease-in-out infinite;
}

@keyframes icon-float-gentle {
    0%, 100% {
        transform: translateY(0) translateZ(0) rotateY(0deg);
    }
    25% {
        transform: translateY(-8px) translateZ(5px) rotateY(2deg);
    }
    50% {
        transform: translateY(-12px) translateZ(8px) rotateY(0deg);
    }
    75% {
        transform: translateY(-8px) translateZ(5px) rotateY(-2deg);
    }
}

@keyframes icon-glow-pulse {
    0%, 100% {
        box-shadow: 
            0 10px 40px rgba(0, 0, 0, 0.4),
            0 0 60px rgba(74, 222, 128, 0.5),
            0 0 100px rgba(74, 222, 128, 0.3);
    }
    50% {
        box-shadow: 
            0 10px 40px rgba(0, 0, 0, 0.4),
            0 0 80px rgba(74, 222, 128, 0.7),
            0 0 120px rgba(74, 222, 128, 0.5);
    }
}

@keyframes icon-hover-float {
    0%, 100% {
        transform: scale(1.15) translateY(0) translateZ(25px) rotateY(15deg) rotateX(5deg);
    }
    50% {
        transform: scale(1.18) translateY(-5px) translateZ(30px) rotateY(15deg) rotateX(5deg);
    }
}

@keyframes icon-hover-glow {
    0%, 100% {
        box-shadow: 
            0 20px 80px rgba(0, 0, 0, 0.5),
            0 0 100px rgba(74, 222, 128, 0.8),
            0 0 150px rgba(74, 222, 128, 0.5);
        filter: drop-shadow(0 0 40px rgba(74, 222, 128, 0.8)) brightness(1.1);
    }
    50% {
        box-shadow: 
            0 20px 80px rgba(0, 0, 0, 0.5),
            0 0 120px rgba(74, 222, 128, 1),
            0 0 180px rgba(74, 222, 128, 0.7);
        filter: drop-shadow(0 0 50px rgba(74, 222, 128, 1)) brightness(1.15);
    }
}

/* Geospatial 3D Graphics Effects */
.geospatial-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(96, 165, 250, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: translateZ(-80px) perspective(1000px) rotateX(60deg);
    opacity: 0.4;
    animation: grid-move 20s linear infinite;
    pointer-events: none;
}

@keyframes grid-move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

.terrain-elevation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(96, 165, 250, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 70%, rgba(52, 211, 153, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(96, 165, 250, 0.08) 0%, transparent 50%);
    transform: translateZ(-60px) perspective(800px) rotateX(45deg);
    animation: terrain-pulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes terrain-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: translateZ(-60px) perspective(800px) rotateX(45deg) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateZ(-60px) perspective(800px) rotateX(45deg) scale(1.1);
    }
}

.gps-track-path {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url("data:image/svg+xml,%3Csvg width='300' height='300' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 20 100 Q 50 50, 100 80 T 180 100 Q 220 120, 280 100' stroke='rgba(96,165,250,0.5)' fill='none' stroke-width='3'/%3E%3Cpath d='M 30 200 Q 80 150, 150 180 T 250 200' stroke='rgba(52,211,153,0.4)' fill='none' stroke-width='2.5'/%3E%3C/svg%3E");
    background-size: 300px 300px;
    transform: translateZ(-30px) perspective(600px) rotateX(30deg);
    animation: track-move 15s linear infinite;
    opacity: 0.6;
    pointer-events: none;
    filter: drop-shadow(0 0 3px rgba(96, 165, 250, 0.3));
}

@keyframes track-move {
    0% {
        background-position: 0 0;
        opacity: 0.5;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        background-position: 300px 300px;
        opacity: 0.5;
    }
}

.topographic-contours {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 40%, transparent 20%, rgba(96, 165, 250, 0.05) 20%, rgba(96, 165, 250, 0.05) 25%, transparent 25%),
        radial-gradient(circle at 70% 60%, transparent 25%, rgba(52, 211, 153, 0.05) 25%, rgba(52, 211, 153, 0.05) 30%, transparent 30%),
        radial-gradient(circle at 50% 50%, transparent 15%, rgba(96, 165, 250, 0.05) 15%, rgba(96, 165, 250, 0.05) 20%, transparent 20%),
        radial-gradient(circle at 20% 80%, transparent 30%, rgba(96, 165, 250, 0.05) 30%, rgba(96, 165, 250, 0.05) 35%, transparent 35%);
    transform: translateZ(-70px) perspective(900px) rotateX(50deg);
    animation: contours-shift 12s ease-in-out infinite;
    opacity: 0.6;
    pointer-events: none;
}

@keyframes contours-shift {
    0%, 100% {
        transform: translateZ(-70px) perspective(900px) rotateX(50deg) translateY(0);
    }
    50% {
        transform: translateZ(-70px) perspective(900px) rotateX(50deg) translateY(-20px);
    }
}

/* Additional 3D Geographical Effects */
.terrain-elevation-layer-2 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 60% 20%, rgba(52, 211, 153, 0.12) 0%, transparent 35%),
        radial-gradient(ellipse at 15% 75%, rgba(96, 165, 250, 0.1) 0%, transparent 45%),
        radial-gradient(ellipse at 85% 45%, rgba(147, 51, 234, 0.08) 0%, transparent 40%);
    transform: translateZ(-55px) perspective(850px) rotateX(50deg) rotateY(5deg);
    animation: terrain-layer-2 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes terrain-layer-2 {
    0%, 100% {
        opacity: 0.5;
        transform: translateZ(-55px) perspective(850px) rotateX(50deg) rotateY(5deg) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translateZ(-55px) perspective(850px) rotateX(50deg) rotateY(5deg) scale(1.05);
    }
}

.terrain-elevation-layer-3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 40% 60%, rgba(96, 165, 250, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 25%, rgba(34, 211, 238, 0.08) 0%, transparent 40%);
    transform: translateZ(-45px) perspective(750px) rotateX(55deg) rotateY(-3deg);
    animation: terrain-layer-3 14s ease-in-out infinite;
    pointer-events: none;
}

@keyframes terrain-layer-3 {
    0%, 100% {
        opacity: 0.4;
        transform: translateZ(-45px) perspective(750px) rotateX(55deg) rotateY(-3deg) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translateZ(-45px) perspective(750px) rotateX(55deg) rotateY(-3deg) scale(1.08);
    }
}

.topographic-relief {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(96, 165, 250, 0.06) 0%, transparent 30%),
        linear-gradient(225deg, rgba(52, 211, 153, 0.05) 0%, transparent 35%),
        linear-gradient(45deg, transparent 0%, rgba(96, 165, 250, 0.04) 50%, transparent 100%);
    transform: translateZ(-65px) perspective(950px) rotateX(48deg);
    animation: relief-shift 16s ease-in-out infinite;
    opacity: 0.7;
    pointer-events: none;
}

@keyframes relief-shift {
    0%, 100% {
        transform: translateZ(-65px) perspective(950px) rotateX(48deg) translateX(0);
    }
    50% {
        transform: translateZ(-65px) perspective(950px) rotateX(48deg) translateX(15px);
    }
}

.coordinate-markers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 30%, rgba(96, 165, 250, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 75% 40%, rgba(52, 211, 153, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 50% 70%, rgba(96, 165, 250, 0.3) 2px, transparent 2px),
        radial-gradient(circle at 15% 60%, rgba(147, 51, 234, 0.25) 2px, transparent 2px),
        radial-gradient(circle at 85% 20%, rgba(34, 211, 238, 0.25) 2px, transparent 2px);
    background-size: 100% 100%;
    transform: translateZ(-35px) perspective(700px) rotateX(35deg);
    animation: markers-pulse 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes markers-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: translateZ(-35px) perspective(700px) rotateX(35deg) scale(1);
    }
    50% {
        opacity: 0.9;
        transform: translateZ(-35px) perspective(700px) rotateX(35deg) scale(1.1);
    }
}

.elevation-shading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(to bottom, 
            rgba(96, 165, 250, 0.08) 0%,
            transparent 20%,
            transparent 60%,
            rgba(52, 211, 153, 0.06) 80%,
            rgba(96, 165, 250, 0.04) 100%
        );
    transform: translateZ(-50px) perspective(800px) rotateX(42deg);
    animation: elevation-shift 18s ease-in-out infinite;
    opacity: 0.8;
    pointer-events: none;
}

@keyframes elevation-shift {
    0%, 100% {
        transform: translateZ(-50px) perspective(800px) rotateX(42deg) translateY(0);
    }
    50% {
        transform: translateZ(-50px) perspective(800px) rotateX(42deg) translateY(-25px);
    }
}

.latitude-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(96, 165, 250, 0.08) 1px, transparent 1px);
    background-size: 100% 80px;
    transform: translateZ(-75px) perspective(1000px) rotateX(65deg);
    animation: latitude-move 22s linear infinite;
    opacity: 0.5;
    pointer-events: none;
}

@keyframes latitude-move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 0 80px;
    }
}

.longitude-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(52, 211, 153, 0.08) 1px, transparent 1px);
    background-size: 100px 100%;
    transform: translateZ(-75px) perspective(1000px) rotateX(65deg) rotateY(10deg);
    animation: longitude-move 25s linear infinite;
    opacity: 0.5;
    pointer-events: none;
}

@keyframes longitude-move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 0;
    }
}

.gps-waypoints {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='400' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Cg%3E%3Ccircle cx='100' cy='100' r='3' fill='rgba(96,165,250,0.4)'/%3E%3Ccircle cx='300' cy='150' r='3' fill='rgba(52,211,153,0.4)'/%3E%3Ccircle cx='200' cy='300' r='3' fill='rgba(96,165,250,0.4)'/%3E%3Ccircle cx='350' cy='250' r='3' fill='rgba(147,51,234,0.35)'/%3E%3Ccircle cx='150' cy='200' r='3' fill='rgba(34,211,238,0.35)'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 400px 400px;
    transform: translateZ(-30px) perspective(650px) rotateX(40deg);
    animation: waypoints-move 20s linear infinite;
    opacity: 0.6;
    pointer-events: none;
}

@keyframes waypoints-move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 400px 400px;
    }
}

/* Generated 3D Terrain */
.terrain-3d-base {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, 
            rgba(30, 41, 59, 0.4) 0%,
            rgba(15, 23, 42, 0.3) 25%,
            rgba(30, 41, 59, 0.35) 50%,
            rgba(15, 23, 42, 0.3) 75%,
            rgba(30, 41, 59, 0.4) 100%
        );
    transform: translateZ(-90px) perspective(1200px) rotateX(55deg);
    animation: terrain-base-shift 20s ease-in-out infinite;
    pointer-events: none;
    filter: blur(1px);
}

@keyframes terrain-base-shift {
    0%, 100% {
        transform: translateZ(-90px) perspective(1200px) rotateX(55deg) translateY(0) scale(1);
    }
    50% {
        transform: translateZ(-90px) perspective(1200px) rotateX(55deg) translateY(-10px) scale(1.02);
    }
}

.terrain-3d-mountains {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 25% 35%, rgba(96, 165, 250, 0.25) 0%, rgba(96, 165, 250, 0.15) 15%, transparent 40%),
        radial-gradient(ellipse at 70% 25%, rgba(52, 211, 153, 0.2) 0%, rgba(52, 211, 153, 0.1) 20%, transparent 45%),
        radial-gradient(ellipse at 50% 60%, rgba(96, 165, 250, 0.18) 0%, rgba(96, 165, 250, 0.08) 18%, transparent 42%);
    transform: translateZ(-75px) perspective(1100px) rotateX(52deg) rotateY(2deg);
    animation: mountains-rise 15s ease-in-out infinite;
    pointer-events: none;
    filter: blur(0.5px);
}

@keyframes mountains-rise {
    0%, 100% {
        opacity: 0.7;
        transform: translateZ(-75px) perspective(1100px) rotateX(52deg) rotateY(2deg) scale(1);
    }
    50% {
        opacity: 0.9;
        transform: translateZ(-75px) perspective(1100px) rotateX(52deg) rotateY(2deg) scale(1.05);
    }
}

.terrain-3d-valleys {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 40% 70%, transparent 0%, rgba(15, 23, 42, 0.3) 25%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, transparent 0%, rgba(30, 41, 59, 0.25) 20%, transparent 45%),
        radial-gradient(ellipse at 20% 50%, transparent 0%, rgba(15, 23, 42, 0.2) 22%, transparent 48%);
    transform: translateZ(-85px) perspective(1150px) rotateX(58deg) rotateY(-1deg);
    animation: valleys-deep 18s ease-in-out infinite;
    pointer-events: none;
    filter: blur(1.5px);
}

@keyframes valleys-deep {
    0%, 100% {
        opacity: 0.6;
        transform: translateZ(-85px) perspective(1150px) rotateX(58deg) rotateY(-1deg) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateZ(-85px) perspective(1150px) rotateX(58deg) rotateY(-1deg) scale(1.03);
    }
}

/* Heat Map - Most Frequent Track Points */
.heat-map-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, 
            rgba(239, 68, 68, 0.4) 0%,
            rgba(239, 68, 68, 0.3) 10%,
            rgba(251, 146, 60, 0.2) 20%,
            rgba(251, 146, 60, 0.1) 30%,
            rgba(252, 211, 77, 0.05) 40%,
            transparent 50%
        ),
        radial-gradient(circle at 65% 55%, 
            rgba(239, 68, 68, 0.35) 0%,
            rgba(239, 68, 68, 0.25) 12%,
            rgba(251, 146, 60, 0.15) 25%,
            rgba(251, 146, 60, 0.08) 35%,
            transparent 45%
        ),
        radial-gradient(circle at 50% 70%, 
            rgba(251, 146, 60, 0.3) 0%,
            rgba(251, 146, 60, 0.2) 15%,
            rgba(252, 211, 77, 0.1) 28%,
            transparent 40%
        );
    transform: translateZ(-20px) perspective(500px) rotateX(35deg);
    animation: heat-map-pulse 8s ease-in-out infinite;
    opacity: 0.7;
    pointer-events: none;
    mix-blend-mode: screen;
}

@keyframes heat-map-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: translateZ(-20px) perspective(500px) rotateX(35deg) scale(1);
    }
    50% {
        opacity: 0.85;
        transform: translateZ(-20px) perspective(500px) rotateX(35deg) scale(1.1);
    }
}

.heat-map-hotspots {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 45% 35%, 
            rgba(239, 68, 68, 0.5) 0%,
            rgba(239, 68, 68, 0.3) 8%,
            rgba(251, 146, 60, 0.15) 18%,
            transparent 30%
        ),
        radial-gradient(circle at 75% 60%, 
            rgba(239, 68, 68, 0.45) 0%,
            rgba(251, 146, 60, 0.25) 10%,
            rgba(252, 211, 77, 0.1) 22%,
            transparent 35%
        ),
        radial-gradient(circle at 25% 65%, 
            rgba(251, 146, 60, 0.4) 0%,
            rgba(252, 211, 77, 0.2) 12%,
            transparent 28%
        );
    transform: translateZ(-15px) perspective(450px) rotateX(32deg);
    animation: hotspots-glow 6s ease-in-out infinite;
    pointer-events: none;
    mix-blend-mode: screen;
}

@keyframes hotspots-glow {
    0%, 100% {
        opacity: 0.7;
        transform: translateZ(-15px) perspective(450px) rotateX(32deg) scale(1);
    }
    50% {
        opacity: 0.95;
        transform: translateZ(-15px) perspective(450px) rotateX(32deg) scale(1.15);
    }
}

/* Enhanced GPS Track Paths */
.gps-track-path-2 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='400' height='400' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 50 200 Q 150 100, 250 150 Q 300 180, 350 200' stroke='rgba(96,165,250,0.4)' fill='none' stroke-width='3'/%3E%3Cpath d='M 100 300 Q 200 250, 300 280' stroke='rgba(52,211,153,0.35)' fill='none' stroke-width='2.5'/%3E%3C/svg%3E");
    background-size: 400px 400px;
    transform: translateZ(-25px) perspective(550px) rotateX(28deg);
    animation: track-path-2 18s linear infinite;
    opacity: 0.6;
    pointer-events: none;
}

@keyframes track-path-2 {
    0% {
        background-position: 0 0;
        opacity: 0.5;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        background-position: 400px 400px;
        opacity: 0.5;
    }
}

.gps-track-path-3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='500' height='500' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 80 150 Q 200 80, 320 120 T 450 150' stroke='rgba(147,51,234,0.3)' fill='none' stroke-width='2.5'/%3E%3Cpath d='M 150 350 Q 250 300, 350 320' stroke='rgba(34,211,238,0.3)' fill='none' stroke-width='2'/%3E%3Cpath d='M 200 250 L 300 200 L 400 250' stroke='rgba(96,165,250,0.25)' fill='none' stroke-width='2'/%3E%3C/svg%3E");
    background-size: 500px 500px;
    transform: translateZ(-18px) perspective(500px) rotateX(25deg) rotateY(3deg);
    animation: track-path-3 22s linear infinite;
    opacity: 0.5;
    pointer-events: none;
}

@keyframes track-path-3 {
    0% {
        background-position: 0 0;
        opacity: 0.4;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        background-position: 500px 500px;
        opacity: 0.4;
    }
}

/* Enhanced original GPS track path */
.gps-track-path {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url("data:image/svg+xml,%3Csvg width='300' height='300' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 20 100 Q 50 50, 100 80 T 180 100 Q 220 120, 280 100' stroke='rgba(96,165,250,0.5)' fill='none' stroke-width='3'/%3E%3Cpath d='M 30 200 Q 80 150, 150 180 T 250 200' stroke='rgba(52,211,153,0.4)' fill='none' stroke-width='2.5'/%3E%3C/svg%3E");
    background-size: 300px 300px;
    transform: translateZ(-30px) perspective(600px) rotateX(30deg);
    animation: track-move 15s linear infinite;
    opacity: 0.6;
    pointer-events: none;
    filter: drop-shadow(0 0 3px rgba(96, 165, 250, 0.3));
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-primary);
    box-shadow: 0 8px 20px rgba(96, 165, 250, 0.4), 0 3px 6px rgba(0, 0, 0, 0.3);
    transform-style: preserve-3d;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    border-radius: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translateZ(10px);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-4px) translateZ(20px) rotateX(5deg);
    box-shadow: 0 15px 40px rgba(96, 165, 250, 0.5), 0 5px 15px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(-2px) translateZ(10px) rotateX(2deg);
    box-shadow: 0 8px 20px rgba(96, 165, 250, 0.4), 0 3px 6px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-icon {
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

/* Google Play Badge */
.google-play-badge-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.google-play-badge-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.google-play-badge-link:active {
    transform: translateY(0);
}

.google-play-badge {
    height: auto;
    width: 200px; /* Explicit width for proper display */
    max-width: 200px;
    min-width: 129px; /* Minimum size per Google Play guidelines for screen */
    display: block;
    margin: 0 auto;
}

/* Clear space: one-quarter of badge height (approximately 8-12px for typical badge) */
.hero-buttons .google-play-badge-link,
.download-buttons .google-play-badge-link {
    padding: 0.75rem; /* Clear space around badge */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .google-play-badge {
        max-width: 180px;
        min-width: 129px;
    }
    
    .hero-buttons .google-play-badge-link,
    .download-buttons .google-play-badge-link {
        padding: 0.5rem;
    }
}

/* YouTube Logo */
.youtube-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    background: transparent;
    padding: 0;
    border: none;
    position: relative;
    height: fit-content;
}

.youtube-logo-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.youtube-logo-link:active {
    transform: translateY(0);
}

.youtube-logo {
    height: auto;
    width: 200px; /* Match Google Play badge width */
    max-width: 200px;
    display: block;
    margin: 0;
    object-fit: contain;
    /* SVG acts as border - no additional styling to the shape */
}

.hero-buttons .youtube-logo-link {
    padding: 0;
}

@media (max-width: 768px) {
    .youtube-logo {
        max-width: 180px;
        width: 180px;
    }
    
    .hero-buttons .youtube-logo-link {
        padding: 0;
    }
    
    .youtube-logo-link {
        padding: 0;
    }
}

/* YouTube Logo Footer */
.youtube-logo-link-footer {
    display: inline-block;
    text-decoration: none;
    line-height: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    background: transparent;
    padding: 0;
    border: none;
}

.youtube-logo-link-footer:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.youtube-logo-footer {
    height: auto;
    width: 120px; /* Smaller size for footer */
    max-width: 120px;
    display: block;
    margin: 0;
    /* SVG acts as border - no additional styling to the shape */
}

@media (max-width: 768px) {
    .youtube-logo-footer {
        max-width: 100px;
        width: 100px;
    }
}

/* LinkedIn Logo Footer */
.linkedin-logo-link-footer {
    display: inline-block;
    text-decoration: none;
    line-height: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    background: transparent;
    padding: 0;
    border: none;
    color: transparent !important;
    opacity: 1 !important;
}

.linkedin-logo-link-footer::before {
    display: none !important;
}

.linkedin-logo-link-footer:hover {
    transform: translateY(-2px);
    opacity: 0.9 !important;
    color: transparent !important;
}

.linkedin-logo-link-footer:hover::before {
    display: none !important;
}

.linkedin-logo-link-footer:active {
    transform: translateY(0);
}

.linkedin-logo-footer {
    height: auto;
    width: 120px; /* Smaller size for footer */
    max-width: 120px;
    display: block;
    margin: 0;
    object-fit: contain;
}

@media (max-width: 768px) {
    .linkedin-logo-footer {
        max-width: 100px;
        width: 100px;
    }
}

/* GitHub Logo Footer */
.github-logo-link-footer {
    display: inline-block;
    text-decoration: none;
    line-height: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    background: transparent;
    padding: 0;
    border: none;
    color: transparent !important;
    opacity: 1 !important;
}

.github-logo-link-footer::before {
    display: none !important;
}

.github-logo-link-footer:hover {
    transform: translateY(-2px);
    opacity: 0.9 !important;
    color: transparent !important;
}

.github-logo-link-footer:hover::before {
    display: none !important;
}

.github-logo-link-footer:active {
    transform: translateY(0);
}

.github-logo-footer {
    height: auto;
    width: 120px; /* Smaller size for footer */
    max-width: 120px;
    display: block;
    margin: 0;
    object-fit: contain;
}

@media (max-width: 768px) {
    .github-logo-footer {
        max-width: 100px;
        width: 100px;
    }
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: visible;
    min-height: 600px;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(96, 165, 250, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    transform: translateZ(-50px) perspective(1000px) rotateX(75deg);
    opacity: 0.3;
    pointer-events: none;
    animation: grid-move 30s linear infinite;
}

.features::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(96, 165, 250, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 50%, rgba(52, 211, 153, 0.03) 0%, transparent 50%),
        url('icons/chart.svg') no-repeat 10% 20% / 80px,
        url('icons/map.svg') no-repeat 90% 80% / 60px,
        url('icons/analytics.svg') no-repeat 50% 10% / 70px;
    background-size: 
        100% 100%,
        100% 100%,
        80px 80px,
        60px 60px,
        70px 70px;
    transform: translateZ(-40px) perspective(900px) rotateX(70deg);
    animation: terrain-pulse 12s ease-in-out infinite, icon-float 20s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.15;
}

@keyframes icon-float {
    0%, 100% {
        background-position: 
            10% 20%,
            90% 80%,
            10% 20%,
            90% 80%,
            50% 10%;
    }
    50% {
        background-position: 
            15% 25%,
            85% 75%,
            15% 25%,
            85% 75%,
            55% 15%;
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transform-style: preserve-3d;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(96, 165, 250, 0.2);
    transition: transform 0.3s ease;
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: '';
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: url('icons/chart.svg') no-repeat center;
    background-size: contain;
    opacity: 0.3;
    filter: drop-shadow(0 0 10px rgba(232, 234, 237, 0.3));
}

.section-title:hover {
    transform: translateZ(10px) scale(1.02);
}

.section-title:hover::before {
    opacity: 0.6;
    transform: translateY(-50%) translateZ(10px) scale(1.1);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-3d);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    position: relative;
    border: 1px solid rgba(96, 165, 250, 0.1);
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(96, 165, 250, 0.02) 10px,
            rgba(96, 165, 250, 0.02) 20px
        );
    transform: translateZ(-5px);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1) 0%, transparent 100%);
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    transform: translateZ(5px);
}

.feature-card:hover {
    transform: translateY(-10px) translateZ(30px) rotateX(5deg);
    box-shadow: var(--shadow-3d-hover);
    border-color: rgba(96, 165, 250, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    filter: drop-shadow(var(--icon-glow));
}

.feature-icon .icon-svg,
.feature-icon svg {
    width: 100%;
    height: 100%;
    color: var(--icon-color);
    filter: drop-shadow(0 0 10px rgba(232, 234, 237, 0.4));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-icon {
    transform: translateZ(20px) scale(1.15) rotateY(10deg);
}

.feature-card:hover .feature-icon .icon-svg,
.feature-card:hover .feature-icon svg {
    filter: drop-shadow(0 0 20px rgba(96, 165, 250, 0.6));
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 1.5rem 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-card ul li {
    margin-bottom: 0.875rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.7;
    transition: transform 0.2s ease, color 0.2s ease;
}

.feature-card ul li:last-child {
    margin-bottom: 0;
}

.feature-card ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
    top: 0.1em;
}

.feature-card:hover ul li::before {
    transform: translateX(3px);
    color: var(--accent-color);
}

.feature-card ul li strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Strava Developer Program */
.strava-program {
    padding: 5rem 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.strava-program::before {
    content: '';
    position: absolute;
    inset: -40% 0 auto 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(252, 76, 2, 0.08), transparent 45%),
        radial-gradient(circle at 80% 30%, rgba(96, 165, 250, 0.08), transparent 50%),
        linear-gradient(135deg, rgba(252, 76, 2, 0.04) 0%, rgba(96, 165, 250, 0.04) 100%);
    pointer-events: none;
    transform: translateZ(-20px);
}

.strava-program-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.strava-program-body {
    color: var(--text-secondary);
    margin-top: 1rem;
    line-height: 1.7;
}

.strava-program-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.strava-program-pill {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

.strava-program-image {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-3d);
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.strava-program-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(252, 76, 2, 0.05), rgba(96, 165, 250, 0.05));
    pointer-events: none;
    mix-blend-mode: screen;
}

.strava-program-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.75rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    position: relative;
    z-index: 1;
}

.strava-program-inline {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 1.1rem;
    box-shadow: var(--shadow-3d);
    display: grid;
    grid-template-columns: minmax(260px, 1.3fr) minmax(240px, 1fr);
    gap: 2rem;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.strava-program-inline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.06), rgba(52, 211, 153, 0.05));
    opacity: 0.8;
    pointer-events: none;
}

.strava-program-inline::after {
    content: '';
    position: absolute;
    inset: -40% 0 0 0;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(96, 165, 250, 0.03) 10px,
            rgba(96, 165, 250, 0.03) 20px
        );
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.strava-program-inline:hover {
    transform: translateY(-10px) translateZ(20px) rotateX(3deg);
    box-shadow: var(--shadow-3d-hover);
    border-color: rgba(96, 165, 250, 0.35);
}

.strava-program-inline:hover::after {
    opacity: 1;
}

.strava-program-inline-text h3 {
    margin: 0 0 0.35rem 0;
    color: var(--text-primary);
}

.strava-program-inline-text p {
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.strava-program-inline-text ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
    line-height: 1.8;
}

.strava-program-inline-text ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5em;
    text-indent: -1.5em;
}

.strava-program-inline-text ul li:last-child {
    margin-bottom: 0;
}

.strava-program-inline .strava-program-pills {
    gap: 0.65rem;
    margin-top: 1.05rem;
    justify-content: flex-start;
}

.strava-program-inline-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.strava-program-inline .strava-program-pill {
    background: var(--bg-secondary);
    border-color: rgba(96, 165, 250, 0.25);
    font-weight: 600;
}

.strava-program-inline .strava-program-image {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

/* Code Quality Section */
.code-quality {
    padding: 5rem 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: visible;
    min-height: 600px;
}

.code-quality::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 70% 70%, rgba(52, 211, 153, 0.05) 0%, transparent 40%);
    transform: translateZ(-30px);
    pointer-events: none;
}

.code-quality::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(96, 165, 250, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 211, 153, 0.02) 1px, transparent 1px);
    background-size: 120px 120px;
    transform: translateZ(-25px) perspective(800px) rotateX(80deg);
    opacity: 0.3;
    animation: grid-move 35s linear infinite;
    pointer-events: none;
}

.code-quality-content {
    position: relative;
    z-index: 1;
}

.code-quality-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* Reuse features-grid styles - code-quality section uses features-grid class */
.code-quality .features-grid {
    margin-top: 0;
    margin-bottom: 3rem;
}

/* Reuse feature-card styles - only add image wrapper specific styles */
.code-quality-image-wrapper {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--bg-tertiary);
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.code-quality-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
}

.feature-card:hover .code-quality-img {
    transform: scale(1.05);
}

.code-quality-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.code-quality-stat {
    text-align: center;
    padding: 1.5rem;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.code-quality-stat:hover {
    transform: translateZ(20px) scale(1.1);
}

.code-quality-stat::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) translateZ(-10px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.code-quality-stat:hover::before {
    opacity: 1;
}

.code-quality-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.code-quality-stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .code-quality-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .code-quality-stat-number {
        font-size: 2rem;
    }
    
    .code-quality-intro {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

/* Highlights Section */
.highlights {
    padding: 4rem 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.highlights::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
    transform: translateZ(-20px);
    pointer-events: none;
}

.highlights-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.highlight-item {
    padding: 1.5rem;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.highlight-item:hover {
    transform: translateZ(20px) scale(1.1);
}

.highlight-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) translateZ(-10px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.highlight-item:hover::before {
    opacity: 1;
}

.highlight-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.highlight-label {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Screenshots Section */
.screenshots {
    padding: 5rem 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: visible;
    min-height: 500px;
}

.screenshots::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(96, 165, 250, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 75% 75%, rgba(52, 211, 153, 0.05) 0%, transparent 30%);
    transform: translateZ(-30px);
    pointer-events: none;
}

.screenshots::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(96, 165, 250, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 211, 153, 0.02) 1px, transparent 1px),
        url('icons/map.svg') no-repeat 5% 30% / 50px,
        url('icons/chart.svg') no-repeat 95% 70% / 55px;
    background-size: 
        150px 150px,
        150px 150px,
        50px 50px,
        55px 55px;
    transform: translateZ(-25px) perspective(800px) rotateX(80deg);
    opacity: 0.4;
    animation: grid-move 35s linear infinite, icon-float 25s ease-in-out infinite;
    pointer-events: none;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.screenshot-item {
    background: var(--bg-secondary);
    border-radius: 1rem;
    aspect-ratio: 9/16;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-3d);
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.screenshot-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    transform: translateZ(-10px);
    z-index: 1;
}

.screenshot-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px rgba(96, 165, 250, 0.4), 0 5px 15px rgba(0, 0, 0, 0.5);
    transform: translateY(-8px) translateZ(25px) rotateY(5deg);
}

.screenshot-item:hover::before {
    opacity: 1;
}

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.screenshot-item:hover .screenshot-img {
    transform: scale(1.05) translateZ(15px);
    filter: brightness(1.1);
}

.screenshot-item {
    cursor: pointer;
    position: relative;
}

.screenshot-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
    color: var(--text-primary);
    padding: clamp(0.9rem, 1vw, 1.4rem) clamp(0.8rem, 1vw, 1.25rem) clamp(0.7rem, 1vw, 1.1rem);
    font-size: clamp(0.85rem, 0.9vw, 1rem);
    line-height: 1.4;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 3;
    border-radius: 0 0 1rem 1rem;
}

.screenshot-description:empty {
    font-style: italic;
    opacity: 0.6;
}

.screenshot-description.loading {
    font-style: italic;
    opacity: 0.6;
}

.screenshot-item:hover .screenshot-description {
    opacity: 1;
    transform: translateY(0);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 70%, transparent 100%);
}

/* Screenshot Lightbox Modal */
.screenshot-modal {
    display: none;
    position: fixed !important;
    z-index: 10000;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important; /* Dynamic viewport height */
    max-width: 100vw !important;
    max-height: 100vh !important;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
    flex-direction: column;
    transform: none !important;
    -webkit-transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.screenshot-modal.show {
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: stretch;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    height: 100vh !important;
    height: 100dvh !important; /* Dynamic viewport height for mobile */
    width: 100vw !important;
    width: 100dvw !important; /* Dynamic viewport width for mobile */
    max-height: 100vh !important;
    max-width: 100vw !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    -webkit-transform: none !important;
}

@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Topbar */
.screenshot-modal-topbar {
    position: relative;
    width: 100%;
    padding: 1.5rem 2rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    z-index: 10001;
    flex-shrink: 0;
}

.screenshot-modal-description {
    flex: 1;
    color: var(--text-primary);
    font-size: 1.125rem;
    line-height: 1.6;
    text-align: left;
    padding-right: 2rem;
}

.screenshot-modal-close {
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    user-select: none;
    padding: 0;
    margin: 0;
}

.screenshot-modal-close-icon {
    width: 24px;
    height: 24px;
    display: block;
    transition: all 0.3s ease;
}

.screenshot-modal-close:hover,
.screenshot-modal-close:focus {
    background: rgba(239, 68, 68, 0.8);
    border-color: rgba(239, 68, 68, 0.5);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.screenshot-modal-close:hover .screenshot-modal-close-icon,
.screenshot-modal-close:focus .screenshot-modal-close-icon {
    filter: brightness(1.2);
}

.screenshot-modal-close:active {
    transform: scale(0.95) rotate(90deg);
}

/* Modal Container for Centered Image */
.screenshot-modal-container {
    flex: 1 1 0% !important;
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: center !important;
    -webkit-align-items: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -webkit-box-pack: center !important;
    -webkit-justify-content: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    padding: 2rem;
    width: 100vw !important;
    max-width: 100vw !important;
    height: calc(100vh - 150px) !important;
    max-height: calc(100vh - 150px) !important;
    min-height: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: relative !important;
    z-index: 10001 !important;
    background: rgba(0, 0, 0, 0.3) !important;
    -webkit-box-flex: 1;
    -webkit-flex-grow: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    -webkit-transform: none !important;
    -webkit-overflow-scrolling: touch;
    margin: 0 !important;
    scroll-behavior: auto !important;
}

.screenshot-modal-content {
    display: block !important;
    position: static !important;
    margin: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 90vw !important;
    max-height: calc(100vh - 200px) !important;
    width: auto !important;
    height: auto !important;
    -o-object-fit: contain !important;
    object-fit: contain !important;
    border-radius: 0.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.3s ease;
    -webkit-animation: zoomIn 0.3s ease;
    cursor: pointer;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin: auto !important;
    vertical-align: middle;
    position: static !important;
    z-index: 10002 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-sizing: border-box !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    -webkit-transform: none !important;
}

/* Navigation arrows */
.screenshot-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10003;
    font-size: 2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    opacity: 0.8;
}

.screenshot-modal-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    -webkit-transform: translateY(-50%) scale(1.1);
}

.screenshot-modal-nav:active {
    transform: translateY(-50%) scale(0.95);
    -webkit-transform: translateY(-50%) scale(0.95);
}

.screenshot-modal-nav-left {
    left: 20px;
}

.screenshot-modal-nav-right {
    right: 20px;
}

.screenshot-modal-nav-icon {
    width: 24px;
    height: 24px;
    display: block;
    transition: all 0.3s ease;
    filter: brightness(0) invert(1); /* Make icon white */
}

.screenshot-modal-nav:hover .screenshot-modal-nav-icon {
    filter: brightness(0) invert(1) brightness(1.2);
}

/* Hide navigation buttons on very small screens */
@media (max-width: 640px) {
    .screenshot-modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .screenshot-modal-nav-left {
        left: 10px;
    }
    
    .screenshot-modal-nav-right {
        right: 10px;
    }
}

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

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

@media (max-width: 768px) {
    .screenshot-modal-topbar {
        padding: 1rem 1.5rem;
    }
    
    .screenshot-modal-description {
        font-size: 0.95rem;
        padding-right: 1rem;
    }
    
    .screenshot-modal-close {
        width: 40px;
        height: 40px;
    }
    
    .screenshot-modal-close-icon {
        width: 20px;
        height: 20px;
    }
    
    .screenshot-modal-container {
        padding: 1rem;
        min-height: 0;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        -webkit-box-flex: 1;
        -webkit-flex: 1 1 auto;
        -ms-flex: 1 1 auto;
        flex: 1 1 auto;
    }
    
    .screenshot-modal-content {
        max-width: 95vw;
        max-width: -webkit-calc(95vw);
        max-height: calc(100vh - 140px);
        max-height: -webkit-calc(100vh - 140px);
        width: auto;
        height: auto;
        margin: 0 auto;
        margin: auto;
    }
}

/* Download Section */
.download {
    padding: 5rem 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e1b4b 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: visible;
    border-top: 1px solid var(--border-color);
    min-height: 400px;
}

.download-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 50%, rgba(96, 165, 250, 0.15) 0%, transparent 50%);
    pointer-events: none;
    transform: translateZ(-30px);
}

.download::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, transparent 70%);
    animation: rotate-reverse 25s linear infinite;
    pointer-events: none;
    transform: translateZ(-50px);
}

@keyframes rotate-reverse {
    from {
        transform: translateZ(-50px) rotate(360deg);
    }
    to {
        transform: translateZ(-50px) rotate(0deg);
    }
}
}

.download .section-title,
.download .section-subtitle {
    color: white;
}

.download-buttons {
    margin: 2.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.download-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    font-size: 1.125rem;
}

.download-info p {
    opacity: 0.9;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: visible;
    min-height: 500px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-text h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.about-text ul {
    margin: 1rem 0 1rem 2rem;
    color: var(--text-secondary);
}

.about-text li {
    margin: 0.5rem 0;
}

.about-text strong {
    color: var(--text-primary);
}

/* Release Notes Section */
.release-notes {
    padding: 5rem 0;
    background: var(--bg-primary);
    position: relative;
    overflow: visible;
}

.release-notes-container {
    max-width: 900px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.release-notes-loading {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 2rem;
}

.release-note-item {
    background: var(--bg-secondary);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-3d);
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.release-note-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.release-note-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px rgba(96, 165, 250, 0.3), 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px) translateZ(10px);
}

.release-note-item:hover::before {
    transform: scaleX(1);
}

.release-note-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
    flex-wrap: nowrap;
}

/* YouTube Logo for Release Notes */
.youtube-logo-link-release-notes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    background: transparent;
    padding: 0;
    border: none;
}

.youtube-logo-link-release-notes:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.youtube-logo-link-release-notes:active {
    transform: translateY(0);
}

.youtube-logo-release-notes {
    height: auto;
    width: 140px; /* Appropriate size for release notes header */
    max-width: 140px;
    display: block;
    margin: 0;
    object-fit: contain;
    /* SVG acts as border - no additional styling to the shape */
}

.release-note-version {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.release-note-version::before {
    content: '📦';
    font-size: 1.25rem;
}

.release-note-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

.release-note-content {
    color: var(--text-secondary);
    line-height: 1.8;
}

.release-note-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.release-note-content h4:first-child {
    margin-top: 0;
}

.release-note-content h4::before {
    content: '✨';
    font-size: 1rem;
}

.release-note-content h4[data-section="bug-fixes"]::before {
    content: '🔧';
}

.release-note-content h4[data-section="improvements"]::before {
    content: '⚡';
}

.release-note-content ul {
    margin: 0.5rem 0 1rem 1.5rem;
    list-style: none;
    padding: 0;
}

.release-note-content li {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.release-note-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.release-note-content p {
    margin: 0.5rem 0;
}

@media (max-width: 768px) {
    .release-notes {
        padding: 3rem 0;
    }

    .release-note-item {
        padding: 1.5rem;
    }

    .release-note-header {
        flex-wrap: nowrap;
        gap: 0.75rem;
    }

    .release-note-header .youtube-logo-link-release-notes {
        flex-shrink: 0;
    }

    .release-note-header .youtube-logo-release-notes {
        width: 100px;
        max-width: 100px;
    }
    
    .release-note-version {
        font-size: 1.25rem;
        flex-shrink: 1;
        min-width: 0;
    }

    .release-note-content h4 {
        font-size: 1rem;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: var(--text-primary);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: visible;
    border-top: 1px solid var(--border-color);
    transform-style: preserve-3d;
    z-index: 1;
}

.footer .floating-3d-shape {
    z-index: 0;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(96, 165, 250, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(52, 211, 153, 0.02) 1px, transparent 1px),
        url('icons/map.svg') no-repeat 5% 20% / 60px,
        url('icons/chart.svg') no-repeat 95% 80% / 55px;
    background-size: 
        100px 100px,
        100px 100px,
        60px 60px,
        55px 55px;
    transform: translateZ(-30px) perspective(800px) rotateX(75deg);
    opacity: 0.2;
    animation: grid-move 40s linear infinite, icon-float 30s ease-in-out infinite;
    pointer-events: none;
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(96, 165, 250, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(52, 211, 153, 0.02) 0%, transparent 50%);
    transform: translateZ(-20px);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.footer-section h4:hover {
    transform: translateZ(5px);
    text-shadow: 0 0 15px rgba(96, 165, 250, 0.5);
}

.footer-section p {
    margin: 0.5rem 0;
    opacity: 0.85;
    color: var(--text-secondary);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform-style: preserve-3d;
}

.footer-section p:hover {
    opacity: 1;
    transform: translateX(5px) translateZ(2px);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin: 0.5rem 0;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    opacity: 0.85;
    transition: all 0.3s ease;
    display: inline-block;
    transform-style: preserve-3d;
    position: relative;
}

.footer-section a::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
    transition: transform 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--primary-color);
    transform: translateX(5px) translateZ(3px);
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.4);
}

.footer-section a:hover::before {
    transform: translateY(-50%) scale(1);
}

.footer-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    opacity: 0.7;
    position: relative;
    z-index: 2;
    color: var(--text-secondary);
}

.footer-bottom p {
    margin: 0.5rem 0;
    transition: opacity 0.3s ease;
}

.footer-bottom:hover p {
    opacity: 1;
}

/* Strava Attribution - Compliant with Strava Brand Guidelines */
.strava-attribution {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.strava-logo {
    height: 40px;
    width: auto;
    max-width: 176px;
    opacity: 0.8;
    /* No animations, no modifications - compliant with Strava guidelines */
    /* Logo must be separate and not more prominent than app branding */
}

/* Floating 3D Objects with Icon Theme */
.floating-3d-shape {
    position: absolute;
    width: 80px;
    height: 80px;
    pointer-events: none;
    opacity: 0.6;
    transform-style: preserve-3d;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 15px rgba(232, 234, 237, 0.3));
}

.shape-1 {
    top: 10%;
    left: 10%;
    background-image: url('icons/chart.svg');
    animation: float-shape-1 12s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.3);
}

.shape-2 {
    top: 20%;
    right: 15%;
    background-image: url('icons/map.svg');
    animation: float-shape-2 15s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.3);
}

.shape-3 {
    bottom: 30%;
    left: 20%;
    background-image: url('icons/analytics.svg');
    animation: float-shape-3 18s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(52, 211, 153, 0.3);
}

.shape-4 {
    bottom: 20%;
    right: 10%;
    background-image: url('icons/altitude.svg');
    animation: float-shape-4 14s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.3);
}

.shape-5 {
    top: 15%;
    left: 5%;
    width: 60px;
    height: 60px;
    background-image: url('icons/speed.svg');
    animation: float-shape-5 16s ease-in-out infinite;
    box-shadow: 0 8px 25px rgba(34, 211, 238, 0.3);
}

.shape-6 {
    top: 50%;
    right: 8%;
    width: 70px;
    height: 70px;
    background-image: url('icons/files.svg');
    animation: float-shape-6 13s ease-in-out infinite;
    box-shadow: 0 8px 25px rgba(52, 211, 153, 0.3);
}

.shape-7 {
    top: 25%;
    left: 8%;
    width: 90px;
    height: 90px;
    background-image: url('icons/chart.svg');
    animation: float-shape-7 17s ease-in-out infinite;
    box-shadow: 0 12px 35px rgba(96, 165, 250, 0.3);
}

.shape-8 {
    bottom: 25%;
    right: 12%;
    width: 65px;
    height: 65px;
    background-image: url('icons/map.svg');
    animation: float-shape-8 19s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(52, 211, 153, 0.3);
}

.shape-9 {
    top: 30%;
    right: 5%;
    width: 75px;
    height: 75px;
    background-image: url('icons/analytics.svg');
    animation: float-shape-9 14s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.3);
}

.shape-10 {
    bottom: 15%;
    left: 15%;
    width: 55px;
    height: 55px;
    background-image: url('icons/altitude.svg');
    animation: float-shape-10 20s ease-in-out infinite;
    box-shadow: 0 8px 25px rgba(34, 211, 238, 0.3);
}

/* Floating 3D Cubes with Icon Theme */
.floating-3d-cube {
    position: absolute;
    width: 50px;
    height: 50px;
    pointer-events: none;
    transform-style: preserve-3d;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 15px rgba(232, 234, 237, 0.4));
}

.cube-1 {
    top: 25%;
    right: 20%;
    background-image: url('icons/chart.svg');
    box-shadow: 
        0 0 20px rgba(96, 165, 250, 0.4),
        inset 0 0 20px rgba(96, 165, 250, 0.2);
    animation: rotate-cube-1 15s linear infinite;
}

.cube-2 {
    bottom: 30%;
    left: 25%;
    background-image: url('icons/map.svg');
    box-shadow: 
        0 0 20px rgba(147, 51, 234, 0.4),
        inset 0 0 20px rgba(147, 51, 234, 0.2);
    animation: rotate-cube-2 18s linear infinite;
}

/* Floating 3D Spheres with Icon Theme */
.floating-3d-sphere {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    pointer-events: none;
    transform-style: preserve-3d;
    background-size: 70%;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgba(96, 165, 250, 0.1);
    box-shadow: 
        0 0 30px rgba(96, 165, 250, 0.4),
        inset -10px -10px 20px rgba(0, 0, 0, 0.2);
}

.sphere-1 {
    top: 40%;
    left: 10%;
    background-image: url('icons/analytics.svg');
    animation: float-sphere-1 12s ease-in-out infinite;
}

.sphere-2 {
    bottom: 40%;
    right: 15%;
    background-image: url('icons/speed.svg');
    background-color: rgba(147, 51, 234, 0.1);
    box-shadow: 
        0 0 30px rgba(147, 51, 234, 0.4),
        inset -10px -10px 20px rgba(0, 0, 0, 0.2);
    animation: float-sphere-2 16s ease-in-out infinite;
}

/* Floating 3D Pyramids */
.floating-3d-pyramid {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
    transform-style: preserve-3d;
}

.pyramid-1 {
    top: 35%;
    right: 10%;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 40px solid rgba(96, 165, 250, 0.4);
    filter: drop-shadow(0 10px 20px rgba(96, 165, 250, 0.3));
    animation: rotate-pyramid-1 14s linear infinite;
}

.pyramid-2 {
    bottom: 35%;
    left: 12%;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 45px solid rgba(52, 211, 153, 0.4);
    filter: drop-shadow(0 10px 20px rgba(52, 211, 153, 0.3));
    animation: rotate-pyramid-2 17s linear infinite;
}

/* Animations for Floating Shapes */
@keyframes float-shape-1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) translateZ(0);
    }
    25% {
        transform: translate(30px, -40px) rotate(90deg) translateZ(20px);
    }
    50% {
        transform: translate(60px, -20px) rotate(180deg) translateZ(10px);
    }
    75% {
        transform: translate(30px, 20px) rotate(270deg) translateZ(20px);
    }
}

@keyframes float-shape-2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(-40px, 30px) rotate(120deg) scale(1.1);
    }
    66% {
        transform: translate(-20px, -30px) rotate(240deg) scale(0.9);
    }
}

@keyframes float-shape-3 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(50px, -50px) rotate(180deg);
    }
}

@keyframes float-shape-4 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(-30px, 40px) rotate(90deg) scale(1.15);
    }
    50% {
        transform: translate(-60px, 20px) rotate(180deg) scale(1);
    }
    75% {
        transform: translate(-30px, -20px) rotate(270deg) scale(1.15);
    }
}

@keyframes float-shape-5 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(40px, 50px) rotate(360deg);
    }
}

@keyframes float-shape-6 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(35px, -45px) rotate(120deg) scale(1.2);
    }
    66% {
        transform: translate(15px, 35px) rotate(240deg) scale(0.8);
    }
}

@keyframes float-shape-7 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(-50px, 40px) rotate(180deg);
    }
}

@keyframes float-shape-8 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(35px, -30px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(70px, -10px) rotate(180deg) scale(1);
    }
    75% {
        transform: translate(35px, 20px) rotate(270deg) scale(1.1);
    }
}

@keyframes float-shape-9 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(-40px, -50px) rotate(360deg);
    }
}

@keyframes float-shape-10 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(45px, 30px) rotate(120deg) scale(1.15);
    }
    66% {
        transform: translate(20px, -35px) rotate(240deg) scale(0.85);
    }
}

/* Cube Rotations */
@keyframes rotate-cube-1 {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg) translateZ(30px);
    }
}

@keyframes rotate-cube-2 {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0);
    }
    100% {
        transform: rotateX(-360deg) rotateY(-360deg) rotateZ(-360deg) translateZ(25px);
    }
}

/* Sphere Animations */
@keyframes float-sphere-1 {
    0%, 100% {
        transform: translate(0, 0) translateZ(0) scale(1);
    }
    25% {
        transform: translate(40px, -50px) translateZ(20px) scale(1.1);
    }
    50% {
        transform: translate(80px, -30px) translateZ(10px) scale(1);
    }
    75% {
        transform: translate(40px, 30px) translateZ(20px) scale(1.1);
    }
}

@keyframes float-sphere-2 {
    0%, 100% {
        transform: translate(0, 0) translateZ(0) scale(1);
    }
    33% {
        transform: translate(-50px, 40px) translateZ(25px) scale(1.15);
    }
    66% {
        transform: translate(-25px, -40px) translateZ(15px) scale(0.9);
    }
}

/* Pyramid Rotations */
@keyframes rotate-pyramid-1 {
    0% {
        transform: rotateY(0deg) rotateX(0deg) translateZ(0);
    }
    100% {
        transform: rotateY(360deg) rotateX(180deg) translateZ(20px);
    }
}

@keyframes rotate-pyramid-2 {
    0% {
        transform: rotateY(0deg) rotateX(0deg) translateZ(0);
    }
    100% {
        transform: rotateY(-360deg) rotateX(-180deg) translateZ(25px);
    }
}

/* Enhanced Feature Cards with 3D */
.features {
    position: relative;
    overflow: visible;
}

.feature-card {
    position: relative;
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-links {
        gap: 0.875rem;
        -webkit-gap: 0.875rem; /* Safari */
        -webkit-flex-wrap: nowrap;
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .nav-content {
        gap: 0.75rem;
        -webkit-gap: 0.75rem; /* Safari */
    }

    .screenshots-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 0.75rem;
        -webkit-gap: 0.75rem; /* Safari */
        -webkit-flex-wrap: nowrap;
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    }
    
    .nav-links a {
        font-size: 0.875rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .logo-icon-img {
        width: 34px;
        height: 34px;
    }
    
    .nav-content {
        gap: 0.625rem;
        -webkit-gap: 0.625rem; /* Safari */
    }
    
    .donation-links {
        gap: 0.5rem;
        -webkit-gap: 0.5rem; /* Safari */
    }

    .screenshots-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .nav-content {
        gap: 0.75rem;
        -webkit-gap: 0.75rem; /* Safari */
        -webkit-flex-wrap: nowrap;
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    }

    .nav-links {
        gap: 0.625rem;
        -webkit-gap: 0.625rem; /* Safari */
        -webkit-flex-wrap: nowrap;
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    }
    
    .nav-links a {
        font-size: 0.85rem;
        padding: 0.2rem 0;
    }

    .donation-links {
        gap: 0.5rem;
        -webkit-gap: 0.5rem; /* Safari */
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo-icon-img {
        width: 32px;
        height: 32px;
    }

    .donation-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .donation-link .donation-text {
        display: none;
    }

    .donation-icon {
        height: 18px;
    }

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

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

    .screenshots-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .google-play-badge-link {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .hero-buttons .google-play-badge {
        width: 100%;
        max-width: 200px;
    }
    
    .hero-buttons .youtube-logo-link {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .hero-buttons .youtube-logo {
        width: 100%;
        max-width: 200px;
    }

    .btn {
        width: 100%;
    }

    .floating-3d-shape,
    .floating-3d-cube,
    .floating-3d-sphere,
    .floating-3d-pyramid {
        opacity: 0.3;
        transform: scale(0.7);
    }

    .screenshot-description {
        font-size: 0.8rem;
        padding: 1rem 0.75rem 0.75rem;
        opacity: 1;
        transform: translateY(0);
    }
    
    .screenshot-item:hover .screenshot-description {
        opacity: 1;
        transform: translateY(0);
    }

    .strava-program-inline {
        grid-template-columns: 1fr;
        padding: 1.25rem;
        text-align: center;
        transform: none;
        gap: 1.25rem;
    }

    .strava-program-inline:hover {
        transform: translateY(-6px) translateZ(10px);
    }

    .strava-program-inline-text h3 {
        margin-bottom: 0.35rem;
    }

    .strava-program-inline .strava-program-pills {
        justify-content: center;
    }

    .strava-program-image {
        max-width: 360px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .nav-links {
        gap: 0.5rem;
        -webkit-gap: 0.5rem; /* Safari */
        -webkit-flex-wrap: nowrap;
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
        right: clamp(0.5rem, 3vw, 0.9rem);
        left: clamp(0.5rem, 3vw, 0.9rem);
        width: auto;
        padding: 0.85rem;
        gap: 0.55rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
    
    .logo {
        font-size: 1.15rem;
    }
    
    .logo-icon-img {
        width: 28px;
        height: 28px;
    }
    
    .donation-links {
        gap: 0.4rem;
        -webkit-gap: 0.4rem; /* Safari */
        width: 100%;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
        margin-top: 0.35rem;
    }
    
    .donation-link {
        padding: 0.35rem 0.6rem;
        flex: 1 1 auto;
        max-width: 48%;
        justify-content: center;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0;
    }

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

    .nav-content {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -webkit-flex-direction: row;
        -ms-flex-direction: row;
        flex-direction: row;
        gap: 0.75rem;
        -webkit-gap: 0.75rem; /* Safari */
        -webkit-flex-wrap: nowrap;
        -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
        width: 100%;
        align-items: center;
    }

    .strava-program-inline {
        padding: 0.9rem;
        gap: 0.9rem;
        box-shadow: var(--shadow-md);
        border-radius: 0.85rem;
        text-align: center;
    }

    .strava-program-image {
        max-width: 100%;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

body.menu-open {
    overflow: hidden;
}

/* Selection Color */
::selection {
    background: var(--primary-color);
    color: var(--bg-primary);
}

/* Scrollbar Styling for Dark Mode */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 5px;
}

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

/* Ensure anchored sections are not hidden behind sticky navbar */
section[id] {
    scroll-margin-top: 80px;
}

@media (max-width: 640px) {
    section[id] {
        scroll-margin-top: 96px; /* slightly larger for taller mobile header */
    }
}

/* Mobile header layout: put logo on first row; hamburger + donation buttons on second row */
@media (max-width: 640px) {
    .nav-content {
        -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        align-items: center;
    }

    .logo {
        width: 100%;
        justify-content: flex-start;
        margin-bottom: 0.35rem;
    }

    .nav-toggle {
        order: 2;
        margin-left: auto;
    }

    .donation-links {
        order: 2;
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        gap: 0.4rem;
        -webkit-gap: 0.4rem; /* Safari */
        width: 100%;
        -webkit-box-pack: start;
        -webkit-justify-content: flex-start;
        -ms-flex-pack: start;
        justify-content: flex-start;
    }

    .donation-link {
        -webkit-flex: 1 1 auto;
        -ms-flex-preferred-size: auto;
        flex: 1 1 auto;
        max-width: 48%;
        justify-content: center;
    }
}
