:root {
  /* Premium Light Theme Color Palette */
  --bg-main: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  
  --text-heading: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  
  --primary: #4338ca;
  --primary-hover: #3730a3;
  --primary-light: #e0e7ff;
  --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  --accent: #0284c7;
  
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  
  --shadow-sm: 0 2px 4px 0 rgba(15, 23, 42, 0.03);
  --shadow-md: 0 8px 16px -4px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 10px 25px -5px rgba(79, 70, 229, 0.25);
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --max-width: 1280px;
  
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-body);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: all 0.25s ease; }

.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 0 24px;
}

/* Section Headers */
h1, h2, h3, h4 { font-weight: 700; color: var(--text-heading); line-height: 1.25; }

.section-title {
  font-size: 2.25rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 44px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 99px;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  margin-top: 0.5rem;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-dot {
  width: 10px;
  height: 10px;
  background: var(--primary-gradient);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.6);
}
.nav-links {
  display: flex;
  gap: 32px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--primary); }

/* Buttons */
.btn {
  padding: 10px 22px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff !important;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  opacity: 0.95;
}
.btn-outline {
  background-color: var(--bg-main);
  color: var(--text-heading);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

/* Hero Section */
#hero {
  padding: 150px 0 80px;
  background: radial-gradient(circle at 85% 15%, rgba(79, 70, 229, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 15% 85%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(79, 70, 229, 0.15);
}
.status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.hero-content h1 {
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text-heading);
}
.hero-content h1 span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 620px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.hero-image-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}
.hero-image-card:hover img {
  transform: scale(1.03);
}

/* Hero Stats Bar */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.stat-card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.stat-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-mono);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Common Card Design */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

/* Sections */
section { padding: 90px 0; }
.bg-subtle { background-color: var(--bg-subtle); }

/* Experience */
.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.exp-role { font-size: 1.4rem; font-weight: 700; color: var(--text-heading); }
.exp-company {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.exp-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--bg-subtle);
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 500;
}
.bullet-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.bullet-list li {
  position: relative;
  padding-left: 26px;
  color: var(--text-body);
}
.bullet-list li::before {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 0.75rem;
  color: var(--primary);
}

/* Badges & Tech Pills */
.tech-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tech-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--bg-subtle);
  color: var(--text-heading);
  border: 1px solid var(--border);
  font-weight: 500;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 30px;
}
.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.project-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}
.project-links { display: flex; gap: 10px; }
.project-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-heading);
  transition: all 0.2s;
}
.project-icon-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.project-title { font-size: 1.35rem; font-weight: 700; margin-bottom: 12px; }
.project-desc { flex-grow: 1; margin-bottom: 24px; font-size: 0.98rem; color: var(--text-muted); }

/* CP & Achievements */
.two-col-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.cp-card-item {
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  margin-bottom: 14px;
  transition: all 0.25s ease;
}
.cp-card-item:hover {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}
.cp-card-item.highlight-gold {
  background: #fefce8;
  border-color: #fef08a;
}
.cp-card-item.highlight-gold:hover {
  background: #fef9c3;
  border-color: #eab308;
}
.cp-card-item:last-child { margin-bottom: 0; }
.cp-header-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.cp-platform-title {
  font-weight: 700;
  color: var(--text-heading);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cp-link-btn {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cp-link-btn:hover { text-decoration: underline; }

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 240px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.08);
}

/* Footer */
footer {
  padding: 50px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-main);
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  font-size: 1.2rem;
}
.footer-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .two-col-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .nav-links { display: none; }
  .projects-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}