/* CSS Variables */
:root {
    --color-bg: #0a0a0b;
    --color-bg-secondary: #111113;
    --color-bg-tertiary: #18181b;
    --color-text: #fafafa;
    --color-text-secondary: #a1a1aa;
    --color-text-muted: #71717a;
    --color-primary: #3b82f6;
    --color-primary-dark: #2563eb;
    --color-accent: #8b5cf6;
    --color-success: #22c55e;
    --color-border: #27272a;
    --color-border-light: #3f3f46;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Monaco', monospace;
    --transition: 0.3s ease;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent horizontal scroll on mobile */
html, body {
    max-width: 100vw;
}

/* Mobile menu overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Improve touch scrolling on iOS */
@supports (-webkit-touch-callout: none) {
    .section {
        -webkit-overflow-scrolling: touch;
    }
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 10, 11, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

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

.nav-logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-menu a {
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--color-text);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 24px 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(139, 92, 246, 0.1), transparent);
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-greeting {
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.hero-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--color-text), var(--color-text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(20px, 3vw, 28px);
    color: var(--color-text-secondary);
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 500px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: var(--color-bg-tertiary);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-border);
    border-color: var(--color-border-light);
}

.btn-app {
    background: transparent;
    color: var(--color-primary);
    padding: 12px 0;
    font-weight: 500;
}

.btn-app:hover {
    gap: 12px;
}

.btn-app svg {
    width: 16px;
    height: 16px;
}

/* Code Window */
.hero-visual {
    display: flex;
    justify-content: center;
}

.code-window {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
}

.code-header {
    display: flex;
    gap: 8px;
    padding: 14px 16px;
    background: var(--color-bg-tertiary);
    border-bottom: 1px solid var(--color-border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.code-content {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.8;
    overflow-x: auto;
}

.code-content code {
    display: block;
}

.keyword { color: #ff79c6; }
.type { color: #8be9fd; }
.string { color: #f1fa8c; }
.number { color: #bd93f9; }
.function { color: #50fa7b; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 12px;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--color-text-muted);
    border-bottom: 2px solid var(--color-text-muted);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
    40% { transform: rotate(45deg) translateY(8px); }
    60% { transform: rotate(45deg) translateY(4px); }
}

/* Sections */
.section {
    padding: 100px 24px;
}

.section-title {
    font-size: clamp(32px, 4vw, 42px);
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 60px;
}

/* About Section */
.about {
    background: var(--color-bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: start;
}

.about-text {
    max-width: 700px;
}

.about-text .lead {
    font-size: 20px;
    color: var(--color-text);
    margin-bottom: 24px;
    line-height: 1.7;
}

.about-text p {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

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

.highlight-box {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin: 32px 0;
}

.highlight-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: var(--radius-sm);
}

.highlight-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.highlight-content h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.highlight-content p {
    font-size: 14px;
    margin: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-card {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.skill-category {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}

.skill-category:hover {
    border-color: var(--color-border-light);
    transform: translateY(-4px);
}

.skill-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.skill-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.skill-category h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.skill-category p {
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.skill-badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
}

.skill-badge.primary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    color: var(--color-primary);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.skill-tags li {
    padding: 6px 12px;
    background: var(--color-bg-tertiary);
    border-radius: 20px;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.domains {
    text-align: center;
}

.domains h3 {
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--color-text-secondary);
}

.domain-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.domain-tag {
    padding: 10px 20px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    font-size: 14px;
    color: var(--color-text-secondary);
    transition: var(--transition);
}

.domain-tag:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Expertise Section */
.expertise {
    background: var(--color-bg-secondary);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.expertise-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px;
    transition: var(--transition);
}

.expertise-card:hover {
    border-color: var(--color-border-light);
    transform: translateY(-4px);
}

.expertise-card.featured {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
    border-color: rgba(59, 130, 246, 0.3);
}

.expertise-card.featured:hover {
    border-color: rgba(59, 130, 246, 0.5);
}

.expertise-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.expertise-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: var(--radius-sm);
}

.expertise-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.expertise-icon.ble {
    background: linear-gradient(135deg, #0082fc, #00c3ff);
}

.expertise-icon.iot {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.expertise-icon.mobile {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.expertise-icon.backend {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.expertise-badge {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    color: var(--color-primary);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.expertise-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.expertise-card p {
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.expertise-card p strong {
    color: var(--color-text);
}

.expertise-highlights {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.expertise-highlights li {
    padding: 6px 12px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 12px;
    color: var(--color-text-secondary);
}

.expertise-summary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
}

.summary-content h3 {
    font-size: 24px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.summary-content p {
    color: var(--color-text-secondary);
    font-size: 16px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.summary-content p strong {
    color: var(--color-text);
}

/* Apps Section */
.apps {
    background: var(--color-bg);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
}

.app-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.app-card:hover {
    border-color: var(--color-border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.app-preview {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.flags-preview {
    background: linear-gradient(135deg, #1e3a5f, #0d1b2a);
}

.blocks-preview {
    background: linear-gradient(135deg, #2d1b4e, #1a0d2e);
}

.app-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.app-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.app-content {
    padding: 28px;
}

.app-content h3 {
    font-size: 22px;
    margin-bottom: 4px;
}

.app-tagline {
    color: var(--color-text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.app-description {
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.app-features {
    list-style: none;
    margin-bottom: 24px;
}

.app-features li {
    position: relative;
    padding-left: 20px;
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.app-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* Cycling Section */
.cycling-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cycling-text h3 {
    font-size: 28px;
    margin-bottom: 16px;
}

.cycling-text .lead {
    font-size: 18px;
    color: var(--color-text);
    margin-bottom: 20px;
    line-height: 1.7;
}

.cycling-text p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.cycling-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cycling-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.cycling-link svg {
    width: 20px;
    height: 20px;
}

.cycling-link.strava {
    background: rgba(252, 76, 2, 0.1);
    color: #fc4c02;
    border: 1px solid rgba(252, 76, 2, 0.2);
}

.cycling-link.strava:hover {
    background: rgba(252, 76, 2, 0.2);
}

.cycling-link.youtube {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.cycling-link.youtube:hover {
    background: rgba(255, 0, 0, 0.2);
}

.cycling-visual {
    display: flex;
    justify-content: center;
}

.cycling-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cycling-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.cycling-stat svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.cycling-stat span {
    font-size: 16px;
    font-weight: 500;
}

/* Contact Section */
.contact {
    background: var(--color-bg-secondary);
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.contact-card svg {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.contact-card.email svg { color: #ea4335; }
.contact-card.email:hover { border-color: #ea4335; }

.contact-card.linkedin svg { color: #0a66c2; }
.contact-card.linkedin:hover { border-color: #0a66c2; }

.contact-card.strava svg { color: #fc4c02; }
.contact-card.strava:hover { border-color: #fc4c02; }

.contact-card.youtube svg { color: #ff0000; }
.contact-card.youtube:hover { border-color: #ff0000; }

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-platform {
    font-size: 18px;
    font-weight: 600;
}

.contact-action {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* Footer */
.footer {
    padding: 40px 24px;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.footer p {
    color: var(--color-text-muted);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .code-window {
        max-width: 400px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        max-width: 400px;
        margin: 0 auto;
    }

    .cycling-content {
        grid-template-columns: 1fr;
    }

    .cycling-visual {
        order: -1;
    }

    .cycling-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

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

@media (max-width: 768px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-bg-secondary);
        flex-direction: column;
        padding: 80px 40px;
        gap: 24px;
        transition: var(--transition);
        border-left: 1px solid var(--color-border);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        font-size: 18px;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .section {
        padding: 80px 20px;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 12px;
    }

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

    .highlight-box {
        flex-direction: column;
        text-align: center;
    }

    .highlight-icon {
        margin: 0 auto;
    }

    .about-text .lead {
        font-size: 18px;
    }

    .about-text p {
        font-size: 15px;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

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

    .cycling-links {
        flex-direction: column;
    }

    .cycling-stats {
        flex-direction: column;
    }

    .expertise-header {
        flex-direction: column;
        gap: 12px;
    }

    .expertise-badge {
        align-self: flex-start;
    }

    .domains h3 {
        font-size: 18px;
    }

    /* Touch-friendly tap targets */
    .btn {
        min-height: 48px;
    }

    .nav-menu a {
        padding: 8px 0;
    }

    .contact-card {
        min-height: 80px;
    }

    .cycling-link {
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 16px 40px;
        min-height: auto;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .code-window {
        max-width: 100%;
    }

    .code-content {
        font-size: 11px;
        padding: 12px;
        overflow-x: auto;
    }

    .code-content code {
        white-space: pre;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .section {
        padding: 60px 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 15px;
        margin-bottom: 40px;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 11px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .skill-category {
        padding: 24px;
    }

    .skill-category h3 {
        font-size: 16px;
    }

    .skill-category p {
        font-size: 13px;
    }

    .domain-tags {
        gap: 8px;
    }

    .domain-tag {
        padding: 8px 14px;
        font-size: 12px;
    }

    .expertise-card {
        padding: 24px;
    }

    .expertise-card h3 {
        font-size: 18px;
    }

    .expertise-card p {
        font-size: 13px;
    }

    .expertise-highlights {
        gap: 6px;
    }

    .expertise-highlights li {
        padding: 5px 10px;
        font-size: 11px;
    }

    .expertise-summary {
        padding: 24px;
    }

    .summary-content h3 {
        font-size: 20px;
    }

    .summary-content p {
        font-size: 14px;
    }

    .app-card {
        border-radius: 8px;
    }

    .app-preview {
        height: 160px;
    }

    .app-content {
        padding: 20px;
    }

    .app-content h3 {
        font-size: 18px;
    }

    .app-description {
        font-size: 13px;
    }

    .app-features li {
        font-size: 12px;
    }

    .cycling-text h3 {
        font-size: 22px;
    }

    .cycling-text .lead {
        font-size: 15px;
    }

    .cycling-text p {
        font-size: 14px;
    }

    .cycling-link {
        width: 100%;
        justify-content: center;
    }

    .cycling-stat {
        padding: 16px 20px;
    }

    .cycling-stat span {
        font-size: 14px;
    }

    .contact-links {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-card {
        padding: 20px;
    }

    .contact-card svg {
        width: 32px;
        height: 32px;
    }

    .contact-platform {
        font-size: 16px;
    }

    .contact-action {
        font-size: 12px;
    }

    .scroll-indicator {
        display: none;
    }

    .footer {
        padding: 30px 16px;
    }

    .footer p {
        font-size: 12px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .container {
        padding: 0 12px;
    }

    .section {
        padding: 50px 12px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 14px;
    }

    .code-content {
        font-size: 10px;
        padding: 10px;
    }

    .nav-menu {
        width: 100%;
        padding: 80px 24px;
    }
}
