/* -------------------------------------------------------------
 * 1. DESIGN SYSTEM & ROOT SETTINGS
 * ------------------------------------------------------------- */
:root {
  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Palette: Dark Mode Luxury Theme */
  --bg-dark: #0b0a11;
  --bg-card: rgba(18, 17, 29, 0.65);
  --bg-card-hover: rgba(26, 24, 41, 0.8);
  
  --text-light: #f5f4fc;
  --text-muted: #9c9aa6;
  --text-dark: #0b0a11;

  --color-primary: #a855f7;       /* Glowing Violet */
  --color-primary-rgb: 168, 85, 247;
  
  --color-secondary: #06b6d4;     /* Electric Cyan */
  --color-secondary-rgb: 6, 182, 212;

  --color-accent: #6366f1;        /* Indigo */
  --color-accent-rgb: 99, 102, 241;

  /* Borders & Shadows (Glassmorphic) */
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-border-hover: rgba(168, 85, 247, 0.35);
  --glass-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
  --glow-shadow: 0 0 25px rgba(168, 85, 247, 0.2);

  /* 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);

  --nav-height: 80px;
}

/* -------------------------------------------------------------
 * 2. GLOBAL RESET & BASE STYLES
 * ------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Global 3D Background Canvas */
#three-bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
  pointer-events: none;
  background-color: var(--bg-dark);
}

/* Mouse Glow Overlay */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -5;
  background: radial-gradient(circle 350px at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(var(--color-primary-rgb), 0.08), transparent 85%);
  transition: opacity var(--transition-normal);
}

/* -------------------------------------------------------------
 * 3. REUSABLE UTILITIES & GLASSMORPHISM
 * ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 120px 0;
}

/* Section Header */
.section-header {
  margin-bottom: 70px;
}
.section-header.align-center {
  text-align: center;
}
.section-subtitle {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 4px;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.title-underline {
  height: 4px;
  width: 65px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  margin: 14px auto 0;
  border-radius: 2px;
}
.section-header.align-center .title-underline {
  margin: 14px auto 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 30px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.25);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(var(--color-primary-rgb), 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-light);
  border-color: var(--glass-border);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 5px 15px rgba(var(--color-primary-rgb), 0.15);
}

.btn-glow:hover {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Premium Typography */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

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

/* 3D Tilt Card Base */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}
.tilt-card > * {
  transform: translateZ(20px);
}

/* Scroll Reveal Classes */
.scroll-reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------
 * 4. LOADER SCREEN
 * ------------------------------------------------------------- */
.loader-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.loader-content {
  text-align: center;
  width: 250px;
}

.loader-logo {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}
.loader-logo span {
  color: var(--color-primary);
}

.loader-bar-bg {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.loader-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 10px;
  transition: width 0.1s linear;
}

.loader-percentage-text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 1px;
}

.loader-fade {
  opacity: 0;
  pointer-events: none;
}

/* -------------------------------------------------------------
 * 5. NAVIGATION NAVBAR
 * ------------------------------------------------------------- */
.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  background-color: rgba(11, 10, 17, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--transition-normal);
}

.glass-nav.nav-scrolled {
  height: 70px;
  background-color: rgba(11, 10, 17, 0.85);
  box-shadow: var(--glass-shadow);
}

/* Scroll Progress indicator */
.scroll-progress-line {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  z-index: 1001;
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
}
.logo-text .dot {
  color: var(--color-primary);
  text-shadow: 0 0 12px rgba(var(--color-primary-rgb), 0.5);
}

.nav-list {
  display: flex;
  gap: 36px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--text-light);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width var(--transition-normal);
  border-radius: 1px;
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Mobile Toggle Hamburger */
.menu-toggle {
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}

/* -------------------------------------------------------------
 * 6. HERO SECTION & ORB CONTAINER
 * ------------------------------------------------------------- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 750px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--color-secondary);
  background: rgba(var(--color-secondary-rgb), 0.08);
  border: 1px solid rgba(var(--color-secondary-rgb), 0.15);
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 24px;
  animation: float 4s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.typing-text-container {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
  height: 40px;
}
.typing-text-container .typing-target {
  color: var(--text-light);
  border-right: 2px solid var(--color-primary);
  padding-right: 4px;
  animation: blink 0.75s step-end infinite;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
}

/* Stats Row inside Hero */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  text-align: left;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Right Column: Hero 3D Orb */
.hero-orb-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.orb-container {
  width: 380px;
  height: 380px;
  position: relative;
  z-index: 5;
}

/* Scroll indicator mouse */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.mouse-icon {
  width: 26px;
  height: 44px;
  border: 2px solid var(--text-muted);
  border-radius: 15px;
  display: block;
  position: relative;
}
.mouse-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.5s ease-out infinite;
}

/* -------------------------------------------------------------
 * 7. ABOUT SECTION
 * ------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}

.about-image-wrapper {
  display: flex;
  justify-content: center;
}

.about-img-card {
  position: relative;
  border-radius: 24px;
  padding: 10px;
  max-width: 320px;
}
.about-img-card img {
  border-radius: 16px;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  position: relative;
  z-index: 2;
}

.img-border-glow {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  z-index: 1;
  opacity: 0.2;
  transition: opacity var(--transition-normal);
}
.about-img-card:hover .img-border-glow {
  opacity: 0.7;
}

.about-intro {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.about-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* "What I'm doing now" focus cards */
.focus-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.focus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.focus-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  align-items: start;
}

.focus-icon-box {
  font-size: 1.5rem;
  color: var(--color-primary);
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(var(--color-primary-rgb), 0.08);
  border: 1px solid rgba(var(--color-primary-rgb), 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.focus-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.focus-card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* -------------------------------------------------------------
 * 8. SKILLS SECTION WITH CATEGORIES
 * ------------------------------------------------------------- */
.skills-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}

.skills-tab-btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 20px;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all var(--transition-normal);
}
.skills-tab-btn:hover, .skills-tab-btn.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.35);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.skill-card-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
}

.skill-icon-wrapper {
  font-size: 1.6rem;
  color: var(--color-secondary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(var(--color-secondary-rgb), 0.08);
  border: 1px solid rgba(var(--color-secondary-rgb), 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skill-details {
  flex-grow: 1;
}

.skill-name-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.skill-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.skill-level-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-secondary);
}

.skill-bar-bg {
  height: 5px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  width: 0%;
  border-radius: 3px;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* -------------------------------------------------------------
 * 9. PROJECTS SECTION
 * ------------------------------------------------------------- */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
}

.project-thumbnail-box {
  aspect-ratio: 1.6;
  position: relative;
  overflow: hidden;
}
.project-thumbnail-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.project-card:hover .project-thumbnail-box img {
  transform: scale(1.06);
}

.project-view-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 10, 17, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
}
.project-card:hover .project-view-overlay {
  opacity: 1;
}

.project-summary-box {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.project-tag {
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(var(--color-primary-rgb), 0.08);
  border: 1px solid rgba(var(--color-primary-rgb), 0.15);
  color: var(--color-primary);
  padding: 4px 10px;
  border-radius: 12px;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 8px;
  transition: color var(--transition-fast);
}
.project-card:hover .project-title {
  color: var(--color-primary);
}

.project-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* -------------------------------------------------------------
 * 10. TOOLS SECTION
 * ------------------------------------------------------------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.tool-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.tool-icon-box {
  font-size: 1.4rem;
  color: var(--color-accent);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(var(--color-accent-rgb), 0.08);
  border: 1px solid rgba(var(--color-accent-rgb), 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

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

/* -------------------------------------------------------------
 * 11. CONTACT SECTION
 * ------------------------------------------------------------- */
.contact-card-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  padding: 60px 40px;
  text-align: center;
}

.contact-card-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-card-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 550px;
  margin: 0 auto;
}

.contact-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
}

.contact-item-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  font-size: 1.2rem;
  color: var(--color-primary);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: left;
  display: block;
}
.contact-value {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-item-right {
  display: flex;
  gap: 8px;
}

.contact-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  font-size: 0.95rem;
}
.contact-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* -------------------------------------------------------------
 * 12. MODAL DIALOG
 * ------------------------------------------------------------- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(11, 10, 17, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  position: relative;
  max-width: 900px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
  border-radius: 20px;
  padding: 40px;
}
.modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
  z-index: 10;
}
.modal-close:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: rotate(90deg);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.modal-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}
.modal-image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.modal-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.modal-thumbnails:empty {
  display: none;
}
.modal-thumb {
  width: 68px;
  height: 46px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  background: var(--bg-card);
}
.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.modal-thumb:hover {
  opacity: 1;
  border-color: rgba(var(--color-primary-rgb), 0.5);
  transform: translateY(-2px);
}
.modal-thumb.active {
  opacity: 1;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(var(--color-primary-rgb), 0.4);
}

.modal-project-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.modal-details-wrapper {
  display: flex;
  flex-direction: column;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.modal-case-study {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.case-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.case-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.case-label i {
  font-size: 0.9rem;
}

.case-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* -------------------------------------------------------------
 * 13. TOAST NOTIFICATION & FOOTER
 * ------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-primary);
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: var(--glass-shadow), 0 0 15px rgba(var(--color-primary-rgb), 0.15);
  font-family: var(--font-heading);
  font-weight: 600;
  color: #fff;
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.footer {
  border-top: 1px solid var(--glass-border);
  padding: 35px 0;
  margin-top: 80px;
}

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

.copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.back-to-top {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-normal);
}
.back-to-top:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--glow-shadow);
}

/* -------------------------------------------------------------
 * 14. ANIMATIONS KEYFRAMES
 * ------------------------------------------------------------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

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

@keyframes scroll-wheel {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 15px); }
}

/* -------------------------------------------------------------
 * 15. RESPONSIVE MEDIA BREAKPOINTS
 * ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .hero-container {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .stats-row {
    justify-content: center;
    width: 100%;
    max-width: 500px;
  }
  .hero-orb-wrapper {
    grid-row: 1;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image-wrapper {
    order: 1;
  }
  .about-details {
    order: 2;
  }
  .modal-body {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 80px 0;
  }
  .section-title {
    font-size: 2.2rem;
  }
  
  /* Mobile Navigation Hamburger drawer */
  .menu-toggle {
    display: block;
    z-index: 1002;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 290px;
    height: 100vh;
    background: rgba(11, 10, 17, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid var(--glass-border);
    padding: 120px 40px;
    display: flex;
    flex-direction: column;
    z-index: 1001;
    transition: right var(--transition-normal);
    box-shadow: var(--glass-shadow);
  }
  .nav-menu.active {
    right: 0;
  }
  .nav-list {
    flex-direction: column;
    gap: 28px;
  }
  .nav-link {
    font-size: 1.1rem;
  }

  .orb-container {
    width: 300px;
    height: 300px;
  }

  .contact-card {
    padding: 40px 20px;
  }

  .contact-item-row {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .contact-item-left {
    justify-content: center;
  }

  .contact-item-right {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .typing-text-container {
    font-size: 1.5rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .stats-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .skills-tabs, .filter-tabs {
    gap: 8px;
  }
  .skills-tab-btn, .filter-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
}

/* -------------------------------------------------------------
 * 16. TIMELINE & CERTIFICATIONS
 * ------------------------------------------------------------- */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--glass-border);
  transform: translateX(-50%);
}

.timeline-items {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding-right: 40px;
  align-self: flex-start;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  padding-right: 0;
  padding-left: 40px;
}

.timeline-dot {
  position: absolute;
  top: 24px;
  right: -8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 3px solid var(--color-primary);
  z-index: 10;
  box-shadow: var(--glow-shadow);
  transition: background-color var(--transition-normal);
}

.timeline-item:nth-child(even) .timeline-dot {
  right: auto;
  left: -8px;
}

.timeline-item:hover .timeline-dot {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
}

.timeline-content {
  padding: 24px;
}

.timeline-period {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-secondary);
  background: rgba(var(--color-secondary-rgb), 0.08);
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 12px;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-company {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* Timeline responsive styles */
@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
    transform: none;
  }
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0 !important;
    align-self: flex-start !important;
  }
  .timeline-dot {
    left: 12px !important;
    right: auto !important;
  }
}
