/* ==========================================================================
   AZGOR HOSSAIN - PREMIUM PERSONAL PORTFOLIO WEBSITE
   Dark Futuristic Creative-Tech Aesthetic
   Author: Azgor Hossain
   Year: 2026
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & CSS VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --bg-primary: #050505;
  --bg-secondary: #0a0a0c;
  --bg-tertiary: #121216;
  
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --glass-bg: rgba(12, 12, 16, 0.65);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-hover: rgba(255, 73, 23, 0.45);
  
  /* Primary Accent - Vibrant Orange */
  --accent-orange: #FF4917;
  --accent-orange-hover: #ff5f33;
  --accent-orange-glow: rgba(255, 73, 23, 0.35);
  --accent-orange-light: rgba(255, 73, 23, 0.12);
  --accent-orange-border: rgba(255, 73, 23, 0.25);
  
  /* Neutral Typography */
  --text-primary: #F5F5F5;
  --text-secondary: #A1A1A1;
  --text-muted: #666666;
  --text-inverse: #050505;
  
  /* Fonts */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Layout & Spacing */
  --container-max: 1280px;
  --nav-height: 80px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Shadows & Glows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.7);
  --shadow-orange: 0 10px 40px -10px rgba(255, 73, 23, 0.4);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-orange);
}

/* Selection */
::selection {
  background-color: var(--accent-orange);
  color: #fff;
}

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

ul {
  list-style: none;
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   3. BACKGROUND LAYER SYSTEM (Grid + Ambient Glows + Noise)
   -------------------------------------------------------------------------- */
.bg-layer-system {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

/* Technical Grid Overlay */
.bg-grid {
  position: absolute;
  inset: 0;
  background-size: 60px 60px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 70%, transparent 100%);
}

/* Ambient Orange Radial Glows */
.bg-glow-1 {
  position: absolute;
  top: -15%;
  right: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 73, 23, 0.18) 0%, rgba(255, 73, 23, 0.03) 50%, transparent 70%);
  filter: blur(80px);
  animation: pulseGlow 12s ease-in-out infinite alternate;
}

.bg-glow-2 {
  position: absolute;
  top: 45%;
  left: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 73, 23, 0.14) 0%, rgba(255, 73, 23, 0.02) 50%, transparent 70%);
  filter: blur(90px);
  animation: pulseGlow 15s ease-in-out infinite alternate-reverse;
}

.bg-glow-3 {
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(255, 73, 23, 0.15) 0%, rgba(255, 73, 23, 0.02) 50%, transparent 70%);
  filter: blur(85px);
  animation: pulseGlow 10s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.7; }
  50% { transform: scale(1.15) translate(20px, -20px); opacity: 1; }
  100% { transform: scale(0.95) translate(-15px, 15px); opacity: 0.6; }
}

/* Digital Noise Texture Overlay */
.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   4. CUSTOM CURSOR (Desktop Only)
   -------------------------------------------------------------------------- */
.cursor-dot, .cursor-ring {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-orange);
  box-shadow: 0 0 10px var(--accent-orange);
  transition: transform 0.1s ease;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(255, 73, 23, 0.5);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, transform 0.15s ease-out;
}

body.cursor-hover .cursor-dot {
  transform: translate(-50%, -50%) scale(1.8);
  background-color: #ffffff;
}

body.cursor-hover .cursor-ring {
  width: 54px;
  height: 54px;
  border-color: var(--accent-orange);
  background-color: rgba(255, 73, 23, 0.08);
}

@media (pointer: coarse), (max-width: 991px) {
  .cursor-dot, .cursor-ring {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   5. PRELOADER
   -------------------------------------------------------------------------- */
#preloader {
  position: fixed;
  inset: 0;
  background-color: var(--bg-primary);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.preloader-brand {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 24px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.preloader-dot {
  width: 10px;
  height: 10px;
  background-color: var(--accent-orange);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-orange);
}

.preloader-bar-bg {
  width: 180px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-orange), #ff7b54);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
  box-shadow: 0 0 10px var(--accent-orange);
}

.preloader-status {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   6. LAYOUT CONTAINERS & REUSABLE COMPONENTS
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

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

/* Section Header */
.section-header {
  margin-bottom: 60px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 12px;
}

.section-label::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--accent-orange);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-orange);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-top: 16px;
}

.text-orange {
  color: var(--accent-orange);
}

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

.glass-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-md), 0 0 25px rgba(255, 73, 23, 0.12);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-orange) 0%, #d83405 100%);
  color: #ffffff;
  box-shadow: var(--shadow-orange);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 45px -5px rgba(255, 73, 23, 0.6);
  background: linear-gradient(135deg, #ff5b2e 0%, var(--accent-orange) 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--accent-orange-border);
  background: rgba(255, 73, 23, 0.08);
  color: #ffffff;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(4px);
}

/* Badge / Pill */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--accent-orange-light);
  border: 1px solid var(--accent-orange-border);
  color: var(--accent-orange);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pill-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-orange);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-orange);
  animation: blinkDot 1.8s infinite alternate;
}

@keyframes blinkDot {
  0% { opacity: 0.4; }
  100% { opacity: 1; transform: scale(1.2); }
}

/* --------------------------------------------------------------------------
   7. NAVIGATION BAR
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background-color var(--transition-normal), border-color var(--transition-normal), backdrop-filter var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-brand-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-orange);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-orange);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-orange);
  transition: width var(--transition-fast);
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px var(--accent-orange);
}

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

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

.nav-cta {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* Mobile Hamburger Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  z-index: 1001;
}

.nav-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background-color: var(--accent-orange);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  background-color: var(--accent-orange);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  background-color: rgba(5, 5, 5, 0.96);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-nav-drawer.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

@media (max-width: 991px) {
  .nav-menu, .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

/* --------------------------------------------------------------------------
   8. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 80px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

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

.hero-pill {
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-headline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.tag-pill {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.hero-bio {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  width: 100%;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
}

.meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent-orange);
}

/* Hero Portrait Image Container */
.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 73, 23, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 73, 23, 0.18);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.hero-image-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 6px);
  filter: contrast(1.05) brightness(0.95);
  transition: transform var(--transition-slow), filter var(--transition-slow);
}

.hero-image-frame:hover img {
  transform: scale(1.03);
  filter: contrast(1.1) brightness(1.02);
}

/* Tech Corner Accent Frame */
.corner-accent {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--accent-orange);
  border-style: solid;
  pointer-events: none;
  z-index: 2;
}

.corner-top-left { top: 6px; left: 6px; border-width: 2px 0 0 2px; }
.corner-top-right { top: 6px; right: 6px; border-width: 2px 2px 0 0; }
.corner-bottom-left { bottom: 6px; left: 6px; border-width: 0 0 2px 2px; }
.corner-bottom-right { bottom: 6px; right: 6px; border-width: 0 2px 2px 0; }

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-metadata {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   9. ABOUT & STATS SECTION
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: stretch;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.about-text p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.highlight-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-primary);
}

.highlight-chip svg {
  width: 18px;
  height: 18px;
  color: var(--accent-orange);
  flex-shrink: 0;
}

/* Stats Counter Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  color: var(--accent-orange);
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 0 0 20px var(--accent-orange-glow);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.3;
}

@media (max-width: 991px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   10. INTERACTIVE SKILLS SECTION
   -------------------------------------------------------------------------- */
.skills-category-group {
  margin-bottom: 40px;
}

.category-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-title svg {
  width: 20px;
  height: 20px;
  color: var(--accent-orange);
}

.skills-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.skill-tag svg {
  width: 16px;
  height: 16px;
  color: var(--accent-orange);
  transition: transform var(--transition-fast);
}

.skill-tag:hover, .skill-tag.active {
  background: rgba(255, 73, 23, 0.12);
  border-color: var(--accent-orange);
  color: var(--text-primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 73, 23, 0.2);
}

.skill-tag:hover svg, .skill-tag.active svg {
  transform: scale(1.15);
}

.skill-hint {
  font-size: 0.85rem;
  color: var(--accent-orange);
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
}

/* --------------------------------------------------------------------------
   11. PORTFOLIO SECTION & DYNAMIC CARDS
   -------------------------------------------------------------------------- */
.portfolio-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 22px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(255, 73, 23, 0.35);
}

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

@media (max-width: 576px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-card {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 73, 23, 0.2);
}

.portfolio-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: var(--bg-tertiary);
}

.portfolio-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-thumb-wrapper img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 5, 5, 0.9) 0%, rgba(5, 5, 5, 0.2) 60%, transparent 100%);
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}

.portfolio-card-info {
  padding: 24px;
}

.portfolio-category-tag {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 8px;
}

.portfolio-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.portfolio-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-tags-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.portfolio-view-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  opacity: 0;
  transform: translateY(10px);
}

.portfolio-card:hover .portfolio-view-btn {
  opacity: 1;
  transform: translateY(0);
  background: var(--accent-orange);
  border-color: var(--accent-orange);
}

.portfolio-view-btn svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   12. PROJECT DETAIL MODAL & LIGHTBOX
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 50px rgba(255, 73, 23, 0.2);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-overlay.open .modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  transform: rotate(90deg);
}

.modal-content-body {
  padding: 40px;
}

.modal-main-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 30px;
  border: 1px solid var(--glass-border);
}

.modal-header-info {
  margin-bottom: 24px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 8px;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  margin-bottom: 28px;
}

.modal-meta-label {
  font-size: 0.75rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.modal-meta-value {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-top: 4px;
}

.modal-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* Gallery Thumbnails inside modal */
.modal-gallery-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.modal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.modal-gallery-item {
  aspect-ratio: 16/10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-gallery-item:hover {
  border-color: var(--accent-orange);
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   13. SOFTWARE & TOOLS SECTION
   -------------------------------------------------------------------------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

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

.tool-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 73, 23, 0.1);
  border: 1px solid var(--accent-orange-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  flex-shrink: 0;
}

.tool-icon svg {
  width: 24px;
  height: 24px;
}

.tool-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tool-level {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.badge-core { color: var(--accent-orange); }
.badge-working { color: #4da6ff; }
.badge-exploring { color: #b366ff; }

/* --------------------------------------------------------------------------
   14. SERVICES SECTION
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

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

.service-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--accent-orange-light);
  border: 1px solid var(--accent-orange-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  margin-bottom: 24px;
  transition: transform var(--transition-fast);
}

.service-card:hover .service-icon-box {
  transform: scale(1.1) rotate(5deg);
  background: var(--accent-orange);
  color: #fff;
  box-shadow: 0 0 20px var(--accent-orange-glow);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

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

/* --------------------------------------------------------------------------
   15. EXPERIENCE SECTION (Vertical Timeline)
   -------------------------------------------------------------------------- */
.timeline-wrapper {
  position: relative;
  max-width: 840px;
  margin: 0 auto;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-orange), rgba(255, 73, 23, 0.2) 80%, transparent 100%);
  box-shadow: 0 0 10px rgba(255, 73, 23, 0.4);
}

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

.timeline-node {
  position: absolute;
  top: 6px;
  left: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--accent-orange);
  box-shadow: 0 0 14px var(--accent-orange);
  transition: all var(--transition-fast);
  z-index: 2;
}

.timeline-item:hover .timeline-node {
  transform: scale(1.3);
  background: var(--accent-orange);
  box-shadow: 0 0 25px var(--accent-orange);
}

.timeline-date-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-orange);
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  background: var(--accent-orange-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--accent-orange-border);
}

.timeline-card {
  transition: all var(--transition-normal);
}

.timeline-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 73, 23, 0.2);
}

.timeline-role {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.timeline-company {
  font-size: 1rem;
  color: var(--accent-orange);
  font-weight: 600;
  margin-top: 4px;
  margin-bottom: 16px;
}

.timeline-bullets {
  list-style: disc;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.timeline-bullets li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.timeline-skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}

/* --------------------------------------------------------------------------
   15B. EDUCATION & LEARNING SECTION (Modern Card Grid)
   -------------------------------------------------------------------------- */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.education-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 3px solid var(--accent-orange);
  transition: all var(--transition-normal);
  position: relative;
}

.education-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-orange);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 73, 23, 0.22);
}

.edu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.edu-badge {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--accent-orange);
  text-transform: uppercase;
  background: var(--accent-orange-light);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-orange-border);
}

.edu-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  transition: all var(--transition-fast);
}

.edu-icon-box svg {
  width: 24px;
  height: 24px;
}

.education-card:hover .edu-icon-box {
  background: var(--accent-orange);
  color: #ffffff;
  transform: rotate(10deg) scale(1.1);
  box-shadow: 0 0 20px var(--accent-orange-glow);
}

.edu-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.edu-field {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-orange);
  margin-bottom: 8px;
}

.edu-institution {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 16px;
}

.edu-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.edu-topics-list {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.edu-topics-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}

.edu-topics-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-orange);
}

/* --------------------------------------------------------------------------
   16. CREATIVE TECH & AI SECTION
   -------------------------------------------------------------------------- */
.ai-section-box {
  text-align: center;
  padding: 60px 40px;
  background: radial-gradient(circle at center, rgba(255, 73, 23, 0.12) 0%, rgba(10, 10, 12, 0.8) 70%);
  border: 1px solid var(--glass-border-hover);
  position: relative;
}

.ai-glowing-nodes {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  color: var(--accent-orange);
  animation: spinSlow 20s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.ai-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.ai-text {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.ai-features-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* --------------------------------------------------------------------------
   17. CREATIVE PROCESS SECTION
   -------------------------------------------------------------------------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.process-card {
  position: relative;
  padding: 32px 24px;
}

.process-step-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-orange);
  opacity: 0.8;
  margin-bottom: 12px;
}

.process-step-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.process-step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   18. CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 36px;
}

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

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-orange-light);
  border: 1px solid var(--accent-orange-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
}

.contact-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-val {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.social-pills-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-pill:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 73, 23, 0.35);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.form-control {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 15px rgba(255, 73, 23, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

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

.form-status {
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-align: center;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid #2ecc71;
  color: #2ecc71;
}

.form-status.error {
  display: block;
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid #e74c3c;
  color: #e74c3c;
}

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

/* --------------------------------------------------------------------------
   19. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  padding: 60px 0 30px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-primary);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.footer-nav a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-nav a:hover {
  color: var(--accent-orange);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
  width: 100%;
}

/* --------------------------------------------------------------------------
   20. SCROLL REVEAL ANIMATIONS (IntersectionObserver)
   -------------------------------------------------------------------------- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade {
  opacity: 0;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.revealed {
  opacity: 1;
  transform: translate(0, 0);
}
