/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00f5ff;
    --secondary: #ff00ff;
    --accent: #ffaa00;
    --dark: #0a0a0f;
    --text: #ffffff;
    --text-muted: #a0a0b0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--dark);
    color: var(--text);
    overflow-x: hidden;
}

/* Animated Background with Gradient Orbs */
.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary), transparent);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--secondary), transparent);
    top: 50%;
    right: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent), transparent);
    bottom: -300px;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, -100px) scale(1.1); }
    66% { transform: translate(-100px, 100px) scale(0.9); }
}

/* Navigation */
.nav {
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 245, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px var(--primary));
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1) rotate(-5deg);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary);
}

.nav-links a:hover::before {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a0a2e 50%, #0a0a0f 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    min-height: calc(100vh - 100px);
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInLeft 1.2s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-word {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: wordFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(0, 245, 255, 0.5));
}

.title-word:nth-child(1) { animation-delay: 0s; }
.title-word:nth-child(2) { animation-delay: 0.3s; }
.title-word:nth-child(3) { animation-delay: 0.6s; }

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

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--text-muted);
    font-weight: 300;
    animation: fadeIn 1.5s ease-out 0.5s both;
}

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

/* Hero Image with Glow Effect */
.hero-image {
    position: relative;
    animation: fadeInRight 1.2s ease-out 0.3s both;
    perspective: 1000px;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--primary), var(--secondary), transparent);
    filter: blur(60px);
    opacity: 0.6;
    animation: pulse 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow:
        0 0 60px rgba(0, 245, 255, 0.4),
        0 0 120px rgba(255, 0, 255, 0.3);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.hero-image:hover img {
    transform: scale(1.05) rotateY(5deg) rotateX(-5deg);
    box-shadow:
        0 0 80px rgba(0, 245, 255, 0.6),
        0 0 160px rgba(255, 0, 255, 0.5);
}

/* Content Section */
.content-section {
    padding: 6rem 3rem;
    background: linear-gradient(180deg, #0a0a0f 0%, #0f0f1a 100%);
    position: relative;
}

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

.card {
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid rgba(0, 245, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-15px);
    border-color: rgba(0, 245, 255, 0.6);
    box-shadow:
        0 20px 60px rgba(0, 245, 255, 0.3),
        inset 0 0 40px rgba(0, 245, 255, 0.1);
}

.card h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.1rem;
}

.project-list {
    list-style: none;
}

.project-list li {
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: rgba(0, 245, 255, 0.05);
    border-left: 3px solid transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.project-list li:hover {
    background: rgba(0, 245, 255, 0.1);
    border-left-color: var(--primary);
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 245, 255, 0.2);
}

.project-list a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.project-list a:hover {
    color: var(--secondary);
    text-shadow: 0 0 10px var(--primary);
}

/* Bike Chooser Page */
.bike-chooser-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 3rem;
    min-height: 100vh;
}

.page-title {
    font-size: 4rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(0, 245, 255, 0.5));
    animation: fadeInUp 0.8s ease;
}

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

.page-subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.distance-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.distance-btn {
    padding: 1.75rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 800;
    background: rgba(20, 20, 30, 0.8);
    color: var(--text);
    border: 2px solid rgba(0, 245, 255, 0.3);
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.distance-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, var(--primary), transparent);
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.distance-btn:hover::before {
    width: 300%;
    height: 300%;
}

.distance-btn:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow:
        0 20px 40px rgba(0, 245, 255, 0.4),
        inset 0 0 30px rgba(0, 245, 255, 0.2);
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary);
}

.distance-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--primary);
    box-shadow:
        0 20px 40px rgba(0, 245, 255, 0.5),
        0 0 60px rgba(0, 245, 255, 0.3);
    color: #0a0a0f;
}

.ride-result {
    margin-top: 3rem;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ride-result.hidden {
    display: none;
}

.result-card {
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid rgba(0, 245, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.ride-name {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.ride-distance {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 700;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 170, 0, 0.15);
    border: 2px solid var(--accent);
    border-radius: 30px;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.3);
}

.ride-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 2.5rem;
}

.coffee-stops h3 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.coffee-stops ul {
    list-style: none;
}

.coffee-stops li {
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    background: rgba(0, 245, 255, 0.05);
    border-left: 3px solid rgba(0, 245, 255, 0.3);
    border-radius: 15px;
    font-size: 1.2rem;
    color: var(--text);
    transition: all 0.3s ease;
}

.coffee-stops li:hover {
    background: rgba(0, 245, 255, 0.15);
    border-left-color: var(--primary);
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 245, 255, 0.3);
}

.coffee-stops li::before {
    content: "☕";
    margin-right: 1rem;
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px var(--accent));
}

.ride-map {
    margin-top: 2.5rem;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(0, 245, 255, 0.2);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a0a2e 100%);
    color: var(--text-muted);
    text-align: center;
    padding: 3rem;
    margin-top: 6rem;
    border-top: 1px solid rgba(0, 245, 255, 0.2);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), var(--accent), transparent);
    animation: glow 3s ease infinite;
}

@keyframes glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        padding: 3rem 1.5rem;
        gap: 3rem;
    }

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

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

    .container {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .distance-selector {
        grid-template-columns: 1fr;
    }

    .nav-content {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .orb-1, .orb-2, .orb-3 {
        width: 300px;
        height: 300px;
    }
}
