@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg: #030303;
    --surface: #0a0a0a;
    --surface-hover: #121212;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.4);
    --text: #ffffff;
    --text-muted: #88888b;
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.06);
    --selection: rgba(59, 130, 246, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

::selection {
    background: var(--selection);
    color: white;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    position: fixed;
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
    transition: transform 0.1s ease;
}
.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent);
    position: fixed;
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transition: transform 0.15s ease-out;
    opacity: 0.5;
}

/* Background Gradients */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(100px);
}

.blob {
    position: absolute;
    border-radius: 50%;
}

.blob-1 {
    width: 60vw;
    height: 60vw;
    top: -20%;
    right: -10%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.15;
    animation: move 20s infinite alternate;
}

.blob-2 {
    width: 50vw;
    height: 50vw;
    bottom: -10%;
    left: -10%;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    opacity: 0.1;
    animation: move 15s infinite alternate-reverse;
}

@keyframes move {
    from { transform: translate(0, 0); }
    to { transform: translate(100px, 100px); }
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    background: rgba(3, 3, 3, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem; padding-right: 2rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text);
    letter-spacing: -1px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 4.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--text);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 180px 0 100px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.95;
    margin-bottom: 2rem;
    font-weight: 800;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}

/* Sections */
section {
    padding: clamp(120px, 15vw, 200px) 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem; padding-right: 2rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Cards */
.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: clamp(1.5rem, 3vw, 3rem);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(2rem, 5vw, 5rem);
    align-items: flex-start;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Experience & Education Alignment */
.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 1rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.5rem;
    position: relative;
}

.timeline-year {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -10px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

/* Contact Form Inputs */
input, textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.2rem;
    color: white;
    margin-bottom: 1.2rem;
    outline: none;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

input:hover, textarea:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

input:focus, textarea:focus {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

textarea {
    resize: none;
    min-height: 150px;
}

/* Profile Image */
.profile-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.profile-img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    object-fit: cover;
    z-index: 2;
    position: relative;
    border: 1px solid var(--glass-border);
}

/* Responsive Fixes */
@media (max-width: 1024px) {
    .nav-links { gap: 1.5rem; }
}

@media (max-width: 768px) {
    body { cursor: auto !important; }
    .cursor-dot, .cursor-outline { display: none; }
    .nav-links { display: none; }
    .hero { text-align: center; }
    .hero p { margin: 0 auto 3rem; }
    .timeline-item { grid-template-columns: 1fr; gap: 0.5rem; }
    .timeline-year { font-size: 0.8rem; }
    .nav-content { padding: 0 1.5rem; }
    .btn-secondary.hide-mobile { display: none; }
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
