* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark mode (default) */
    --bg-primary: #0a0a0a;
    --bg-secondary: rgba(15, 15, 20, 0.85);
    --text-primary: #d4d4d4;
    --text-secondary: rgba(200, 200, 200, 0.85);
    --text-muted: rgba(160, 160, 160, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.4);
    --icon-color: rgba(200, 200, 200, 0.75);
    --icon-hover: rgba(220, 220, 220, 0.95);
    --card-bg: rgba(15, 15, 20, 0.65);
    --card-shadow: rgba(0, 0, 0, 0.4);
    --divider-color: rgba(255, 255, 255, 0.2);
    --indicator-border: rgba(255, 255, 255, 0.3);
    --indicator-active: rgba(255, 255, 255, 0.8);
}

body.light-mode {
    /* Light mode */
    --bg-primary: #e8f4fc;
    --bg-secondary: rgba(255, 255, 255, 0.85);
    --text-primary: #2c3e50;
    --text-secondary: rgba(44, 62, 80, 0.85);
    --text-muted: rgba(44, 62, 80, 0.5);
    --border-color: rgba(44, 62, 80, 0.1);
    --border-hover: rgba(44, 62, 80, 0.3);
    --icon-color: rgba(44, 62, 80, 0.65);
    --icon-hover: rgba(44, 62, 80, 0.9);
    --card-bg: rgba(255, 255, 255, 0.65);
    --card-shadow: rgba(0, 0, 0, 0.1);
    --divider-color: rgba(44, 62, 80, 0.15);
    --indicator-border: rgba(44, 62, 80, 0.3);
    --indicator-active: rgba(44, 62, 80, 0.8);
}

html {
    scroll-behavior: smooth;
}

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

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--icon-color);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: auto;
}

.theme-toggle:hover {
    border-color: var(--border-hover);
    color: var(--icon-hover);
    transform: scale(1.05);
}

/* Canvas Background */
#constellation-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    touch-action: pan-y;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Scroll Container */
.scroll-container {
    position: relative;
    z-index: 2;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

/* Full-page Sections */
.scroll-section {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    position: relative;
    padding: 60px 20px;
}

.hero-section {
    padding-top: 100px;
    padding-bottom: 60px;
}

.products-section,
.interests-section {
    padding: 60px 20px;
}

.section-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 600px;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-section.visible .section-inner {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero-section .section-inner {
    justify-content: center;
}

.profile-image-container {
    margin-bottom: 25px;
}

.profile-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    box-shadow: 0 0 40px rgba(100, 181, 246, 0.15);
    transition: border-color 0.3s ease;
}

.name {
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--text-primary);
    font-family: 'Georgia', 'Times New Roman', serif;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(180, 180, 180, 0.5);
    font-size: 0.75rem;
    letter-spacing: 1px;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 1rem;
}

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

/* Content Cards */
.content-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 45px 50px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px var(--card-shadow);
    max-width: 520px;
    width: 100%;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-family: 'Georgia', 'Times New Roman', serif;
    transition: color 0.3s ease;
}

.card-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-weight: 300;
    transition: color 0.3s ease;
}

.card-description:last-of-type {
    margin-bottom: 25px;
}

.card-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--divider-color), transparent);
    margin: 20px auto;
}

/* Icon Card - removed, now using content-card */
.icon-card {
    display: none;
}

.icon-card-label {
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
}

/* Icon Group */
.icon-group {
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--icon-color);
    font-size: 1.3rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.icon-label {
    display: none;
}

.icon-link:hover {
    border-color: var(--border-hover);
    color: var(--icon-hover);
    background: rgba(128, 128, 128, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--card-shadow);
}

/* Tooltip */
.icon-link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--card-bg);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;
    border: 1px solid var(--border-color);
}

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

/* Section Indicators - Hidden */
.section-indicators {
    display: none;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--indicator-border);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator:hover {
    border-color: var(--indicator-active);
    background: rgba(128, 128, 128, 0.1);
}

.indicator.active {
    background: var(--indicator-active);
    border-color: var(--indicator-active);
    transform: scale(1.2);
}

/* Email copy feedback */
@keyframes copyFeedback {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.icon-link.copied {
    animation: copyFeedback 0.3s ease;
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.icon-link.copied .icon-label {
    color: var(--text-primary);
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
    .scroll-container {
        -webkit-overflow-scrolling: touch;
    }

    .scroll-section {
        min-height: auto;
        padding: 40px 20px;
    }

    .hero-section {
        padding-top: 70px;
        padding-bottom: 40px;
    }

    .products-section,
    .interests-section {
        padding: 40px 20px;
    }

    .theme-toggle {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .name {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .scroll-indicator {
        bottom: 30px;
        font-size: 0.65rem;
    }

    .scroll-indicator i {
        font-size: 0.85rem;
    }

    .content-card {
        padding: 30px 25px;
        border-radius: 16px;
        margin: 0 10px;
    }

    .card-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .card-description {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .icon-card {
        margin-top: 25px;
    }

    .icon-card-label {
        font-size: 0.6rem;
        letter-spacing: 1.5px;
        display: block;
        margin: 0 0 18px 0;
    }

    .icon-label {
        display: block;
        font-size: 0.55rem;
        margin-top: 3px;
        color: var(--text-muted);
        font-weight: 400;
    }

    .icon-link::after {
        display: none;
    }

    /* Hide section indicators on mobile */
    .section-indicators {
        right: 15px;
        gap: 12px;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .scroll-section {
        padding: 25px 15px;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .name {
        font-size: 1.75rem;
    }

    .content-card {
        padding: 25px 20px;
    }

    .card-title {
        font-size: 1.25rem;
    }

    .card-description {
        font-size: 0.85rem;
    }

    .icon-link {
        width: 48px;
        height: 48px;
        font-size: 1rem;
    }

    .icon-label {
        font-size: 0.5rem;
    }

    .section-indicators {
        display: none;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .scroll-section {
        min-height: auto;
        padding: 40px 20px;
    }

    .scroll-container {
        scroll-snap-type: none;
    }

    .scroll-indicator {
        display: none;
    }

    .profile-image {
        width: 80px;
        height: 80px;
    }

    .name {
        font-size: 1.5rem;
    }
}
