@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --bg-color: #050505;
    --card-bg: #0f0f0f;
    --border-color: #1a1a1a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #6366f1;
    --accent-hover: #818cf8;
    --nav-height: 72px;
    --container-width: 1100px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --glass-bg: rgba(15, 15, 15, 0.75);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.text-accent { color: var(--accent-color); }
.text-secondary { color: var(--text-secondary); }

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #6366f1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Sections */
section {
    padding: 100px 0;
}

/* Hero */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: var(--nav-height);
}

.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    z-index: -1;
    filter: blur(60px);
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1;
    margin-bottom: 2rem;
    max-width: 900px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 3rem;
}

.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 16px;
    transition: var(--transition);
    height: 100%;
}

.card:hover {
    border-color: var(--accent-color);
    transform: translateY(-8px) scale(1.01);
    background: rgba(20, 20, 20, 0.8);
    box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.2);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    background: #1a1a1a;
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    background: #080808;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Resume Styles */
.resume-section {
    margin-bottom: 5rem;
}

.resume-header {
    text-align: center;
    margin-bottom: 4rem;
}

.resume-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 4rem;
}

.resume-sidebar h2 {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    margin-bottom: 2rem;
    position: sticky;
    top: 100px;
}

.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 1px solid var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-2rem - 5px);
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.timeline-subtitle {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
}

.skill-group {
    margin-bottom: 2rem;
}

.skill-group h4 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-primary);
}

@media (max-width: 850px) {
    .resume-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .resume-sidebar h2 {
        position: static;
        margin-bottom: 1rem;
    }
    .nav-links { display: none; }
    .hero h1 { font-size: 3.5rem; }
}

/* Admin Specific */
.admin-nav { display: flex; gap: 1rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; }
.admin-nav a { color: var(--text-secondary); font-weight: 500; }
.admin-nav a.active { color: var(--accent-color); }

table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th, td { text-align: left; padding: 1.25rem; border-bottom: 1px solid var(--border-color); }
th { color: var(--text-secondary); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }

.badge { padding: 4px 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.badge-thought { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.badge-feeling { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
.badge-note { background: rgba(16, 185, 129, 0.15); color: #34d399; }
