@import url("https://fonts.googleapis.com/css2?family=Anek+Bangla:wght@300;400;500;600;700;800&family=Roboto:wght@300;400;500;700;900&display=swap");

/* ============================================
   CSS VARIABLES — LIGHT THEME (DEFAULT)
   ============================================ */
:root {
  --background: #f8f9fc;
  --background-secondary: #f0f2f7;
  --foreground: #0f172a;
  --foreground-secondary: #475569;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-foreground: #ffffff;
  --secondary: #f1f5f9;
  --secondary-foreground: #1e293b;
  --border: #e2e8f0;
  --muted: #94a3b8;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --glass-background: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.1);
  --ring: 0 0 0 3px rgba(79, 70, 229, 0.15);
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --gradient-hero: linear-gradient(135deg, #eef2ff 0%, #faf5ff 50%, #fdf2f8 100%);
  --gradient-card: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(79,70,229,0.03) 100%);
  --text-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --nav-bg: rgba(248, 249, 252, 0.85);
  --nav-border: rgba(226, 232, 240, 0.6);
  --scrollbar-track: #f1f5f9;
  --scrollbar-thumb: #cbd5e1;
  --section-alt: #f1f5f9;
  --input-bg: #f8f9fc;
  --input-border: #e2e8f0;
  --input-focus: #4f46e5;
  --skill-bar-bg: #e2e8f0;
  --tag-bg: #eef2ff;
  --tag-text: #4f46e5;
  --overlay: rgba(15, 23, 42, 0.5);
}

/* ============================================
   CSS VARIABLES — DARK THEME
   ============================================ */
[data-theme="dark"] {
  --background: #0a0e1a;
  --background-secondary: #111827;
  --foreground: #f1f5f9;
  --foreground-secondary: #94a3b8;
  --card: #141927;
  --card-foreground: #f1f5f9;
  --primary: #818cf8;
  --primary-hover: #6366f1;
  --primary-foreground: #0f172a;
  --secondary: #1e293b;
  --secondary-foreground: #e2e8f0;
  --border: #1e293b;
  --muted: #64748b;
  --accent: #818cf8;
  --accent-light: #a5b4fc;
  --glass-background: rgba(20, 25, 39, 0.75);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.45);
  --ring: 0 0 0 3px rgba(129, 140, 248, 0.2);
  --gradient-primary: linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #c084fc 100%);
  --gradient-hero: linear-gradient(135deg, #0a0e1a 0%, #111827 50%, #0f172a 100%);
  --gradient-card: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(129,140,248,0.04) 100%);
  --text-gradient: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
  --nav-bg: rgba(10, 14, 26, 0.88);
  --nav-border: rgba(255, 255, 255, 0.05);
  --scrollbar-track: #111827;
  --scrollbar-thumb: #334155;
  --section-alt: #111827;
  --input-bg: #1e293b;
  --input-border: #334155;
  --input-focus: #818cf8;
  --skill-bar-bg: #1e293b;
  --tag-bg: rgba(129, 140, 248, 0.1);
  --tag-text: #a5b4fc;
  --overlay: rgba(0, 0, 0, 0.6);
}

/* ============================================
   BASE RESET & TYPOGRAPHY
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 3px;
}

body {
  font-family: "Anek Bangla", "Roboto", sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.7;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Font switching by language */
[data-lang="bn"] body {
  font-family: "Anek Bangla", sans-serif;
}

[data-lang="en"] body {
  font-family: "Roboto", sans-serif;
}

/* ============================================
   FONT AUTO-DETECTION UTILITY
   ============================================ */
[data-bn-font] {
  font-family: "Anek Bangla", sans-serif;
}

[data-en-font] {
  font-family: "Roboto", sans-serif;
}

/* ============================================
   SCROLLBAR & SELECTION
   ============================================ */
::selection {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nav-border);
  transition: all 0.3s ease;
  padding: 0 1.5rem;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--foreground-secondary);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--secondary);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle,
.lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--card);
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.theme-toggle:hover,
.lang-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--ring);
}

.lang-toggle {
  width: auto;
  padding: 0 0.75rem;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  gap: 0.35rem;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
  display: block;
  opacity: 1;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--background);
  z-index: 999;
  padding: 2rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu a {
  display: block;
  padding: 1rem 0;
  color: var(--foreground);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: var(--primary);
}

.mobile-menu-controls {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #0a0e1a;
  overflow: hidden;
  padding: 5rem 1.5rem 3rem;
}

/* Full background video layer */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* Gradient overlay — stronger left, subtle right */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      to right,
      rgba(10, 14, 26, 0.92) 0%,
      rgba(10, 14, 26, 0.78) 20%,
      rgba(10, 14, 26, 0.50) 40%,
      rgba(10, 14, 26, 0.20) 60%,
      rgba(10, 14, 26, 0.08) 80%,
      rgba(10, 14, 26, 0.05) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(10, 14, 26, 0.30) 0%,
      transparent 20%,
      transparent 80%,
      rgba(10, 14, 26, 0.25) 100%
    );
}

/* Light mode overlay */
[data-theme="light"] .hero-overlay {
  background:
    linear-gradient(
      to right,
      rgba(248, 249, 252, 0.95) 0%,
      rgba(248, 249, 252, 0.82) 20%,
      rgba(248, 249, 252, 0.50) 40%,
      rgba(248, 249, 252, 0.18) 60%,
      rgba(248, 249, 252, 0.06) 80%,
      rgba(248, 249, 252, 0.03) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(248, 249, 252, 0.20) 0%,
      transparent 20%,
      transparent 80%,
      rgba(248, 249, 252, 0.15) 100%
    );
}

/* Full-section animated mesh/grid overlay */
.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  animation: heroMeshBreathe 10s ease-in-out infinite;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 59px,
      rgba(255, 255, 255, 0.03) 59px,
      rgba(255, 255, 255, 0.03) 60px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 59px,
      rgba(255, 255, 255, 0.03) 59px,
      rgba(255, 255, 255, 0.03) 60px
    ),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 83px,
      rgba(255, 255, 255, 0.02) 83px,
      rgba(255, 255, 255, 0.02) 84px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 83px,
      rgba(255, 255, 255, 0.02) 83px,
      rgba(255, 255, 255, 0.02) 84px
    );
}

.hero-mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 30% at 25% 35%, rgba(255, 255, 255, 0.04), transparent 60%),
    radial-gradient(ellipse 35% 40% at 70% 60%, rgba(255, 255, 255, 0.03), transparent 55%);
  animation: heroMeshDrift 18s ease-in-out infinite alternate;
}

.hero-mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 30% 35% at 60% 30%, rgba(255, 255, 255, 0.03), transparent 55%),
    radial-gradient(ellipse 45% 25% at 35% 70%, rgba(255, 255, 255, 0.025), transparent 50%);
  animation: heroMeshDrift2 22s ease-in-out infinite alternate;
}

[data-theme="light"] .hero-mesh {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 59px,
      rgba(0, 0, 0, 0.04) 59px,
      rgba(0, 0, 0, 0.04) 60px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 59px,
      rgba(0, 0, 0, 0.04) 59px,
      rgba(0, 0, 0, 0.04) 60px
    ),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 83px,
      rgba(0, 0, 0, 0.025) 83px,
      rgba(0, 0, 0, 0.025) 84px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 83px,
      rgba(0, 0, 0, 0.025) 83px,
      rgba(0, 0, 0, 0.025) 84px
    );
}

[data-theme="light"] .hero-mesh::before {
  background:
    radial-gradient(ellipse 40% 30% at 25% 35%, rgba(0, 0, 0, 0.04), transparent 60%),
    radial-gradient(ellipse 35% 40% at 70% 60%, rgba(0, 0, 0, 0.03), transparent 55%);
}

[data-theme="light"] .hero-mesh::after {
  background:
    radial-gradient(ellipse 30% 35% at 60% 30%, rgba(0, 0, 0, 0.03), transparent 55%),
    radial-gradient(ellipse 45% 25% at 35% 70%, rgba(0, 0, 0, 0.025), transparent 50%);
}

@keyframes heroMeshBreathe {
  0%, 100% {
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  65% {
    opacity: 0.4;
  }
}

@keyframes heroMeshDrift {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(2%, -1.5%);
  }
}

@keyframes heroMeshDrift2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-1.5%, 2%);
  }
}

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.hero-bg-orb-1 {
  width: 600px;
  height: 600px;
  background: #6366f1;
  top: -200px;
  right: -100px;
  opacity: 0.12;
}

.hero-bg-orb-2 {
  width: 400px;
  height: 400px;
  background: #a855f7;
  bottom: -100px;
  left: -100px;
  opacity: 0.1;
}

.hero-bg-orb-3 {
  width: 300px;
  height: 300px;
  background: #ec4899;
  top: 50%;
  left: 50%;
  opacity: 0.06;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--glass-background);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease 0.2s forwards;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-greeting {
  font-size: 1.2rem;
  color: var(--foreground-secondary);
  margin-bottom: 0.75rem;
  font-weight: 400;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease 0.3s forwards;
}

.hero-name {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease 0.4s forwards;
}

.hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--foreground-secondary);
  font-weight: 400;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease 0.5s forwards;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease 0.6s forwards;
}

[data-theme="dark"] .hero-title,
[data-theme="dark"] .hero-subtitle {
  color: #FFFFFF;
}

[data-theme="light"] .hero-title,
[data-theme="light"] .hero-subtitle {
  color: #000000;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease 0.7s forwards;
}

/* Hero Social Icons */
.hero-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease 0.8s forwards;
}

.hero-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 0.6rem;
  border: 1px solid var(--glass-border);
  background: var(--glass-background);
  backdrop-filter: blur(8px);
  color: var(--foreground-secondary);
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.hero-social-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: inherit;
}

.hero-social-link:hover {
  border-color: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.3);
}

.hero-social-link:hover::before {
  opacity: 1;
}

.hero-social-link svg {
  position: relative;
  z-index: 1;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.btn-secondary {
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--foreground);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: var(--secondary);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 6rem 1.5rem;
  position: relative;
}

.section-alt {
  background: var(--section-alt);
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
}

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

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 400;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--foreground-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.8;
  font-size: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

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

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

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground-secondary);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

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

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.35s ease;
  position: relative;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.project-card-image {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.project-card-gradient {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card-gradient {
  transform: scale(1.05);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-card-overlay {
  opacity: 1;
}

.project-card-overlay .btn {
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
}

.project-card-body {
  padding: 1.5rem;
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.project-tag {
  padding: 0.2rem 0.6rem;
  border-radius: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--tag-bg);
  color: var(--tag-text);
}

.project-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--card-foreground);
}

.project-card-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.skill-tab {
  padding: 0.6rem 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.skill-tab:hover,
.skill-tab.active {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

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

.skill-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.skill-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.skill-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--card-foreground);
}

.skill-level {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
}

.skill-bar {
  height: 6px;
  background: var(--skill-bar-bg);
  border-radius: 3px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

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

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--background);
  box-shadow: 0 0 0 3px var(--primary);
  z-index: 1;
}

.timeline-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.timeline-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--card-foreground);
  margin-bottom: 0.25rem;
}

.timeline-company {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.timeline-period {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--foreground-secondary);
  line-height: 1.7;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.testimonial-quote {
  font-size: 2.5rem;
  color: var(--primary);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: serif;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--foreground-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--card-foreground);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 6rem 1.5rem;
}

.cta-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: var(--gradient-primary);
  border-radius: 1.5rem;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: white;
  margin-bottom: 0.75rem;
  position: relative;
}

.cta-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  line-height: 1.7;
}

.cta-card .btn {
  background: white;
  color: var(--primary);
  font-weight: 700;
  position: relative;
}

.cta-card .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

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

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.contact-info-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.5rem;
  background: var(--tag-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

.contact-info-value {
  font-weight: 600;
  color: var(--foreground);
  font-size: 0.95rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

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

.form-input,
.form-textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--input-border);
  border-radius: 0.5rem;
  background: var(--input-bg);
  color: var(--foreground);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--input-focus);
  box-shadow: var(--ring);
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--background-secondary);
  border-top: 1px solid var(--border);
  padding: 1.5rem;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }

  .hero-mesh,
  .hero-mesh::before,
  .hero-mesh::after {
    animation: none;
    opacity: 0.15;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

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

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    padding: 5rem 1rem 2.5rem;
  }

  .hero-video {
    object-position: 70% 35%;
  }

  .hero-name {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .section {
    padding: 4rem 1rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

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

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

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

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .cta-card {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    height: 60px;
  }

  .hero {
    min-height: auto;
    padding: 4.5rem 1rem 2rem;
  }

  .hero-video {
    object-position: 75% 30%;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .project-filters {
    gap: 0.35rem;
  }

  .filter-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .timeline::before {
    left: 12px;
  }

  .timeline-item {
    padding-left: 44px;
  }

  .timeline-dot {
    left: 5px;
  }
}

/* ============================================
   LANGUAGE TRANSITION
   ============================================ */
.lang-transitioning * {
  transition: opacity 0.15s ease;
}

.lang-transitioning [data-tr] {
  opacity: 0.6;
}

/* Smooth language content update */
[data-tr] {
  transition: opacity 0.2s ease;
}

/* ============================================
   PROJECT MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
}

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

.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
}

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

.modal-header {
  padding: 1.5rem 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s;
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--secondary);
  border-color: var(--primary);
}

.modal-body {
  padding: 1.5rem;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.modal-desc {
  color: var(--foreground-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
}
