/* ═══════════════════════════════════════════════════════════
   2MEN CREATIVE STUDIO WEBSITE
   Creative agency website with advanced animations
   ═══════════════════════════════════════════════════════════ */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1. CSS CUSTOM PROPERTIES (Variables)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

:root {
  /* ═══ Colors from Logo ═══ */
  --gold: #D4A54A;
  --gold-light: #E8C875;
  --gold-dark: #B8903D;
  --blue: #2B5F9E;
  --blue-light: #4A7FBE;
  --blue-dark: #1A4373;
  --navy: #1A4373;

  /* ═══ Neutral Colors ═══ */
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1419;
  --bg-tertiary: #1a2332;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-tertiary: rgba(255, 255, 255, 0.6);

  /* ═══ Gradients ═══ */
  --gradient-gold: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  --gradient-blue: linear-gradient(135deg, var(--blue-light), var(--blue), var(--blue-dark));
  --gradient-mixed: linear-gradient(135deg, var(--gold), var(--blue));
  --gradient-radial-gold: radial-gradient(circle at center, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  --gradient-mesh: radial-gradient(at 0% 0%, rgba(212, 165, 74, 0.15) 0%, transparent 50%),
    radial-gradient(at 100% 100%, rgba(43, 95, 158, 0.15) 0%, transparent 50%);

  /* ═══ Shadows for 3D Depth ═══ */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.25);
  --shadow-gold: 0 8px 32px rgba(212, 165, 74, 0.3);
  --shadow-blue: 0 8px 32px rgba(43, 95, 158, 0.3);
  --shadow-gold-glow: 0 0 20px rgba(212, 165, 74, 0.5);

  /* ═══ Animation Timing Functions ═══ */
  --easing-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --easing-elastic: cubic-bezier(0.68, -0.6, 0.32, 1.6);

  /* ═══ Spacing ═══ */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* ═══ Border Radius ═══ */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;

  /* ═══ Transitions ═══ */
  --transition-fast: 0.2s var(--easing-smooth);
  --transition-normal: 0.3s var(--easing-smooth);
  --transition-slow: 0.6s var(--easing-smooth);
}

/* 2Men Creative Studio brand layer */
.brand-wordmark {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
  --brand-logo-height: 48px;
}

.brand-logo {
  display: block;
  height: var(--brand-logo-height);
  width: auto;
  transition: transform var(--transition-normal);
}

/* The gold-and-white lockup needs a dark surface; the boxed lockup carries its
   own background for light surfaces. Only one is ever shown. */
.brand-logo--on-light {
  display: none;
  border-radius: 10px;
}

[data-theme="light"] .brand-logo--on-dark {
  display: none;
}

[data-theme="light"] .brand-logo--on-light {
  display: block;
}

.nav-logo:hover .brand-logo {
  transform: scale(1.05);
}

.loading-logo .brand-wordmark {
  --brand-logo-height: 130px;
}

.loading-logo .brand-logo {
  animation: logoSpin 2s ease-in-out infinite;
}

.footer .brand-wordmark {
  --brand-logo-height: 84px;
  margin-bottom: 1rem;
}

.footer-logo {
  display: none;
}

.two-men-detail-hero {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.two-men-detail-hero .container {
  position: relative;
  z-index: 1;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: 2px solid rgba(212, 165, 74, 0.55);
  border-radius: var(--radius-md);
  color: var(--gold);
  background: rgba(212, 165, 74, 0.08);
  font-weight: 800;
  transition: var(--transition-normal);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  background: rgba(212, 165, 74, 0.16);
}

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

@media (max-width: 768px) {
  .brand-wordmark {
    --brand-logo-height: 40px;
  }

  .loading-logo .brand-wordmark {
    --brand-logo-height: 100px;
  }

  .footer .brand-wordmark {
    --brand-logo-height: 68px;
  }
}

@media (max-width: 1024px) {
  .timeline {
    padding-left: 48px;
    padding-right: 0;
  }

  .timeline-line {
    left: 20px;
    transform: translateX(-50%);
  }

  .timeline-item {
    display: block;
    padding: 0 0 3.5rem 0 !important;
  }

  .timeline-item .timeline-dot {
    position: absolute;
    left: -28px;
    top: 1rem;
    transform: translateX(-50%);
  }

  .timeline-item:nth-of-type(odd) .timeline-content,
  .timeline-item:nth-of-type(even) .timeline-content,
  .timeline-content {
    width: 100%;
    max-width: none;
    justify-self: auto;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   LIGHT THEME - for data-theme="light"
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

[data-theme="light"] {
  /* ═══ Light Background Colors ═══ */
  --bg-primary: #f5f7fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e8ecf1;

  /* ═══ Light Text Colors ═══ */
  --text-primary: #2c3e50;
  --text-secondary: rgba(44, 62, 80, 0.8);
  --text-tertiary: rgba(44, 62, 80, 0.6);

  /* ═══ Adjusted Gradient Mesh for Light ═══ */
  --gradient-mesh: radial-gradient(at 0% 0%, rgba(212, 165, 74, 0.08) 0%, transparent 50%),
    radial-gradient(at 100% 100%, rgba(43, 95, 158, 0.08) 0%, transparent 50%);

  /* ═══ Adjusted Shadows for Light Mode ═══ */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
  --shadow-gold: 0 8px 32px rgba(212, 165, 74, 0.25);
  --shadow-blue: 0 8px 32px rgba(43, 95, 158, 0.25);
  --shadow-gold-glow: 0 0 20px rgba(212, 165, 74, 0.3);
}

/* Light theme specific adjustments */
[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(212, 165, 74, 0.2);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .loading-screen {
  background: var(--bg-primary);
}

[data-theme="light"] .hero {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-tertiary) 50%, var(--bg-secondary) 100%);
}

[data-theme="light"] .about-section,
[data-theme="light"] .skills-section,
[data-theme="light"] .testimonials-section {
  background: var(--bg-secondary);
}

[data-theme="light"] .expertise-section,
[data-theme="light"] .timeline-section,
[data-theme="light"] .certifications-section,
[data-theme="light"] .contact-section {
  background: var(--bg-primary);
}

[data-theme="light"] .portfolio-section {
  background: var(--bg-secondary);
}

[data-theme="light"] .footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(212, 165, 74, 0.2);
}

[data-theme="light"] .card-front,
[data-theme="light"] .card-back {
  background: linear-gradient(135deg, rgba(212, 165, 74, 0.08), rgba(43, 95, 158, 0.08));
  border-color: rgba(212, 165, 74, 0.3);
}

[data-theme="light"] .stat-card,
[data-theme="light"] .skill-category,
[data-theme="light"] .timeline-card,
[data-theme="light"] .cert-card,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .contact-info-card {
  background: rgba(212, 165, 74, 0.05);
  border-color: rgba(212, 165, 74, 0.25);
}

[data-theme="light"] .portfolio-card {
  background: rgba(212, 165, 74, 0.05);
  border-color: rgba(212, 165, 74, 0.25);
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea {
  background: rgba(212, 165, 74, 0.05);
  border-color: rgba(212, 165, 74, 0.25);
  color: var(--text-primary);
}

[data-theme="light"] .newsletter-input {
  background: rgba(212, 165, 74, 0.05);
  border-color: rgba(212, 165, 74, 0.25);
  color: var(--text-primary);
}

[data-theme="light"] .loading-bar {
  background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .skill-bar-container {
  background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .hamburger span {
  background: var(--text-primary);
}

/* Ensure proper contrast in light mode */
[data-theme="light"] .section-tag {
  background: rgba(212, 165, 74, 0.15);
  border-color: rgba(212, 165, 74, 0.4);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   2. RESET & BASE STYLES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition-normal);
}

ul,
ol {
  list-style: none;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   3. ACCESSIBILITY
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--gold);
  color: var(--bg-primary);
  padding: 8px 16px;
  z-index: 100;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  top: 0;
}

*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   4. UTILITY CLASSES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-tag {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(212, 165, 74, 0.1);
  border: 1px solid rgba(212, 165, 74, 0.3);
  border-radius: var(--radius-xl);
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.65;
}

.section-header .section-subtitle {
  margin-top: 0.75rem;
}

.section-subtitle+.btn,
.section-subtitle+.btn-primary,
.section-subtitle+button,
.text-center .section-subtitle+.btn,
.text-center .section-subtitle+.btn-primary {
  margin-top: 2rem;
}

.contact-section>.container.text-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-section>.container.text-center .section-title {
  margin-bottom: 1.75rem;
}

.contact-section>.container.text-center .section-subtitle {
  margin-bottom: 2.25rem;
  max-width: 720px;
}

.contact-section>.container.text-center .btn {
  margin-top: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   5. LOADING SCREEN
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.loading-screen.hide {
  opacity: 0;
  transform: scale(1.1);
  pointer-events: none;
}

.loading-logo {
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 30px rgba(212, 165, 74, 0.6));
}


@keyframes logoSpin {

  0%,
  100% {
    transform: rotateY(0deg) rotateX(0deg);
  }

  25% {
    transform: rotateY(180deg) rotateX(0deg);
  }

  50% {
    transform: rotateY(180deg) rotateX(180deg);
  }

  75% {
    transform: rotateY(0deg) rotateX(180deg);
  }
}

.loading-bar {
  width: 300px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.loading-progress {
  height: 100%;
  background: var(--gradient-gold);
  border-radius: 10px;
  animation: loadProgress 2s ease-in-out infinite;
  box-shadow: var(--shadow-gold-glow);
}

@keyframes loadProgress {
  0% {
    width: 0;
  }

  50% {
    width: 70%;
  }

  100% {
    width: 100%;
  }
}

.loading-text {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 600;
  animation: pulse 2s ease-in-out infinite;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   6. SCROLL PROGRESS INDICATOR
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--gradient-gold);
  z-index: 9999;
  transform-origin: left;
  box-shadow: var(--shadow-gold-glow);
  transition: width 0.1s ease;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   7. NAVIGATION BAR - GLASSMORPHISM
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 0;
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 165, 74, 0.1);
  z-index: 1000;
  animation: slideDown 0.6s var(--easing-smooth);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 14, 26, 0.95);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  padding: 0.75rem 0;
}

@keyframes slideDown {
  0% {
    transform: translateY(-100%) scale(0.95);
    opacity: 0;
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.nav-link {
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  position: relative;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s var(--easing-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  transition: all 0.4s var(--easing-smooth);
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--gold);
  transform: scale(1.05);
}

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

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

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(212, 165, 74, 0.1);
  border: 1px solid rgba(212, 165, 74, 0.3);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--easing-smooth);
}

.theme-toggle:hover {
  background: var(--gradient-gold);
  color: var(--bg-primary);
  transform: rotate(180deg);
  box-shadow: var(--shadow-gold);
}

.hamburger {
  display: none;
  flex-direction: column;
  width: 30px;
  height: 24px;
  justify-content: space-between;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  transition: all 0.3s var(--easing-smooth);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   8. HERO SECTION - CINEMATIC ENTRANCE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-tertiary) 50%, var(--bg-secondary) 100%);
  padding: var(--spacing-xl) var(--spacing-md);
}

/* Animated Background Gradient */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--gradient-mesh);
  animation: gradientShift 15s ease infinite;
  z-index: 0;
}

@keyframes gradientShift {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(10%, 10%) rotate(180deg);
  }
}

/* Floating Particles */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gradient-gold);
  border-radius: 50%;
  opacity: 0.4;
  animation: particleFloat 20s infinite ease-in-out;
  box-shadow: var(--shadow-gold-glow);
}

@keyframes particleFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }

  25% {
    transform: translate(100px, -100px) scale(1.5);
    opacity: 0.8;
  }

  50% {
    transform: translate(50px, -200px) scale(1);
    opacity: 0.4;
  }

  75% {
    transform: translate(-50px, -150px) scale(1.2);
    opacity: 0.6;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

/* Logo - 3D Flip Entrance */
.hero-logo {
  width: 150px;
  height: 150px;
  margin: 0 auto 2rem;
  animation: logoEntrance 1.5s var(--easing-bounce) forwards;
  filter: drop-shadow(0 10px 30px rgba(212, 165, 74, 0.4));
}

@keyframes logoEntrance {
  0% {
    transform: rotateY(360deg) scale(0.3);
    opacity: 0;
  }

  60% {
    transform: rotateY(0deg) scale(1.1);
    opacity: 1;
  }

  100% {
    transform: rotateY(0deg) scale(1);
    opacity: 1;
  }
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Headline - Glitch Effect */
.hero-headline {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glitchText 2s ease forwards;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

@keyframes glitchText {

  0%,
  100% {
    transform: translate(0);
    opacity: 1;
  }

  10% {
    transform: translate(-5px, 2px);
    opacity: 0.8;
  }

  20% {
    transform: translate(5px, -2px);
    opacity: 0.8;
  }

  30% {
    transform: translate(0);
    opacity: 1;
  }
}

/* Subheadline - Blur to Focus */
.hero-subheadline {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--blue-light);
  margin-bottom: 1rem;
  animation: blurToFocus 1.5s ease 0.5s backwards;
  font-weight: 600;
}

@keyframes blurToFocus {
  0% {
    filter: blur(10px);
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 1s backwards;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CTA Buttons */
.hero-cta-container {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease 1.2s backwards;
}

.btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--easing-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--bg-primary);
  border: none;
  box-shadow: var(--shadow-gold);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 48px rgba(212, 165, 74, 0.5);
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:active {
  transform: translateY(-2px) scale(1.02);
}

.btn-secondary {
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--gold);
  position: relative;
  z-index: 1;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-gold);
  transition: left 0.4s var(--easing-smooth);
  z-index: -1;
  border-radius: var(--radius-md);
}

.btn-secondary:hover::before {
  left: 0;
}

.btn-secondary:hover {
  color: var(--bg-primary);
  border-color: transparent;
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.5rem 0;
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.btn-text i {
  transition: transform 0.3s ease;
}

.btn-text:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
  transform: translateX(5px);
}

.btn-text:hover i {
  transform: translateX(5px);
}

/* Light Mode support for btn-text */
[data-theme="light"] .btn-text {
  color: var(--blue);
}

[data-theme="light"] .btn-text:hover {
  color: var(--blue-dark);
  border-bottom-color: var(--blue-dark);
}

/* Profile Photo - Floating + 3D Tilt */
.hero-profile {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  border-radius: 50%;
  position: relative;
  animation: float 3s ease-in-out infinite, fadeInUp 1s ease 1.4s backwards;
  box-shadow: var(--shadow-xl);
  transition: transform 0.3s ease;
}

.hero-profile::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--gradient-gold);
  animation: rotate 4s linear infinite;
  z-index: -1;
  opacity: 0.8;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

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

  to {
    transform: rotate(360deg);
  }
}

.hero-profile:hover {
  transform: scale(1.05);
}

.hero-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--bg-primary);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: fadeIn 2s ease 2s backwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--gold);
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheelScroll 2s ease-in-out infinite;
}

@keyframes wheelScroll {
  0% {
    top: 8px;
    opacity: 1;
  }

  100% {
    top: 30px;
    opacity: 0;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   9. ABOUT SECTION - PARALLAX DEPTH
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.about-section {
  padding: var(--spacing-xl) 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--spacing-lg);
  align-items: start;
  margin-top: var(--spacing-lg);
}

.about-photo-container {
  position: relative;
  perspective: 1000px;
}

.about-photo {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;

  box-shadow: var(--shadow-xl);

}

.about-photo::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-lg);
  background: var(--gradient-gold);
  z-index: -1;
}

/* .about-photo:hover disabled for static behavior */
@media (max-width: 768px) {
  .about-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }

  .about-photo-container {
    display: block !important;
    width: 100% !important;
    max-width: 300px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 2rem !important;
  }

  .about-photo {
    display: block !important;
    width: 100% !important;
    margin: 0 auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}


.about-content h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--gold);
  margin-bottom: 1rem;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-highlights {
  margin: 2rem 0;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.highlight-item i {
  color: var(--gold);
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

/* Stats Counter Animation */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat-card {
  text-align: center;
  padding: 1.5rem 1rem;
  /* Reduced padding */
  background: rgba(212, 165, 74, 0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 165, 74, 0.2);
  transition: all 0.4s var(--easing-smooth);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(212, 165, 74, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
  border-radius: 50%;
}

.stat-card:hover::before {
  width: 300px;
  height: 300px;
}

.stat-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.stat-number {
  font-size: clamp(2rem, 5vw, 3rem);
  /* Responsive font size */
  font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  /* Prevent wrapping */
  width: 100%;
  display: block;
}


.stat-label {
  color: var(--blue-light);
  font-size: 1rem;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   10. EXPERTISE CARDS - 3D FLIP
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.expertise-section {
  padding: var(--spacing-xl) 0;
  background: var(--bg-primary);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: var(--spacing-lg);
}


.expertise-card {
  perspective: 1000px;
  height: 350px;
}

/* Mobile: Card Height Adjustment */
@media (max-width: 768px) {
  .expertise-card {
    height: 420px;
  }
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.expertise-card:hover .card-inner,
.card-inner.flipped {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transform: translateZ(0);
}

.card-front {
  background: linear-gradient(135deg, rgba(212, 165, 74, 0.1), rgba(43, 95, 158, 0.1));
  border: 2px solid rgba(212, 165, 74, 0.3);
  box-shadow: var(--shadow-lg);
}

.card-back {
  background: linear-gradient(135deg, rgba(43, 95, 158, 0.2), rgba(212, 165, 74, 0.2));
  border: 2px solid rgba(43, 95, 158, 0.3);
  transform: rotateY(180deg);
  box-shadow: var(--shadow-lg);
}

/* Mobile: Opaque background to prevent see-through overlap */
@media (max-width: 768px) {
  .card-front {
    background: var(--bg-secondary) !important;
    border-color: var(--gold);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  .card-back {
    background: var(--bg-tertiary) !important;
    border-color: var(--blue);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }
}

.card-icon {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
}

.card-brief {
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.card-skills {
  list-style: none;
}

.card-skills li {
  color: var(--blue-light);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(212, 165, 74, 0.2);
}

.card-skills li:last-child {
  border-bottom: none;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   11. SKILLS SECTION - LIQUID PROGRESS BARS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.skills-section {
  padding: var(--spacing-xl) 0;
  background: var(--bg-secondary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.skill-category {
  background: rgba(212, 165, 74, 0.05);
  border: 1px solid rgba(212, 165, 74, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s var(--easing-smooth);
}

.skill-category:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.category-title {
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.category-title i {
  font-size: 1.5rem;
}

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

.skill-item {
  position: relative;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.skill-name {
  font-weight: 600;
  color: var(--gold);
}

.skill-percentage {
  font-weight: 600;
  color: var(--blue-light);
}

.skill-bar-container {
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.skill-bar {
  height: 100%;
  background: var(--gradient-gold);
  border-radius: 10px;
  position: relative;
  width: 0;
  transition: width 2s var(--easing-smooth);
  box-shadow: var(--shadow-gold-glow);
  transform-origin: left;
}

.skill-bar.animate {
  width: var(--skill-percent);
}

.skill-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 200%;
  }
}

.skill-item:hover .skill-bar {
  transform: translateY(-3px);
  box-shadow: 0 4px 24px rgba(212, 165, 74, 0.6);
}

/* Continue in next file due to character limit... */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   12. TIMELINE - ANIMATED PATH
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.timeline-section {
  padding: var(--spacing-xl) 0;
  background: var(--bg-primary);
}

.timeline {
  position: relative;
  max-width: 1120px;
  margin: var(--spacing-lg) auto 0;
  padding: 2rem 0;
}

.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: var(--spacing-lg) auto 0;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 2rem;
  width: 4px;
  height: calc(100% - 4rem);
  background: linear-gradient(to bottom, var(--gold), var(--blue));
  transform: translateX(-50%);
  box-shadow: var(--shadow-gold-glow);
  border-radius: 999px;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 2.25rem;
  width: 24px;
  height: 24px;
  background: var(--gradient-gold);
  border: 4px solid var(--bg-primary);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(212, 165, 74, 0.7);
  }

  50% {
    box-shadow: 0 0 0 20px rgba(212, 165, 74, 0);
  }
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
  align-items: start;
  margin: 0;
  padding: 0 0 5.5rem;
}

.timeline-item:nth-of-type(even) .timeline-content {
  grid-column: 1;
  justify-self: end;
  text-align: left;
}

.timeline-item:nth-of-type(odd) .timeline-content {
  grid-column: 3;
  justify-self: start;
  text-align: left;
}

.timeline-item .timeline-dot {
  grid-column: 2;
  position: relative;
  left: auto;
  top: 0.8rem;
  justify-self: center;
  transform: none;
}

.timeline-content,
.timeline-card {
  background: rgba(212, 165, 74, 0.05);
  border: 1px solid rgba(212, 165, 74, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s var(--easing-smooth);
  position: relative;
  overflow: hidden;
  width: min(100%, 440px);
}

.timeline-content::before,
.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 165, 74, 0.1), transparent);
  transition: left 0.6s ease;
}

.timeline-content:hover::before,
.timeline-card:hover::before {
  left: 100%;
}

.timeline-content:hover,
.timeline-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.timeline-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.timeline-link {
  color: var(--text-primary);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.timeline-link:hover {
  color: var(--gold);
}

.timeline-date {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--gradient-gold);
  color: var(--bg-primary);
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.timeline-title {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.timeline-company {
  color: var(--blue-light);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.timeline-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.timeline-achievement {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(212, 165, 74, 0.1);
  padding: 1rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--gold);
}

.timeline-achievement i {
  color: var(--gold);
  font-size: 1.2rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.timeline-achievement span {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   13. PORTFOLIO - 3D GALLERY
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.portfolio-section {
  padding: var(--spacing-xl) 0;
  background: var(--bg-secondary);
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: var(--spacing-lg) 0;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 2px solid rgba(212, 165, 74, 0.3);
  color: var(--gold);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.3s var(--easing-smooth);
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--gradient-gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
  z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
  width: 300px;
  height: 300px;
}

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

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: var(--spacing-lg);
}

.portfolio-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  perspective: 1000px;
  transition: all 0.4s var(--easing-smooth);
  background: rgba(212, 165, 74, 0.05);
  border: 1px solid rgba(212, 165, 74, 0.2);
  height: 350px;
}

.portfolio-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-gold);
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--easing-smooth);
}

.portfolio-card:hover .portfolio-image {
  transform: scale(1.15);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(10, 14, 26, 1) 0%, rgba(10, 14, 26, 0.95) 50%, rgba(10, 14, 26, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transform: translateY(100%);
  transition: transform 0.4s var(--easing-smooth);
}

.portfolio-card:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 0.5rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s var(--easing-smooth) 0.1s;
}

.portfolio-card:hover .portfolio-title {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-category {
  font-size: 0.9rem;
  color: var(--blue-light);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  margin-bottom: 1rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s var(--easing-smooth) 0.15s;
}

.portfolio-card:hover .portfolio-category {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s var(--easing-smooth) 0.2s;
}

.portfolio-card:hover .portfolio-tags {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-tag {
  padding: 0.3rem 0.8rem;
  background: rgba(212, 165, 74, 0.2);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--gold);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   14. CERTIFICATIONS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.certifications-section {
  padding: var(--spacing-xl) 0;
  background: var(--bg-primary);
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: var(--spacing-lg);
}

.cert-card {
  background: rgba(212, 165, 74, 0.05);
  border: 2px solid rgba(212, 165, 74, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.4s var(--easing-smooth);
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(212, 165, 74, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
  border-radius: 50%;
}

.cert-card:hover::before {
  width: 400px;
  height: 400px;
}

.cert-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.cert-icon {
  font-size: 4rem;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

.cert-card h3 {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.cert-issuer {
  color: var(--blue-light);
  font-size: 0.95rem;
}

.cert-in-progress {
  border-style: dashed;
}

.cert-in-progress .cert-icon {
  animation: pulse 2s ease-in-out infinite;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   15. TESTIMONIALS - FLOATING CAROUSEL
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.testimonials-section {
  padding: var(--spacing-xl) 0;
  background: var(--bg-secondary);
  overflow: hidden;
}

.testimonials-carousel {
  position: relative;
  height: 450px;
  perspective: 1500px;
  margin: var(--spacing-lg) 0;
}

.testimonial-card {
  position: absolute;
  width: 100%;
  max-width: 700px;
  background: rgba(212, 165, 74, 0.05);
  border: 2px solid rgba(212, 165, 74, 0.2);
  border-radius: var(--radius-lg);
  padding: 3rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  box-shadow: var(--shadow-xl);
  left: 50%;
}





.testimonial-card.active {
  z-index: 3;
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

.testimonial-card.prev {
  z-index: 2;
  transform: translateX(-150%) translateZ(-150px) rotateY(25deg) scale(0.85);
  opacity: 0.6;
}

.testimonial-card.next {
  z-index: 2;
  transform: translateX(50%) translateZ(-150px) rotateY(-25deg) scale(0.85);
  opacity: 0.6;
}

.testimonial-card.hidden {
  opacity: 0;
  pointer-events: none;
}

.quote-icon {
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.2;
  margin-bottom: 1rem;
}

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

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

.author-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  object-fit: cover;
}

.author-info h4 {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.author-info p {
  color: var(--blue-light);
  font-size: 0.9rem;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  transition: all 0.3s var(--easing-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.carousel-btn:hover {
  background: var(--gradient-gold);
  color: var(--bg-primary);
  transform: scale(1.1);
  box-shadow: var(--shadow-gold);
}

/* Mobile adjustments for testimonials & spacing */
@media (max-width: 768px) {

  /* Reduce Gap Spacing */
  .testimonials-section,
  .contact-section {
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-md);
  }

  .testimonials-carousel {
    height: auto;
    perspective: none;
    padding: 0;
    margin: var(--spacing-md) 0;
  }

  .contact-grid {
    margin-top: var(--spacing-md);
  }

  /* Single Card View - No Jumping */
  .testimonial-card {
    position: relative;
    max-width: 100%;
    width: 100%;
    left: auto;
    transform: none !important;
    opacity: 1;
    margin: 0;
    padding: 2rem 1.5rem;
    display: none;
    /* Hide by default */
    box-shadow: var(--shadow-md);
  }

  .testimonial-card.active {
    display: block;
    /* Show only active */
    z-index: 1;
  }

  .testimonial-card.prev,
  .testimonial-card.next {
    display: none;
  }

  .carousel-controls {
    margin-top: 1.5rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}




/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   16. CONTACT SECTION - INTERACTIVE FORM
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.contact-section {
  padding: var(--spacing-xl) 0;
  background: var(--bg-primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.contact-form-container {
  position: relative;
}

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

.form-group {
  position: relative;
}

.form-input,
.form-textarea,
.form-input option {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(212, 165, 74, 0.2);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s var(--easing-smooth);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(212, 165, 74, 0.3);
  transform: translateY(-2px);
}

.form-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--text-tertiary);
  transition: all 0.3s var(--easing-smooth);
  pointer-events: none;
  background: var(--bg-primary);
  padding: 0 0.5rem;
}

.form-input:focus+.form-label,
.form-input:not(:placeholder-shown)+.form-label,
.form-textarea:focus+.form-label,
.form-textarea:not(:placeholder-shown)+.form-label,
.form-input:valid+.form-label {
  top: -0.5rem;
  left: 0.75rem;
  font-size: 0.85rem;
  color: var(--gold);
}

select.form-input+.form-label {
  top: -0.5rem;
  left: 0.75rem;
  font-size: 0.85rem;
  color: var(--gold);
}

.form-input.error {
  border-color: #ff4444;
  animation: shake 0.4s ease;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-10px);
  }

  75% {
    transform: translateX(10px);
  }
}

.error-message {
  color: #ff4444;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

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

.submit-btn {
  width: 100%;
  padding: 1.25rem;
  background: var(--gradient-gold);
  border: none;
  border-radius: var(--radius-md);
  border-radius: var(--radius-md);
  color: #0a0e1a;
  /* Force dark text for contrast on gold background */
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--easing-smooth);
  box-shadow: var(--shadow-gold);
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
}

.submit-btn:hover::before {
  width: 400px;
  height: 400px;
}

.submit-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 48px rgba(212, 165, 74, 0.6);
}

.submit-btn:active {
  transform: translateY(-2px) scale(0.98);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(76, 175, 80, 0.1);
  border: 2px solid #4CAF50;
  border-radius: var(--radius-lg);
}

.form-success.show {
  display: block;
  animation: successPop 0.6s var(--easing-bounce);
}

@keyframes successPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.form-success i {
  font-size: 4rem;
  color: #4CAF50;
  margin-bottom: 1rem;
}

.form-success h3 {
  color: #4CAF50;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.form-success p {
  color: var(--text-secondary);
}

/* Contact Info */
.contact-info-container {
  position: relative;
}

.contact-info-card {
  background: rgba(212, 165, 74, 0.05);
  border: 1px solid rgba(212, 165, 74, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
}

.contact-info-card h3 {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(212, 165, 74, 0.05);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--easing-smooth);
}

.info-item:hover {
  background: rgba(212, 165, 74, 0.1);
  transform: translateX(10px);
}

.info-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-content h4 {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.info-content p,
.info-content a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.info-content a:hover {
  color: var(--gold);
}

.social-links {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(212, 165, 74, 0.2);
}

.social-links h4 {
  color: var(--gold);
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(212, 165, 74, 0.1);
  border: 2px solid rgba(212, 165, 74, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.3rem;
  transition: all 0.4s var(--easing-smooth);
  transform-style: preserve-3d;
}

.social-icon:hover {
  background: var(--gradient-gold);
  color: var(--bg-primary);
  border-color: var(--gold);
  transform: translateY(-10px) rotateY(360deg);
  box-shadow: var(--shadow-gold);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   17. FOOTER - WAVE ANIMATION
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.footer {
  background: var(--bg-secondary);
  position: relative;
  padding: 2rem 0 1rem;
  /* Reduced padding */
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23D4A54A' fill-opacity='0.3' d='M0,32L48,37.3C96,43,192,53,288,58.7C384,64,480,64,576,58.7C672,53,768,43,864,42.7C960,43,1056,53,1152,53.3C1248,53,1344,43,1392,37.3L1440,32L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z'%3E%3C/path%3E%3C/svg%3E");
  background-size: cover;
  animation: waveMove 10s linear infinite;
  pointer-events: none;
}

@keyframes waveMove {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 1440px 0;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-col h4 {
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.footer-logo {
  height: 40px !important;
  max-width: 100px !important;
  width: auto !important;
  margin-bottom: 1rem;
}



.footer-tagline {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

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

.footer-links a {
  color: var(--text-secondary);
  transition: all 0.3s var(--easing-smooth);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--gold);
  transform: translateX(5px);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(212, 165, 74, 0.2);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 15px rgba(212, 165, 74, 0.3);
}

.newsletter-btn {
  padding: 0.75rem 1.5rem;
  background: var(--gradient-gold);
  border: none;
  border-radius: var(--radius-xl);
  color: var(--bg-primary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--easing-smooth);
}

.newsletter-btn:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-gold);
}

.footer-bottom {
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(212, 165, 74, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  color: var(--text-tertiary);
  font-size: 0.95rem;
}

.heart {
  display: inline-block;
  color: #ff4444;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.3);
  }

  50% {
    transform: scale(1);
  }
}

.footer-bottom-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  color: var(--text-tertiary);
  font-size: 0.95rem;
}

.footer-bottom-links a {
  color: var(--text-tertiary);
}

.footer-bottom-links a:hover {
  color: var(--gold);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   18. BACK TO TOP BUTTON
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: var(--bg-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-gold);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--easing-smooth);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 48px rgba(212, 165, 74, 0.6);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   19. RESPONSIVE DESIGN
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --spacing-xl: 4rem;
    --spacing-lg: 3rem;
  }

  .hero-headline {
    font-size: 3rem;
  }

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

  .about-photo {
    max-width: 300px;
    margin: 0 auto;
  }

  .expertise-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .timeline-item {
    padding: 0 0 0 60px !important;
    text-align: left !important;
  }

  .timeline-line {
    left: 20px;
  }

  .timeline-dot {
    left: 20px;
  }

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

  .testimonial-card.prev,
  .testimonial-card.next {
    display: none;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --spacing-xl: 3rem;
    --spacing-lg: 2rem;
    --spacing-md: 1rem;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 70px);
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    border-left: 1px solid rgba(212, 165, 74, 0.2);
    transition: right 0.4s var(--easing-smooth);
    z-index: 999;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    width: 100%;
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid rgba(212, 165, 74, 0.1);
    color: #ffffff !important;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .hero-headline {
    font-size: 2rem;
  }

  .hero-cta-container {
    flex-direction: column;
    width: 100%;
  }

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

  .expertise-card {
    height: auto;
  }

  .card-inner {
    transform: none !important;
  }

  .expertise-card:hover .card-inner {
    transform: none !important;
  }

  .card-back {
    position: relative;
    transform: none !important;
    margin-top: 1rem;
  }

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

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

  .testimonials-carousel {
    height: auto;
    min-height: 400px;
  }

  .testimonial-card {
    position: relative !important;
    transform: none !important;
    left: 0 !important;
  }

  .testimonial-card.active {
    transform: none !important;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .section-title {
    font-size: 2rem;
  }

  .hero-logo {
    width: 100px;
    height: 100px;
  }

  .hero-profile {
    width: 150px;
    height: 150px;
  }

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

  .portfolio-card {
    height: 300px;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   20. PRINT STYLES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media print {

  .navbar,
  .hamburger,
  .theme-toggle,
  .scroll-progress,
  .loading-screen,
  .back-to-top,
  .hero-particles,
  .scroll-indicator,
  .contact-form,
  .newsletter-form,
  .carousel-controls {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .section-title {
    color: black;
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   21. REDESIGNED HERO SECTION OVERRIDES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.hero-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Hero Text Side */
.hero-text {
  text-align: left;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.welcome-badge .emoji {
  font-size: 1.2rem;
}

.hero-headline {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text-primary);
  text-align: left;
}

.hero-headline .highlight {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subheadline {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--blue-light);
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: left;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 500px;
  line-height: 1.6;
}

/* CTA Buttons */
.hero-cta-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  justify-content: flex-start;
}

.btn {
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--gradient-gold);
  color: #fff;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold-glow);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--text-primary);
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-3px);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.social-icon:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-3px);
}

/* Hero Visual Side */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-card-container {
  position: relative;
  width: 400px;
  height: 400px;
}

.profile-card {
  width: 100%;
  height: 100%;
  background: var(--navy);
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-image-wrapper {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

.profile-placeholder {
  font-size: 5rem;
  margin-bottom: 1rem;
}

.upload-text {
  font-size: 0.9rem;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
  z-index: 5;
  animation: floatBadge 4s ease-in-out infinite;
}

.badge-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.badge-ai {
  top: 10%;
  right: -20px;
  animation-delay: 0s;
}

.badge-ai .badge-icon {
  background: #FFF4E5;
  color: #FFA500;
}

.badge-marketing {
  bottom: 20%;
  left: -40px;
  animation-delay: 1.5s;
}

.badge-marketing .badge-icon {
  background: #E3F2FD;
  color: #2196F3;
}

.badge-design {
  bottom: 5%;
  right: -10px;
  animation-delay: 3s;
}

.badge-design .badge-icon {
  background: #F3E5F5;
  color: #9C27B0;
}

@keyframes floatBadge {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.scroll-indicator-container {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  animation: bounce 2s infinite;
}

.scroll-text {
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.scroll-arrow {
  font-size: 1.2rem;
  color: var(--gold);
}

/* Responsive Adjustments */
@media (max-width: 968px) {
  .hero-content-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

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

  .hero-headline,
  .hero-subheadline {
    text-align: center;
  }

  .hero-headline {
    font-size: 3rem;
  }

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

  .hero-cta-container {
    justify-content: center;
  }

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

  .profile-card-container {
    width: 300px;
    height: 300px;
    margin: 0 auto;
  }

  .floating-badge {
    transform: scale(0.9);
  }
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-photo img {
  object-fit: contain !important;
  background: none !important;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.4));
  height: auto !important;
  max-height: 700px;
}

/* Redesigned About Photo - Standing Full View */
.about-photo-container {
  perspective: none !important;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.about-photo {
  max-width: none !important;
  width: 120% !important;
  /* Make it larger than the container to "cover up" */
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  overflow: visible !important;
  box-shadow: none !important;
  transform-style: flat !important;
  background: transparent !important;
  margin-left: -10%;
  /* Center it better if we increased width */
}

.about-photo::before {
  display: none !important;
}

.about-photo:hover {
  transform: none !important;
  box-shadow: none !important;
}

@media (max-width: 968px) {
  .about-photo {
    width: 100% !important;
    margin-left: 0;
  }
}

.about-photo {
  width: 150% !important;
  margin-left: -25% !important;
  margin-bottom: -40px !important;
  z-index: 10 !important;
}

.about-photo {
  width: 170% !important;
  margin-left: -35% !important;
  margin-bottom: -60px !important;
}

.about-photo img {
  max-height: 850px !important;
}

.scroll-indicator-container {
  text-decoration: none !important;
  cursor: pointer !important;
}

/* Fix for Select Options in Dark Mode */
select.form-input option {
  background-color: #0a0e1a !important;
  /* Dark background */
  color: #ffffff !important;
  /* Light text */
}

/* Fix for footer logo size */
.footer-logo {
  height: auto !important;
  width: auto !important;
}

.footer-logo img {
  height: 60px !important;
  width: auto !important;
  max-width: 100%;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   WHY CHOOSE ME SECTION
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.why-section {
  padding: var(--spacing-xl) 0;
  background: var(--bg-primary);
}

.why-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-lg);
  margin-top: 3rem;
}

.why-item {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Flexbox adaptation */
  flex: 1 1 300px;
  max-width: 500px;
  /* Prevents single items from stretching too wide */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

.why-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 165, 74, 0.3);
}

.why-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(212, 165, 74, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(212, 165, 74, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.why-item:hover .why-icon-box {
  background: var(--gradient-gold);
  border-color: transparent;
  transform: rotate(5deg) scale(1.1);
  box-shadow: 0 0 20px rgba(212, 165, 74, 0.4);
}

.why-icon-box i {
  font-size: 1.5rem;
  color: var(--gold);
  transition: color 0.3s ease;
}

.why-item:hover .why-icon-box i {
  color: var(--bg-primary);
}

.why-item h4 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.why-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .why-item {
    padding: 2rem;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
  }

  .why-icon-box {
    margin-bottom: 1rem;
    width: 64px;
    height: 64px;
    background: rgba(212, 165, 74, 0.15);
  }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   INTEGRATED PACKAGES SECTION
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.packages-section {
  position: relative;
  background: var(--bg-secondary);
  padding: var(--spacing-xl) 0;
  overflow: hidden;
}

/* Background decoration */
.packages-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(212, 165, 74, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
  z-index: 2;
}

.package-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.package-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.package-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 165, 74, 0.1);
}

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

/* Popular Card */
.package-card.popular {
  background: linear-gradient(145deg, rgba(212, 165, 74, 0.1), rgba(10, 14, 26, 0.8));
  border: 1px solid var(--gold);
  box-shadow: 0 10px 30px rgba(212, 165, 74, 0.15);
}

.package-card.popular:hover {
  box-shadow: 0 20px 50px rgba(212, 165, 74, 0.25), 0 0 30px rgba(212, 165, 74, 0.2);
}

.popular-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gradient-gold);
  color: var(--bg-primary);
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(212, 165, 74, 0.3);
  z-index: 5;
}

.package-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.package-card:hover .package-title {
  color: var(--gold);
}

.package-description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.package-features {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.package-features li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.package-features li i {
  color: var(--gold);
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  font-size: 0.9rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .packages-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .package-card {
    padding: 2rem;
  }
}

/* Light Theme Overrides for Packages */
[data-theme="light"] .packages-section {
  background: var(--bg-primary);
  /* Use a cleaner background */
}

[data-theme="light"] .package-card {
  background: #ffffff;
  border-color: rgba(212, 165, 74, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  /* Softer shadow */
}

[data-theme="light"] .package-card:hover {
  border-color: var(--gold);
  box-shadow: 0 10px 40px rgba(212, 165, 74, 0.15);
  /* Golden glow */
  transform: translateY(-5px);
}

[data-theme="light"] .package-card.popular {
  background: linear-gradient(135deg, #ffffff 0%, #fffbf0 100%);
  /* Subtle gold tint instead of dark gradient */
  border: 1px solid var(--gold);
  box-shadow: 0 8px 30px rgba(212, 165, 74, 0.2);
}

[data-theme="light"] .package-card.popular:hover {
  box-shadow: 0 15px 40px rgba(212, 165, 74, 0.3);
}

[data-theme="light"] .package-title {
  color: var(--blue-dark);
  /* Darker blue for better contrast */
}

[data-theme="light"] .package-description {
  color: var(--text-secondary);
  /* Ensure it's readable */
}

[data-theme="light"] .popular-badge {
  box-shadow: 0 4px 12px rgba(212, 165, 74, 0.4);
  /* Stronger shadow for badge to pop */
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MOBILE HERO OPTIMIZATIONS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {

  /* Fix Header Hiding Welcome Badge */
  .hero {
    padding-top: 150px;
    /* Increased padding to clear navbar */
    min-height: 0;
    height: auto;
    /* Allow content to define height */
    padding-bottom: 80px;
  }

  .hero-content-wrapper {
    flex-direction: column;
    /* Stack vertically: Text then Image */
    gap: 40px;
  }

  .hero-text {
    text-align: center;
    order: 1;
    /* Text first */
  }

  .hero-visual {
    order: 2;
    /* Visual second */
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .welcome-badge {
    margin: 0 auto 20px;
    /* Center the badge */
  }

  .hero-cta-container {
    justify-content: center;
  }

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

  /* Fix AI Automation Box Covering Face */
  .profile-card-container {
    width: 260px;
    /* Slightly smaller profile container */
    height: 320px;
  }

  .floating-badge {
    transform: scale(0.85);
    /* Reduce badge size */
    padding: 6px 14px;
    white-space: nowrap;
    z-index: 10;
    /* Ensure on top */
  }

  /* Reposition Badges to Clear Face */
  .badge-ai {
    top: -20px;
    /* Move higher up */
    right: -30px;
    /* Move further right */
    left: auto;
  }

  .badge-marketing {
    bottom: 20px;
    left: -30px;
    /* Move further left */
  }

  .badge-design {
    bottom: -20px;
    right: 0;
    left: auto;
  }

  /* Ensure image fits */
  .profile-img {
    object-fit: cover;
  }
}

/* Fix for Submit Button Text Visibility */
.submit-btn .btn-text {
  color: inherit !important;
  /* Ensure it inherits the dark color set on the button */
}

[data-theme="light"] .submit-btn {
  color: #ffffff !important;
  /* White text on Gold background for Light Mode */
}

/* Detail-page image heroes need fixed contrast in both themes. */
.two-men-detail-hero {
  color: #ffffff;
}

.two-men-detail-hero .hero-description,
.two-men-detail-hero .section-subtitle {
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
}

.two-men-detail-hero .back-link {
  color: rgba(255, 255, 255, 0.78) !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.two-men-detail-hero .back-link:hover {
  color: var(--gold-light) !important;
}

.two-men-detail-hero .service-stat-badge {
  background: rgba(255, 255, 255, 0.92) !important;
  color: #203044 !important;
  border-color: rgba(212, 165, 74, 0.65) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.two-men-detail-hero .service-stat-badge i {
  color: var(--gold-dark) !important;
}

.service-content .section-subtitle,
.tools-section .section-subtitle,
.contact-section .section-subtitle {
  color: var(--text-secondary);
}

[data-theme="dark"] .service-content .section-subtitle,
[data-theme="dark"] .tools-section .section-subtitle,
[data-theme="dark"] .contact-section .section-subtitle {
  color: rgba(255, 255, 255, 0.86);
}

[data-theme="dark"] .capability-list li,
[data-theme="dark"] .outcome-text,
[data-theme="dark"] .tool-tag,
[data-theme="dark"] .timeline-content p,
[data-theme="dark"] .package-description,
[data-theme="dark"] .package-features li {
  color: rgba(255, 255, 255, 0.84);
}

/* Final 2Men timeline alignment override */
@media (max-width: 1024px) {
  .timeline {
    padding-left: 48px;
    padding-right: 0;
  }

  .timeline-line {
    left: 20px;
    transform: translateX(-50%);
  }

  .timeline-item {
    display: block;
    padding: 0 0 3.5rem 0 !important;
  }

  .timeline-item .timeline-dot {
    position: absolute;
    left: -28px;
    top: 1rem;
    transform: translateX(-50%);
  }

  .timeline-item:nth-of-type(odd) .timeline-content,
  .timeline-item:nth-of-type(even) .timeline-content,
  .timeline-content {
    width: 100%;
    max-width: none;
    justify-self: auto;
  }
}
