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

:root {
  --bg-color: #030712; /* Deeper space black */
  --bg-color-secondary: #111827; 
  --text-main: #f8fafc; 
  --text-muted: #94a3b8; 
  --accent-color: #0ea5e9; 
  --accent-hover: #0284c7; 
  --accent-glow: rgba(14, 165, 233, 0.5);
  
  --nav-bg: rgba(3, 7, 18, 0.7);
  --card-bg: rgba(17, 24, 39, 0.4);
  --card-border: rgba(255, 255, 255, 0.08);
  
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  
  --border-radius: 12px;
  --border-radius-lg: 20px;
  
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  /* Removed cursor none to allow native pointers */
}

/* Custom Cursor Glow - Ambient Light */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14,165,233,0.06) 0%, rgba(139,92,246,0.03) 40%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2; /* Under text, above background */
  transition: width 0.4s, height 0.4s;
}

.cursor-glow.hovered {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14,165,233,0.09) 0%, rgba(139,92,246,0.05) 40%, rgba(0,0,0,0) 70%);
}

/* Background blob effects */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.4;
  animation: float 15s infinite alternate ease-in-out;
}
.blob-1 {
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  background: rgba(14, 165, 233, 0.15);
  top: -20%;
  left: -10%;
}
.blob-2 {
  width: 40vw;
  height: 40vw;
  max-width: 500px;
  max-height: 500px;
  background: rgba(139, 92, 246, 0.15);
  bottom: -10%;
  right: -5%;
  animation-delay: -7s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  100% { transform: translate(50px, 80px) scale(1.2) rotate(10deg); }
}

/* Typography */
h1, h2, h3, h4, .logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shine 4s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Glassmorphism Extraordinaire */
.glass {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.glass::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.03) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: 0.7s;
  pointer-events: none;
}
.glass:hover::before {
  left: 150%;
}

/* Navigation */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  transition: var(--transition);
}
header.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--card-border);
  padding-block: 0.2rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  transition: var(--transition);
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  text-decoration: none;
}

.nav-links {
  display: flex; gap: 2.5rem; list-style: none;
}
.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
  border-radius: 2px;
}
.nav-links a:hover { color: var(--accent-color); }
.nav-links a:hover::after { width: 100%; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #3b82f6);
  color: #fff;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 5rem;
}
.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 10;
}
.hero-subtitle {
  color: var(--accent-color);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 1.2rem;
  letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 1rem; display: block;
  display: flex; align-items: center; gap: 1rem;
}
.hero-subtitle::before {
  content: ""; width: 40px; height: 2px;
  background: var(--accent-color);
}
.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
}
.hero-text {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 650px;
  line-height: 1.8;
}
.hero-buttons { display: flex; gap: 1.5rem; }

/* Typing Effect Cursor */
.typing-cursor {
  display: inline-block;
  width: 4px;
  background-color: var(--accent-color);
  margin-left: 4px;
  animation: blink 1s infinite step-end;
  color: transparent;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Sections */
section { padding: 7rem 0; }
.section-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  margin: 3rem 0;
}
.section-title {
  font-size: 3rem; margin-bottom: 4rem;
  position: relative; display: inline-block;
}
.section-title::after {
  content: ''; position: absolute; bottom: -12px; left: 0;
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--accent-color), transparent);
  border-radius: 2px;
}

/* Skills */
.skills-wrapper {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media(min-width: 768px) {
  .skills-wrapper { grid-template-columns: repeat(3, 1fr); }
}
.skills-grid {
  display: flex; flex-wrap: wrap; gap: 1rem;
}
.skill-tag {
  background: rgba(255,255,255, 0.03);
  border: 1px solid rgba(255,255,255, 0.08);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  font-size: 0.95rem; font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
}
.skill-tag:hover {
  background: rgba(14, 165, 233, 0.1);
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
}

/* Experience */
.timeline {
  position: relative; border-left: 2px solid rgba(255,255,255,0.1);
  padding-left: 2.5rem; margin-left: 1rem;
}
.timeline-item { position: relative; margin-bottom: 4rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute; left: -43px; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background-color: var(--accent-color);
  border: 4px solid var(--bg-color);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.2);
  transition: var(--transition);
}
.timeline-item:hover .timeline-dot {
  background-color: #fff;
  box-shadow: 0 0 15px var(--accent-color), 0 0 0 4px rgba(14, 165, 233, 0.4);
}
.experience-card {
  padding: 2.5rem; border-radius: var(--border-radius-lg);
  transition: var(--transition);
}
.experience-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,0,0, 0.4);
}
.job-title { font-size: 1.7rem; color: #fff; margin-bottom: 0.5rem; }
.company-date {
  color: var(--accent-color); font-weight: 500; font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 1.5rem; font-size: 1.1rem;
}
.job-desc { color: var(--text-muted); }
.job-desc ul { padding-left: 1.2rem; }
.job-desc li { margin-bottom: 0.8rem; }

/* Projects */
.projects-grid { display: grid; gap: 4rem; }
.project-card {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-radius: var(--border-radius-lg);
  overflow: hidden; padding: 0;
  transition: var(--transition);
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,0.15);
}
@media(min-width: 900px) {
  .project-card { grid-template-columns: 1.2fr 1fr; align-items: stretch; }
  .project-card:nth-child(even) { grid-template-columns: 1fr 1.2fr; }
  .project-card:nth-child(even) .project-content { order: -1; }
}
.project-image-wrapper {
  overflow: hidden; position: relative; height: 100%;
}
.project-image {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-image-wrapper::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(17,24,39,0.8), transparent);
  opacity: 0.6; pointer-events: none; transition: var(--transition);
}
@media(min-width: 900px) {
  .project-card:nth-child(even) .project-image-wrapper::after {
    background: linear-gradient(to left, rgba(17,24,39,0.8), transparent);
  }
}
.project-card:hover .project-image { transform: scale(1.05); }
.project-card:hover .project-image-wrapper::after { opacity: 0; }

.project-content { padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.project-title { font-size: 2.2rem; margin-bottom: 1rem; }
.project-desc { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1.05rem; }
.project-tech { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2rem; }
.project-tech span {
  font-family: 'Space Grotesk', sans-serif; font-size: 0.85rem; font-weight: 600;
  padding: 0.4rem 1rem; background: rgba(14, 165, 233, 0.1);
  border-radius: 20px; color: var(--accent-color);
}

/* Edu & Lang */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media(min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.edu-card { padding: 2.5rem; border-radius: var(--border-radius-lg); margin-bottom: 1.5rem; transition: var(--transition); }
.edu-card:hover { transform: translateX(10px); border-color: rgba(255,255,255,0.15); }

/* Footer */
footer {
  padding: 5rem 0 3rem; text-align: center;
  background: linear-gradient(to top, rgba(17,24,39,0.8), transparent);
}
.social-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 3rem; }
.social-links a {
  color: var(--text-main); background: rgba(255,255,255,0.03);
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.08); transition: var(--transition);
}
.social-links a:hover {
  background: var(--accent-color); color: #fff;
  transform: translateY(-8px) rotate(8deg);
  border-color: var(--accent-color);
  box-shadow: 0 10px 25px rgba(14, 165, 233, 0.4);
}
.contact-info p {
  color: var(--text-muted); margin: 0.8rem 0; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
}

/* Animations */
.fade-up {
  opacity: 0; transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

@media(max-width: 768px) {
  .nav-links { display: none; }
  .hero-buttons { flex-direction: column; }
  .hero-title { font-size: 3rem; }
  .project-content { padding: 2rem; }
}
