@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #030303;
    --bg-card: #0a0a0a;
    --accent-primary: #22c55e;
    --accent-secondary: #4ade80;
    --accent-glow: rgba(34, 197, 94, 0.4);
    --text-main: #ffffff;
    --text-muted: #888888;
    --border-dim: rgba(255, 255, 255, 0.05);
    --border-bright: rgba(255, 255, 255, 0.1);
    --transition-smooth: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* For custom cursor */
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-primary);
}

/* Background Grid & Glow */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
}

.glow-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(34, 197, 94, 0.15) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    background: rgba(3, 3, 3, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-dim);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.05em;
}

.logo span {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 5rem;
}

.hero-tag {
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.95;
    margin-bottom: 2rem;
    max-width: 1000px;
}

.hero-title span {
    display: block;
    background: linear-gradient(to right, #fff, var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

/* Buttons */
.btn-group {
    display: flex;
    gap: 1.5rem;
}

.btn-main {
    padding: 1.2rem 2.5rem;
    background: var(--accent-primary);
    color: #000;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-main:hover {
    background: var(--accent-secondary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-outline {
    padding: 1.2rem 2.5rem;
    border: 1px solid var(--border-bright);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
}

/* Sections General */
section {
    padding: 10rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    color: var(--accent-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 4rem;
}

/* Bento Grid Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
}

.portfolio-item {
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: 12px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.portfolio-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-10px);
}

.portfolio-item.large {
    grid-column: span 8;
}

.portfolio-item.small {
    grid-column: span 4;
}

.app-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 2rem;
    color: var(--accent-primary);
}

.app-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: block;
}

/* Contact Section */
.contact-container {
    background: linear-gradient(135deg, #0a0a0a 0%, #111 100%);
    border: 1px solid var(--border-bright);
    padding: 5rem;
    border-radius: 24px;
    text-align: center;
    position: relative;
}

.contact-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, transparent, var(--accent-primary), transparent);
    z-index: -1;
    border-radius: 24px;
    opacity: 0.3;
}

/* Footer */
footer {
    padding: 5rem 2rem;
    border-top: 1px solid var(--border-dim);
    margin-top: 5rem;
}

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

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 968px) {
    .portfolio-item.large, .portfolio-item.small {
        grid-column: span 12;
    }
    .hero-title {
        font-size: 4rem;
    }
    .nav-links {
        display: none; /* Mobile menu needed but keeping it simple for now */
    }
}
