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

/* CSS Variables for Theme */
:root {
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --bg-primary: #fbfbfd;
    --bg-card: #ffffff;
    --border-color: #d2d2d7;
    --hover-bg: #f5f5f7;
    --accent: #0071e3;
    --shadow: rgba(0, 0, 0, 0.08);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f5f5f7;
        --text-secondary: #a1a1a6;
        --bg-primary: #000000;
        --bg-card: #1d1d1f;
        --border-color: #424245;
        --hover-bg: #2d2d30;
        --shadow: rgba(255, 255, 255, 0.05);
    }
}

/* Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    position: relative;
    transition: all 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--text-primary);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10000;
    transition: all 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    mix-blend-mode: difference;
}

.cursor.hover {
    width: 40px;
    height: 40px;
    background: var(--accent);
    opacity: 0.2;
}

/* Grid Background */
.grid-background {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    background-image: radial-gradient(circle, var(--text-primary) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Name Badge */
.name {
    position: fixed;
    top: 40px;
    left: 40px;
    font-size: 22px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
    z-index: 100;
}

/* Main Container */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
    z-index: 10;
}

/* Choose Path Button */
.choose-path-btn {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 400;
    padding: 16px 40px;
    border-radius: 980px;
    letter-spacing: -0.01em;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.choose-path-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hover-bg);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.choose-path-btn:hover::before {
    transform: scaleX(1);
}

.choose-path-btn:hover {
    border-color: var(--text-primary);
    transform: scale(1.02);
}

.choose-path-btn.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

/* Paths Container */
.paths-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 120px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.paths-container.visible {
    opacity: 1;
    pointer-events: all;
}

/* Path Sections */
.path {
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.path-left {
    transition-delay: 0.1s;
}

.path-right {
    transition-delay: 0.2s;
}

.paths-container.visible .path {
    opacity: 1;
    transform: translateY(0);
}

/* Path Lines */
.path-line {
    position: absolute;
    width: 80px;
    height: 1px;
    background: var(--border-color);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.paths-container.visible .path-line {
    opacity: 1;
}

.path-line.left {
    right: calc(100% + 30px);
}

.path-line.right {
    left: calc(100% + 30px);
}

/* Path Content Cards */
.path-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 48px 40px;
    width: 320px;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
}

.path-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px var(--shadow);
    border-color: var(--text-primary);
}

.path-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 24px;
    opacity: 0.8;
}

.path-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.path-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Floating Shapes */
.shape {
    position: fixed;
    pointer-events: none;
    opacity: 0.02;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, var(--accent), transparent);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: float-1 20s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--text-primary), transparent);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
    animation: float-2 25s ease-in-out infinite;
}

/* Animations */
@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-50px, 50px) rotate(180deg); }
}

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

/* Focus Styles */
button:focus-visible,
.path-content:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .name {
        top: 24px;
        left: 24px;
        font-size: 13px;
    }

    .paths-container {
        flex-direction: column;
        gap: 24px;
        padding: 24px;
    }

    .path-content {
        width: 100%;
        max-width: 340px;
        padding: 32px 24px;
    }

    .path-line {
        display: none;
    }

    .choose-path-btn {
        font-size: 16px;
        padding: 14px 32px;
    }
}

/* Hide cursor on touch devices */
@media (hover: none) {
    .cursor {
        display: none;
    }
    
    * {
        cursor: auto;
    }
}