:root {
    --bg: #0f172a;
    --text: #f8fafc;
    --text-dim: #94a3b8;
    --primary: #38bdf8;
    --secondary: #818cf8;
    --accent: #f472b6;
    --card-bg: rgba(30, 41, 59, 0.7);
}

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

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

h1, h2, h3, .logo {
    font-family: 'Space Grotesk', sans-serif;
}

/* Background Blobs */
.background-blob {
    position: fixed;
    top: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
    z-index: -1;
    filter: blur(50px);
}

.background-blob-2 {
    position: fixed;
    bottom: -10%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.15) 0%, transparent 70%);
    z-index: -1;
    filter: blur(50px);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 10%;
    position: absolute;
    width: 100%;
    z-index: 10;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 5px 10px;
}

.links a {
    text-decoration: none;
    color: var(--text);
    margin-left: 30px;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Sections */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

section {
    padding: 100px 0;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--secondary);
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
}

.badge {
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin: 20px 0;
    line-height: 1.1;
}

.highlight {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 600px;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

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

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
}

.about-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

/* Projects */
.project-card {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(129, 140, 248, 0.1));
    padding: 60px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.05);
}

.project-tag {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.project-info h3 {
    font-size: 2rem;
    margin: 10px 0;
}

/* Contact */
.contact-card {
    text-align: center;
    background: var(--card-bg);
    padding: 80px 40px;
    border-radius: 24px;
}

.email-link {
    display: block;
    margin-top: 30px;
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

/* Footer */
footer {
    text-align: center;
    padding: 50px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s ease-out;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 1s ease-out;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.hero-content {
    animation: slideUp 1s ease-out forwards;
}

.about-card, .project-card {
    opacity: 0; /* Let reveal handle these */
}

/* Responsive */
@media (max-width: 768px) {
    nav { padding: 20px 5%; }
    .hero h1 { font-size: 3rem; }
    .cta-buttons { flex-direction: column; }
}
