/* Imports Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* Design Tokens & Variables */
:root {
  --bg-primary: #070a13;
  --bg-secondary: #0c101f;
  --bg-card: rgba(17, 26, 46, 0.45);
  --bg-card-hover: rgba(23, 37, 66, 0.7);
  --border-color: rgba(51, 65, 85, 0.4);
  --border-color-hover: rgba(6, 182, 212, 0.6);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --color-accent: #06b6d4; /* Neon Cyan */
  --color-accent-glow: rgba(6, 182, 212, 0.15);
  --color-accent-secondary: #3b82f6; /* Tech Blue */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --card-radius: 20px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1200px;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  line-height: 1.6;
}

/* 3D WebGL Background Canvas */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.65;
  transition: opacity 1s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

section {
  padding: 100px 0;
}

/* Glow Background Effects */
.bg-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.glow-1 { top: 10%; left: -10%; }
.glow-2 { top: 50%; right: -10%; }

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7, 10, 19, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 12px 0;
  background: rgba(7, 10, 19, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Status Badge */
.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 6px 14px;
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-accent);
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(6, 182, 212, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

/* Glass Card styling */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 32px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  box-shadow: 0 10px 30px var(--color-accent-glow);
  transform: translateY(-4px);
}

/* Hero Section */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  position: relative;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero-subtitle {
  font-family: var(--font-mono);
  color: var(--color-accent);
  font-size: 0.95rem;
  margin-bottom: 20px;
  display: block;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--bg-primary);
  border: 1px solid var(--color-accent);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-accent);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

/* Bento Grid Profile Section */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.bento-1 { grid-column: span 2; }
.bento-2 { grid-column: span 1; }
.bento-3 { grid-column: span 1; }
.bento-4 { grid-column: span 1; }
.bento-5 { grid-column: span 1; }

.section-tag {
  font-family: var(--font-mono);
  color: var(--color-accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.bento-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.bento-card p:last-child {
  margin-bottom: 0;
}

/* Bento Cards Specifics */
/* Timecard */
.timecard-clock {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 15px 0 8px 0;
}

/* Socials Card */
.socials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.social-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.social-item span {
  font-size: 0.75rem;
  margin-top: 8px;
  font-family: var(--font-mono);
}

/* Feature Project Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.project-icon {
  background: rgba(6, 182, 212, 0.1);
  padding: 12px;
  border-radius: 12px;
  color: var(--color-accent);
}

.project-links {
  display: flex;
  gap: 12px;
}

.project-link {
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.project-link:hover {
  color: var(--color-accent);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--text-secondary);
}

/* Tech Stack Grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tech-category h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tech-category h3 span {
  color: var(--color-accent);
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.tech-item:hover {
  border-color: var(--color-accent);
  color: var(--text-primary);
  background: rgba(6, 182, 212, 0.05);
  transform: scale(1.03);
}

/* Experience Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: var(--border-color);
  top: 0;
  bottom: 0;
  left: 20px;
}

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

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 3px solid var(--color-accent);
  left: 14px;
  top: 6px;
  z-index: 2;
  box-shadow: 0 0 10px var(--color-accent);
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-dot {
  background-color: var(--color-accent);
  box-shadow: 0 0 15px var(--color-accent);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 4px;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

.timeline-company {
  color: var(--color-accent);
  font-size: 0.9rem;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Footer & Contact */
footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  background-color: var(--bg-primary);
  position: relative;
  z-index: 2;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-social-link {
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.footer-social-link:hover {
  color: var(--color-accent);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Mobile Responsive */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-1 { grid-column: span 2; }
  .bento-2 { grid-column: span 1; }
  .bento-3 { grid-column: span 1; }
  .bento-4 { grid-column: span 1; }
  .bento-5 { grid-column: span 1; }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  .nav-menu {
    display: none; /* Can be turned into burger, keep clean for single page */
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-1, .bento-2, .bento-3, .bento-4, .bento-5 {
    grid-column: span 1;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .tech-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    margin-bottom: 16px;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
  }
  
  .timeline::after {
    left: 10px;
  }
  
  .timeline-dot {
    left: 4px;
  }
  
  .timeline-item {
    padding-left: 30px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
