/* ==========================================================================
   CSS Design System for Sidharth's Portfolio
   Theme: Vercel/GitHub-inspired Black, Blue, and Purple
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Fonts */
  --font-sans: 'Poppins', sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* Colors (Dark Theme - Default) */
  --bg-primary: #030408;       /* Deep Black */
  --bg-secondary: #090a10;     /* Vercel Charcoal */
  --bg-tertiary: #111320;      /* Dark Dashboard Blue-Gray */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-blue: #3b82f6;      /* Electric Blue */
  --accent-purple: #a855f7;    /* Vercel/GitHub Purple */
  --accent-cyan: #06b6d4;      /* DevOps Cyan */
  --accent-green: #10b981;     /* Build Green */
  --accent-orange: #f97316;    /* AWS Orange */
  
  --accent-gradient: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  --accent-gradient-green: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-cyan) 100%);
  --accent-gradient-purple: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
  --accent-gradient-orange: linear-gradient(135deg, var(--accent-orange) 0%, #c2410c 100%);

  /* Borders & Shadows */
  --border-color: rgba(255, 255, 255, 0.05);
  --border-glow: rgba(168, 85, 247, 0.2);
  --glass-bg: rgba(9, 10, 16, 0.85);
  --glass-blur: blur(14px);
  --box-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --box-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --glow-shadow-blue: 0 0 15px rgba(59, 130, 246, 0.35);
  --glow-shadow-purple: 0 0 15px rgba(168, 85, 247, 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-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --accent-blue: #2563eb;
  --accent-purple: #7c3aed;
  --accent-cyan: #0891b2;
  --accent-green: #059669;
  --accent-orange: #ea580c;
  
  --accent-gradient: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
  --accent-gradient-green: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-cyan) 100%);
  --accent-gradient-purple: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);

  --border-color: rgba(15, 23, 42, 0.08);
  --border-glow: rgba(124, 58, 237, 0.25);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-blur: blur(14px);
  --box-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --box-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --glow-shadow-blue: 0 0 15px rgba(37, 99, 235, 0.15);
  --glow-shadow-purple: 0 0 15px rgba(124, 58, 237, 0.15);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
  color: var(--accent-purple);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--accent-blue);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

/* Scroll Progress Bar */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 9999;
}
.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
}

/* Preloader Screen */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader-logo {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  position: relative;
}
.preloader-logo span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.preloader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--accent-purple);
  border-right: 4px solid var(--accent-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.preloader-text {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-green);
  letter-spacing: 2px;
}

/* ==========================================================================
   Typography & Reusable Utilities
   ========================================================================== */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-gradient);
  margin: 10px auto 0;
  border-radius: 2px;
}

.mono-text {
  font-family: var(--font-mono);
}

.glow-btn {
  background: var(--accent-gradient);
  color: #fff !important;
  font-weight: 600;
  border: none;
  padding: 12px 28px;
  border-radius: 30px;
  box-shadow: var(--glow-shadow-purple);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.glow-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.6);
}

.outline-btn {
  border: 2px solid var(--accent-purple);
  color: var(--text-primary) !important;
  background: transparent;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 30px;
  transition: all var(--transition-fast);
}
.outline-btn:hover {
  background: var(--accent-gradient);
  color: #fff !important;
  border-color: transparent;
  transform: translateY(-3px);
}

/* Glassmorphism Styles */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}
.glass-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--box-shadow-lg);
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar-custom {
  background: rgba(3, 4, 8, 0.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  padding: 15px 0;
}
.navbar-custom.scrolled {
  padding: 8px 0;
  background: rgba(3, 4, 8, 0.95);
  box-shadow: var(--box-shadow-md);
}
.navbar-brand-custom {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
}
.navbar-brand-custom span {
  color: var(--accent-purple);
}
.nav-link-custom {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 8px 14px !important;
  position: relative;
  transition: color var(--transition-fast);
  font-size: 0.95rem;
}
.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--accent-purple) !important;
}
.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
  transform-origin: right;
}
.nav-link-custom:hover::after,
.nav-link-custom.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Theme Toggle Slider */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  margin-left: 15px;
}
.theme-switch {
  display: inline-block;
  height: 24px;
  position: relative;
  width: 48px;
}
.theme-switch input {
  display: none;
}
.slider {
  background-color: var(--bg-tertiary);
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
  border-radius: 34px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px;
}
.slider::before {
  background-color: var(--accent-purple);
  bottom: 2px;
  content: "";
  height: 18px;
  left: 2px;
  position: absolute;
  transition: .4s;
  width: 18px;
  border-radius: 50%;
  z-index: 2;
}
.slider i {
  font-size: 10px;
  color: var(--text-muted);
}
.slider .fa-sun {
  color: var(--accent-orange);
}
.slider .fa-moon {
  color: var(--accent-blue);
}
input:checked + .slider::before {
  transform: translateX(24px);
  background-color: var(--accent-blue);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  overflow: hidden;
}
.hero-background-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}
.shape-1 {
  background: var(--accent-purple);
  width: 350px;
  height: 350px;
  top: 10%;
  right: 10%;
}
.shape-2 {
  background: var(--accent-blue);
  width: 450px;
  height: 450px;
  bottom: 10%;
  left: 5%;
}

.hero-subtitle {
  font-family: var(--font-mono);
  color: var(--accent-green);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.hero-title {
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-title span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.typing-container {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--text-primary);
  min-height: 2.7rem;
  margin-bottom: 20px;
}
.typed-text {
  color: var(--accent-blue);
  border-right: 2px solid var(--accent-blue);
  animation: blink 0.75s step-end infinite;
  white-space: nowrap;
}
.hero-description {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 35px;
  max-width: 600px;
}
.hero-socials {
  margin-top: 30px;
}
.hero-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-right: 12px;
  transition: all var(--transition-fast);
}
.hero-social-link:hover {
  color: #fff;
  background: var(--accent-gradient);
  transform: translateY(-3px);
  box-shadow: var(--glow-shadow-purple);
}

/* DevOps Automation Visualizer (Hero Right Element) */
.devops-canvas-container {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.pipeline-visualizer {
  position: relative;
  width: 85%;
  height: 85%;
  background: rgba(9, 10, 16, 0.75);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--box-shadow-lg);
  animation: float 6s ease-in-out infinite;
}
.pipeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.pipeline-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
}
.pipeline-dots .dot-red { background: #ef4444; }
.pipeline-dots .dot-yellow { background: #f59e0b; }
.pipeline-dots .dot-green { background: #10b981; }

.pipeline-nodes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin: 40px 0;
}
.pipeline-line {
  position: absolute;
  top: 50%;
  left: 10%;
  width: 80%;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
}
.pipeline-progress-line {
  position: absolute;
  top: 50%;
  left: 10%;
  width: 0%;
  height: 2px;
  background: var(--accent-gradient);
  z-index: 2;
  animation: flowLine 8s ease-in-out infinite;
}
.pipeline-node {
  position: relative;
  width: 48px;
  height: 48px;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  z-index: 3;
  transition: all var(--transition-fast);
}
.pipeline-node i {
  font-size: 1.1rem;
}
.pipeline-node[data-status="active"] {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}
.pipeline-node[data-status="success"] {
  border-color: var(--accent-green);
  color: var(--accent-green);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}
.pipeline-node span.node-label {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  white-space: nowrap;
  color: var(--text-secondary);
}

.pipeline-terminal {
  background: #020204;
  border-radius: 8px;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-green);
  height: 120px;
  overflow-y: hidden;
  border: 1px solid rgba(255, 255, 255, 0.02);
}
.pipeline-terminal p {
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
}

/* ==========================================================================
   About Me & Stats
   ========================================================================== */
.about-section {
  padding: 80px 0;
}
.about-img-container {
  position: relative;
  display: inline-block;
  max-width: 320px;
  margin: 0 auto;
}
.about-img-container::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: 12px;
  bottom: 12px;
  border: 2px solid var(--accent-purple);
  border-radius: 16px;
  z-index: 1;
  transition: all var(--transition-normal);
}
.about-img-container:hover::before {
  top: -4px;
  left: -4px;
  right: 4px;
  bottom: 4px;
  border-color: var(--accent-blue);
}
.about-img {
  position: relative;
  z-index: 2;
  border-radius: 16px;
  width: 100%;
  height: auto;
  box-shadow: var(--box-shadow-lg);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.stat-card {
  padding: 24px 15px;
  text-align: center;
  height: 100%;
}
.stat-icon {
  font-size: 2rem;
  color: var(--accent-purple);
  margin-bottom: 12px;
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 5px;
  font-family: var(--font-mono);
  color: var(--text-primary);
}
.stat-title {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skills-section {
  padding: 80px 0;
  position: relative;
}
.skills-tabs {
  margin-bottom: 40px;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}
.skills-tab-btn {
  background: transparent !important;
  color: var(--text-secondary) !important;
  border: none !important;
  font-weight: 500;
  padding: 12px 20px !important;
  position: relative;
  transition: color var(--transition-fast);
  font-size: 0.95rem;
}
.skills-tab-btn.active {
  color: var(--accent-purple) !important;
}
.skills-tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}
.skills-tab-btn.active::after {
  transform: scaleX(1);
}

/* Skill Progress Bars */
.skill-item {
  margin-bottom: 25px;
}
.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.skill-name {
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}
.skill-name i {
  margin-right: 8px;
  color: var(--accent-blue);
  font-size: 1.1rem;
}
.skill-percentage {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-cyan);
}
.skill-progress-wrap {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.skill-progress-bar {
  height: 100%;
  width: 0%; /* Populated by JS */
  background: var(--accent-gradient);
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.1, 1, 0.1, 1);
}
.skill-progress-bar.success-color {
  background: var(--accent-gradient-green);
}
.skill-progress-bar.purple-color {
  background: var(--accent-gradient-purple);
}

/* Circular Skills Indicator */
.skill-circle-item {
  text-align: center;
  margin-bottom: 30px;
}
.skill-circle {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 15px;
}
.skill-circle svg {
  width: 100px;
  height: 100px;
  transform: rotate(-90deg);
}
.skill-circle circle {
  fill: none;
  stroke-width: 6;
}
.skill-circle .circle-bg {
  stroke: var(--bg-tertiary);
}
.skill-circle .circle-progress {
  stroke: var(--accent-purple);
  stroke-dasharray: 283;
  stroke-dashoffset: 283; /* Populated by JS */
  transition: stroke-dashoffset 1.5s cubic-bezier(0.1, 1, 0.1, 1);
  stroke-linecap: round;
}
.skill-circle-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
}
.skill-circle-title {
  font-size: 0.95rem;
  font-weight: 500;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects-section {
  padding: 80px 0;
}
.project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.project-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
}
.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.project-card:hover .project-img {
  transform: scale(1.1);
}
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 4, 8, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}
.project-card:hover .project-overlay {
  opacity: 1;
}
.project-actions {
  display: flex;
  gap: 15px;
}
.project-action-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--accent-purple);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}
.project-action-btn:hover {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--glow-shadow-purple);
}
.project-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.project-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
  flex-grow: 1;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}
.project-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--accent-cyan);
}

/* ==========================================================================
   Experience & Education Timelines
   ========================================================================== */
.timeline-section {
  padding: 80px 0;
}
.timeline {
  position: relative;
  padding-left: 30px;
  border-left: 2px solid var(--border-color);
  margin-left: 15px;
}
.timeline-item {
  position: relative;
  margin-bottom: 45px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -41px;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 4px solid var(--accent-purple);
  transition: all var(--transition-fast);
  z-index: 2;
}
.timeline-item:hover::before {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}
.timeline-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 12px;
  border: 1px solid rgba(6, 182, 212, 0.2);
}
.timeline-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.timeline-subtitle {
  font-size: 0.95rem;
  color: var(--accent-green);
  margin-bottom: 12px;
}
.timeline-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ==========================================================================
   Certifications
   ========================================================================== */
.certifications-section {
  padding: 80px 0;
}
.cert-card {
  padding: 24px;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.cert-icon {
  font-size: 2.5rem;
  color: var(--accent-purple);
  margin-bottom: 20px;
}
.cert-icon.aws-icon {
  color: var(--accent-orange);
}
.cert-icon.docker-icon {
  color: var(--accent-blue);
}
.cert-icon.code-icon {
  color: var(--accent-cyan);
}
.cert-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.cert-issuer {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 15px;
}
.cert-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-green);
  display: block;
}

/* ==========================================================================
   Resume Section
   ========================================================================== */
.resume-section {
  padding: 80px 0;
}
.resume-preview-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 30px;
  box-shadow: var(--box-shadow-md);
  margin-bottom: 30px;
}
.resume-mockup {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 40px;
  min-height: 400px;
  position: relative;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.resume-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--accent-gradient);
}
.resume-header-mock {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
  margin-bottom: 20px;
}
.resume-name-mock {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
}
.resume-section-mock {
  margin-bottom: 20px;
}
.resume-title-mock {
  font-weight: 600;
  color: var(--accent-purple);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 4px;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
}
.resume-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(3, 4, 8, 0.2) 60%, rgba(3, 4, 8, 0.95) 95%);
  pointer-events: none;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
  padding: 80px 0;
}
.contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}
.contact-info-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-right: 18px;
  transition: all var(--transition-fast);
}
.contact-info-item:hover .contact-info-icon {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--glow-shadow-purple);
}
.contact-info-text h5 {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}
.contact-info-text p,
.contact-info-text a {
  margin: 0;
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}
.contact-info-text a:hover {
  color: var(--accent-purple);
}

/* Forms Styling */
.form-floating > .form-control-custom {
  background-color: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 12px;
  padding: 1.5rem 1rem 0.5rem;
  height: calc(3.5rem + 2px);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-floating > textarea.form-control-custom {
  height: 150px;
}
.form-floating > .form-control-custom:focus {
  border-color: var(--accent-purple) !important;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.25) !important;
}
.form-floating > label {
  color: var(--text-secondary);
  padding: 1rem;
}
.form-floating > .form-control-custom:focus ~ label,
.form-floating > .form-control-custom:not(:placeholder-shown) ~ label {
  color: var(--accent-purple);
  opacity: 0.85;
}

.map-container {
  border-radius: 16px;
  overflow: hidden;
  height: 250px;
  border: 1px solid var(--border-color);
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1) invert(0.9) contrast(1.2);
  transition: filter var(--transition-normal);
}
[data-theme="light"] .map-container iframe {
  filter: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-custom {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 50px 0 20px;
}
.footer-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 15px;
}
.footer-logo span {
  color: var(--accent-purple);
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.footer-links a:hover {
  color: var(--accent-purple);
  padding-left: 5px;
}
.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 999;
  border: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  box-shadow: var(--glow-shadow-purple);
  transition: all var(--transition-normal);
  cursor: pointer;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.6);
}

/* ==========================================================================
   Animations & Keyframes
   ========================================================================== */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes blink {
  from, to { border-color: transparent }
  50% { border-color: var(--accent-blue); }
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes flowLine {
  0% { width: 0%; left: 10%; }
  35% { width: 80%; left: 10%; }
  50% { width: 0%; left: 90%; }
  85% { width: 80%; left: 10%; }
  100% { width: 0%; left: 10%; }
}

/* Scroll reveal classes */
.reveal {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.15, 0.85, 0.45, 1);
}
.reveal-fade {
  transform: scale(0.95);
}
.reveal-left {
  transform: translateX(-50px);
}
.reveal-right {
  transform: translateX(50px);
}
.reveal-up {
  transform: translateY(50px);
}
.reveal.active {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* ==========================================================================
   Media Queries & Responsiveness
   ========================================================================== */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 3rem;
  }
  .typing-container {
    font-size: 1.5rem;
  }
  .navbar-collapse-custom {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
    border: 1px solid var(--border-color);
  }
  .theme-switch-wrapper {
    margin-left: 0;
    margin-top: 15px;
  }
  .timeline {
    margin-left: 0;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .typing-container {
    font-size: 1.2rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .resume-preview-container {
    padding: 15px;
  }
  .resume-mockup {
    padding: 20px;
  }
  .devops-canvas-container {
    height: 350px;
  }
}
