/* CSS Custom Properties for Theme Management */
:root {
  /* Light Mode Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border-color: #e5e7eb;
  --shadow-light: rgba(0, 0, 0, 0.08);
  --shadow-medium: rgba(0, 0, 0, 0.12);
  --shadow-heavy: rgba(0, 0, 0, 0.16);
  
  /* Header Colors - Light Mode (Dark Header) */
  --header-bg: #1a1a1a;
  --header-text: #ffffff;
  --header-text-secondary: #d1d5db;
  --header-border: #374151;
  --header-shadow: rgba(0, 0, 0, 0.2);
  
  /* CTA Button Colors - Light Mode (White Button) */
  --cta-bg: #ffffff;
  --cta-text: #000000;
  --cta-hover-bg: #000000;
  --cta-hover-text: #ffffff;
  
  /* Brand Accent Colors */
  --accent-green: #00ff96;
  --accent-green-hover: #00e085;
  
  /* Dark Mode Colors */
  --bg-primary-dark: #0a0a0a;
  --bg-secondary-dark: #111111;
  --text-primary-dark: #ffffff;
  --text-secondary-dark: #d1d5db;
  --text-muted-dark: #9ca3af;
  --border-color-dark: #374151;
  --shadow-light-dark: rgba(255, 255, 255, 0.08);
  --shadow-medium-dark: rgba(255, 255, 255, 0.12);
  --shadow-heavy-dark: rgba(255, 255, 255, 0.16);
  
  /* Common Properties */
  --header-height: 80px;
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --bg-primary: var(--bg-primary-dark);
  --bg-secondary: var(--bg-secondary-dark);
  --text-primary: var(--text-primary-dark);
  --text-secondary: var(--text-secondary-dark);
  --text-muted: var(--text-muted-dark);
  --border-color: var(--border-color-dark);
  --shadow-light: var(--shadow-light-dark);
  --shadow-medium: var(--shadow-medium-dark);
  
  /* Header Colors - Dark Mode (Light Header) */
  --header-bg: #ffffff;
  --header-text: #1a1a1a;
  --header-text-secondary: #6b7280;
  --header-border: #e5e7eb;
  --header-shadow: rgba(0, 0, 0, 0.1);
  
  /* CTA Button Colors - Dark Mode (Black Button) */
  --cta-bg: #000000;
  --cta-text: #ffffff;
  --cta-hover-bg: #ffffff;
  --cta-hover-text: #000000;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: var(--transition);
  overflow-x: hidden;
}

/* Header Styles */
.header {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1200px;
  height: var(--header-height);
  background-color: var(--header-bg);
  border: 1px solid var(--header-border);
  border-radius: 24px;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.08),
    0 8px 16px rgba(0, 0, 0, 0.12),
    0 16px 32px rgba(0, 0, 0, 0.16),
    0 32px 64px rgba(0, 0, 0, 0.20);
  backdrop-filter: blur(24px) saturate(200%);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  will-change: transform, box-shadow, backdrop-filter;
  contain: layout style paint;
}

/* Scrolled state for enhanced stability */
.header.scrolled {
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.12), 
    0 16px 32px rgba(0, 0, 0, 0.08),
    0 32px 64px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(28px) saturate(220%);
  transform: translateX(-50%) translateY(-2px);
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--header-border), transparent);
  opacity: 0.6;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

/* Logo Styles */
.logo {
  flex-shrink: 0;
}

.logo-link {
  text-decoration: none;
  color: var(--header-text);
  transition: var(--transition);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-image {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--header-border);
  background-color: var(--header-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 4px 12px var(--header-shadow);
}

.logo-image::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--header-text), var(--header-text-secondary));
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.logo-link:hover .logo-image::before {
  opacity: 1;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  display: block;
}

.profile-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--header-text), var(--header-text-secondary));
  color: var(--header-bg);
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
}

.logo-link:hover .profile-img {
  transform: scale(1.05);
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--header-text), var(--header-text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.logo-link:hover .logo-text {
  transform: translateY(-1px) scale(1.02);
  background: linear-gradient(135deg, var(--header-text), var(--header-text));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-link:hover .logo-image {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-medium);
}

/* Desktop Navigation */
.nav-desktop {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
  background-color: var(--header-bg);
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--header-border);
}

.nav-item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: var(--header-text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: block;
}

.nav-link:hover {
  color: var(--header-text);
  background-color: transparent;
  transform: translateY(-1px);
  box-shadow: none;
}

.nav-link.active {
  color: var(--header-text);
  background-color: transparent;
  box-shadow: none;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* CTA Button */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--cta-bg), var(--cta-bg));
  color: var(--cta-text);
  text-decoration: none;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--cta-bg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.12);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.cta-button:hover {
  background: linear-gradient(135deg, var(--cta-bg), var(--cta-bg));
  color: var(--cta-text);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.16);
  border-color: var(--cta-bg);
}

.cta-button:active {
  transform: none;
}

.cta-text {
  position: relative;
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.cta-button:hover::after {
  width: 100px;
  height: 100px;
}

/* Theme Toggle - Premium Design */
.theme-toggle {
  background: var(--header-bg);
  border: 1px solid var(--header-border);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* Light mode (dark header) styling */
[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Dark mode (light header) styling */
[data-theme="dark"] .theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
}

.theme-toggle:hover {
  background-color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--header-shadow);
  border-color: var(--header-text);
}

.theme-toggle:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--header-shadow);
}

.theme-toggle:focus {
  outline: 2px solid var(--header-text);
  outline-offset: 2px;
}

/* Theme Icons - Enhanced Visibility */
.theme-icon {
  font-size: 1.3rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Light mode: Show moon icon (for switching to dark) */
[data-theme="light"] .dark-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="light"] .light-icon {
  opacity: 0;
  transform: rotate(-180deg) scale(0);
}

/* Dark mode: Show sun icon (for switching to light) */
[data-theme="dark"] .light-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .dark-icon {
  opacity: 0;
  transform: rotate(180deg) scale(0);
}

/* Hover effect with rotation and scale */
.theme-toggle:hover .theme-icon {
  transform: rotate(20deg) scale(1.15);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
}

[data-theme="light"] .theme-toggle:hover .dark-icon {
  transform: rotate(20deg) scale(1.15);
}

[data-theme="dark"] .theme-toggle:hover .light-icon {
  transform: rotate(20deg) scale(1.15);
}

/* Add glow effect on hover */
.theme-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: radial-gradient(circle at center, var(--header-text), transparent);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover::before {
  opacity: 0.08;
}

/* ========================================
   MOBILE NAVIGATION SYSTEM - PROFESSIONAL
   ======================================== */

/* Mobile Hamburger Menu Toggle Button - Premium Polish */
.mobile-menu-toggle {
  display: none;
  background: var(--header-bg);
  border: 1px solid var(--header-border);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  position: relative;
  gap: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* Light mode (dark header) styling */
[data-theme="light"] .mobile-menu-toggle {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Dark mode (light header) styling */
[data-theme="dark"] .mobile-menu-toggle {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
}

.mobile-menu-toggle:hover {
  background-color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--header-shadow);
  border-color: var(--header-text);
}

.mobile-menu-toggle:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--header-shadow);
}

.mobile-menu-toggle:focus {
  outline: 2px solid var(--header-text);
  outline-offset: 2px;
}

/* Add subtle glow effect on hover */
.mobile-menu-toggle::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: radial-gradient(circle at center, var(--header-text), transparent);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.mobile-menu-toggle:hover::after {
  opacity: 0.08;
}

/* Hamburger Lines - 3 horizontal lines with premium feel & visibility */
.hamburger-line {
  width: 22px;
  height: 3px;
  background-color: var(--header-text);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 3px;
  display: block;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
}

/* Enhanced visibility in light mode (dark header) */
[data-theme="light"] .hamburger-line {
  background-color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Enhanced visibility in dark mode (light header) */
[data-theme="dark"] .hamburger-line {
  background-color: #000000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* X (Cross) Transformation when active - Smooth & Bouncy */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Mobile Navigation Overlay - Premium Corner Dropdown */
.mobile-nav-overlay {
  position: fixed;
  top: 104px; /* Below header (24px top + 80px height) */
  right: 24px;
  width: 320px;
  max-width: calc(100vw - 48px);
  background: var(--header-bg);
  border: 1px solid var(--header-border);
  border-radius: 24px;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.15),
    0 20px 80px rgba(0, 0, 0, 0.20),
    0 40px 160px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(32px) saturate(200%);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px) scale(0.95);
  transform-origin: top right;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

/* Add subtle glow effect to menu */
.mobile-nav-overlay::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--header-text), transparent);
  border-radius: 24px;
  opacity: 0;
  z-index: -1;
  filter: blur(20px);
  transition: opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.mobile-nav-overlay.active::before {
  opacity: 0.08;
}

/* Mobile Navigation Content - Polished */
.mobile-nav-content {
  padding: 20px;
  width: 100%;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.mobile-nav-item {
  width: 100%;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Staggered fade-in animation for menu items - Polished */
.mobile-nav-overlay.active .mobile-nav-item {
  opacity: 1;
  transform: translateX(0);
}

.mobile-nav-overlay.active .mobile-nav-item:nth-child(1) { transition-delay: 0.08s; }
.mobile-nav-overlay.active .mobile-nav-item:nth-child(2) { transition-delay: 0.12s; }
.mobile-nav-overlay.active .mobile-nav-item:nth-child(3) { transition-delay: 0.16s; }
.mobile-nav-overlay.active .mobile-nav-item:nth-child(4) { transition-delay: 0.20s; }
.mobile-nav-overlay.active .mobile-nav-item:nth-child(5) { transition-delay: 0.24s; }
.mobile-nav-overlay.active .mobile-nav-item:nth-child(6) { transition-delay: 0.28s; }

/* Mobile Navigation Links - Premium Polish */
.mobile-nav-link {
  display: block;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--header-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 14px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

/* Subtle background effect on hover */
.mobile-nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.mobile-nav-link:hover::before {
  opacity: 1;
}

.mobile-nav-link:hover {
  color: var(--header-text);
  transform: translateX(6px);
  border-color: var(--header-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mobile-nav-link:active {
  transform: translateX(3px);
}

.mobile-nav-link:focus {
  outline: 2px solid var(--header-text);
  outline-offset: 2px;
  background: var(--bg-primary);
  border-color: var(--header-border);
}

/* Mobile CTA Button - Special Styling with Enhanced Polish */
.mobile-nav-cta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .mobile-nav-cta {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--cta-bg), var(--cta-bg));
  color: var(--cta-text);
  text-decoration: none;
  border-radius: 16px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 100%;
  border: 1px solid var(--cta-bg);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

/* Shine effect on CTA button */
.mobile-cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-cta-button:hover::before {
  left: 100%;
}

.mobile-cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mobile-cta-button:active {
  transform: translateY(-1px) scale(1.01);
}

.mobile-cta-text {
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.mobile-cta-button svg {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
}

.mobile-cta-button:hover svg {
  transform: translateX(6px) scale(1.1);
}

.mobile-cta-button:focus {
  outline: 3px solid var(--cta-bg);
  outline-offset: 3px;
}

/* Show mobile navigation on mobile devices */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex !important;
  }
  
  .nav-desktop {
    display: none !important;
  }
  
  .cta-desktop {
    display: none !important;
  }
  
  /* Adjust overlay position for smaller screens - Keep corner position */
  .mobile-nav-overlay {
    top: 92px; /* Adjusted for smaller header */
    right: 12px;
    width: min(300px, calc(100vw - 24px));
    border-radius: 20px;
  }
}

@media (max-width: 640px) {
  .mobile-nav-overlay {
    top: 88px;
    right: 10px;
    width: min(280px, calc(100vw - 20px));
    border-radius: 18px;
  }
  
  .mobile-nav-content {
    padding: 16px;
  }
  
  .mobile-nav-link {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  
  .mobile-cta-button {
    padding: 12px 18px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .mobile-nav-overlay {
    top: 86px;
    right: 10px;
    width: min(260px, calc(100vw - 20px));
    border-radius: 16px;
  }
  
  .mobile-nav-content {
    padding: 14px;
  }
  
  .mobile-nav-link {
    padding: 11px 14px;
    font-size: 0.875rem;
    border-radius: 12px;
  }
  
  .mobile-cta-button {
    padding: 11px 16px;
    font-size: 0.875rem;
    border-radius: 14px;
  }
}

/* Main Content */
.main-content {
  margin-top: calc(var(--header-height) + 40px);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-section {
  padding: 80px 0;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header {
    width: calc(100% - 24px);
    top: 12px;
    border-radius: 20px;
  }
  
  .header-container {
    padding: 0 20px;
  }
  
  .nav-desktop {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .cta-button {
    display: none;
  }
  
  .logo-text {
    font-size: 1.15rem;
  }
  
  .logo-image {
    width: 40px;
    height: 40px;
  }
  
  .logo-container {
    gap: 10px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .header {
    width: calc(100% - 20px);
    top: 10px;
    border-radius: 18px;
  }
  
  .header-container {
    padding: 0 16px;
  }
  
  .logo-text {
    font-size: 1.05rem;
  }
  
  .logo-image {
    width: 36px;
    height: 36px;
  }
  
  .logo-container {
    gap: 8px;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* Smooth scrolling and focus styles */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Focus styles for accessibility */
.nav-link:focus,
.theme-toggle:focus,
.mobile-menu-toggle:focus,
.nav-mobile-link:focus {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border-color: #000000;
    --border-color-dark: #ffffff;
  }
}

/* ========================================
   HERO SECTION STYLES
   ======================================== */

/* Centered Hero Section Styles */
.hero-centered {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    position: relative;
    text-align: center;
    overflow: hidden;
}

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

.hero-centered-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 56px;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-centered-text {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    position: relative;
}

.hero-centered-heading {
    font-size: 4.8rem;
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 30%, var(--text-primary) 70%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
    position: relative;
    will-change: transform, opacity;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.hero-centered-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--text-primary), transparent);
    border-radius: 2px;
    opacity: 0.6;
    animation: slideIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.8s both;
}

.hero-centered-subtext {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
    max-width: 650px;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
    position: relative;
    padding: 0 20px;
    will-change: transform, opacity;
}

.hero-centered-actions {
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
    position: relative;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-width: 200px;
    will-change: transform, box-shadow;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--text-primary), var(--text-primary));
    color: var(--bg-primary);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.15), 
        0 12px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.2), 
        0 24px 64px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--text-primary);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-arrow {
    margin-left: 10px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1em;
}

.btn-secondary:hover .btn-arrow {
    transform: translateX(6px) scale(1.1);
}

/* Enhanced Background Pattern */
.hero-centered::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.01) 0%, transparent 70%);
    z-index: -1;
    animation: backgroundFloat 20s ease-in-out infinite;
    will-change: transform;
}

[data-theme="dark"] .hero-centered::before {
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.01) 0%, transparent 70%);
}

/* Floating Elements */
.hero-centered::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--text-primary), transparent);
    border-radius: 50%;
    opacity: 0.05;
    animation: float 15s ease-in-out infinite;
    z-index: -1;
    will-change: transform;
}

/* Hero Section Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) scaleX(0);
    }
    to {
        opacity: 0.6;
        transform: translateX(-50%) scaleX(1);
    }
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

/* Focus states for accessibility */
.btn:focus {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .hero-centered-content,
    .hero-centered-heading,
    .hero-centered-subtext,
    .hero-centered-actions {
        animation: none;
    }
    
    .btn-arrow {
        transition: none;
    }

    .hero-centered::before,
    .hero-centered::after {
        animation: none;
    }

    .btn::before {
        transition: none;
    }
}

/* High contrast mode support for hero */
@media (prefers-contrast: high) {
    .hero-centered-heading {
        background: var(--text-primary);
        -webkit-background-clip: initial;
        -webkit-text-fill-color: initial;
        background-clip: initial;
    }
}

/* Section Indicator Styles */
.about-placeholder {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.about-indicator,
.projects-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

.about-tag,
.projects-tag {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 28px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid var(--border-color);
    border-radius: 60px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.about-tag::before,
.projects-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.15) 30%, 
        rgba(255, 255, 255, 0.25) 50%, 
        rgba(255, 255, 255, 0.15) 70%, 
        transparent 100%);
    transition: left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.about-tag:hover::before,
.projects-tag:hover::before {
    left: 100%;
}

.about-tag:hover,
.projects-tag:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 6px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, 
        var(--bg-secondary) 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        var(--bg-secondary) 100%);
}

.about-icon,
.projects-icon {
    font-size: 1.3rem;
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    position: relative;
    z-index: 2;
}

.about-tag:hover .about-icon,
.projects-tag:hover .projects-icon {
    opacity: 1;
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.about-text,
.projects-text {
    font-weight: 700;
    letter-spacing: -0.03em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-tag:hover .about-text,
.projects-tag:hover .projects-text {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Responsive Design for Section Indicators */
@media (max-width: 768px) {
    .about-placeholder {
        padding: 50px 0;
    }
    
    .about-indicator,
    .projects-indicator {
        min-height: 100px;
    }
    
    .about-tag,
    .projects-tag {
        padding: 16px 24px;
        font-size: 0.95rem;
        gap: 12px;
        border-radius: 50px;
    }
    
    .about-icon,
    .projects-icon {
        font-size: 1.1rem;
    }
}

@media (max-width: 640px) {
    .about-tag,
    .projects-tag {
        padding: 14px 20px;
        font-size: 0.9rem;
        gap: 10px;
    }
    
    .about-icon,
    .projects-icon {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .about-tag,
    .projects-tag {
        padding: 12px 18px;
        font-size: 0.85rem;
        gap: 8px;
        border-radius: 40px;
    }
    
    .about-icon,
    .projects-icon {
        font-size: 0.9rem;
    }
}

/* About Section Content Styles */
.about-hero {
    text-align: center;
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.about-headline {
    font-size: 4.8rem;
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 30%, var(--text-primary) 70%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    will-change: transform, opacity;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.about-headline::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--text-primary), transparent);
    border-radius: 2px;
    opacity: 0.6;
}

.about-subheadline {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
    max-width: 650px;
    text-align: center;
    padding: 0 20px;
}

/* About Content Grid */
.about-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 100px;
    align-items: center;
    margin-top: 80px;
    padding: 60px 0;
    position: relative;
}

.about-content-grid::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    opacity: 0.3;
}

/* Left Side: Text Content */
.about-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
    text-align: left;
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInLeft 0.6s ease-out 0.2s forwards;
}

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

.about-content-heading {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.about-content-text {
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* About Buttons */
.about-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.about-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    text-decoration: none;
    border-radius: 0;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    position: relative;
}

.about-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--text-secondary), var(--accent-green));
    transition: width 0.4s ease;
}

.about-btn-primary {
    color: var(--text-primary);
}

.about-btn-primary:hover {
    color: var(--accent-green);
    transform: translateY(-1px);
}

.about-btn-primary:hover::after {
    width: 100%;
}

/* Right Side: Image */
.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight 0.6s ease-out 0.4s forwards;
}

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

.about-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, var(--accent-green) 0%, transparent 50%, var(--accent-green) 100%);
    border-radius: 32px;
    opacity: 0.1;
    z-index: -1;
    animation: imageGlow 4s ease-in-out infinite;
}

@keyframes imageGlow {
    0%, 100% { opacity: 0.05; transform: scale(1); }
    50% { opacity: 0.15; transform: scale(1.01); }
}

.about-image-frame {
    position: relative;
    width: 400px;
    height: 480px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.15),
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-image-frame:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 35px 100px rgba(0, 0, 0, 0.2),
        0 15px 40px rgba(0, 0, 0, 0.15),
        0 6px 16px rgba(0, 0, 0, 0.1);
}

.about-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32px;
    transition: transform 0.4s ease;
}

.about-image-frame:hover .about-profile-img {
    transform: scale(1.05);
}

/* Responsive Design for About Content */
@media (max-width: 1024px) {
    .about-content-grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 60px;
    }
    
    .about-image-frame {
        width: 350px;
        height: 420px;
    }
    
    .about-content-heading {
        font-size: 2.2rem;
    }
}

/* Mobile Layout - Reorder elements */
@media (max-width: 768px) {
    .about-content-grid {
        grid-template-columns: 1fr;
        gap: 80px;
        order: 1;
        padding: 40px 0;
    }
    
    /* Text appears first on mobile */
    .about-text {
        order: 1;
        text-align: center;
        padding: 0 20px;
        gap: 20px;
    }
    
    /* Image appears after text */
    .about-image {
        order: 2;
    }
    
    .about-image-frame {
        width: 320px;
        height: 380px;
        margin: 0 auto;
    }
    
    .about-content-heading {
        font-size: 2.2rem;
    }
    
    .about-content-text {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }
    
    .about-buttons {
        justify-content: center;
        margin-top: 16px;
    }
}

@media (max-width: 640px) {
    .about-content-heading {
        font-size: 1.8rem;
    }
    
    .about-content-text {
        font-size: 1rem;
    }
    
    .about-image-frame {
        width: 280px;
        height: 340px;
    }
    
    .about-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .about-content-heading {
        font-size: 1.6rem;
    }
    
    .about-content-text {
        font-size: 0.95rem;
    }
    
    .about-image-frame {
        width: 260px;
        height: 320px;
    }
    
    .about-btn {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
}

/* ========================================
   ABOUT SECTION - REFINED & POLISHED
   ======================================== */

/* Main Section Container */
.about-section-refined {
    position: relative;
    padding: 100px 0;
    background: var(--bg-primary);
    overflow: hidden;
}

/* Subtle Background Pattern */
.about-section-refined::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 255, 150, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 0, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.01) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .about-section-refined::before {
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.01) 0%, transparent 70%);
}

/* About Section Indicator - Refined Version */
.about-indicator-refined {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    margin-bottom: 20px;
}

.about-tag-refined {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 28px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid var(--border-color);
    border-radius: 60px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.about-tag-refined::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.15) 30%, 
        rgba(255, 255, 255, 0.25) 50%, 
        rgba(255, 255, 255, 0.15) 70%, 
        transparent 100%);
    transition: left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.about-tag-refined:hover::before {
    left: 100%;
}

.about-tag-refined:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 6px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, 
        var(--bg-secondary) 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        var(--bg-secondary) 100%);
}

.about-icon-refined {
    font-size: 1.3rem;
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    position: relative;
    z-index: 2;
}

.about-tag-refined:hover .about-icon-refined {
    opacity: 1;
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.about-text-refined {
    font-weight: 700;
    letter-spacing: -0.03em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-tag-refined:hover .about-text-refined {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Container Grid - Split Layout */
.about-section-container {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Left Side: Image Section */
.about-image-side {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* Image Card Container */
.about-image-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4 / 5;
    border-radius: 32px;
    overflow: visible;
}

.about-image-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 105%;
    height: 105%;
    background: linear-gradient(135deg, rgba(0, 255, 150, 0.1), rgba(0, 0, 255, 0.1));
    border-radius: 36px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: blur(20px);
}

.about-image-card:hover::before {
    opacity: 0.6;
}

.about-image-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 8px 25px rgba(0, 0, 0, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-secondary);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.about-image-card:hover .about-image-inner {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 
        0 35px 100px rgba(0, 0, 0, 0.15),
        0 15px 45px rgba(0, 0, 0, 0.1),
        0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.about-portrait-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(15%) contrast(1.05) saturate(1.1);
    animation: subtleFloat 8s ease-in-out infinite;
}

@keyframes subtleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.01);
    }
}

.about-image-card:hover .about-portrait-photo {
    animation: none;
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1.08) saturate(1.15);
}

/* Shadow Element */
.about-image-shadow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.12), transparent);
    border-radius: 50%;
    opacity: 0;
    animation: fadeInShadow 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}

@keyframes fadeInShadow {
    to { opacity: 1; }
}

/* Right Side: Content Section */
.about-content-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

/* Text Content Wrapper */
.about-text-content {
    max-width: 580px;
    position: relative;
    opacity: 0;
    transform: translateX(30px);
    animation: slideInFromRight 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
    z-index: 1;
}

/* Decorative accent behind text content */
.about-text-content::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    right: -40px;
    bottom: -40px;
    background: linear-gradient(135deg, 
        rgba(0, 255, 150, 0.03) 0%, 
        transparent 30%,
        transparent 70%,
        rgba(0, 0, 255, 0.03) 100%);
    border-radius: 40px;
    z-index: -1;
    opacity: 0;
    animation: fadeInBg 1s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

@keyframes fadeInBg {
    to { opacity: 1; }
}

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

/* Heading Styles */
.about-refined-heading {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin: 0 0 28px 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-refined-heading::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green), transparent);
    border-radius: 2px;
    opacity: 0;
    animation: slideInUnderline 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

@keyframes slideInUnderline {
    to { 
        opacity: 1;
        width: 120px;
    }
}

/* Description Text */
.about-refined-description {
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
    font-weight: 400;
    letter-spacing: 0.01em;
    max-width: 520px;
}

.about-refined-description:last-of-type {
    margin-bottom: 44px;
}

/* CTA Button - Matches Homepage Style */
.about-refined-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    background: var(--text-primary);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 18px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15), 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

/* Dark theme: White button on dark background */
[data-theme="dark"] .about-refined-cta {
    background: #ffffff;
    color: #000000;
}

[data-theme="dark"] .about-refined-cta:hover {
    box-shadow: 
        0 12px 32px rgba(255, 255, 255, 0.2), 
        0 8px 20px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.about-refined-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-refined-cta:hover::before {
    left: 100%;
}

.about-refined-cta svg {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-refined-cta:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.20), 
        0 10px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0 20px rgba(0, 255, 150, 0.2);
    border-color: rgba(0, 255, 150, 0.3);
}

.about-refined-cta:hover svg {
    transform: translateX(6px) rotate(-45deg) scale(1.1);
}

.about-refined-cta:active {
    transform: translateY(-2px) scale(1.01);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .about-section-container {
        gap: 60px;
        padding: 0 40px;
    }
    
    .about-refined-heading {
        font-size: 3.2rem;
    }
    
    .about-refined-description {
        font-size: 1.25rem;
    }
}

@media (max-width: 1200px) {
    .about-section-container {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        padding: 0 32px;
    }
    
    .about-image-card {
        max-width: 420px;
    }
    
    .about-refined-heading {
        font-size: 3rem;
    }
    
    .about-refined-description {
        font-size: 1.2rem;
    }
}

@media (max-width: 992px) {
    .about-section-refined {
        padding: 80px 0;
    }
    
    .about-indicator-refined {
        min-height: 100px;
        margin-bottom: 16px;
    }
    
    .about-tag-refined {
        padding: 16px 24px;
        font-size: 0.95rem;
        gap: 12px;
        border-radius: 50px;
    }
    
    .about-icon-refined {
        font-size: 1.1rem;
    }
    
    .about-section-container {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 0 40px;
    }
    
    .about-image-side {
        order: 1;
        padding: 20px 10px;
    }
    
    .about-image-card {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .about-content-side {
        order: 2;
        padding: 0;
    }
    
    .about-text-content {
        text-align: center;
    }
    
    .about-refined-heading {
        font-size: 2.8rem;
    }
    
    .about-refined-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .about-section-refined {
        padding: 60px 0;
    }
    
    .about-section-container {
        gap: 50px;
        padding: 0 32px;
    }
    
    .about-image-card {
        max-width: 380px;
    }
    
    .about-refined-heading {
        font-size: 2.5rem;
    }
    
    .about-refined-description {
        font-size: 1.15rem;
        margin-bottom: 36px;
    }
    
    .about-refined-cta {
        padding: 16px 32px;
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .about-indicator-refined {
        min-height: 90px;
        margin-bottom: 12px;
    }
    
    .about-tag-refined {
        padding: 14px 20px;
        font-size: 0.9rem;
        gap: 10px;
        border-radius: 40px;
    }
    
    .about-icon-refined {
        font-size: 1rem;
    }
    
    .about-section-container {
        gap: 40px;
        padding: 0 24px;
    }
    
    .about-image-side {
        padding: 16px 8px;
    }
    
    .about-image-card {
        max-width: 320px;
    }
    
    .about-content-side {
        padding: 0;
    }
    
    .about-refined-heading {
        font-size: 2.2rem;
    }
    
    .about-refined-description {
        font-size: 1.05rem;
        margin-bottom: 32px;
    }
    
    .about-refined-cta {
        width: 100%;
        justify-content: center;
        padding: 14px 28px;
    }
}

@media (max-width: 480px) {
    .about-section-refined {
        padding: 50px 0;
    }
    
    .about-indicator-refined {
        min-height: 80px;
        margin-bottom: 10px;
    }
    
    .about-tag-refined {
        padding: 12px 18px;
        font-size: 0.85rem;
        gap: 8px;
        border-radius: 40px;
    }
    
    .about-icon-refined {
        font-size: 0.9rem;
    }
    
    .about-section-container {
        gap: 36px;
        padding: 0 20px;
    }
    
    .about-image-card {
        max-width: 280px;
    }
    
    .about-refined-heading {
        font-size: 1.9rem;
    }
    
    .about-refined-description {
        font-size: 1rem;
        margin-bottom: 28px;
    }
    
    .about-refined-cta {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
}

/* Dark Mode Adjustments */
[data-theme="dark"] .about-section-refined {
    background: var(--bg-primary-dark);
}

[data-theme="dark"] .about-image-inner {
    background: var(--bg-secondary-dark);
}

[data-theme="dark"] .about-image-shadow {
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.08), transparent);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .about-image-card,
    .about-portrait-photo,
    .about-refined-heading::after,
    .about-refined-cta svg,
    .about-image-shadow,
    .about-text-content {
        animation: none;
        transition: none;
    }
    
    .about-refined-cta::before {
        transition: none;
    }
}

/* Focus States for Accessibility */
.about-refined-cta:focus {
    outline: 3px solid var(--text-primary);
    outline-offset: 4px;
}

/* Print Styles */
@media print {
    .about-section-refined {
        page-break-inside: avoid;
        margin: 40px 0;
        padding: 40px 0;
    }
    
    .about-image-inner {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .about-refined-cta {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }
}

/* ========================================
   BLOG SECTION - LATEST INSIGHTS
   ======================================== */

/* Main Blog Section */
.blog-section {
    position: relative;
    padding: 100px 0;
    background: var(--bg-primary);
    overflow: hidden;
}

.blog-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 70% 30%, rgba(0, 255, 150, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 30% 70%, rgba(0, 0, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Blog Section Indicator - Same as Projects */
.blog-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.blog-tag {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 28px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid var(--border-color);
    border-radius: 60px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.blog-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.blog-tag:hover::before {
    left: 100%;
}

.blog-tag:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 6px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.blog-icon {
    font-size: 1.3rem;
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    position: relative;
    z-index: 2;
}

.blog-tag:hover .blog-icon {
    opacity: 1;
    transform: scale(1.1) rotate(5deg);
}

.blog-text {
    font-weight: 700;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 2;
}

/* Blog Header */
.blog-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 1;
}

.blog-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin: 0 0 24px 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

.blog-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto 60px;
    padding: 0 48px;
    position: relative;
    z-index: 1;
}

/* Blog Card */
.blog-card {
    background: var(--bg-primary);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--border-color);
    opacity: 0;
    transform: translateY(40px);
    animation: slideUpFade 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.blog-card:nth-child(1) {
    animation-delay: 0.1s;
}

.blog-card:nth-child(2) {
    animation-delay: 0.2s;
}

.blog-card:nth-child(3) {
    animation-delay: 0.3s;
}

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

.blog-card:hover {
    transform: translateY(-12px);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.12),
        0 15px 40px rgba(0, 0, 0, 0.08),
        0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: var(--text-primary);
}

/* Blog Card Image */
.blog-card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card-overlay {
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.2));
}

/* Blog Card Content */
.blog-card-content {
    padding: 32px;
}

.blog-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.blog-date,
.blog-read-time {
    position: relative;
}

.blog-date::after {
    content: '•';
    position: absolute;
    right: -10px;
}

/* Blog Card Title */
.blog-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0 0 16px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light theme: Slight scale and bolder on hover */
.blog-card:hover .blog-card-title {
    transform: scale(1.01);
    font-weight: 900;
    color: #000000;
}

/* Dark theme: Green color on hover with smooth transition */
[data-theme="dark"] .blog-card:hover .blog-card-title {
    transform: scale(1.01);
    font-weight: 900;
    color: var(--accent-green);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Blog Card Excerpt */
.blog-card-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
}

/* Read More Link */
.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.blog-read-more svg {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smoother arrow transition in dark theme */
[data-theme="dark"] .blog-read-more svg {
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light theme: Scale up, bolder, and darker on hover */
.blog-read-more:hover {
    gap: 12px;
    transform: scale(1.02);
    font-weight: 700;
    color: #000000;
}

/* Dark theme: Green color on hover with smooth transition */
[data-theme="dark"] .blog-read-more:hover {
    transform: scale(1.02);
    font-weight: 700;
    color: var(--accent-green);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.blog-read-more:hover svg {
    transform: translateX(4px) rotate(-45deg);
}

/* CTA Wrapper */
.blog-cta-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.blog-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    background: var(--text-primary);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 18px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15), 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.blog-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-cta-btn:hover::before {
    left: 100%;
}

.blog-cta-btn svg {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-cta-btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.20), 
        0 10px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0 20px rgba(0, 255, 150, 0.2);
    border: 1px solid rgba(0, 255, 150, 0.3);
}

.blog-cta-btn:hover svg {
    transform: translateX(6px) rotate(-45deg) scale(1.1);
}

.blog-cta-btn:active {
    transform: translateY(-2px) scale(1.01);
}

/* Dark Mode CTA Button */
[data-theme="dark"] .blog-cta-btn {
    background: #ffffff;
    color: #000000;
}

[data-theme="dark"] .blog-cta-btn:hover {
    box-shadow: 
        0 16px 40px rgba(255, 255, 255, 0.15), 
        0 10px 25px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Responsive Design for Blog Section */
@media (max-width: 1200px) {
    .blog-grid {
        gap: 32px;
        padding: 0 40px;
    }
    
    .blog-title {
        font-size: 3rem;
    }
    
    .blog-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 992px) {
    .blog-section {
        padding: 80px 0;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
        padding: 0 40px;
    }
    
    .blog-title {
        font-size: 2.8rem;
    }
    
    .blog-meta {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .blog-section {
        padding: 60px 0;
    }
    
    .blog-header {
        margin-bottom: 50px;
    }
    
    .blog-title {
        font-size: 2.5rem;
    }
    
    .blog-subtitle {
        font-size: 1.15rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 32px;
    }
    
    .blog-card-content {
        padding: 28px;
    }
    
    .blog-card-title {
        font-size: 1.35rem;
    }
    
    .blog-card-excerpt {
        font-size: 0.95rem;
    }
    
    .blog-cta-btn {
        padding: 18px 36px;
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .blog-indicator {
        min-height: 90px;
        margin-bottom: 16px;
    }
    
    .blog-tag {
        padding: 14px 20px;
        font-size: 0.9rem;
        gap: 10px;
        border-radius: 40px;
    }
    
    .blog-icon {
        font-size: 1rem;
    }
    
    .blog-title {
        font-size: 2.2rem;
    }
    
    .blog-subtitle {
        font-size: 1.05rem;
    }
    
    .blog-grid {
        gap: 28px;
        padding: 0 24px;
    }
    
    .blog-card-content {
        padding: 24px;
    }
    
    .blog-meta {
        font-size: 0.75rem;
    }
    
    .blog-card-title {
        font-size: 1.25rem;
    }
    
    .blog-card-excerpt {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .blog-section {
        padding: 50px 0;
    }
    
    .blog-indicator {
        min-height: 80px;
        margin-bottom: 12px;
    }
    
    .blog-tag {
        padding: 12px 18px;
        font-size: 0.85rem;
        gap: 8px;
    }
    
    .blog-icon {
        font-size: 0.9rem;
    }
    
    .blog-header {
        margin-bottom: 40px;
    }
    
    .blog-title {
        font-size: 1.9rem;
    }
    
    .blog-subtitle {
        font-size: 1rem;
    }
    
    .blog-grid {
        gap: 24px;
        padding: 0 20px;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .blog-meta {
        font-size: 0.7rem;
        gap: 12px;
    }
    
    .blog-card-title {
        font-size: 1.15rem;
        margin-bottom: 12px;
    }
    
    .blog-card-excerpt {
        font-size: 0.875rem;
        margin-bottom: 20px;
    }
    
    .blog-cta-wrapper {
        margin-top: 40px;
    }
    
    .blog-cta-btn {
        padding: 16px 32px;
        font-size: 0.95rem;
    }
}

/* Dark Mode Adjustments */
[data-theme="dark"] .blog-section {
    background: var(--bg-primary-dark);
}

/* Focus States for Accessibility */
.blog-read-more:focus,
.blog-cta-btn:focus {
    outline: 3px solid var(--text-primary);
    outline-offset: 4px;
}

/* Print Styles */
@media print {
    .blog-section {
        page-break-inside: avoid;
        margin: 40px 0;
        padding: 40px 0;
    }
    
    .blog-card {
        page-break-inside: avoid;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
}

/* ========================================
   CONTACT SECTION - GET IN TOUCH
   ======================================== */

/* Main Contact Section */
.contact-section {
    position: relative;
    padding: 100px 0;
    background: var(--bg-primary);
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 50% 40%, rgba(0, 255, 150, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 0, 255, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Contact Section Indicator */
.contact-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.contact-tag {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 18px 28px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid var(--border-color);
    border-radius: 60px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.contact-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.contact-tag:hover::before {
    left: 100%;
}

.contact-tag:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 6px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.contact-icon {
    font-size: 1.3rem;
    opacity: 0.8;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 2;
}

.contact-tag:hover .contact-icon {
    opacity: 1;
    transform: scale(1.1) rotate(5deg);
}

.contact-text {
    font-weight: 700;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 2;
}

/* Contact Container - Two Column Layout */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    position: relative;
    z-index: 1;
}

/* Fade-in animation for contact info */
.contact-info {
    animation: fadeInLeft 1s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade-in animation for contact form */
.contact-form-wrapper {
    animation: fadeInRight 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Left Side: Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
}

.contact-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-description {
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
}

.contact-availability {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
    padding: 16px 24px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

/* Contact Details - Social Links */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-social-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.social-link svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    transform: translateY(-4px) scale(1.05);
    border-color: var(--text-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

.social-link:hover svg {
    transform: scale(1.15);
}

/* Dark theme: Green glow on hover */
[data-theme="dark"] .social-link:hover {
    border-color: var(--accent-green);
    box-shadow: 0 8px 24px rgba(0, 255, 150, 0.3);
}

[data-theme="dark"] .social-link:hover svg {
    color: var(--accent-green);
}

/* Right Side: Contact Form */
.contact-form-wrapper {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 32px;
    padding: 48px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 8px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 150, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

.contact-form-wrapper:hover::before {
    opacity: 1;
}

.contact-form {
    position: relative;
    z-index: 1;
}

.contact-form-wrapper:hover {
    box-shadow: 
        0 35px 100px rgba(0, 0, 0, 0.12),
        0 20px 50px rgba(0, 0, 0, 0.08),
        0 0 60px rgba(0, 255, 150, 0.05);
    transform: translateY(-4px);
    border-color: var(--text-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 18px 22px;
    font-size: 1rem;
    font-family: var(--font-family);
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    position: relative;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--text-primary);
    background: var(--bg-primary);
    box-shadow: 
        0 0 0 4px rgba(0, 0, 0, 0.05),
        0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.form-input:focus:invalid,
.form-textarea:focus:invalid {
    border-color: #ef4444;
}

.form-input:focus:valid,
.form-textarea:focus:valid {
    border-color: var(--accent-green);
}

/* Add subtle animation for filling inputs */
.form-input:not(:placeholder-shown),
.form-textarea:not(:placeholder-shown) {
    background: var(--bg-primary);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

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

/* Submit Button */
.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 40px;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 18px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.15), 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
    margin-top: 12px;
}

/* Two-column positioning for contact form on larger screens */
@media (min-width: 768px) {
    .contact-form {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Name/Email side-by-side */
        column-gap: 20px;
        row-gap: 20px;
    }

    /* Ensure each input group aligns naturally in the grid */
    .contact-form .form-group {
        margin: 0; /* rely on grid gaps */
    }

    /* Make the textarea/message span full width like the screenshot */
    .contact-form .form-group:nth-child(3) {
        grid-column: 1 / -1;
    }

    /* Center the submit button under the grid */
    .contact-form .contact-submit-btn {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 360px;
        width: 100%;
    }
}

.contact-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-submit-btn:hover::before {
    left: 100%;
}

.contact-submit-btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.20), 
        0 10px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0 20px rgba(0, 255, 150, 0.2);
    border: 1px solid rgba(0, 255, 150, 0.3);
}

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

.contact-submit-btn svg {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-submit-btn:hover svg {
    transform: translateX(6px) rotate(-45deg) scale(1.1);
}

/* Dark Mode CTA Button */
[data-theme="dark"] .contact-submit-btn {
    background: #ffffff;
    color: #000000;
}

/* Success Message */
.form-success {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(0, 255, 150, 0.1), rgba(0, 255, 150, 0.05));
    border: 2px solid rgba(0, 255, 150, 0.3);
    border-radius: 16px;
    margin-top: 20px;
    animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.success-icon {
    font-size: 1.5rem;
    color: var(--accent-green);
}

.success-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .contact-container {
        gap: 60px;
        padding: 0 40px;
    }
    
    .contact-title {
        font-size: 3rem;
    }
    
    .contact-description {
        font-size: 1.25rem;
    }
}

@media (max-width: 992px) {
    .contact-section {
        padding: 80px 0;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 0 40px;
    }
    
    .contact-form-wrapper {
        padding: 40px;
    }
    
    .contact-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0;
    }
    
    .contact-container {
        gap: 50px;
        padding: 0 32px;
    }
    
    .contact-form-wrapper {
        padding: 32px;
        border-radius: 24px;
    }
    
    .contact-title {
        font-size: 2.5rem;
    }
    
    .contact-description {
        font-size: 1.15rem;
    }
    
    .contact-availability {
        font-size: 1rem;
        padding: 14px 20px;
    }
}

@media (max-width: 640px) {
    .contact-indicator {
        min-height: 90px;
        margin-bottom: 16px;
    }
    
    .contact-tag {
        padding: 14px 20px;
        font-size: 0.9rem;
        gap: 10px;
        border-radius: 40px;
    }
    
    .contact-icon {
        font-size: 1rem;
    }
    
    .contact-container {
        gap: 40px;
        padding: 0 24px;
    }
    
    .contact-info {
        gap: 24px;
    }
    
    .contact-title {
        font-size: 2.2rem;
    }
    
    .contact-description {
        font-size: 1.05rem;
    }
    
    .contact-availability {
        font-size: 0.95rem;
        padding: 12px 18px;
    }
    
    .social-links {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        max-width: 280px;
        margin: 0 auto;
        justify-content: center;
    }
    
    .social-link {
        width: 58px;
        height: 58px;
        flex-shrink: 0;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
    
    .form-group {
        gap: 8px;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    .contact-submit-btn {
        padding: 18px 36px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 50px 0;
    }
    
    .contact-indicator {
        min-height: 80px;
        margin-bottom: 12px;
    }
    
    .contact-tag {
        padding: 12px 18px;
        font-size: 0.85rem;
        gap: 8px;
    }
    
    .contact-icon {
        font-size: 0.9rem;
    }
    
    .contact-container {
        gap: 36px;
        padding: 0 20px;
    }
    
    .contact-title {
        font-size: 1.9rem;
    }
    
    .contact-description {
        font-size: 1rem;
    }
    
    .contact-availability {
        font-size: 0.9rem;
        padding: 12px 16px;
    }
    
    .social-links {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        max-width: 280px;
        margin: 0 auto;
        justify-content: center;
    }
    
    .social-link {
        width: 56px;
        height: 56px;
        flex-shrink: 0;
    }
    
    .social-link svg {
        width: 18px;
        height: 18px;
    }
    
    .contact-form-wrapper {
        padding: 20px;
        border-radius: 20px;
    }
    
    .contact-form {
        gap: 24px;
    }
    
    .form-input,
    .form-textarea {
        padding: 14px 18px;
        font-size: 0.95rem;
    }
    
    .contact-submit-btn {
        padding: 16px 32px;
        font-size: 0.95rem;
    }
}

/* Focus States for Accessibility */
.contact-submit-btn:focus,
.form-input:focus,
.form-textarea:focus,
.social-link:focus {
    outline: 3px solid var(--text-primary);
    outline-offset: 4px;
}

/* Dark Mode */
[data-theme="dark"] .contact-section {
    background: var(--bg-primary-dark);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .contact-info,
    .contact-form-wrapper,
    .contact-title,
    .form-input,
    .form-textarea,
    .contact-availability {
        animation: none;
        transition: none;
    }
}

/* Print Styles */
@media print {
    .contact-section {
        page-break-inside: avoid;
        margin: 40px 0;
        padding: 40px 0;
    }
    
    .contact-form-wrapper {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
}

/* ========================================
   FINAL CTA SECTION - BOLD DARK DESIGN
   ======================================== */

/* Main CTA Section */
.final-cta-section {
    position: relative;
    padding: 80px 48px;
    background: transparent;
    overflow: hidden;
}

/* CTA Banner with Dark Background */
.final-cta-banner {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    background: #000000;
    border-radius: 40px;
    padding: 100px 80px;
    overflow: hidden;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.3),
        0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Dark mode: White background */
[data-theme="dark"] .final-cta-banner {
    background: #ffffff;
}

[data-theme="dark"] .cta-wave-pattern {
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.05) 20%,
        rgba(0, 0, 0, 0.08) 40%,
        rgba(0, 0, 0, 0.06) 60%,
        rgba(0, 0, 0, 0.04) 80%,
        transparent 100%
    );
}

/* Wave Pattern Background */
.cta-wave-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 20%,
        rgba(255, 255, 255, 0.08) 40%,
        rgba(255, 255, 255, 0.06) 60%,
        rgba(255, 255, 255, 0.04) 80%,
        transparent 100%
    );
    opacity: 0.6;
    z-index: 1;
}

.cta-wave-pattern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 98px,
            rgba(255, 255, 255, 0.1) 98px,
            rgba(255, 255, 255, 0.1) 100px
        );
    z-index: 2;
}

.final-cta-container {
    position: relative;
    z-index: 3;
    text-align: center;
}

/* CTA Headline */
.final-cta-headline {
    font-size: 4.2rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #ffffff;
    margin: 0 0 32px 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

[data-theme="dark"] .final-cta-headline {
    color: #000000;
}

/* CTA Subtext */
.final-cta-subtext {
    font-size: 1.3rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 60px 0;
    font-weight: 400;
}

[data-theme="dark"] .final-cta-subtext {
    color: rgba(0, 0, 0, 0.7);
}

/* Custom CTA Button - White on Dark */
.final-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 20px 40px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    border-radius: 24px;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 10px 30px rgba(255, 255, 255, 0.2),
        0 4px 12px rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

/* Image Wrapper - Always visible */
.cta-image-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #000000;
    flex: 0 0 auto;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.final-cta-button:hover .cta-image-wrapper {
    transform: scale(0.9);
}

/* Plus Icon - Hidden by default, shows on hover */
.cta-plus-icon {
    font-size: 24px;
    font-weight: 300;
    color: #000000;
    line-height: 1;
    width: 0;
    overflow: hidden;
    opacity: 0;
    flex: 0 0 auto;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.final-cta-button:hover .cta-plus-icon {
    width: 24px;
    opacity: 1;
    padding: 0 8px;
    transition-delay: 0.15s;
}

/* You Circle - Hidden by default, shows on hover */
.cta-you-circle {
    width: 0;
    height: 44px;
    border-radius: 50%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.final-cta-button:hover .cta-you-circle {
    width: 44px;
    opacity: 1;
    transition-delay: 0.3s;
}

.cta-you-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: lowercase;
    white-space: nowrap;
}

/* Button Text */
.cta-button-text {
    color: #000000;
    font-weight: 700;
    white-space: nowrap;
    flex: 0 0 auto;
}

/* Button Hover Effects */
.final-cta-button:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 
        0 16px 50px rgba(255, 255, 255, 0.3),
        0 8px 24px rgba(255, 255, 255, 0.25),
        0 0 40px rgba(255, 255, 255, 0.2);
    background: #ffffff;
}

.final-cta-button:hover .cta-you-circle {
    transform: scale(1.05);
}

.final-cta-button:hover .cta-plus-icon {
    transform: scale(1.15);
}

.final-cta-button:active {
    transform: translateY(-2px) scale(1.01);
}

/* Dark mode button styling */
[data-theme="dark"] .final-cta-button {
    background: #000000;
    color: #ffffff;
}

[data-theme="dark"] .cta-button-text {
    color: #ffffff;
}

[data-theme="dark"] .cta-image-wrapper {
    border-color: #ffffff;
}

[data-theme="dark"] .cta-plus-icon {
    color: #ffffff;
}

[data-theme="dark"] .cta-you-circle {
    background: #ffffff;
}

[data-theme="dark"] .cta-you-text {
    color: #000000;
}

[data-theme="dark"] .final-cta-button:hover {
    box-shadow: 
        0 16px 50px rgba(0, 0, 0, 0.3),
        0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .final-cta-banner {
        padding: 80px 60px;
    }
    
    .final-cta-headline {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .final-cta-section {
        padding: 60px 40px;
    }
    
    .final-cta-banner {
        padding: 70px 50px;
        border-radius: 32px;
    }
    
    .final-cta-headline {
        font-size: 3rem;
    }
    
    .final-cta-subtext {
        font-size: 1.2rem;
    }
    
    .final-cta-button {
        padding: 18px 36px;
        font-size: 1.05rem;
        gap: 12px;
    }
    
    .cta-image-wrapper {
        width: 44px;
        height: 44px;
    }
    
    .final-cta-button:hover .cta-you-circle {
        width: 40px;
        height: 40px;
    }
    
    .cta-plus-icon {
        font-size: 22px;
    }
    
    .final-cta-button:hover .cta-plus-icon {
        width: 22px;
    }
}

@media (max-width: 768px) {
    .final-cta-section {
        padding: 50px 32px;
    }
    
    .final-cta-banner {
        padding: 60px 40px;
        border-radius: 28px;
    }
    
    .final-cta-headline {
        font-size: 2.5rem;
        margin-bottom: 32px;
    }
    
    .final-cta-subtext {
        font-size: 1.15rem;
        margin-bottom: 50px;
    }
    
    .final-cta-button {
        padding: 16px 32px;
        font-size: 1rem;
        gap: 10px;
    }
    
    .cta-image-wrapper {
        width: 44px;
        height: 44px;
    }
    
    .final-cta-button:hover .cta-you-circle {
        width: 40px;
        height: 40px;
    }
    
    .cta-you-text {
        font-size: 0.75rem;
    }
    
    .cta-plus-icon {
        font-size: 20px;
    }
    
    .final-cta-button:hover .cta-plus-icon {
        width: 20px;
    }
}

@media (max-width: 640px) {
    .final-cta-section {
        padding: 40px 24px;
    }
    
    .final-cta-banner {
        padding: 50px 28px;
        border-radius: 24px;
    }
    
    .final-cta-headline {
        font-size: 2.2rem;
        margin-bottom: 24px;
    }
    
    .final-cta-subtext {
        font-size: 1.05rem;
        margin-bottom: 40px;
    }
    
    .final-cta-button {
        justify-content: center;
        gap: 6px;
        padding: 14px 20px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 100%;
    }
    
    .cta-button-text {
        font-size: 0.9rem;
        flex: 0 0 auto;
    }
    
    .cta-image-wrapper {
        width: 38px;
        height: 38px;
        flex: 0 0 auto;
    }
    
    .final-cta-button:hover .cta-you-circle {
        width: 34px;
        height: 34px;
    }
    
    .cta-you-text {
        font-size: 0.6rem;
    }
    
    .cta-plus-icon {
        font-size: 16px;
        flex: 0 0 auto;
    }
    
    .final-cta-button:hover .cta-plus-icon {
        width: 16px;
    }
}

@media (max-width: 480px) {
    .final-cta-section {
        padding: 32px 20px;
    }
    
    .final-cta-banner {
        padding: 40px 20px;
        border-radius: 20px;
    }
    
    .final-cta-headline {
        font-size: 1.85rem;
        margin-bottom: 20px;
    }
    
    .final-cta-subtext {
        font-size: 0.95rem;
        margin-bottom: 36px;
    }
    
    .final-cta-button {
        padding: 12px 18px;
        font-size: 0.85rem;
        gap: 5px;
        border-radius: 18px;
    }
    
    .cta-button-text {
        font-size: 0.85rem;
    }
    
    .cta-image-wrapper {
        width: 36px;
        height: 36px;
    }
    
    .final-cta-button:hover .cta-you-circle {
        width: 32px;
        height: 32px;
    }
    
    .cta-you-text {
        font-size: 0.55rem;
    }
    
    .cta-plus-icon {
        font-size: 14px;
    }
    
    .final-cta-button:hover .cta-plus-icon {
        width: 14px;
    }
}

/* Focus States for Accessibility */
.final-cta-button:focus {
    outline: 4px solid #ffffff;
    outline-offset: 6px;
}

[data-theme="dark"] .final-cta-button:focus {
    outline-color: #000000;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .final-cta-button,
    .cta-you-circle,
    .cta-plus-icon,
    .cta-profile-image,
    .cta-button-text {
        animation: none;
        transition: none;
    }
}

/* Print Styles */
@media print {
    .final-cta-section {
        page-break-inside: avoid;
        padding: 40px 0;
        margin: 40px 0;
    }
    
    .final-cta-button {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
}

/* ========================================
   MOBILE TIGHTENING: Hero -> Projects gap
   ======================================== */
@media (max-width: 768px) {
    .hero-section {
        padding-bottom: 6px; /* ultra-ultra-tight */
    }

    .projects-indicator {
        min-height: 14px; /* ultra-ultra-tight */
    }
}

/* ========================================
   Timeline Footer
   ======================================== */
/* Card Stack Footer */
.footer-cards { background: var(--bg-primary); border-top: 1px solid var(--border-color); padding: 80px 0 40px; }
.fc-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.fc-grid { display: grid; grid-template-columns: 1.1fr 1fr 0.9fr; gap: 28px; }
.fc-card { background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 20px; padding: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
.fc-head { font-size: 1.6rem; font-weight: 900; letter-spacing: -0.02em; color: var(--text-primary); margin: 0 0 10px 0; }
.fc-text { font-size: 1rem; color: var(--text-secondary); line-height: 1.7; margin: 0 0 12px 0; }
.fc-meta { color: var(--text-muted); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.fc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-green); box-shadow: 0 0 0 4px rgba(0,255,150,0.12); display: inline-block; }
.fc-sub { font-size: 0.95rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin: 0 0 12px 0; }
.fc-icons { display: flex; flex-wrap: wrap; gap: 12px; }
.fc-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: var(--bg-secondary); border: 1px solid var(--border-color); color: var(--text-primary); text-decoration: none; transition: transform 0.2s ease, box-shadow 0.3s ease; }
.fc-icon:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.12); border-color: var(--text-primary); }
.fc-icon:focus { outline: 3px solid var(--text-primary); outline-offset: 3px; }
.fc-links .fc-sub { margin-bottom: 10px; }
.fc-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fc-nav a { color: var(--text-secondary); text-decoration: none; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border-color); background: var(--bg-secondary); transition: transform 0.2s ease, box-shadow 0.3s ease; }
.fc-nav a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.1); border-color: var(--text-primary); }
.fc-nav a:focus { outline: 3px solid var(--text-primary); outline-offset: 3px; }
.fc-bottom { margin-top: 28px; padding-top: 24px; border-top: 1px dashed var(--border-color); display: flex; justify-content: center; }
.fc-legal { color: var(--text-muted); font-size: 0.95rem; }

@media (max-width: 992px) { .fc-grid { grid-template-columns: 1fr; } .fc-nav { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .fc-icons { gap: 10px; } .fc-icon { width: 44px; height: 44px; } .fc-nav { grid-template-columns: 1fr; } }
