/* ==========================================================================
   PORTFOLIO STYLESHEET - BHARANIDHARAN M
   Theme: Midnight Glassmorphism / Cyber-Cloud Tech
   Typography: Outfit (Headings), Inter (Body), JetBrains Mono (Code/Badges)
   ========================================================================== */

/* --- Custom Properties / Design Tokens --- */
:root {
  /* Color Palette */
  --bg-darkest: #070a12;
  --bg-primary: #0a0f1d;
  --bg-secondary: #0f172a;
  --bg-card: rgba(16, 24, 44, 0.65);
  --bg-card-hover: rgba(22, 33, 62, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 242, 254, 0.4);
  --border-active: rgba(121, 40, 202, 0.6);

  /* Glowing Accent Colors */
  --cyan-primary: #00f2fe;
  --blue-primary: #4facfe;
  --violet-primary: #8a2be2;
  --purple-glow: #a855f7;
  --emerald-accent: #10b981;
  --amber-accent: #f59e0b;
  --rose-accent: #f43f5e;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #00f2fe 0%, #4facfe 50%, #8a2be2 100%);
  --grad-cyan-blue: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --grad-purple-pink: linear-gradient(135deg, #8a2be2 0%, #d946ef 100%);
  --grad-card: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  --grad-banner-cloud: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(79, 172, 254, 0.1));
  --grad-banner-web: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(217, 70, 239, 0.1));
  --grad-banner-tools: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
  --grad-banner-storage: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.1));

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-highlight: #ffffff;

  /* Shadows & Glows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.55);
  --shadow-cyan-glow: 0 0 25px rgba(0, 242, 254, 0.35);
  --shadow-purple-glow: 0 0 25px rgba(138, 43, 226, 0.35);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
  font-size: 16px;
}

body {
  background-color: var(--bg-darkest);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Canvas Background */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* --- Layout Utility Classes --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--cyan-primary);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-highlight);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Gradient Text Effect */
.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Glassmorphism Card Style */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 242, 254, 0.15);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--grad-cyan-blue);
  color: #070a12;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-highlight);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: rgba(0, 242, 254, 0.1);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(7, 10, 18, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.navbar-wrapper.scrolled {
  background: rgba(7, 10, 18, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-highlight);
}

.logo-symbol {
  font-family: var(--font-mono);
  color: var(--cyan-primary);
  font-weight: 700;
  background: rgba(0, 242, 254, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.logo-text .accent-text {
  color: var(--cyan-primary);
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.3rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--grad-cyan-blue);
  transition: width var(--transition-normal);
  border-radius: var(--radius-full);
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 50px;
  position: relative;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: #34d399;
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--emerald-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--emerald-accent);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-highlight);
  margin-bottom: 0.8rem;
  letter-spacing: -0.02em;
}

.typing-container {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  min-height: 2.2rem;
  display: flex;
  align-items: center;
}

.typing-prefix {
  color: var(--text-muted);
  margin-right: 0.4rem;
}

.typed-text {
  color: var(--cyan-primary);
  font-weight: 600;
}

.cursor {
  display: inline-block;
  background-color: var(--cyan-primary);
  width: 2px;
  margin-left: 2px;
  animation: blink 0.9s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-description {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2.2rem;
  max-width: 580px;
}

.hero-description strong {
  color: var(--text-highlight);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.pill-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.pill-item i {
  color: var(--cyan-primary);
}

/* Terminal Card in Hero Visual */
.terminal-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(0, 242, 254, 0.15);
  border-color: rgba(255, 255, 255, 0.12);
  transition: transform var(--transition-normal);
}

.terminal-card:hover {
  transform: translateY(-6px) scale(1.01);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: rgba(10, 15, 29, 0.95);
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

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

.terminal-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-accent);
  border-radius: var(--radius-sm);
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.7;
}

.t-comment { color: var(--text-muted); font-style: italic; }
.t-keyword { color: #f43f5e; }
.t-var { color: #38bdf8; }
.t-prop { color: #cbd5e1; }
.t-str { color: #a7f3d0; }
.t-bool { color: #f59e0b; }
.t-func { color: #c084fc; }
.t-call { color: #60a5fa; }
.t-indent { padding-left: 1.5rem; }
.t-prompt { margin-top: 1rem; color: var(--cyan-primary); }
.t-cursor-char { color: var(--emerald-accent); font-weight: bold; }
.t-output { color: #34d399; font-size: 0.8rem; margin-top: 0.3rem; }

/* Scroll Down Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 1px;
  transition: color var(--transition-fast);
}

.scroll-indicator:hover {
  color: var(--cyan-primary);
}

.scroll-indicator .mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-indicator .wheel {
  width: 4px;
  height: 8px;
  background-color: var(--cyan-primary);
  border-radius: 2px;
  animation: scrollWheel 1.8s infinite;
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2rem;
  align-items: stretch;
}

.about-bio-card {
  padding: 2.5rem;
}

.bio-badge-row {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.badge-accent {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--cyan-primary);
  font-family: var(--font-mono);
}

.about-bio-card h3 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  color: var(--text-highlight);
  margin-bottom: 1.2rem;
  line-height: 1.35;
}

.about-bio-card p {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
}

.about-highlights {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.highlight-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  padding: 1.1rem;
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

.highlight-item:hover {
  border-color: rgba(0, 242, 254, 0.3);
}

.highlight-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(0, 242, 254, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-primary);
  font-size: 1.2rem;
}

.highlight-item h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text-highlight);
  margin-bottom: 0.2rem;
}

.highlight-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.about-stats-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-highlight);
  margin-bottom: 0.5rem;
}

.stat-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.skill-category-card {
  padding: 2rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.category-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.cloud-icon { background: rgba(0, 242, 254, 0.12); color: var(--cyan-primary); }
.code-icon { background: rgba(138, 43, 226, 0.12); color: #c084fc; }
.web-icon { background: rgba(59, 130, 246, 0.12); color: #60a5fa; }
.db-icon { background: rgba(16, 185, 129, 0.12); color: var(--emerald-accent); }

.category-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-highlight);
}

.category-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.skill-tag i {
  color: var(--cyan-primary);
  font-size: 0.95rem;
}

.skill-tag:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: rgba(0, 242, 254, 0.4);
  color: var(--text-highlight);
  transform: translateY(-2px);
}

/* ==========================================================================
   TIMELINE / JOURNEY SECTION
   ========================================================================== */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan-primary), var(--violet-primary), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 55px;
}

.timeline-dot {
  position: absolute;
  top: 24px;
  left: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-darkest);
  border: 3px solid var(--cyan-primary);
  box-shadow: 0 0 12px var(--cyan-primary);
}

.timeline-content {
  padding: 2rem;
}

.timeline-badge-date {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.badge-year {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan-primary);
}

.badge-status {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.badge-status.current {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-accent);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-status.completed {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-status.ongoing {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-highlight);
  margin-bottom: 0.25rem;
}

.timeline-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.timeline-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-tags span {
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--text-highlight);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
  background: var(--grad-cyan-blue);
  color: #070a12;
  font-weight: 600;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

.project-banner {
  height: 130px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  overflow: hidden;
}

.banner-cloud { background: var(--grad-banner-cloud); }
.banner-web { background: var(--grad-banner-web); }
.banner-tools { background: var(--grad-banner-tools); }
.banner-storage { background: var(--grad-banner-storage); }

.project-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  background: rgba(7, 10, 18, 0.8);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  color: var(--text-highlight);
}

.project-banner-icon {
  font-size: 3.5rem;
  opacity: 0.2;
  color: var(--text-highlight);
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.project-card:hover .project-banner-icon {
  transform: scale(1.15) rotate(5deg);
  opacity: 0.35;
}

.project-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-highlight);
  margin-bottom: 0.6rem;
}

.project-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--cyan-primary);
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.contact-info-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-highlight);
  margin-bottom: 0.75rem;
}

.contact-info-card > p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.98rem;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-primary);
  font-size: 1.15rem;
}

.contact-text {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.contact-text span {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

.copy-email-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-copy {
  background: transparent;
  border: none;
  color: var(--cyan-primary);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0.2rem;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.btn-copy:hover {
  color: var(--blue-primary);
  transform: scale(1.15);
}

.social-title-wrap {
  margin-top: 1rem;
}

.social-title {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.social-icons {
  display: flex;
  gap: 0.8rem;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.15rem;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--cyan-primary);
  color: var(--cyan-primary);
  transform: translateY(-3px);
}

/* Contact Form */
.contact-form-card {
  padding: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
  position: relative;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

.form-control {
  background: rgba(10, 15, 29, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  color: var(--text-highlight);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: var(--cyan-primary);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.error-msg {
  font-size: 0.75rem;
  color: var(--rose-accent);
  margin-top: 0.35rem;
  display: none;
}

.form-group.has-error .error-msg {
  display: block;
}

.form-group.has-error .form-control {
  border-color: var(--rose-accent);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #05080e;
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
  position: relative;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-brand-text {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-highlight);
}

.footer-role {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

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

.btn-back-to-top {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-back-to-top:hover {
  background: var(--grad-cyan-blue);
  color: #070a12;
  transform: translateY(-3px);
}

/* ==========================================================================
   MODALS & TOAST NOTIFICATIONS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 10, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-card {
  max-width: 650px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  transform: scale(0.92);
  transition: transform var(--transition-normal);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-highlight);
  background: rgba(255, 255, 255, 0.15);
}

/* Resume Modal Details */
.resume-modal-card {
  max-width: 480px;
  text-align: center;
}

.resume-icon-circle {
  width: 65px;
  height: 65px;
  background: rgba(0, 242, 254, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  color: var(--cyan-primary);
  font-size: 1.8rem;
}

.resume-modal-card h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text-highlight);
  margin-bottom: 0.3rem;
}

.resume-modal-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.resume-highlights-list {
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.resume-highlights-list i {
  color: var(--emerald-accent);
  margin-right: 0.5rem;
}

.resume-modal-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Dynamic Project Modal Styles */
.modal-project-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 242, 254, 0.1);
  color: var(--cyan-primary);
  border-radius: var(--radius-full);
  margin-bottom: 0.8rem;
}

.modal-project-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text-highlight);
  margin-bottom: 1rem;
}

.modal-section-h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-highlight);
  margin: 1.25rem 0 0.5rem 0;
}

.modal-project-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-feature-list {
  padding-left: 1.2rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--cyan-primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 242, 254, 0.3);
  backdrop-filter: blur(16px);
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-md);
  color: var(--text-highlight);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: opacity 0.3s ease;
}

.toast i {
  color: var(--emerald-accent);
  font-size: 1.1rem;
}

@keyframes slideToast {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .status-badge {
    margin: 0 auto 1.5rem auto;
  }

  .typing-container {
    justify-content: center;
  }

  .hero-description {
    margin: 0 auto 2.2rem auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-pills {
    justify-content: center;
  }

  .hero-visual-col {
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4.5rem 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .typing-container {
    font-size: 1.15rem;
  }

  /* Mobile Nav Drawer */
  .mobile-toggle {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background: rgba(7, 10, 18, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
