/* ===================================================
   SURIYA V — Ali Abdaal-Inspired Design System
   Warm · Editorial · Friendly
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600&display=swap');

/* ===================================================
   DESIGN TOKENS
   =================================================== */
:root {
  /* --- Warm Light Palette (Default) --- */
  --bg-primary: #FFFDF9;
  --bg-secondary: #FFF8F0;
  --bg-tertiary: #FFF3E5;
  --bg-card: #ffffff;
  --bg-card-hover: #FFFBF5;
  --bg-accent-soft: #FFF0DB;

  --text-primary: #1A1A2E;
  --text-secondary: #4A4A5A;
  --text-muted: #8A8A9A;

  /* Warm accent: golden yellow + coral peach */
  --accent: #E8A838;
  --accent-hover: #D4952E;
  --accent-soft: #FFD666;
  --accent-warm: #FF9B71;
  --accent-bg: rgba(232, 168, 56, 0.08);
  --accent-bg-strong: rgba(232, 168, 56, 0.15);

  --gradient-accent: linear-gradient(135deg, #FFD666, #FF9B71);
  --gradient-hero: linear-gradient(160deg, #FFFDF9 0%, #FFF8F0 50%, #FFFDF9 100%);
  --gradient-warm: linear-gradient(135deg, #FFFBF2, #FFF3E5);

  --border-color: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.1);

  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.1);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

  /* Layout */
  --section-padding: 100px 0;
  --container-width: 1100px;
  --container-padding: 0 24px;
  --nav-height: 72px;

  /* Motion */
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-smooth: 0.4s var(--ease-out);

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 50%;
}

/* --- Dark Mode --- */
[data-theme="dark"] {
  --bg-primary: #111118;
  --bg-secondary: #18181F;
  --bg-tertiary: #1E1E28;
  --bg-card: #1C1C26;
  --bg-card-hover: #222230;
  --bg-accent-soft: rgba(232, 168, 56, 0.08);

  --text-primary: #EAEAF0;
  --text-secondary: #A0A0B0;
  --text-muted: #606070;

  --accent-bg: rgba(232, 168, 56, 0.1);
  --accent-bg-strong: rgba(232, 168, 56, 0.18);

  --gradient-hero: linear-gradient(160deg, #111118 0%, #18181F 50%, #111118 100%);
  --gradient-warm: linear-gradient(135deg, #1A1A24, #1E1E28);

  --border-color: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);

  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.25);
  --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.35);
}

/* ===================================================
   RESET & BASE
   =================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  transition: background var(--transition-smooth), color var(--transition-smooth);
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  display: block;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ===================================================
   UTILITY CLASSES
   =================================================== */
.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-text {
  color: var(--accent);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.8;
}

.section-header-center {
  text-align: center;
  margin-bottom: 48px;
}

.section-header-center .section-label::before {
  display: none;
}

.section-header-center .section-subtitle {
  margin: 0 auto;
}

/* Page Header (for inner pages) */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  background: var(--gradient-hero);
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color);
}

.page-header .section-subtitle {
  margin: 0 auto;
}

.page-header .section-label::before {
  display: none;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ===================================================
   NAVIGATION
   =================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 32px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--accent-bg);
}

.nav-links a.active {
  color: var(--accent);
  font-weight: 600;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: inline;
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: inline;
}

/* For light DEFAULT — invert logic */
[data-theme="light"] .theme-toggle .icon-moon,
:root:not([data-theme="dark"]) .theme-toggle .icon-moon {
  display: inline;
}

[data-theme="light"] .theme-toggle .icon-sun,
:root:not([data-theme="dark"]) .theme-toggle .icon-sun {
  display: none;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-smooth);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(232, 168, 56, 0.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 168, 56, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* ===================================================
   HERO SECTION — Landscape Desktop, Centered Mobile
   =================================================== */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
  padding-bottom: 40px;
  background: var(--gradient-hero);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 150px;
  align-items: center;
}

/* --- Profile Image Block (on top) --- */
.hero-profile {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
}

.hero-profile-ring {
  position: relative;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  padding: 5px;
  background: var(--gradient-accent);
  box-shadow: 0 0 0 6px var(--bg-primary), 0 0 0 8px rgba(232, 168, 56, 0.18),
    0 16px 48px rgba(232, 168, 56, 0.15);
  animation: ringGlow 5s ease-in-out infinite;
}

@keyframes ringGlow {

  0%,
  100% {
    box-shadow: 0 0 0 6px var(--bg-primary), 0 0 0 8px rgba(232, 168, 56, 0.18),
      0 16px 48px rgba(232, 168, 56, 0.15);
  }

  50% {
    box-shadow: 0 0 0 6px var(--bg-primary), 0 0 0 10px rgba(232, 168, 56, 0.28),
      0 20px 60px rgba(232, 168, 56, 0.22);
  }
}

.hero-profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.hero-profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Skill Chips floating around profile */
.hero-chip {
  position: absolute;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  box-shadow: var(--shadow-card);
  animation: chipFloat 6s ease-in-out infinite;
  z-index: 2;
}

.chip-1 {
  top: 8%;
  right: -50px;
  animation-delay: 0s;
}

.chip-2 {
  bottom: 18%;
  left: -80px;
  animation-delay: -2s;
}

.chip-3 {
  bottom: 0;
  right: -20px;
  animation-delay: -4s;
}

@keyframes chipFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* --- Hero Text Content --- */
.hero-content {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-greeting {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero-typing-wrapper {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
  min-height: 2rem;
  font-family: var(--font-body);
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  margin-left: 3px;
  vertical-align: text-bottom;
  animation: cursorBlink 1s infinite;
}

@keyframes cursorBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-description {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--accent-bg-strong);
  border: 1px solid rgba(232, 168, 56, 0.2);
  border-radius: var(--radius-xl);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-badge .pulse {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.5s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(232, 168, 56, 0.3);
  }

  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 8px rgba(232, 168, 56, 0);
  }
}

/* ===================================================
   HOME — ABOUT PREVIEW
   =================================================== */
.home-about {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.home-about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.home-about-text p {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 28px;
  font-size: 1.02rem;
}

.home-about-text p strong {
  color: var(--text-primary);
}

.home-about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===================================================
   HOME — EXPERTISE PREVIEW
   =================================================== */
.home-expertise {
  padding: var(--section-padding);
}

.home-projects {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.home-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ===================================================
   STAT CARDS (shared)
   =================================================== */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-xs);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 6px;
}

/* ===================================================
   ABOUT SECTION (standalone page)
   =================================================== */
.about {
  padding: var(--section-padding);
}

.about-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: start;
}

.about-image-col {
  position: sticky;
  top: 100px;
}

.about-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-card img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.about-experience-badge {
  position: absolute;
  bottom: -18px;
  right: -18px;
  background: var(--accent);
  color: #fff;
  padding: 18px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.about-experience-badge .exp-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.about-experience-badge .exp-text {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.9;
}

.about-text-col {
  display: flex;
  flex-direction: column;
}

.about-text {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 20px;
}

.about-text strong {
  color: var(--text-primary);
}

.about-highlight {
  background: var(--accent-bg);
  border: 1px solid rgba(232, 168, 56, 0.15);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-highlight .highlight-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-highlight p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.about-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--border-color);
}

/* ===================================================
   SKILLS / EXPERTISE
   =================================================== */
.skills {
  padding: var(--section-padding);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.expertise-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}

.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.expertise-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent);
}

.expertise-card:hover::before {
  opacity: 1;
}

.expertise-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-bg-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.expertise-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-weight: 700;
}

.expertise-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Tech Stack */
.tech-stack-section {
  margin-top: 16px;
}

.tech-stack-section h3 {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 28px;
}

.tech-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tech-category {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-xs);
}

.tech-category h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-weight: 700;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  padding: 6px 14px;
  background: var(--accent-bg);
  border: 1px solid rgba(232, 168, 56, 0.12);
  border-radius: var(--radius-xl);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.tech-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg-strong);
}

/* ===================================================
   PROJECTS
   =================================================== */
.projects {
  padding: var(--section-padding);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent);
}

.project-card-image {
  height: 190px;
  overflow: hidden;
  position: relative;
}

.project-card-image img,
.project-card-image>div {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.project-card:hover .project-card-image img,
.project-card:hover .project-card-image>div {
  transform: scale(1.03);
}

.project-card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.project-tag {
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-xl);
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid rgba(232, 168, 56, 0.15);
}

.project-tag.tag-warm {
  background: rgba(255, 155, 113, 0.1);
  color: var(--accent-warm);
  border-color: rgba(255, 155, 113, 0.15);
}

.project-tag.tag-muted {
  background: rgba(100, 130, 200, 0.08);
  color: #6482c8;
  border-color: rgba(100, 130, 200, 0.15);
}

[data-theme="dark"] .project-tag.tag-muted {
  color: #8aa0d8;
}

.project-tag.tag-coming {
  background: rgba(180, 180, 180, 0.08);
  color: var(--text-muted);
  border-color: rgba(180, 180, 180, 0.15);
}

.project-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-weight: 700;
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 18px;
  flex: 1;
}

.project-card-links {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: var(--radius-xl);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.project-link.link-primary {
  background: var(--accent);
  color: #fff;
}

.project-link.link-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 15px rgba(232, 168, 56, 0.25);
}

.project-link.link-outline {
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
}

.project-link.link-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Featured project */
.project-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.project-card.featured .project-card-image {
  height: 100%;
  min-height: 260px;
}

.project-card.featured .project-card-content {
  padding: 32px;
  justify-content: center;
}

/* ===================================================
   PROJECT DETAIL PAGE
   =================================================== */
.project-detail {
  padding: var(--section-padding);
}

.project-detail-content {
  max-width: 780px;
  margin: 0 auto;
}

.project-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.project-detail-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-detail-meta-item label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 700;
}

.project-detail-meta-item span {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-primary);
}

.project-detail-content h2 {
  font-size: 1.5rem;
  margin: 36px 0 16px;
  font-family: var(--font-heading);
}

.project-detail-content h3 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
  font-family: var(--font-body);
  font-weight: 700;
}

.project-detail-content p {
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
}

.project-detail-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.project-detail-content ul li {
  position: relative;
  padding-left: 22px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 6px;
}

.project-detail-content ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.project-detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

/* ===================================================
   RESUME
   =================================================== */
.resume {
  padding: var(--section-padding);
}

.resume-header {
  text-align: center;
  margin-bottom: 45px;
}

.resume-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-xl);
  font-size: 0.95rem;
  font-weight: 700;
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(232, 168, 56, 0.25);
}

.resume-download:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
  box-shadow: 0 8px 25px rgba(232, 168, 56, 0.3);
}

/* Timeline */
.timeline {
  max-width: 740px;
  margin: 45px auto 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  opacity: 0.25;
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-left: 72px;
  padding-bottom: 45px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 19px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 3px var(--accent);
  z-index: 1;
}

.timeline-date {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-xs);
}

.timeline-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}

.timeline-card h3 {
  font-size: 1.08rem;
  margin-bottom: 4px;
  font-family: var(--font-body);
  font-weight: 700;
}

.timeline-card .company {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.timeline-card ul li {
  position: relative;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 5px;
}

.timeline-card ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Certifications */
.certifications {
  max-width: 740px;
  margin: 50px auto 0;
}

.certifications h3 {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 22px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.cert-card:hover {
  border-color: var(--accent);
}

.cert-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.cert-info h4 {
  font-size: 0.92rem;
  margin-bottom: 2px;
  font-family: var(--font-body);
  font-weight: 700;
}

.cert-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===================================================
   CONTACT
   =================================================== */
.contact {
  padding: var(--section-padding);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-bg-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 0.9rem;
  margin-bottom: 2px;
  font-family: var(--font-body);
  font-weight: 700;
}

.contact-info-text p,
.contact-info-text a {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.contact-info-text a:hover {
  color: var(--accent);
}

.contact-socials {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.social-link:hover {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(232, 168, 56, 0.25);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.contact-form-wrapper h3 {
  font-size: 1.2rem;
  margin-bottom: 24px;
  font-family: var(--font-heading);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 168, 56, 0.1);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.form-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 168, 56, 0.3);
}

.form-status {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(76, 175, 130, 0.08);
  color: #4caf82;
  border: 1px solid rgba(76, 175, 130, 0.2);
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.08);
  color: #dc6868;
  border: 1px solid rgba(239, 68, 68, 0.15);
}

/* ===================================================
   CTA BANNER
   =================================================== */
.cta-banner {
  padding: 80px 0;
  background: var(--bg-tertiary);
  text-align: center;
  position: relative;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 50px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand .nav-logo {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 10px;
}

.footer-location {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  margin-bottom: 18px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===================================================
   SCROLL TO TOP
   =================================================== */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(232, 168, 56, 0.25);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-2px);
}

/* ===================================================
   PRELOADER
   =================================================== */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  animation: preloaderPulse 1.5s infinite ease-in-out;
}

@keyframes preloaderPulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.98);
  }

  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

/* ===================================================
   BACK LINK
   =================================================== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 20px;
  transition: color var(--transition-fast);
}

.back-link:hover {
  color: var(--accent);
}

/* ===================================================
   PRELOADER
   =================================================== */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent);
  border-right-color: var(--accent-warm);
  animation: preloaderSpin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes preloaderSpin {
  to {
    transform: rotate(360deg);
  }
}

.preloader-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  animation: preloaderFade 1.5s ease-in-out infinite;
  letter-spacing: -0.5px;
}

.preloader-tagline {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: preloaderFade 1.5s ease-in-out infinite;
  animation-delay: 0.3s;
}

@keyframes preloaderFade {

  0%,
  100% {
    opacity: 0.4;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* ===================================================
   SCROLL TO TOP
   =================================================== */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(232, 168, 56, 0.25);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-2px);
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {

  /* Hero → vertical centered on tablet/mobile */
  .hero .container {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 32px;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-profile-ring {
    width: 220px;
    height: 220px;
  }

  .hero-chip {
    font-size: 0.72rem;
    padding: 6px 12px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-image-col {
    position: static;
    max-width: 380px;
    margin: 0 auto;
  }

  .about-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-about-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .home-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .tech-categories {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card.featured {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 28px 36px;
    gap: 4px;
    transition: right var(--transition-smooth);
    border-left: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Hero mobile */
  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }

  .hero-greeting {
    font-size: 1.1rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-profile-ring {
    width: 200px;
    height: 200px;
  }

  .hero-chip {
    display: none;
  }

  /* Section titles */
  .section-title {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  /* Home sections */
  .home-about-text {
    text-align: center;
  }

  .home-about-text .btn {
    margin: 0 auto;
  }

  .home-about-text .section-label {
    justify-content: center;
  }

  .expertise-grid {
    gap: 16px;
  }

  .expertise-card {
    padding: 24px 20px;
  }

  /* Projects */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-template-columns: 1fr;
  }

  .project-card.featured .project-card-image {
    min-height: 200px;
  }

  /* Resume */
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 14px;
  }

  .timeline-item {
    padding-left: 48px;
  }

  .timeline-dot {
    left: 5px;
  }

  /* Footer */
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  /* Page headers */
  .page-header {
    padding: 110px 0 40px;
  }

  .page-header .section-title {
    font-size: clamp(1.5rem, 5vw, 1.9rem);
  }

  /* CTA */
  .cta-banner {
    padding: 50px 0;
  }

  .cta-banner h2 {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  /* Hero */
  .hero {
    padding: 90px 0 48px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-greeting {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 0.9rem;
    line-height: 1.75;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }

  .hero-profile-ring {
    width: 170px;
    height: 170px;
  }

  /* About */
  .about-image-card img {
    height: 300px;
  }

  .about-experience-badge {
    right: 0;
    bottom: -14px;
    padding: 14px 18px;
  }

  .about-experience-badge .exp-number {
    font-size: 1.6rem;
  }

  .about-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .about-text {
    font-size: 0.92rem;
  }

  /* Stats */
  .home-about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-card {
    padding: 16px 10px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.72rem;
  }

  /* Projects */
  .home-projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card-content {
    padding: 18px;
  }

  .project-card-image {
    height: 160px;
  }

  /* Contact */
  .contact-form-wrapper {
    padding: 22px 16px;
  }

  .contact-info-icon {
    width: 40px;
    height: 40px;
  }

  /* Expertise */
  .expertise-card {
    padding: 20px 16px;
  }

  .expertise-icon {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }

  /* Tech */
  .tech-category {
    padding: 18px;
  }

  .tech-tag {
    padding: 5px 10px;
    font-size: 0.76rem;
  }

  /* Section headers */
  .section-header-center {
    margin-bottom: 32px;
  }

  .page-header .section-subtitle {
    font-size: 0.88rem;
    padding: 0 8px;
  }
}