:root {
  /* Colors */
  --bg-color: #0d1117;
  --bg-color-rgb: 13, 17, 23;
  --bg-color-alt: #161b22;
  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --accent-primary: #3b82f6; /* Blueish for Flutter vibe */
  --accent-secondary: #0ea5e9;
  --gradient-accent: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  --glass-bg: rgba(22, 27, 34, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --card-hover-bg: rgba(30, 41, 59, 0.8);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-code: 'Fira Code', 'Courier New', monospace;

  /* Transitions */
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Glow Orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
}
.orb-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  left: -100px;
  background-color: rgba(59, 130, 246, 0.3);
}
.orb-2 {
  width: 500px;
  height: 500px;
  bottom: -200px;
  right: -200px;
  background-color: rgba(14, 165, 233, 0.2);
}
.orb-3 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 30%;
  background-color: rgba(139, 92, 246, 0.2);
}

/* Typography utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}
.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Base Components */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

.subsection-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.mt-4 {
  margin-top: 4rem;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition);
}
.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Header & Nav */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
}
.header.scrolled {
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}
.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--gradient-accent);
  transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
}
.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: var(--text-primary);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.grid-2-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content .greeting {
  font-size: 1.1rem;
  color: var(--accent-primary);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.hero-content .name {
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

.hero-content .title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.hero-content .summary {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-item {
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  transition: var(--transition);
}
.contact-item:hover {
  color: var(--accent-primary);
}
.contact-item i {
  color: var(--accent-primary);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}
.social-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Code Mockup Card in Hero */
.mockup-card {
  padding: 0;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.mockup-header {
  background: rgba(0, 0, 0, 0.2);
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--glass-border);
}
.mockup-header .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.mockup-body {
  padding: 1.5rem;
  background: rgba(13, 17, 23, 0.5);
}
.mockup-body pre {
  margin: 0;
}
.mockup-body code {
  font-family: var(--font-code);
  font-size: 0.95rem;
  color: var(--text-primary);
}
.keyword { color: #ff7b72; }
.class-name { color: #79c0ff; }
.function-name { color: #d2a8ff; }
.string { color: #a5d6ff; }

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

.skill-category h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  color: var(--accent-primary);
}

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

.skill-tags li {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: var(--transition);
}
.skill-tags li:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

/* Timeline (Experience & Education) */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 6px;
  width: 2px;
  background: var(--glass-border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}
.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  top: 1.5rem;
  left: -2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-primary);
  transform: translateX(-50%);
  border: 3px solid var(--bg-color);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.timeline-content .role {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}
.timeline-content .company {
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.timeline-content .date {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--accent-primary);
  background: rgba(59, 130, 246, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.timeline-content .description {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.project-header h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
}

.project-links a {
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: var(--transition);
}
.project-links a:hover {
  color: var(--accent-primary);
}

.project-desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.project-features {
  list-style: none;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.project-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.project-features li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-family: monospace;
}
.project-features li strong {
  color: var(--text-primary);
}
.project-features li em {
  color: #79c0ff;
  font-style: normal;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  border-top: 1px solid var(--glass-border);
  padding-top: 1rem;
}

.tech-stack span {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--accent-secondary);
}

/* Certifications */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.cert-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.cert-card .issuer {
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.cert-details {
  list-style-type: none;
}
.cert-details li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.cert-details li::before {
  content: '-';
  position: absolute;
  left: 0;
  color: var(--text-secondary);
}

/* Footer */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 2rem 0;
  background: var(--bg-color-alt);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-family: var(--font-code);
}
.social-links.small .social-btn {
  padding: 0.5rem;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-links.small a {
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: var(--transition);
}
.social-links.small a:hover {
  color: var(--accent-primary);
}

/* Animations (Reveal on scroll) */
.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}
.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-out;
}
.reveal-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.reveal-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.active.reveal-left,
.active.reveal-right,
.active.reveal-fade,
.active.reveal-up {
  opacity: 1;
  transform: translate(0);
}

/* Responsive */
@media (max-width: 900px) {
  .grid-2-col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-content .name {
    font-size: 3rem;
  }
  
  .hero-visual {
    padding-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
    padding: 2rem 0;
    gap: 1.5rem;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .section-title {
    font-size: 2rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-content .name {
    font-size: 2.5rem;
  }
  .hero-content .title {
    font-size: 1.5rem;
  }
}
