:root {
    --bg-color: #050505;
    --surface-color: #121212;
    --primary-color: #0A84FF;
    --text-main: #F5F5F7;
    --text-muted: #86868B;
    --accent-glow: rgba(10, 132, 255, 0.4);
    --border-color: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* For custom cursor */
}

a, button {
    cursor: none;
}

html {
    scroll-behavior: smooth;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    z-index: 9999;
}

.custom-cursor.hover {
    width: 50px;
    height: 50px;
    background-color: rgba(10, 132, 255, 0.1);
}

/* Typography & Layout*/
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, #fff, #86868B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    border-bottom: 1px solid var(--border-color);
    background: rgba(5, 5, 5, 0.85);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding-top: 8rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

.subtitle {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.title {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.role {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.description {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.highlight {
    color: var(--text-main);
    font-weight: 600;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--text-main);
    color: var(--bg-color);
    margin-right: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

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

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

/* Phone Mockup Animation */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
    animation: fadeUp 1s ease 0.3s forwards;
    opacity: 0;
}

.phone-mockup {
    width: 280px;
    height: 580px;
    border: 12px solid #222;
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 20px rgba(255,255,255,0.05);
    background: #000;
    position: relative;
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #222;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}

.screen {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(180deg, #111 0%, #050505 100%);
    padding: 40px 20px;
}

.app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 40px;
}

.app-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 20px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    animation: float 4s ease-in-out infinite alternate;
}

.app-icon.tools { background: linear-gradient(135deg, #0A84FF, #005bb5); animation-delay: 0s;}
.app-icon.entertainment { background: linear-gradient(135deg, #FF2D55, #bd1636); animation-delay: 1s;}
.app-icon.health { background: linear-gradient(135deg, #30D158, #1c8837); animation-delay: 2s;}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.stat-card {
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(10,132,255,0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card h3 {
    font-size: 6rem;
    color: var(--primary-color);
    line-height: 1;
    font-weight: 700;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.skills-list {
    list-style-type: none;
    margin-top: 2rem;
}

.skills-list li {
    margin-bottom: 1rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 20px;
}

.skills-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.skills-list strong {
    color: var(--text-main);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--surface-color);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.project-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.project-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, var(--surface-color), transparent);
}

.health-bg { background: linear-gradient(45deg, #111, #1c8837); }
.ent-bg { background: linear-gradient(45deg, #111, #bd1636); }
.tools-bg { background: linear-gradient(45deg, #111, #005bb5); }

.project-info {
    padding: 2rem;
    position: relative;
    z-index: 2;
    margin-top: -30px;
}

.category {
    color: var(--primary-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.project-info h3 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

.project-info p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Contact */
.contact {
    text-align: center;
    padding-bottom: 8rem;
}

.contact p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    from { transform: translateY(0px) scale(1); }
    to { transform: translateY(-8px) scale(1.02); }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }
    
    .title {
        font-size: 3.5rem;
    }
    
    .nav-links {
        display: none; /* simple hidden on mobile for structure, but typically we'd add a hamburger menu */
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        margin-top: 4rem;
    }
    
    .custom-cursor {
        display: none; /* disable on mobile */
    }
    
    body, a, button {
        cursor: auto;
    }
}
