:root {
  /* "Royal Temple Bronze & Sacred Gold" - Dark Mode Default */
  --bg-primary: #08080a;
  --bg-secondary: #111015;
  --bg-card: rgba(20, 18, 26, 0.78);
  --bg-card-hover: rgba(30, 27, 40, 0.92);
  --bg-glass: rgba(16, 14, 22, 0.88);
  
  --accent-cyan: #e6c280;     /* Sacred Temple Gold */
  --accent-blue: #d4a359;     /* Antique Bronze */
  --accent-purple: #00e5ff;   /* Royal Teal Cyan */
  --accent-emerald: #10b981;  /* Temple Emerald */
  --accent-amber: #f59e0b;    /* Warm Amber */
  
  --text-main: #fcfaf7;
  --text-muted: #d5ccbe;
  --text-dim: #9a9082;
  
  --border-color: rgba(230, 194, 128, 0.18);
  --border-highlight: rgba(230, 194, 128, 0.5);
  
  --glow-cyan: 0 4px 25px rgba(230, 194, 128, 0.28);
  --glow-purple: 0 4px 25px rgba(212, 163, 89, 0.28);
  
  --gradient-cyber: linear-gradient(135deg, #e6c280 0%, #d4a359 50%, #00e5ff 100%);
  --gradient-text: linear-gradient(135deg, #ffffff 0%, #e6c280 100%);
  --gradient-badge: linear-gradient(135deg, rgba(230,194,128,0.15) 0%, rgba(212,163,89,0.15) 100%);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-code: 'Fira Code', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

[data-theme="light"] {
  /* "Warm Sandstone & Sandalwood Gold" - Refined Light Mode */
  --bg-primary: #f5efe6;
  --bg-secondary: #faf6f0;
  --bg-card: rgba(255, 252, 247, 0.92);
  --bg-card-hover: rgba(247, 241, 232, 0.98);
  --bg-glass: rgba(250, 245, 237, 0.92);
  
  --accent-cyan: #b8860b;     /* Rich Antique Gold */
  --accent-blue: #996515;     /* Sandalwood Bronze */
  --accent-purple: #0284c7;   /* Deep Royal Teal */
  --accent-emerald: #059669;  /* Temple Emerald */
  --accent-amber: #d97706;
  
  --text-main: #2c221e;       /* Deep Mahogany Charcoal */
  --text-muted: #54463d;      /* Warm Espresso Slate */
  --text-dim: #7e6c5f;       /* Muted Sandalwood */
  
  --border-color: rgba(184, 134, 11, 0.22);
  --border-highlight: rgba(184, 134, 11, 0.5);
  
  --glow-cyan: 0 4px 20px rgba(184, 134, 11, 0.18);
  --glow-purple: 0 4px 20px rgba(153, 101, 21, 0.18);
  
  --gradient-cyber: linear-gradient(135deg, #b8860b 0%, #996515 50%, #0284c7 100%);
  --gradient-text: linear-gradient(135deg, #2c221e 0%, #b8860b 100%);
  --gradient-badge: linear-gradient(135deg, rgba(184,134,11,0.1) 0%, rgba(153,101,21,0.1) 100%);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(rgba(230, 194, 128, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(230, 194, 128, 0.12) 0%, transparent 60%);
  background-size: 32px 32px, 100% 100%;
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

[data-theme="light"] body {
  background-image: 
    radial-gradient(rgba(184, 134, 11, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(184, 134, 11, 0.1) 0%, transparent 60%);
}

/* Custom Scrollbar for Desktop */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(230, 194, 128, 0.35);
  border-radius: var(--radius-full);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(184, 134, 11, 0.35);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Scroll progress bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-cyber);
  z-index: 1000;
  box-shadow: var(--glow-cyan);
}

/* Base Container */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.8rem;
}

/* Section Common Styling */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3.2rem;
}

.section-subtitle {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 0.4rem;
  display: inline-block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  line-height: 1.25;
}

.section-desc {
  color: var(--text-muted);
  max-width: 580px;
  margin: 0.65rem auto 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1.4rem;
  min-height: 44px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  touch-action: manipulation;
}

.btn-primary {
  background: var(--gradient-cyber);
  color: #111015;
  font-weight: 700;
  box-shadow: var(--glow-cyan);
}

[data-theme="light"] .btn-primary {
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(230, 194, 128, 0.45);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border-color: var(--border-color);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-3px);
}

.btn-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--gradient-badge);
  border: 1px solid var(--border-highlight);
  color: var(--accent-cyan);
}

/* Glass Card with Sandalwood Gold Filigree Accent */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  transition: all var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-4px);
  box-shadow: var(--glow-cyan);
}

/* Scroll Animation Observer Classes */
.animate-on-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.hidden {
  opacity: 0;
  transform: translateY(28px);
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll,
  .animate-on-scroll.hidden {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 1060px;
  z-index: 999;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.nav-brand {
  font-weight: 800;
  font-size: 1.2rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  padding: 0.3rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-cyan);
}

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

.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Mobile Nav Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  color: var(--text-main);
  font-size: 1.3rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  html {
    font-size: 14px;
  }
  
  .section {
    padding: 4rem 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 1.2rem 1.6rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  }
  
  .nav-links.active {
    display: flex;
    animation: fadeInDown 0.3s ease-out;
  }

  .nav-links li a {
    display: block;
    padding: 0.7rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .navbar {
    width: calc(100% - 1.6rem);
    padding: 0.6rem 1rem;
  }

  .nav-resume-btn span {
    display: none;
  }

  .nav-resume-btn {
    padding: 0.5rem !important;
    min-height: 38px;
    width: 38px;
  }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.2rem;
  }
  
  .section-title {
    font-size: 1.85rem;
  }

  .glass-card {
    padding: 1.25rem;
  }
}
/* Hero Section */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 6rem;
  padding-bottom: 3.5rem;
  overflow: hidden;
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-text-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.3);
  border-radius: var(--radius-full);
  color: var(--accent-emerald);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

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

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.hero-title span.highlight {
  background: var(--gradient-cyber);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.typing-container {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  min-height: 2rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
}

.typing-cursor {
  display: inline-block;
  width: 2.5px;
  height: 1.25rem;
  background-color: var(--accent-cyan);
  margin-left: 3px;
  animation: blink 0.8s infinite;
}

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

.hero-description {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 1.8rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-socials {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.social-link {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-link:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: var(--glow-cyan);
}

/* User Profile Image Showcase Frame */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-glow-backdrop {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--gradient-cyber);
  filter: blur(55px);
  opacity: 0.35;
  border-radius: 50%;
  animation: float-glow 6s ease-in-out infinite alternate;
}

@keyframes float-glow {
  0% { transform: scale(0.9) rotate(0deg); opacity: 0.25; }
  100% { transform: scale(1.1) rotate(180deg); opacity: 0.45; }
}

.profile-card-frame {
  position: relative;
  width: 290px;
  height: 340px;
  border-radius: var(--radius-lg);
  padding: 6px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.4) 0%, rgba(127, 0, 255, 0.4) 100%);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition-bounce);
}

.profile-card-frame:hover {
  transform: translateY(-6px) rotate(-1deg);
}

.profile-img-container {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-lg) - 5px);
  overflow: hidden;
  position: relative;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.profile-card-frame:hover .profile-img {
  transform: scale(1.04);
}

.floating-badge {
  position: absolute;
  padding: 0.5rem 0.9rem;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 3;
}

.badge-top-right {
  top: -12px;
  right: -15px;
  animation: float-badge 4s ease-in-out infinite alternate;
}

.badge-bottom-left {
  bottom: -12px;
  left: -15px;
  animation: float-badge 4s ease-in-out infinite 2s alternate;
}

@keyframes float-badge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-text-area {
    align-items: center;
  }

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

  .hero-image-wrapper {
    order: -1;
  }

  .profile-card-frame {
    width: 250px;
    height: 300px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.1rem;
  }

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

  .hero-actions {
    justify-content: center;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .profile-card-frame {
    width: 220px;
    height: 270px;
  }

  .badge-top-right {
    top: -10px;
    right: -5px;
  }

  .badge-bottom-left {
    bottom: -10px;
    left: -5px;
  }
}
/* Timeline & Experience Section */
.timeline-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: 3rem;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: 3rem;
}

.timeline-dot {
  position: absolute;
  top: 1.5rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-cyan);
  box-shadow: var(--glow-cyan);
  z-index: 2;
  transition: all var(--transition-fast);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

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

.timeline-item:hover .timeline-dot {
  background: var(--accent-cyan);
  transform: scale(1.3);
}

.timeline-card {
  position: relative;
}

.company-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.job-role {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.company-name {
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 1rem;
}

.job-date {
  font-size: 0.85rem;
  color: var(--text-dim);
  background: var(--bg-glass);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.job-points {
  list-style: none;
  margin-top: 1rem;
}

.job-points li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.job-points li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-size: 1.1rem;
  line-height: 1;
}

.tech-stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.tech-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 3rem !important;
    padding-right: 0 !important;
  }

  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 10px;
    right: auto;
  }
}
/* Projects Section & Modals */
.projects-filter-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-cyber);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--glow-cyan);
}

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

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-cyan);
}

.project-date {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.project-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  line-height: 1.3;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.project-metrics {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding: 0.8rem;
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-sm);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent-emerald);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.btn-details {
  background: none;
  border: none;
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition-fast);
}

.btn-details:hover {
  gap: 0.8rem;
}

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

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

.modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  transform: scale(0.9);
  transition: transform var(--transition-bounce);
}

.modal-backdrop.active .modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
/* Skills Section */
.skills-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.skill-category-card {
  height: 100%;
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.category-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gradient-badge);
  border: 1px solid var(--border-highlight);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.skills-badge-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

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

.skill-chip:hover {
  background: var(--gradient-badge);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: var(--glow-cyan);
}

.skill-chip .chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
}

.competencies-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.competency-tag {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.competency-tag:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}
/* Achievements, Guinness World Record & Certifications */
.world-record-banner {
  background: linear-gradient(135deg, rgba(127, 0, 255, 0.25) 0%, rgba(0, 242, 254, 0.25) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.record-badge-icon {
  width: 90px;
  height: 90px;
  min-width: 90px;
  border-radius: 50%;
  background: var(--gradient-cyber);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 0 35px rgba(0, 242, 254, 0.5);
  font-size: 2.5rem;
}

.record-info-content h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.record-info-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Certifications Grid */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem;
}

.cert-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--border-highlight);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.cert-details h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.cert-issuer {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

@media (max-width: 768px) {
  .world-record-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.8rem;
  }
}
/* Contact & Footer Section */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.contact-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--gradient-badge);
  border: 1px solid var(--border-highlight);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-meta span {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 1px;
}

.contact-meta a,
.contact-meta p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
}

.contact-meta a:hover {
  color: var(--accent-cyan);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

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

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

/* Footer */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
}

.toast {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--accent-emerald);
  color: var(--text-main);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  animation: slideInRight 0.3s ease;
}

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

@media (max-width: 850px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}
