:root {
  --bg-color: #f8fafc; /* Light Slate */
  --text-primary: #0f172a; /* Slate 900 */
  --text-secondary: #475569; /* Slate 600 */
  --accent-1: #3b82f6; /* Blue 500 */
  --accent-2: #8b5cf6; /* Purple 500 */
  --accent-3: #0ea5e9; /* Sky 500 */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

* {
  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-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6, .logo {
  font-family: 'Outfit', sans-serif;
}

/* Background Gradients */
.bg-shape {
  position: absolute;
  filter: blur(150px);
  z-index: -1;
  opacity: 0.5;
  border-radius: 50%;
  animation: float 20s infinite ease-in-out alternate;
}

.shape-1 {
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--accent-2), transparent);
  top: -10%;
  left: -10%;
}

.shape-2 {
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--accent-1), transparent);
  bottom: 10%;
  right: -20%;
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 50px) scale(1.1); }
  100% { transform: translate(-30px, 80px) scale(0.9); }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 24px 0;
  z-index: 100;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1px;
}

.logo span {
  color: var(--accent-3);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--accent-3);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Base Components */
.section {
  padding: 100px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-size: 40px;
  margin-bottom: 60px;
  text-align: center;
  background: linear-gradient(90deg, var(--text-primary), var(--accent-1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 150px 20px 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 50px;
}

.hero-content {
  flex: 1;
}

.greeting {
  color: var(--accent-3);
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: 500;
}

.name {
  font-size: 72px;
  line-height: 1.1;
  margin-bottom: 15px;
  background: linear-gradient(90deg, var(--text-primary), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.title {
  font-size: 28px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 30px;
}

.highlight {
  color: var(--accent-1);
}

.hero-desc {
  max-width: 540px;
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 22px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon:hover {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4);
  border-color: transparent;
}

.hero-graphic {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.hero-glass {
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotateY(-15deg) rotateX(10deg);
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.4));
  box-shadow: -20px 30px 60px rgba(0,0,0,0.1);
  animation: floatCard 6s ease-in-out infinite alternate;
}

.hero-glass:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.05); /* Straightens on hover */
    animation-play-state: paused;
}

@keyframes floatCard {
  0% { transform: rotateY(-15deg) rotateX(10deg) translateY(0); }
  100% { transform: rotateY(-5deg) rotateX(5deg) translateY(-25px); }
}

.code-snippet {
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  line-height: 1.5;
  padding: 20px;
  border-radius: 10px;
  background: #0f172a; /* Solid dark background for the code block */
  color: #f8fafc; /* Explicitly set light text color so non-highlighted text is readable */
  box-shadow: 0 10px 25px rgba(0,0,0,0.1), inset 0 0 10px rgba(0,0,0,0.5);
}
.keyword { color: #f472b6; }
.function { color: #60a5fa; }
.string { color: #34d399; }

/* About Section */
.full-card {
  font-size: 20px;
  line-height: 1.8;
  color: var(--text-secondary);
  text-align: center;
  padding: 50px;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.skill-card {
  text-align: center;
  padding: 40px 30px;
}

.skill-icon {
  font-size: 48px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--accent-3), var(--accent-1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.skill-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.skill-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Experience Section */
.timeline {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-1), var(--accent-2), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  padding-left: 70px;
}

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 30px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 15px var(--accent-3);
  border: 3px solid var(--bg-color);
  z-index: 2;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 15px;
}

.exp-header h3 {
  font-size: 24px;
  color: var(--text-primary);
}

.exp-header h4 {
  font-size: 16px;
  color: var(--accent-1);
  font-weight: 500;
  margin-top: 5px;
}

.exp-date {
  font-size: 14px;
  padding: 6px 16px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
  font-weight: 500;
}

.exp-list {
  list-style: none;
}

.exp-list li {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 12px;
  position: relative;
  padding-left: 24px;
  line-height: 1.6;
}

.exp-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent-3);
  font-weight: bold;
}

/* Education Section */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.edu-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px;
}

.edu-icon {
  font-size: 48px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}

.edu-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.edu-card h4 {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 16px;
}

.edu-date {
  font-size: 15px;
  color: var(--accent-3);
}

/* Footer */
footer {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-secondary);
  font-size: 15px;
  border-top: 1px solid var(--glass-border);
  margin-top: 80px;
  background: rgba(0,0,0,0.02);
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Responsive */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
  }
  
  .hero-desc {
    margin: 0 auto 40px auto;
  }

  .social-links {
    justify-content: center;
  }
  
  .hero-graphic {
    width: 100%;
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .name { font-size: 50px; }
  .title { font-size: 22px; }
  .section-title { font-size: 32px; }
  
  .nav-links {
    display: none; /* Hide on mobile */
  }
  
  .timeline::before { left: 0px; }
  .timeline-item { padding-left: 30px; }
  .timeline-dot { left: -9px; }
  
  .exp-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .full-card { padding: 30px; font-size: 18px; }
}
