/* ============================================================
   ATHARV AGARWAL — PORTFOLIO STYLES
   World-Class Design System | Premium Portfolio
   ============================================================ */

/* ============================================================
   1. ROOT VARIABLES
   ============================================================ */
:root {
  /* Brand Colors */
  --primary-50: #e0f2fe;
  --primary-100: #bae6fd;
  --primary-200: #7dd3fc;
  --primary-500: #3685fb;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --primary-900: #0d213f;

  --secondary-500: #10b981;
  --secondary-700: #059669;

  --accent-500: #8b5cf6;
  --accent-600: #7c3aed;
  --accent-700: #6d28d9;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --black: #000000;

  /* Semantic Tokens */
  --bg: #fafafa;
  --bg-surface: #ffffff;
  --bg-subtle: #f3f4f6;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-tertiary: #9ca3af;
  --border: #e5e7eb;
  --border-strong: #d1d5db;

  /* Typography */
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Type Scale (8px base) */
  --text-xs: 0.75rem;
  /* 12px */
  --text-sm: 0.875rem;
  /* 14px */
  --text-base: 1rem;
  /* 16px */
  --text-lg: 1.125rem;
  /* 18px */
  --text-xl: 1.25rem;
  /* 20px */
  --text-2xl: 1.5rem;
  /* 24px */
  --text-3xl: 1.875rem;
  /* 30px */
  --text-4xl: 2.25rem;
  /* 36px */
  --text-5xl: 3rem;
  /* 48px */

  /* Spacing (8px grid) */
  --sp-1: 0.25rem;
  /* 4px  */
  --sp-2: 0.5rem;
  /* 8px  */
  --sp-3: 0.75rem;
  /* 12px */
  --sp-4: 1rem;
  /* 16px */
  --sp-5: 1.25rem;
  /* 20px */
  --sp-6: 1.5rem;
  /* 24px */
  --sp-8: 2rem;
  /* 32px */
  --sp-10: 2.5rem;
  /* 40px */
  --sp-12: 3rem;
  /* 48px */
  --sp-16: 4rem;
  /* 64px */
  --sp-20: 5rem;
  /* 80px */
  --sp-24: 6rem;
  /* 96px */

  /* Layout */
  --max-width: 1200px;
  --content-width: 768px;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.18);
  --shadow-glow: 0 0 30px rgba(54, 133, 251, 0.2);

  /* Transitions */
  --ease-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  --gradient-brand-h: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  --gradient-subtle: linear-gradient(135deg, rgba(54, 133, 251, 0.06), rgba(139, 92, 246, 0.06));
  --gradient-dark: linear-gradient(135deg, var(--primary-700), var(--accent-700));
}

/* ============================================================
   2. DARK MODE
   ============================================================ */
.dark-mode {
  --bg: #0a0f1e;
  --bg-surface: #111827;
  --bg-subtle: #1f2937;
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-tertiary: #6b7280;
  --border: #1f2937;
  --border-strong: #374151;

  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color var(--ease-base), color var(--ease-base);
}

a {
  text-decoration: none;
  color: inherit;
}

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

ul,
ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
}

address {
  font-style: normal;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

.dark-mode ::-webkit-scrollbar-thumb {
  background: var(--gray-600);
}

/* Focus Visible */
:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   4. ACCESSIBILITY UTILITIES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  padding: var(--sp-3) var(--sp-6);
  background: var(--primary-500);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-md);
  z-index: 10000;
  transition: top var(--ease-fast);
}

.skip-link:focus {
  top: var(--sp-4);
}

/* ============================================================
   5. LAYOUT UTILITIES
   ============================================================ */
.section__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(var(--sp-12), 6vw, var(--sp-24)) var(--sp-6);
}

.section__header {
  margin-bottom: var(--sp-12);
}

.section__header--center {
  text-align: center;
}

.section__header--center .section__subtitle {
  margin-left: auto;
  margin-right: auto;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section__subtitle {
  font-size: clamp(var(--text-base), 2vw, var(--text-lg));
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 60ch;
}

/* ============================================================
   6. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.875rem clamp(1.5rem, 3vw, 2rem);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--white);
  background: var(--gradient-brand);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--ease-base);
  box-shadow: 0 4px 14px rgba(54, 133, 251, 0.3);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-brand-h);
  opacity: 0;
  transition: opacity var(--ease-base);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(54, 133, 251, 0.4);
}

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

.btn:active {
  transform: translateY(0);
}

.btn>* {
  position: relative;
  z-index: 1;
}

/* Button Variants */
.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
}

.btn--nav {
  padding: 0.625rem 1.5rem;
  font-size: var(--text-sm);
}

.btn--outline {
  background: transparent;
  color: var(--primary-500);
  border: 2px solid var(--primary-500);
  box-shadow: none;
}

.btn--outline::after {
  background: var(--gradient-brand);
}

.btn--outline:hover {
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 8px 25px rgba(54, 133, 251, 0.3);
}

/* Card Link Buttons */
.btn-link {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
  background: var(--primary-500);
  border-radius: var(--radius-md);
  transition: background var(--ease-base), transform var(--ease-base);
}

.btn-link:hover {
  background: var(--primary-600);
  transform: translateY(-2px);
}

/* ============================================================
   7. NAVIGATION
   ============================================================ */
nav {
  position: fixed;
  top: var(--sp-4);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - var(--sp-8));
  max-width: var(--max-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  z-index: 1000;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-2) var(--sp-4);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  transition: background var(--ease-base);
}

.dark-mode .nav__links {
  background: rgba(17, 24, 39, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
}

.nav__link {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-full);
  transition: all var(--ease-base);
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: var(--primary-500);
  background: rgba(54, 133, 251, 0.1);
}

.nav__link.active {
  font-weight: 600;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  font-size: var(--text-lg);
  color: var(--text-primary);
  transition: all var(--ease-base);
}

.dark-mode .theme-toggle {
  background: rgba(17, 24, 39, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--gray-300);
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: var(--shadow-lg);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--sp-2);
  z-index: 1001;
  transition: all var(--ease-base);
}

.dark-mode .hamburger {
  background: rgba(17, 24, 39, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--ease-base);
}

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

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

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

/* ============================================================
   8. HERO / HEADER
   ============================================================ */
header {
  background: var(--bg);
  padding-top: 120px;
  overflow: hidden;
}

.header__container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--sp-16);
  align-items: center;
  padding-bottom: var(--sp-24);
}

/* Hero Image */
.header__image {
  position: relative;
  min-height: 420px;
  opacity: 0;
  animation: slideInLeft 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.header__image img {
  position: absolute;
  border: 4px solid var(--bg-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  transition: transform var(--ease-slow);
}

.header__image img:hover {
  transform: scale(1.02) !important;
}

.header__image img:nth-child(1) {
  max-width: min(22rem, 50vw);
  top: 50%;
  left: 50%;
  transform: translate(-75%, -50%);
  z-index: 2;
}

.header__image img:nth-child(2) {
  max-width: min(15rem, 35vw);
  top: 50%;
  left: 50%;
  transform: translate(0%, -25%);
  z-index: 1;
}

/* Hero Content */
.header__content {
  opacity: 0;
  animation: slideInRight 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.35s forwards;
}

.sub__header {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary-500);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}

.header__content h1 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-5);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__tagline {
  font-size: clamp(var(--text-base), 1.8vw, var(--text-lg));
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: var(--sp-6);
}

/* Hero Tags */
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--primary-600);
  background: rgba(54, 133, 251, 0.1);
  border: 1px solid rgba(54, 133, 251, 0.2);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  transition: all var(--ease-base);
}

.hero__tag:hover {
  background: rgba(54, 133, 251, 0.18);
  border-color: rgba(54, 133, 251, 0.4);
  transform: translateY(-1px);
}

.dark-mode .hero__tag {
  color: var(--primary-200);
  background: rgba(54, 133, 251, 0.15);
  border-color: rgba(54, 133, 251, 0.25);
}

/* Hero Stats */
.hero__stats {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  margin-bottom: var(--sp-8);
  padding: var(--sp-4) var(--sp-6);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  width: fit-content;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--primary-500);
  line-height: 1;
}

.hero__stat-label {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Action Buttons */
.action__btns {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
}

/* Video Story Button */
.story {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: none;
  border: none;
  cursor: pointer;
  transition: transform var(--ease-base);
  padding: 0;
}

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

.video__image {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.video__image img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

.video__image span {
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translate(-50%, -50%);
}

.video__image span i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
  color: #ff0000;
  background: var(--white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  transition: all var(--ease-base);
}

.story:hover .video__image span i {
  transform: scale(1.15);
  box-shadow: var(--shadow-lg);
}

.story>span {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================================
   9. EXPERIENCE TIMELINE
   ============================================================ */
#experience {
  background: var(--bg-subtle);
  padding: var(--sp-4) 0;
}

.dark-mode #experience {
  background: var(--bg);
}

.timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-8);
  padding: var(--sp-4) var(--sp-6) var(--sp-16);
  cursor: grab;
}

.timeline:active {
  cursor: grabbing;
}

.timeline-content {
  flex: 1 1 320px;
  max-width: 380px;
  padding: var(--sp-6);
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  position: relative;
  transition: transform var(--ease-slow), box-shadow var(--ease-slow), border-color var(--ease-base);
  /* Scroll-triggered animation */
  opacity: 0;
  transform: translateY(24px);
}

.timeline-content.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow var(--ease-slow), border-color var(--ease-base);
}

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

.timeline-period {
  position: absolute;
  top: -14px;
  left: var(--sp-6);
  padding: var(--sp-1) var(--sp-4);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--white);
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.experience-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.experience-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-4);
  transition: transform var(--ease-slow);
}

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

.highlight-card {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--bg-surface), var(--bg-surface)) padding-box,
    var(--gradient-brand) border-box;
}

.card__links {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-3);
  margin-bottom: var(--sp-3);
  flex-wrap: wrap;
}

/* ============================================================
   10. PORTFOLIO CARDS (Shared: Skills, Experience, Certs)
   ============================================================ */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-12);
}

.portfolio__grid--certs {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.portfolio__card1 {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: var(--sp-6);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: transform var(--ease-slow), box-shadow var(--ease-slow), border-color var(--ease-base);
  /* Scroll animation */
  opacity: 0;
  transform: translateY(20px);
}

.portfolio__card1.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out, box-shadow var(--ease-slow), border-color var(--ease-base);
}

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

.portfolio__card1 img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-4);
  transition: transform var(--ease-slow);
}

.portfolio__card1:hover img {
  transform: scale(1.04);
}

.portfolio__subtitle1 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-2);
  line-height: 1.3;
}

.portfolio__title1 {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

.certification-card .btn--sm {
  margin-top: var(--sp-4);
}

/* ============================================================
   11. PROJECTS
   ============================================================ */
.projects {
  background: var(--bg);
  padding: var(--sp-4) 0;
}

.projects__container .section__subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Carousel Controls */
.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.carousel__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-xl);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: all var(--ease-base);
}

.carousel__btn:hover {
  background: var(--primary-500);
  border-color: var(--primary-500);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(54, 133, 251, 0.3);
  transform: scale(1.05);
}

.carousel__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.carousel__dots {
  display: flex;
  gap: var(--sp-2);
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--border-strong);
  border: none;
  cursor: pointer;
  transition: all var(--ease-base);
  padding: 0;
}

.carousel__dot.active {
  width: 24px;
  background: var(--primary-500);
}

/* Projects Grid (Horizontal Scroll) */
.projects__grid {
  display: flex;
  gap: var(--sp-6);
  overflow-x: auto;
  overflow-y: visible;
  padding: var(--sp-4) var(--sp-2) var(--sp-8);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.projects__grid:active {
  cursor: grabbing;
}

.projects__grid::-webkit-scrollbar {
  height: 4px;
}

.projects__grid::-webkit-scrollbar-track {
  background: transparent;
}

.projects__grid::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-full);
}

/* Project Card */
.projects__card {
  flex: 0 0 360px;
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  scroll-snap-align: start;
  transition: transform var(--ease-slow), box-shadow var(--ease-slow);
  position: relative;
  display: flex;
  flex-direction: column;
}

.projects__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--ease-base);
}

.projects__card:hover::before {
  opacity: 1;
}

.projects__card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.projects__card>img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--ease-slow);
}

.projects__card:hover>img {
  transform: scale(1.04);
}

.projects__details {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.projects__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
  line-height: 1.3;
}

.projects__description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-4);
  flex: 1;
}

.projects__meta {
  margin-bottom: var(--sp-4);
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--text-xs);
  font-weight: 700;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Tech Tags */
.projects__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.tag {
  display: inline-flex;
  padding: 3px var(--sp-3);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--primary-600);
  background: rgba(54, 133, 251, 0.08);
  border: 1px solid rgba(54, 133, 251, 0.15);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.dark-mode .tag {
  color: var(--primary-200);
  background: rgba(54, 133, 251, 0.12);
  border-color: rgba(54, 133, 251, 0.2);
}

.projects__actions {
  margin-top: auto;
}

.view__all {
  text-align: center;
  margin-top: var(--sp-8);
}

/* ============================================================
   12. SKILLS SECTION
   ============================================================ */
.skills-section {
  background: var(--bg-subtle);
  padding: var(--sp-4) 0;
}

.dark-mode .skills-section {
  background: var(--bg-surface);
}

/* ============================================================
   13. CERTIFICATIONS
   ============================================================ */
.certifications {
  background: var(--bg);
  padding: var(--sp-4) 0;
}

/* ============================================================
   14. GALLERY / ABOUT
   ============================================================ */
.gallary {
  background: var(--bg-subtle);
  padding: var(--sp-4) 0;
}

.dark-mode .gallary {
  background: var(--bg-surface);
}

.gallary__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-12);
  align-items: center;
}

.image__gallary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

.gallary__col {
  display: grid;
  gap: var(--sp-4);
}

.gallary__col img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transition: transform var(--ease-slow), box-shadow var(--ease-slow);
  cursor: pointer;
}

.gallary__col img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-2xl);
}

.gallary__content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

/* ============================================================
   15. FEEDBACK
   ============================================================ */
.feedback {
  background: var(--bg);
  padding: var(--sp-4) 0;
}

.feedback__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-12);
  align-items: center;
}

.feedback__form form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-6);
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.feedback__form textarea {
  width: 100%;
  padding: var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  outline: none;
  resize: vertical;
  min-height: 120px;
  transition: border-color var(--ease-base), box-shadow var(--ease-base);
  line-height: 1.6;
}

.feedback__form textarea::placeholder {
  color: var(--text-tertiary);
}

.feedback__form textarea:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(54, 133, 251, 0.15);
}

.feedback__form .btn {
  align-self: flex-start;
}

/* ============================================================
   16. FOOTER
   ============================================================ */
.footer {
  background: var(--primary-900);
  color: var(--white);
  padding: var(--sp-20) 0 var(--sp-8);
}

.footer__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-12);
}

.footer__col h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--sp-4);
  color: var(--white);
}

.footer__col h3 span {
  color: var(--primary-500);
}

.footer__col h4 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--sp-4);
  color: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: var(--text-xs);
}

.footer__col>p {
  font-size: var(--text-sm);
  color: var(--gray-400);
  line-height: 1.75;
  margin-bottom: var(--sp-3);
}

.footer__cta {
  font-weight: 600;
  color: var(--gray-300) !important;
  margin-top: var(--sp-4);
}

/* Footer Links */
.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer__links li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.footer__links img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(0.6);
  flex-shrink: 0;
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--gray-400);
  transition: color var(--ease-base);
}

.footer__links a:hover {
  color: var(--white);
}

/* Footer Address */
.footer__address {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer__address p {
  font-size: var(--text-sm);
  color: var(--gray-400);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer__address span {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gray-300);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer__address a {
  color: var(--gray-400);
  transition: color var(--ease-base);
}

.footer__address a:hover {
  color: var(--white);
}

.footer__bar {
  margin-top: var(--sp-12);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer__bar p {
  font-size: var(--text-sm);
  color: var(--gray-500);
}

/* ============================================================
   17. SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-brand);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(54, 133, 251, 0.5);
}

/* ============================================================
   18. SCROLL TO TOP BUTTON
   ============================================================ */
.scroll-to-top {
  position: fixed;
  bottom: var(--sp-8);
  right: var(--sp-8);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--text-xl);
  box-shadow: 0 4px 14px rgba(54, 133, 251, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--ease-base);
  z-index: 999;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(54, 133, 251, 0.45);
}

/* ============================================================
   19. PAGE LOADER
   ============================================================ */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}

.loader-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--primary-500);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
}

.loader-content p {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   20. NOTIFICATIONS
   ============================================================ */
.notification {
  position: fixed;
  top: 100px;
  right: var(--sp-6);
  padding: var(--sp-4) var(--sp-6);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  z-index: 10000;
  animation: notifSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-left: 4px solid var(--primary-500);
  max-width: 320px;
  font-size: var(--text-sm);
  font-weight: 500;
}

.notification-success {
  border-left-color: var(--secondary-500);
  background: #ecfdf5;
  color: #065f46;
}

.notification-error {
  border-left-color: #ef4444;
  background: #fef2f2;
  color: #991b1b;
}

.dark-mode .notification-success {
  background: #064e3b;
  color: #a7f3d0;
}

.dark-mode .notification-error {
  background: #7f1d1d;
  color: #fca5a5;
}

@keyframes notifSlideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes notifSlideOut {
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

/* ============================================================
   21. ANIMATIONS
   ============================================================ */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-48px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(48px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   22. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .header__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--sp-12);
    padding-bottom: var(--sp-16);
  }

  .header__image {
    order: -1;
    min-height: 360px;
  }

  .header__content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__tagline {
    max-width: 100%;
  }

  .hero__stats {
    justify-content: center;
  }

  .action__btns {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px var(--sp-8) var(--sp-8);
    gap: var(--sp-2);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
    border-radius: 0;
    border: none;
    border-left: 1px solid var(--border);
    transition: right var(--ease-slow);
    backdrop-filter: none;
    z-index: 1000;
  }

  .nav__links.mobile-active {
    right: 0;
  }

  .nav__link {
    font-size: var(--text-base);
    width: 100%;
    padding: var(--sp-3) var(--sp-4);
  }

  .menu-open {
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  nav {
    top: var(--sp-3);
    width: calc(100% - var(--sp-6));
  }

  header {
    padding-top: 80px;
  }

  .timeline {
    flex-direction: column;
    align-items: center;
    padding: var(--sp-4) var(--sp-4) var(--sp-12);
  }

  .timeline-content {
    max-width: 100%;
    flex: 1 1 auto;
    width: 100%;
  }

  .projects__card {
    flex: 0 0 300px;
  }

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

  .footer__container {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .scroll-to-top {
    bottom: var(--sp-6);
    right: var(--sp-6);
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .action__btns {
    flex-direction: column;
    width: 100%;
  }

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

  .story {
    justify-content: center;
  }

  .projects__card {
    flex: 0 0 280px;
  }

  .hero__stats {
    gap: var(--sp-4);
    padding: var(--sp-3) var(--sp-4);
    width: 100%;
    justify-content: space-around;
  }

  .hero__stat-divider {
    display: none;
  }
}

/* ============================================================
   23. 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;
  }

  .header__image,
  .header__content {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .timeline-content,
  .portfolio__card1 {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   24. PRINT STYLES
   ============================================================ */
@media print {

  nav,
  .feedback,
  .footer,
  .scroll-to-top,
  .scroll-progress,
  canvas {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .header__content h1 {
    -webkit-text-fill-color: #111827;
    background: none;
  }
}