/* ===== CSS Variables ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a24;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b0;
    --accent-primary: #ff6b9d;
    --accent-secondary: #7c3aed;
    --accent-gradient: linear-gradient(135deg, #ff6b9d 0%, #7c3aed 100%);
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-glow: 0 0 60px rgba(255, 107, 157, 0.15);
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--bg-primary); color: var(--text-primary); line-height: 1.7; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 1rem 2rem; background: rgba(10, 10, 15, 0.8); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-color); }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.nav-logo { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); transition: var(--transition); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--accent-gradient); transition: var(--transition); }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 6rem 2rem 2rem; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 20%, rgba(255, 107, 157, 0.1) 0%, transparent 50%), radial-gradient(ellipse at 80% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%), radial-gradient(ellipse at 50% 50%, rgba(255, 107, 157, 0.05) 0%, transparent 70%); animation: pulse 8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
.hero-top { position: relative; z-index: 1; display: flex; justify-content: center; margin-bottom: 1.75rem; }
.hero-content { position: relative; z-index: 1; max-width: 1000px; display: flex; align-items: center; gap: 3rem; }
.hero-text { flex: 1; text-align: left; }
.hero-visual { flex-shrink: 0; }
.hero-photo { width: 180px; height: 180px; margin-bottom: 1.5rem; border-radius: 50%; overflow: hidden; border: 3px solid var(--accent-primary); box-shadow: 0 0 30px rgba(255, 107, 157, 0.25); }
.hero-photo .profile-photo { width: 100%; height: 100%; object-fit: cover; border: 0; box-shadow: none; }
.hero-badge { display: inline-block; padding: 0.5rem 1rem; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 50px; font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent-primary); margin-bottom: 1.5rem; animation: fadeInUp 0.8s ease-out; }
.hero-title { font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; animation: fadeInUp 0.8s ease-out 0.1s both; }
.gradient-text { background: var(--accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 1rem; animation: fadeInUp 0.8s ease-out 0.2s both; }
.highlight { color: var(--text-primary); font-weight: 500; }
.hero-quote { font-style: italic; color: var(--text-secondary); font-size: 1rem; margin-bottom: 2rem; opacity: 0.8; animation: fadeInUp 0.8s ease-out 0.3s both; }
.hero-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; animation: fadeInUp 0.8s ease-out 0.4s both; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 1.5rem; border-radius: 12px; font-weight: 500; font-size: 0.95rem; transition: var(--transition); border: 1px solid transparent; }
.btn-primary { background: var(--accent-gradient); color: white; box-shadow: 0 4px 20px rgba(255, 107, 157, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255, 107, 157, 0.4); }
.btn-secondary { background: var(--bg-card); border-color: var(--border-color); color: var(--text-primary); }
.btn-secondary:hover { background: var(--bg-secondary); border-color: var(--accent-primary); }

.scroll-indicator { position: absolute; bottom: 2rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--text-secondary); font-size: 0.8rem; animation: bounce 2s infinite; }
.scroll-arrow { width: 20px; height: 20px; border-right: 2px solid var(--text-secondary); border-bottom: 2px solid var(--text-secondary); transform: rotate(45deg); }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* Code Window */
.code-window { background: #1e1e1e; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.3); max-width: 380px; text-align: left; }
.code-header { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #2d2d2d; border-bottom: 1px solid #3d3d3d; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca40; }
.filename { margin-left: auto; font-family: var(--font-mono); font-size: 0.75rem; color: #888; }
.code-content { padding: 16px; margin: 0; font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.6; color: #d4d4d4; white-space: pre; overflow-x: auto; }
.code-content .keyword { color: #569cd6; }
.code-content .class-name { color: #4ec9b0; }
.code-content .function { color: #dcdcaa; }
.code-content .param { color: #9cdcfe; }
.code-content .string { color: #ce9178; }

.section { padding: 6rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; text-align: center; }
.section-subtitle { color: var(--text-secondary); text-align: center; max-width: 600px; margin: 0 auto 3rem; }

.about { background: var(--bg-secondary); }
.about-content { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
.profile-photo { width: 180px; height: 180px; max-width: 180px; max-height: 180px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent-primary); box-shadow: 0 0 30px rgba(255, 107, 157, 0.2); }
.about-text p { margin-bottom: 1rem; color: var(--text-secondary); }
.about-text strong { color: var(--text-primary); }
.about-text .quote { font-style: italic; color: var(--accent-primary); font-size: 1rem; margin-bottom: 1.5rem; padding-left: 1rem; border-left: 3px solid var(--accent-primary); }
.about-text h3 { font-size: 1.2rem; margin: 1.5rem 0 0.75rem; color: var(--text-primary); }
.interests-list, .focus-list { list-style: none; margin: 0; padding: 0; }
.interests-list li, .focus-list li { position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; color: var(--text-secondary); font-size: 0.95rem; }
.interests-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent-primary); }
.about-skills { margin-top: 1.5rem; }
.about-skills h3 { font-size: 1.2rem; margin-bottom: 1rem; color: var(--text-primary); }
.tech-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag { padding: 0.25rem 0.6rem; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 4px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-secondary); transition: var(--transition); }
.tag:hover { border-color: var(--accent-primary); color: var(--accent-primary); }

.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.project-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 1.5rem; transition: var(--transition); display: flex; gap: 1rem; }
.project-card:hover { transform: translateY(-4px); border-color: var(--accent-primary); box-shadow: var(--shadow-glow); }
.project-card.featured { grid-column: span 2; }
.project-icon { font-size: 2rem; flex-shrink: 0; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--bg-secondary); border-radius: 12px; }
.project-content { flex: 1; }
.project-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.project-content h3 { font-size: 1.1rem; margin: 0; }
.project-stars { font-family: var(--font-mono); font-size: 0.8rem; color: #ffc107; background: rgba(255, 193, 7, 0.1); padding: 0.2rem 0.5rem; border-radius: 4px; }
.project-badge { font-family: var(--font-mono); font-size: 0.75rem; color: white; background: var(--accent-gradient); padding: 0.2rem 0.6rem; border-radius: 4px; font-weight: 600; }
.project-content p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 0.75rem; line-height: 1.5; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.project-tags span { padding: 0.2rem 0.5rem; background: rgba(255, 107, 157, 0.1); border-radius: 4px; font-size: 0.7rem; color: var(--accent-primary); }
.project-link { font-size: 0.85rem; color: var(--accent-primary); font-weight: 500; transition: var(--transition); }
.project-link:hover { color: var(--accent-secondary); }

.blog { background: var(--bg-secondary); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.blog-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 2rem; transition: var(--transition); }
.blog-card:hover { border-color: var(--accent-secondary); }
.blog-card.coming-soon { opacity: 0.7; }
.blog-date { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-secondary); margin-bottom: 1rem; }
.blog-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; line-height: 1.4; }
.blog-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; }
.blog-tags { display: flex; gap: 0.5rem; }
.blog-tags span { padding: 0.25rem 0.5rem; background: rgba(124, 58, 237, 0.1); border-radius: 4px; font-size: 0.75rem; color: var(--accent-secondary); }

.contact { text-align: center; }
.contact-links { display: flex; justify-content: center; gap: 1.5rem; margin-top: 2rem; }
.contact-card { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.25rem; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; font-weight: 500; transition: var(--transition); }
.contact-card:hover { border-color: var(--accent-primary); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.contact-card svg { width: 18px; height: 18px; color: var(--accent-primary); flex-shrink: 0; }
.contact-card span { font-size: 0.85rem; color: var(--text-primary); }
.contact-note { margin-top: 2rem; color: var(--text-secondary); font-size: 0.9rem; }

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

@media (max-width: 968px) {
    .projects-grid { grid-template-columns: 1fr; }
    .project-card.featured { grid-column: span 1; }
    .about-content { grid-template-columns: 1fr; gap: 2rem; }
    .about-photo { display: flex; justify-content: center; }
    .profile-photo { width: 150px; height: 150px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-content { flex-direction: column; text-align: center; }
    .hero-text { text-align: center; }
    .hero-visual { display: none; }
    .hero-links { flex-direction: column; align-items: center; }
    .contact-links { flex-direction: column; align-items: center; }
    .blog-grid { grid-template-columns: 1fr; }
    .hero-photo { width: 140px; height: 140px; margin-bottom: 0; }
}
