/* ==========================================================================
   DARK LUXURY PORTFOLIO DESIGN SYSTEM
   Author: Alex Vance — UI/UX Designer & Web Developer
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & THEME SETUP
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Syne:wght@600;700;800&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@400,500,700,800&display=swap');
@import url('https://fonts.cdnfonts.com/css/monument-extended');

:root {
  /* Colors - Luxury Warm Ivory & Gold Corporate Palette */
  --bg-dark: #F8F4EE; /* Warm Ivory */
  --bg-card: #FFFFFF; /* Luxury White Cards */
  --bg-card-hover: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --bg-input: #FAF8F3;
  --bg-soft-beige: #EFE6D8;
  --bg-light-cream: #FAF8F3;

  /* Accents - Luxury Gold & Warm Bronze Palette */
  --accent-primary: #C9A24A;
  --accent-secondary: #A97C32;
  --accent-cyan: #D4AF37;
  --accent-glow: rgba(201, 162, 74, 0.18);
  --accent-glow-strong: rgba(212, 175, 55, 0.35);

  /* Text Colors */
  --text-main: #5E5E5E;
  --text-muted: #6B6B6B;
  --text-subtle: #8C8C8C;
  --text-heading: #1F1F1F;

  /* Borders & Glass Effect */
  --border-light: #ECE2D3;
  --border-accent: rgba(201, 162, 74, 0.35);
  --border-accent-strong: #C9A24A;
  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-blur: blur(20px);

  /* Typography System */
  --font-monument: 'Monument Extended', 'Syne', sans-serif;
  --font-syne: 'Syne', sans-serif;
  --font-space: 'Space Grotesk', sans-serif;
  --font-cabinet: 'Cabinet Grotesk', sans-serif;

  --font-heading: var(--font-syne);
  --font-body: var(--font-cabinet);
  --font-code: var(--font-space);

  /* Transitions & Shadows */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 30px rgba(201, 162, 74, 0.2);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Container width */
  --container-max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-cabinet);
  font-weight: 400;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #F4EFE8;
}
::-webkit-scrollbar-thumb {
  background: #C9A24A;
  border-radius: var(--radius-full);
  border: 2px solid #F4EFE8;
}
::-webkit-scrollbar-thumb:hover {
  background: #A97C32;
}

/* Selection */
::selection {
  background: var(--accent-glow-strong);
  color: #1F1F1F;
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

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

/* --------------------------------------------------------------------------
   3. BACKGROUND GLOW & MESH EFFECTS
   -------------------------------------------------------------------------- */
.bg-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(201, 162, 74, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 74, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.glow-spotlight {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 74, 0.16) 0%, rgba(239, 230, 216, 0.08) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out;
}

/* --------------------------------------------------------------------------
   4. LAYOUT & CONTAINERS
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 1;
}

section {
  padding: 6rem 0;
  position: relative;
}

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(201, 162, 74, 0.12);
  border: 1px solid rgba(201, 162, 74, 0.3);
  color: #A97C32;
  font-family: var(--font-space);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-syne);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-description {
  font-family: var(--font-cabinet);
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(135deg, #D4AF37 0%, #A97C32 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   5. BUTTONS & INTERACTIVE ELEMENTS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-space), 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.35;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  white-space: normal;
  word-break: break-word;
  min-height: 48px;
  box-sizing: border-box;
}

.btn span {
  display: inline-block;
  line-height: 1.35;
  vertical-align: middle;
}

.btn svg,
.btn i {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.btn-primary {
  background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 25px rgba(201, 162, 74, 0.3);
  font-family: var(--font-space);
  font-weight: 600;
  border-radius: 12px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #E5C158 0%, #C9A24A 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(201, 162, 74, 0.45);
}

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

.btn-secondary {
  background: #FFFFFF;
  color: #A97C32;
  border: 1px solid #C9A24A;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  font-family: var(--font-space);
  font-weight: 600;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
  border-color: #D4AF37;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 162, 74, 0.3);
}

.btn-outline {
  border: 1px solid #ECE2D3;
  color: #1F1F1F;
  background: #FFFFFF;
  border-radius: var(--radius-full);
}

.btn-outline:hover {
  background: rgba(201, 162, 74, 0.08);
  border-color: #C9A24A;
  color: #A97C32;
}

.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  color: var(--text-heading);
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.btn-icon:hover {
  background: rgba(201, 162, 74, 0.12);
  border-color: #C9A24A;
  color: #A97C32;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   6. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 100;
  transition: all var(--transition-normal);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(210, 190, 160, 0.3);
}

.navbar.scrolled {
  height: 70px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(210, 190, 160, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-text-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  user-select: none;
}

.brand-main-text {
  font-family: var(--font-monument), 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--text-heading, #1A1A1A);
  line-height: 1.1;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

.brand-gold-letter {
  color: #C9A24A;
}

.brand-sub-text {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #C9A24A;
  text-transform: uppercase;
  margin-top: 2px;
  width: 100%;
}

.brand-sub-text .brand-line {
  flex: 1;
  height: 1px;
  background-color: #C9A24A;
  opacity: 0.6;
}

.nav-brand:hover .brand-main-text {
  color: #C9A24A;
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #C9A24A;
  box-shadow: 0 0 12px rgba(201, 162, 74, 0.3);
  flex-shrink: 0;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-brand:hover .brand-logo-img {
  transform: scale(1.06);
  border-color: #D4AF37;
  box-shadow: 0 0 18px rgba(201, 162, 74, 0.5);
}

.brand-name-text {
  font-family: var(--font-monument);
  letter-spacing: 0.04em;
  font-weight: 700;
  color: #1F1F1F;
}

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

.nav-link {
  font-family: var(--font-space);
  font-size: 0.8rem;
  font-weight: 500;
  color: #5E5E5E;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #C9A24A;
  transition: width var(--transition-fast);
  border-radius: var(--radius-full);
}

.nav-link:hover, .nav-link.active {
  color: #C9A24A;
}

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

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

/* Hamburger Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 102;
}

.mobile-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-heading);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

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

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(248, 244, 238, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 101;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-link {
  font-family: var(--font-space);
  font-size: 1.75rem;
  font-weight: 500;
  color: #1F1F1F;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: #C9A24A;
}

/* --------------------------------------------------------------------------
   7. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(201, 162, 74, 0.12);
  border: 1px solid rgba(201, 162, 74, 0.3);
  color: #A97C32;
  font-family: var(--font-space);
  font-size: 0.725rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #C9A24A;
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background-color: #C9A24A;
  opacity: 0.6;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

.hero-greeting {
  font-family: var(--font-space);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--font-monument);
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-heading);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  text-rendering: optimizeLegibility;
}

.hero-description {
  font-family: var(--font-cabinet);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.stat-item h4, .stat-item h3 {
  font-family: var(--font-syne);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.stat-item p {
  font-family: var(--font-space);
  font-size: 0.725rem;
  color: #787878;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Hero Right Visual Profile Image Container */
.hero-visual-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-card-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(201, 162, 74, 0.22) 0%, rgba(239, 230, 216, 0.12) 50%, transparent 70%);
  filter: blur(45px);
  border-radius: 30px;
  z-index: 0;
}

.hero-profile-image-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  height: auto;
  border-radius: 25px;
  padding: 3px; /* Gradient outline border */
  background: linear-gradient(135deg, #D4AF37 0%, #ECE2D3 50%, #B8860B 100%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08), 0 0 35px rgba(201, 162, 74, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: floatProfile 6s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, background 0.4s ease;
}

.hero-profile-image-container:hover {
  transform: scale(1.03);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12), 0 0 50px rgba(201, 162, 74, 0.35);
  background: linear-gradient(135deg, #E5C158 0%, #F8F4EE 50%, #C9A24A 100%);
}

.glass-bg-layer {
  position: absolute;
  inset: 3px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1;
}

.hero-profile-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  border-radius: 22px;
  display: block;
}

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

.badge-text h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-heading);
}

.badge-text p {
  font-size: 0.75rem;
  color: var(--text-subtle);
}

/* Scroll Down Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-subtle);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--border-light);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  background: #FFFFFF;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--accent-primary);
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

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

.about-image-column {
  position: relative;
}

.about-image-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
}

.about-image-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.about-image-card:hover img {
  transform: scale(1.03);
}

.about-experience-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 162, 74, 0.35);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.about-experience-badge h3 {
  font-family: var(--font-syne);
  font-size: 2rem;
  font-weight: 700;
  color: #A97C32;
  line-height: 1;
}

.about-experience-badge p {
  font-family: var(--font-space);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.about-content-column h2 {
  font-family: var(--font-syne);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.about-bio-text {
  font-family: var(--font-cabinet);
  font-weight: 400;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* About Tabs */
.about-tabs-nav {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.about-tab-btn {
  padding: 0.75rem 1rem;
  font-family: var(--font-space);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.about-tab-btn.active {
  color: #A97C32;
  border-bottom-color: #C9A24A;
}

.about-tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.about-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-cabinet);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text-main);
}

.feature-item-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(201, 162, 74, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A97C32;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   9. PROJECTS / WORK SECTION
   -------------------------------------------------------------------------- */
.projects-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  color: #5E5E5E;
  font-family: var(--font-space);
  font-size: 0.725rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.filter-btn:hover {
  background: #FAF8F3;
  color: #1F1F1F;
  border-color: #C9A24A;
}

.filter-btn.active {
  background: rgba(201, 162, 74, 0.15);
  border-color: #C9A24A;
  color: #A97C32;
  box-shadow: 0 0 20px rgba(201, 162, 74, 0.2);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  align-items: stretch;
}

/* Project Card */
.project-card {
  background: #FFFFFF;
  backdrop-filter: var(--glass-blur);
  border: 1px solid #ECE2D3;
  border-radius: 20px;
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: #C9A24A;
  box-shadow: 0 25px 60px rgba(201, 162, 74, 0.2);
}

.project-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #FAF8F3;
  border-bottom: 1px solid #ECE2D3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  flex-shrink: 0;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover !important;
  object-position: center center !important;
  display: block;
  border-radius: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-image-wrapper img {
  transform: scale(1.02);
}

/* Card 4 (Custom Web App Development) image fit */
.projects-grid article:nth-child(4) .project-image-wrapper img {
  object-fit: cover !important;
  object-position: center center !important;
}

/* Right-to-Left Scroll Reveal Animation for Project Cards */
.projects-grid .project-card.reveal {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.projects-grid .project-card.reveal.revealed {
  opacity: 1;
  transform: translateX(0);
}

.projects-grid .project-card.reveal.revealed:hover {
  transform: translateY(-8px);
  transition-delay: 0s !important;
}

.projects-grid .project-card:hover {
  transition-delay: 0s !important;
}

/* Staggered entrance from right to left */
.projects-grid article.project-card:nth-child(1) { transition-delay: 0.05s; }
.projects-grid article.project-card:nth-child(2) { transition-delay: 0.15s; }
.projects-grid article.project-card:nth-child(3) { transition-delay: 0.25s; }
.projects-grid article.project-card:nth-child(4) { transition-delay: 0.35s; }
.projects-grid article.project-card:nth-child(5) { transition-delay: 0.45s; }
.projects-grid article.project-card:nth-child(6) { transition-delay: 0.55s; }


.project-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 162, 74, 0.4);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-family: var(--font-space);
  font-size: 0.675rem;
  font-weight: 600;
  color: #A97C32;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.project-image-wrapper .project-category-badge {
  display: none !important;
}

.project-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title {
  font-family: var(--font-syne);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.6rem;
}

.project-description {
  font-family: var(--font-cabinet);
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  margin-bottom: 1.5rem;
}

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

/* Service Details Area (Underneath First Card Content) */
.project-details-expanded {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 162, 74, 0.25);
  background: #FAF8F3;
  margin-left: -1.75rem;
  margin-right: -1.75rem;
  margin-bottom: -1.75rem;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.project-details-heading {
  font-family: var(--font-syne);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-top: 1.25rem;
  margin-bottom: 0.6rem;
}

.project-details-heading:first-child {
  margin-top: 0;
}

.project-details-text {
  font-family: var(--font-cabinet);
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.project-details-list {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 1rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.6rem 1rem;
}

.project-details-list li {
  font-family: var(--font-cabinet);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.project-details-list li i,
.project-details-list li svg {
  color: #A97C32;
  flex-shrink: 0;
}

.project-cta-box {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(201, 162, 74, 0.35);
}

.project-cta-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* --------------------------------------------------------------------------
   10. PROJECT DETAIL MODAL
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 31, 31, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

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

.modal-container {
  background: #FFFFFF;
  border: 1px solid #ECE2D3;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 850px;
  margin: auto 0;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), 0 0 40px rgba(201, 162, 74, 0.2);
  transform: scale(0.92);
  transition: transform var(--transition-bounce);
  position: relative;
}

/* Page body background lock class */
body.modal-open,
html.modal-open {
  overflow: hidden !important;
  height: 100% !important;
  touch-action: none;
}

/* Mobile responsive styling overrides for custom projects & modal */
@media (max-width: 768px) {
  .custom-projects-section {
    padding: 4.5rem 0;
  }
  .custom-projects-grid {
    gap: 1.5rem;
  }
  .modal-overlay {
    padding: 1.5rem 0.75rem;
  }
  .modal-body {
    padding: 1.5rem 1.25rem;
  }
  .modal-title {
    font-size: 1.5rem;
  }
  .modal-image-wrapper {
    min-height: 180px;
  }
  .modal-close-btn {
    top: 0.75rem;
    right: 0.75rem;
    width: 34px;
    height: 34px;
  }
}

.modal-container::-webkit-scrollbar,
.modal-overlay::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

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

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FAF8F3;
  border: 1px solid #ECE2D3;
  color: #1F1F1F;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #C9A24A;
  color: #FFFFFF;
  border-color: #C9A24A;
  transform: rotate(90deg);
}

.modal-image-wrapper {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  min-height: 240px;
  max-height: 450px;
  background: var(--bg-light-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  border-bottom: 1px solid var(--border-light);
  padding: 0;
}

.modal-header-image {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center center !important;
  display: block;
}

.modal-body {
  padding: 2.25rem;
}

.modal-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-title {
  font-family: var(--font-syne);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.modal-overview {
  font-family: var(--font-cabinet);
  font-weight: 400;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.modal-section-title {
  font-family: var(--font-syne);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.modal-features-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.modal-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-cabinet);
  font-weight: 400;
  color: var(--text-main);
  font-size: 0.95rem;
}

.modal-features-list svg {
  color: #A97C32;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  width: 100%;
}

.modal-actions .btn {
  flex: 1;
  width: auto;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  font-size: 0.825rem;
  line-height: 1.35;
  justify-content: center;
  text-align: center;
}

/* --------------------------------------------------------------------------
   11. SERVICES SECTION
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.service-card {
  background: #FFFFFF;
  backdrop-filter: var(--glass-blur);
  border: 1px solid #ECE2D3;
  border-radius: 20px;
  padding: 2.25rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #D4AF37, #B8860B);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: #C9A24A;
  box-shadow: 0 25px 60px rgba(201, 162, 74, 0.2);
}

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

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  background: rgba(201, 162, 74, 0.12);
  border: 1px solid rgba(201, 162, 74, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A97C32;
  margin-bottom: 1.5rem;
  transition: transform var(--transition-normal);
}

.service-card:hover .service-icon-box {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, #D4AF37, #B8860B);
  color: #FFFFFF;
}

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

.service-description {
  font-family: var(--font-cabinet);
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

.service-bullet-list li {
  font-family: var(--font-cabinet);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-bullet-list li::before {
  content: '▸';
  color: #A97C32;
}

/* --------------------------------------------------------------------------
   12. SKILLS SECTION
   -------------------------------------------------------------------------- */
.skills-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.skills-category-card {
  background: #FFFFFF;
  backdrop-filter: var(--glass-blur);
  border: 1px solid #ECE2D3;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.skills-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #D4AF37, #FFF2A8, #B8860B, #D4AF37);
  background-size: 300% 100%;
  animation: goldLineShimmer 3.5s infinite linear;
}

.skills-category-card:hover {
  border-color: #C9A24A;
  box-shadow: 0 20px 50px rgba(201, 162, 74, 0.18);
  transform: translateY(-4px);
}

.skills-category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.skills-category-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(201, 162, 74, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A97C32;
}

.skills-category-title {
  font-family: var(--font-syne);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
}

.skill-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skill-item-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-family: var(--font-space);
  font-size: 0.9rem;
  font-weight: 600;
}

.skill-name {
  font-family: var(--font-space);
  font-weight: 600;
  color: var(--text-heading);
}

.skill-percent {
  color: #A97C32;
  font-family: var(--font-space);
  font-weight: 600;
}

.skill-progress-track {
  width: 100%;
  height: 9px;
  background: #EFE6D8;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.skill-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #B8860B 0%, #D4AF37 30%, #FFF5C0 50%, #D4AF37 70%, #B8860B 100%);
  background-size: 200% 100%;
  border-radius: var(--radius-full);
  width: 0;
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
  animation: lineThemeGlow 2.5s infinite linear;
}

@keyframes lineThemeGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes goldLineShimmer {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 300% 0%;
  }
}

/* --------------------------------------------------------------------------
   13. TESTIMONIALS SECTION
   -------------------------------------------------------------------------- */
.testimonials-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1.5rem;
  padding-bottom: 1rem;
  padding-top: 0.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  width: 100%;
}

.testimonials-grid::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 calc((100% - 3rem) / 3);
  min-width: 320px;
  scroll-snap-align: start;
  background: #FFFFFF;
  backdrop-filter: var(--glass-blur);
  border: 1px solid #ECE2D3;
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  color: #D4AF37;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-family: var(--font-cabinet);
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}

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

.author-avatar-wrapper {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #C9A24A;
}

.pk-flag-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  border: 1px solid #FFFFFF;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  object-fit: cover;
}

.author-info h4 {
  font-family: var(--font-syne);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.2;
}

.author-info p {
  font-family: var(--font-cabinet);
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-bottom: 0.15rem;
}

.author-location {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.725rem;
  font-weight: 600;
  color: #B8860B;
}

.author-location img {
  width: 14px;
  height: 10px;
  border-radius: 1px;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   14. CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
}

.contact-info-card {
  background: #FFFFFF;
  backdrop-filter: var(--glass-blur);
  border: 1px solid #ECE2D3;
  border-radius: 20px;
  padding: 2.5rem;
  height: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.contact-info-title {
  font-family: var(--font-syne);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.contact-info-text {
  font-family: var(--font-cabinet);
  font-weight: 400;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(201, 162, 74, 0.12);
  border: 1px solid rgba(201, 162, 74, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A97C32;
  flex-shrink: 0;
}

.contact-detail-text h5 {
  font-family: var(--font-space);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.contact-detail-text p, .contact-detail-text a {
  font-family: var(--font-cabinet);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  transition: color var(--transition-fast);
}

.contact-detail-text a:hover {
  color: #C9A24A;
}

.social-profiles-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.social-profile-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  background: #FAF8F3;
  border: 1px solid #ECE2D3;
  color: var(--text-heading);
  font-family: var(--font-space);
  font-weight: 600;
  font-size: 0.925rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.social-profile-card:hover {
  background: #FFFFFF;
  border-color: #C9A24A;
  color: #A97C32;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 162, 74, 0.15);
}

.social-profile-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(201, 162, 74, 0.12);
  border: 1px solid rgba(201, 162, 74, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A97C32;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.social-profile-card:hover .social-profile-icon {
  background: linear-gradient(135deg, #D4AF37, #B8860B);
  color: #FFFFFF;
  border-color: #D4AF37;
}

/* Contact Form Container */
.contact-form-card {
  background: #FFFFFF;
  backdrop-filter: var(--glass-blur);
  border: 1px solid #ECE2D3;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  font-family: var(--font-space);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  background: #FAF8F3;
  border: 1px solid #ECE2D3;
  color: #1F1F1F;
  font-family: var(--font-cabinet);
  font-weight: 400;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: #C9A24A;
  box-shadow: 0 0 15px rgba(201, 162, 74, 0.25);
  background: #FFFFFF;
}

.form-input.error, .form-textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.error-message {
  color: #ef4444;
  font-family: var(--font-space);
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: none;
}

.form-input.error ~ .error-message, .form-textarea.error ~ .error-message {
  display: block;
}

/* Form Status Alert */
.form-status-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1.25rem;
  font-family: var(--font-space);
  font-size: 0.9rem;
  display: none;
}

.form-status-alert.success {
  display: block;
  background: rgba(201, 162, 74, 0.15);
  border: 1px solid #C9A24A;
  color: #A97C32;
}

.form-status-alert.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #ef4444;
}

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: #181613;
  border-top: 1px solid #2D2822;
  padding: 4rem 0 2rem 0;
  color: #E8DDCF;
  font-family: var(--font-cabinet);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand-col .brand-main-text {
  color: #FFFFFF;
  font-size: 1.35rem;
}

.footer-brand-col .brand-gold-letter {
  color: #D4AF37;
}

.footer-brand-col .brand-sub-text {
  color: #D4AF37;
}

.footer-brand-col .brand-sub-text .brand-line {
  background-color: #D4AF37;
  opacity: 0.85;
}

.footer-brand-col .nav-brand:hover .brand-main-text {
  color: #D4AF37;
}

.footer-brand-col p {
  color: #A0988E;
  font-family: var(--font-cabinet);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-syne);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #A0988E;
  font-family: var(--font-cabinet);
  font-weight: 400;
  font-size: 0.9rem;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-links a:hover {
  color: #C9A24A;
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(232, 221, 207, 0.12);
  color: #8C8479;
  font-family: var(--font-cabinet);
  font-size: 0.875rem;
}

.back-to-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #A0988E;
  font-family: var(--font-space);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.back-to-top-btn:hover {
  color: #C9A24A;
}

/* --------------------------------------------------------------------------
   16. TOAST NOTIFICATIONS & ANIMATIONS
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: #FFFFFF;
  border: 1px solid #C9A24A;
  color: #1F1F1F;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   17. RESPONSIVE BREAKPOINTS (AUTO MOBILE FULLY RESPONSIVE FOR ALL DEVICES)
   -------------------------------------------------------------------------- */

/* Global Mobile Viewport & Touch Input Optimization */
html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Touch Input Accessibility (Prevents iOS Safari auto-zoom on input focus) */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  font-size: 16px !important;
  min-height: 48px;
}

/* Laptops & Tablets Landscape (992px - 1200px) */
@media (max-width: 1200px) {
  .hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
  }
  .projects-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

/* Tablets & iPad Pro (769px - 1024px) */
@media (max-width: 1024px) {
  section {
    padding: 5rem 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-stats-row {
    justify-content: center;
  }
  .hero-visual-wrapper {
    order: -1;
    display: flex;
    justify-content: center;
  }
  .hero-profile-image-container {
    max-width: 360px;
    height: auto;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-image-column {
    display: flex;
    justify-content: center;
  }
  .about-image-card {
    max-width: 500px;
    width: 100%;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .skills-wrapper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablets & Mobile Phablets (577px - 768px) */
@media (max-width: 768px) {
  section {
    padding: 3.75rem 0;
  }
  .section-header {
    margin-bottom: 2.5rem;
  }
  .brand-main-text {
    font-size: 1rem;
  }
  .brand-sub-text {
    font-size: 0.55rem;
  }
  .hero-title {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }
  .hero-profile-image-container {
    max-width: 300px;
    height: auto;
  }
  .nav-links, .nav-actions .btn {
    display: none !important;
  }
  .mobile-toggle {
    display: flex !important;
  }

  /* 2nd Issue Fix: Hide 5+ Years of Craft & About Image on Mobile View */
  .about-image-column {
    display: none !important;
  }

  /* 3rd Issue Fix: Smooth Horizontal Scroll Filter Bar for Mobile */
  .projects-filter-bar {
    display: flex !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    gap: 0.5rem !important;
    padding-bottom: 0.75rem !important;
    margin-bottom: 2rem !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
  }
  .projects-filter-bar::-webkit-scrollbar {
    display: none !important;
  }
  .filter-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 0.6rem 1.15rem !important;
    font-size: 0.75rem !important;
    min-height: 42px !important;
  }

  /* Case Studies Grid on Mobile - Same Sizing & Grid Layout as PC */
  .projects-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    overflow-x: visible !important;
    width: 100% !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
  }
  .projects-grid::-webkit-scrollbar {
    display: none !important;
  }
  .projects-grid .project-card {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 100% !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
    border-radius: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
  }

  .projects-grid .project-image-wrapper {
    aspect-ratio: 16 / 9 !important;
    padding: 0 !important;
    width: 100% !important;
    flex-shrink: 0 !important;
  }

  .projects-grid .project-content {
    padding: 1.25rem !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
  }

  .projects-grid .project-title {
    font-size: 1.15rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.3 !important;
  }

  .projects-grid .project-description {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
    flex-grow: 1 !important;
  }

  .projects-grid .project-tech-tags {
    gap: 0.35rem !important;
    margin-top: auto !important;
    margin-bottom: 1rem !important;
  }

  .projects-grid .project-footer {
    margin-top: auto !important;
    padding-top: 0.85rem !important;
  }

  /* 5th Issue Fix: Solutions Built For Growth & Scale — 2 Boxes Per Line on Mobile */
  .services-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
  }
  .service-card {
    padding: 1rem 0.75rem !important;
    display: flex;
    flex-direction: column;
  }
  .service-icon-wrapper {
    width: 38px !important;
    height: 38px !important;
    margin-bottom: 0.6rem !important;
  }
  .service-title {
    font-size: 0.9rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.4rem !important;
  }
  .service-description {
    font-size: 0.75rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.75rem !important;
  }
  .service-tech-list {
    gap: 0.25rem !important;
  }
  .tech-chip {
    font-size: 0.65rem !important;
    padding: 0.2rem 0.45rem !important;
  }

  /* Testimonials Single Row Horizontal Scroll for Mobile */
  .testimonials-grid {
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    flex-wrap: nowrap !important;
    gap: 0.85rem !important;
    padding-bottom: 1rem !important;
    padding-top: 0.25rem !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    width: 100% !important;
  }
  .testimonials-grid::-webkit-scrollbar {
    display: none !important;
  }
  .testimonials-grid .testimonial-card {
    flex: 0 0 calc(33.333% - 0.6rem) !important;
    min-width: 260px !important;
    max-width: 320px !important;
    scroll-snap-align: start !important;
    margin-bottom: 0 !important;
    padding: 1.25rem 1rem !important;
  }
  .hero-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    width: 100%;
  }
  .stat-item {
    padding: 1rem;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    text-align: center;
  }
  .stat-item h4 {
    font-size: 1.6rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* General Mobile Button Sizing */
  .btn {
    padding: 0.65rem 1.15rem !important;
    font-size: 0.775rem !important;
    min-height: 40px !important;
    gap: 0.45rem !important;
  }
  .btn svg, .btn i {
    width: 16px !important;
    height: 16px !important;
  }

  /* Modal Mobile Overlay Responsiveness */
  .modal-container {
    width: 94%;
    max-width: 560px;
    max-height: 88vh;
    padding: 1.25rem;
    border-radius: 16px;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }
  .modal-image-wrapper {
    min-height: 160px;
    max-height: 260px;
  }
  .modal-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100% !important;
    padding-top: 1.25rem !important;
  }
  .modal-actions .btn {
    width: 100% !important;
    min-height: 40px !important;
    padding: 0.65rem 0.95rem !important;
    font-size: 0.775rem !important;
    line-height: 1.35 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    border-radius: 12px !important;
  }
  .modal-actions .btn span {
    display: inline-block !important;
    line-height: 1.35 !important;
    vertical-align: middle !important;
  }
  .social-profile-card {
    padding: 0.65rem 0.95rem !important;
    font-size: 0.8rem !important;
  }
}

/* Standard Mobile Phones (381px - 576px) */
@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.4rem);
  }
  .hero-description {
    font-size: 0.95rem;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .hero-profile-image-container {
    max-width: 280px;
    height: auto;
  }
  .about-tabs-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .about-tab-btn {
    flex: 1 1 auto;
    text-align: center;
    padding: 0.45rem 0.65rem;
    font-size: 0.725rem;
  }
  .about-experience-badge {
    padding: 0.75rem 1.25rem;
    bottom: 10px;
    right: 10px;
  }
  .about-experience-badge h3 {
    font-size: 1.5rem;
  }
  .contact-info-card, .contact-form-card {
    padding: 1.25rem;
  }
  .social-profile-card {
    padding: 0.6rem 0.85rem !important;
    font-size: 0.775rem !important;
  }
  .project-footer {
    flex-direction: row;
    gap: 0.5rem;
  }
  .project-footer .btn-outline {
    flex: 1;
    font-size: 0.725rem !important;
    padding: 0.55rem 0.75rem !important;
    min-height: 36px !important;
  }
}

/* ==========================================================================
   CUSTOM PROJECTS SECTION & BACKEND-READY MANAGEMENT STYLES
   ========================================================================== */
.custom-projects-section {
  padding: 6rem 0;
  position: relative;
}

.projects-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
}

.projects-admin-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.projects-admin-actions .btn {
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
}

/* Control Bar (Search & Category Filters) */
.projects-control-bar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  background: #FFFFFF;
  border: 1px solid #ECE2D3;
  padding: 1.25rem 1.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

@media (min-width: 992px) {
  .projects-control-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.projects-search-wrapper {
  position: relative;
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
}

.projects-search-wrapper .search-icon {
  position: absolute;
  left: 1rem;
  width: 18px;
  height: 18px;
  color: #A97C32;
  pointer-events: none;
}

.projects-search-input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 2.75rem;
  background: #FAF8F3;
  border: 1px solid #ECE2D3;
  border-radius: var(--radius-full);
  font-family: var(--font-cabinet);
  font-size: 0.9rem;
  color: var(--text-heading);
  outline: none;
  transition: all var(--transition-fast);
}

.projects-search-input:focus {
  border-color: #C9A24A;
  background: #FFFFFF;
  box-shadow: 0 0 12px rgba(201, 162, 74, 0.2);
}

.search-clear-btn {
  position: absolute;
  right: 0.75rem;
  background: #ECE2D3;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1F1F1F;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-clear-btn:hover {
  background: #C9A24A;
  color: #FFFFFF;
}

/* Category Filters */
.custom-category-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.custom-filter-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: #FAF8F3;
  border: 1px solid #ECE2D3;
  font-family: var(--font-space);
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.custom-filter-btn:hover {
  border-color: #C9A24A;
  color: #C9A24A;
  background: #FFFFFF;
}

.custom-filter-btn.active {
  background: #C9A24A;
  border-color: #C9A24A;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(201, 162, 74, 0.25);
}

/* Custom Projects Grid */
.custom-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .custom-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .custom-projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Custom Project Card */
.custom-project-card {
  background: #FFFFFF;
  border: 1px solid #ECE2D3;
  border-radius: 20px;
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
  position: relative;
}

.custom-project-card:hover {
  transform: translateY(-6px);
  border-color: #C9A24A;
  box-shadow: 0 20px 50px rgba(201, 162, 74, 0.18);
}

.custom-card-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #FAF8F3;
  border-bottom: 1px solid #ECE2D3;
  overflow: hidden;
}

.custom-card-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.custom-project-card:hover .custom-card-image-box img {
  transform: scale(1.04);
}

/* Card Badges */
.card-badges-row {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}

.badge-cat {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 162, 74, 0.4);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-family: var(--font-space);
  font-size: 0.65rem;
  font-weight: 700;
  color: #A97C32;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.badge-status {
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-family: var(--font-space);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(31, 31, 31, 0.85);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
}

.badge-status.completed {
  background: rgba(20, 83, 45, 0.9);
  color: #86EFAC;
  border-color: rgba(134, 239, 172, 0.3);
}

.badge-status.in-development {
  background: rgba(120, 53, 15, 0.9);
  color: #FDE047;
  border-color: rgba(253, 224, 71, 0.3);
}

.badge-status.live-demo {
  background: rgba(30, 58, 138, 0.9);
  color: #93C5FD;
  border-color: rgba(147, 197, 253, 0.3);
}

/* Card Body Content */
.custom-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.custom-card-meta {
  font-family: var(--font-cabinet);
  font-size: 0.775rem;
  color: #888;
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.custom-card-title {
  font-family: var(--font-syne);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.custom-card-desc {
  font-family: var(--font-cabinet);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.custom-card-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  margin-bottom: 1.25rem;
}

.custom-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #ECE2D3;
}

.card-admin-actions {
  display: flex;
  gap: 0.4rem;
  margin-left: auto;
}

.btn-icon-danger {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #DC2626;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon-danger:hover {
  background: #DC2626;
  color: #FFFFFF;
  border-color: #DC2626;
}

.btn-icon-edit {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FAF8F3;
  border: 1px solid #ECE2D3;
  color: #A97C32;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon-edit:hover {
  background: #C9A24A;
  color: #FFFFFF;
  border-color: #C9A24A;
}

/* Empty State */
.projects-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: #FFFFFF;
  border: 1px dashed #ECE2D3;
  border-radius: 20px;
  margin-top: 1.5rem;
}

.empty-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #FAF8F3;
  border: 1px solid #ECE2D3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  color: #C9A24A;
}

.projects-empty-state h3 {
  font-family: var(--font-syne);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 0.5rem;
}

.projects-empty-state p {
  font-family: var(--font-cabinet);
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto;
  font-size: 0.925rem;
}

/* Add / Edit Project Modal Form Styling */
.add-project-modal-container {
  max-width: 720px;
  padding: 2.25rem;
}

.add-project-modal-header {
  margin-bottom: 1.75rem;
  border-bottom: 1px solid #ECE2D3;
  padding-bottom: 1.25rem;
}

.modal-subtitle {
  font-family: var(--font-cabinet);
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.project-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

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

.form-col-full {
  grid-column: 1 / -1;
}

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

.form-label {
  font-family: var(--font-space);
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.required-star {
  color: #DC2626;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #FAF8F3;
  border: 1px solid #ECE2D3;
  border-radius: var(--radius-md);
  font-family: var(--font-cabinet);
  font-size: 0.9rem;
  color: var(--text-heading);
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #C9A24A;
  background: #FFFFFF;
  box-shadow: 0 0 10px rgba(201, 162, 74, 0.2);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-subtle);
  font-style: italic;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid #ECE2D3;
}

/* Compact Mobiles (iPhone SE, Foldables collapsed: < 380px) */
@media (max-width: 380px) {
  .brand-main-text {
    font-size: 0.9rem;
  }
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-greeting {
    font-size: 0.85rem;
  }
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .stat-item h4 {
    font-size: 1.35rem;
  }
  .stat-item p {
    font-size: 0.7rem;
  }
  .tech-chip {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }
}

/* Mobile Landscape Short Viewports */
@media (max-height: 500px) and (orientation: landscape) {
  .mobile-menu {
    padding-top: 5rem;
    padding-bottom: 2rem;
    overflow-y: auto;
  }
  .hero-profile-image-container {
    height: auto;
    max-width: 220px;
  }
  section {
    padding: 2.5rem 0;
  }
}

/* Reduced Motion Preference */
@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;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}




/* ZYPHRON-PROTECT: content protection (visual only, design unchanged) */
html, body { -webkit-user-select: none; -ms-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable="true"] { -webkit-user-select: text; user-select: text; }
img, a { -webkit-user-drag: none; user-drag: none; }
