:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.2);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Floating Bubbles Background */
.bubbles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bubble {
    position: absolute;
    bottom: -100px;
    background: var(--accent-glow);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite ease-in;
}

.bubble:nth-child(1) { left: 10%; width: 80px; height: 80px; animation-duration: 12s; animation-delay: 0s; }
.bubble:nth-child(2) { left: 20%; width: 40px; height: 40px; animation-duration: 18s; animation-delay: 2s; }
.bubble:nth-child(3) { left: 35%; width: 120px; height: 120px; animation-duration: 25s; animation-delay: 4s; }
.bubble:nth-child(4) { left: 50%; width: 60px; height: 60px; animation-duration: 15s; animation-delay: 0s; }
.bubble:nth-child(5) { left: 65%; width: 90px; height: 90px; animation-duration: 22s; animation-delay: 6s; }
.bubble:nth-child(6) { left: 80%; width: 45px; height: 45px; animation-duration: 14s; animation-delay: 3s; }
.bubble:nth-child(7) { left: 88%; width: 100px; height: 100px; animation-duration: 28s; animation-delay: 1s; }

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-120vh) rotate(360deg);
        opacity: 0;
    }
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    filter: brightness(1.2);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
header {
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
}

.roles {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-weight: 500;
}

.role-item {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.role-item:not(:last-child)::after {
    content: "|";
    margin-left: 1rem;
    opacity: 0.3;
}

/* Sections */
section {
    padding: 6rem 0;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

h2::after {
    content: "";
    height: 1px;
    flex-grow: 1;
    background: linear-gradient(to right, rgba(255,255,255,0.1), transparent);
}

.about-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 800px;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tech-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px -15px var(--accent-glow);
}

.tech-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.tech-list {
    list-style: none;
    color: var(--text-secondary);
}

.tech-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.tech-list li::before {
    content: "→";
    margin-right: 0.75rem;
    color: var(--accent);
    opacity: 0.5;
}

/* iOS Section */
.ios-section {
    background: linear-gradient(180deg, var(--bg-color) 0%, #1e1b4b 100%);
    border-radius: 24px;
    padding: 4rem;
    margin: 4rem 0;
}

.ios-links {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-color);
}

.btn-secondary {
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.app-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.app-icon-placeholder {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent) 0%, #1e1b4b 100%);
    border-radius: 14px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    header { height: auto; padding: 6rem 0; }
    .ios-section { padding: 2rem; }
    .ios-links { flex-direction: column; gap: 1rem; }
}
