/* ===== ENHANCED MINIMALIST PORTFOLIO CSS ===== */

/* CSS Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%; /* Prevents iOS font size changes */
  -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  line-height: 1.7;
  color: #1a1a1a;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "liga" 1, "kern" 1;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  -webkit-overflow-scrolling: touch;
  /* iOS specific fixes */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 1.2rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

/* Universal Overflow Prevention */
section {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

.container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Mobile-first responsive improvements */
img {
  max-width: 100%;
  height: auto;
}

* {
  -webkit-tap-highlight-color: transparent;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

p {
  margin-bottom: 1.2rem;
  color: #4a4a4a;
  font-size: 1.1rem;
  max-width: 65ch;
}

/* Enhanced Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

section {
  padding: clamp(4rem, 10vw, 8rem) 0;
}

/* Enhanced Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure mobile menu button is always clickable on all mobile devices */
@media (max-width: 768px), screen and (max-device-width: 768px), (pointer: coarse) {
  .mobile-menu-toggle {
    display: flex !important;
    pointer-events: auto !important;
  }
  
  .nav-links {
    display: none !important;
  }
}

/* Sticky header with blur when scrolled */
header.scrolled {
  padding: 0.8rem 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Modern Geometric AP Designs Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo-link {
  display: inline-block;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem;
  border-radius: 16px;
  position: relative;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-svg {
  display: block;
  transition: all 0.4s ease;
}

.logo-triangle {
  transition: all 0.4s ease;
}

.logo-circle {
  transition: all 0.4s ease;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0066cc, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.logo-link:hover .logo-svg {
  transform: scale(1.1) rotate(5deg);
}

.logo-link:hover .logo-triangle {
  fill: url(#blueGradient);
  filter: drop-shadow(0 2px 8px rgba(0, 102, 204, 0.4));
}

.logo-link:hover .logo-circle {
  fill: #00d4ff;
}

.logo-link:hover .logo-title {
  letter-spacing: 1px;
  filter: drop-shadow(0 2px 4px rgba(0, 102, 204, 0.3));
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Geometric Logo Icon */
.logo-icon {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-shape {
  position: absolute;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Triangle Shape (A) */
.logo-triangle {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 20px solid #0066cc;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-60%, -40%);
  transform-origin: center bottom;
}

/* Circle Shape (P) */
.logo-circle {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #004499 0%, #0066cc 100%);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  right: 15%;
  transform: translateY(-30%);
  transform-origin: center;
}

/* Initials Overlay */
.logo-initials {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}

.initial-a,
.initial-p {
  font-size: 0.9rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transform: scale(0);
  transition: transform 0.2s ease-out;
}

/* Logo Text */
.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.logo-title {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -0.03em;
  transition: all 0.3s ease;
}

.logo-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  color: #666;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  transition: all 0.3s ease;
}

/* Optimized Hover Animations */
.logo-link:hover {
  transform: translateY(-2px);
}

.logo-link:hover .logo-triangle {
  transform: rotate(15deg) scale(1.05);
  border-bottom-color: #004499;
}

.logo-link:hover .logo-circle {
  transform: scale(1.1);
  background: linear-gradient(135deg, #0066cc 0%, #00aaff 100%);
}

.logo-link:hover .logo-initials {
  opacity: 1;
}

.logo-link:hover .initial-a,
.logo-link:hover .initial-p {
  transform: scale(1);
}

.logo-link:hover .logo-subtitle {
  color: #0066cc;
}

/* Responsive Design */
@media (max-width: 768px) {
  .logo-container {
    gap: 0.8rem;
  }
  
  .logo-icon {
    width: 44px;
    height: 44px;
  }
  
  .logo-triangle {
    border-left-width: 11px;
    border-right-width: 11px;
    border-bottom-width: 18px;
    transform: translate(-60%, -40%);
  }
  
  .logo-circle {
    width: 14px;
    height: 14px;
    transform: translateY(-30%);
  }
  
  .logo-title {
    font-size: 1.3rem;
  }
  
  .logo-subtitle {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .logo-text {
    display: none;
  }
  
  .logo-icon {
    width: 44px;
    height: 44px;
    display: flex;
    position: relative;
    background: rgba(0, 102, 204, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 102, 204, 0.1);
  }
  
  .logo-triangle {
    border-left-width: 11px;
    border-right-width: 11px;
    border-bottom-width: 18px;
    transform: translate(-50%, -30%);
    top: 45%;
    left: 45%;
  }
  
  .logo-circle {
    width: 14px;
    height: 14px;
    transform: translateY(-20%);
    top: 55%;
    right: 20%;
  }
}

/* iPhone Pro Max and large phones - specific fixes */
@media screen and (min-width: 428px) and (max-height: 926px) and (-webkit-device-pixel-ratio: 3) {
  .mobile-menu-toggle {
    display: flex !important;
  }
  
  .nav-links {
    display: none !important;
  }
  
  header {
    padding: env(safe-area-inset-top, 1.2rem) 0 1.2rem 0;
  }
  
  .mobile-nav-overlay {
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
}

/* Extra small screens - ensure logo is always visible */
@media (max-width: 380px) {
  .logo {
    flex-shrink: 0;
    min-width: 50px;
  }
  
  .logo-link {
    padding: 0.25rem;
  }
  
  .logo-container {
    gap: 0;
    min-width: 44px;
  }
  
  .logo-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    flex-shrink: 0;
  }
  
  .logo-triangle {
    border-left-width: 9px;
    border-right-width: 9px;
    border-bottom-width: 15px;
  }
  
  .logo-circle {
    width: 12px;
    height: 12px;
  }
}

.nav-links ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-link {
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0066cc, #004499);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: #0066cc;
}

.nav-link:focus {
  outline: none;
  color: #0066cc;
}

.nav-link:focus::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  width: 48px;
  height: 48px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 10001;
  /* Enhanced mobile touch support */
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
  /* Debug - make visible when shown */
  outline: 2px solid red !important;
}

.mobile-menu-toggle:hover {
  background: rgba(0, 102, 204, 0.1);
}

.hamburger-line {
  width: 24px;
  height: 3px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Hamburger to X animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu-toggle:hover {
  background: rgba(0, 102, 204, 0.1);
}

.mobile-menu-toggle:active {
  background: rgba(0, 102, 204, 0.15);
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: #1a1a1a;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
  transform-origin: center;
  position: relative;
}

/* Add hover effect for hamburger lines */
.mobile-menu-toggle:hover .hamburger-line {
  background: #0066cc;
}

/* Enhanced X animation for active state */
.mobile-menu-toggle.active .hamburger-line {
  background: #0066cc;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

/* Mobile Navigation Close Button */
.mobile-nav-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: rgba(0, 102, 204, 0.1);
  border: 2px solid #0066cc;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.mobile-nav-close:hover {
  background: rgba(0, 102, 204, 0.2);
  transform: scale(1.1);
}

.close-line {
  position: absolute;
  width: 24px;
  height: 3px;
  background: #0066cc;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.close-line:nth-child(1) {
  transform: rotate(45deg);
}

.close-line:nth-child(2) {
  transform: rotate(-45deg);
}

.mobile-nav-menu {
  width: 100%;
  padding: 2rem;
}

.mobile-nav-menu ul {
  list-style: none;
  text-align: center;
}

.mobile-nav-menu li {
  margin: 2rem 0;
}

.mobile-nav-menu .nav-link {
  font-size: 1.5rem;
  font-weight: 600;
  padding: 1rem;
  display: block;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #1a1a1a;
  min-height: 48px; /* Touch-friendly */
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-menu .nav-link:hover {
  background: rgba(0, 102, 204, 0.1);
  color: #0066cc;
}

/* Enhanced Hero Section with Interactive Elements */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
  width: 100%;
  max-width: 100vw;
}

/* Better mobile scroll indicator container */
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  pointer-events: none;
}

/* Animated Background Elements */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
}

.floating-element {
  position: absolute;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 68, 153, 0.02) 100%);
  border-radius: 50%;
  animation: float 4s ease-in-out infinite;
}

.floating-element-1 {
  width: 60px;
  height: 60px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element-2 {
  width: 40px;
  height: 40px;
  top: 60%;
  right: 15%;
  animation-delay: -2s;
}

.floating-element-3 {
  width: 80px;
  height: 80px;
  top: 80%;
  left: 20%;
  animation-delay: -4s;
}

.floating-element-4 {
  width: 30px;
  height: 30px;
  top: 40%;
  right: 25%;
  animation-delay: -1s;
}

.floating-element-5 {
  width: 50px;
  height: 50px;
  top: 15%;
  right: 40%;
  animation-delay: -3s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-15px);
    opacity: 0.5;
  }
}

.gradient-orbs {
  position: absolute;
  width: 100%;
  height: 100%;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.1;
  animation: pulse 6s ease-in-out infinite;
}

.orb-1 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #0066cc, #004499);
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.orb-2 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #00aaff, #0066cc);
  bottom: 20%;
  right: 10%;
  animation-delay: -3s;
}

.orb-3 {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #004499, #002266);
  top: 50%;
  left: 50%;
  animation-delay: -1.5s;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.08;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.12;
  }
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.hero-text {
  position: relative;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 102, 204, 0.1);
  color: #0066cc;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 102, 204, 0.2);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

/* Enhanced Hero Title */
.hero-title {
  margin-bottom: 2rem;
  color: #1a1a1a;
  font-weight: 700;
  line-height: 1.2;
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.hero-greeting {
  display: block;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 400;
  color: #666;
  margin-bottom: 0.5rem;
}

.hero-name {
  display: block;
  background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.hero-role {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: #333;
  min-height: 1.2em;
}

/* Typing Animation */
.typing-cursor {
  display: inline-block;
  width: 3px;
  background: #0066cc;
  margin-left: 4px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

.hero-description {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  margin-bottom: 3rem;
  color: #4a4a4a;
  line-height: 1.7;
}

.highlight-text {
  background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* Tech Stack */
.tech-stack {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.tech-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 102, 204, 0.1);
  border-radius: 12px;
  color: #666;
  font-size: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.tech-item:hover {
  background: rgba(0, 102, 204, 0.1);
  border-color: rgba(0, 102, 204, 0.3);
  color: #0066cc;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.2);
}

.tech-item::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.tech-item:hover::before {
  opacity: 1;
  bottom: -40px;
}

/* Enhanced Buttons */
.hero-buttons {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.2rem 2.5rem;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.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.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-icon {
  transition: transform 0.4s ease;
}

.btn:hover .btn-icon {
  transform: translateX(5px);
}

.btn-primary {
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #0066cc;
  border: 2px solid rgba(0, 102, 204, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(0, 102, 204, 0.1);
  border-color: rgba(0, 102, 204, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.2);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #999;
  font-size: 0.85rem;
  z-index: 10;
  width: auto;
  white-space: nowrap;
}

.scroll-indicator .scroll-arrow {
  font-size: 1.2rem;
  color: #0066cc;
  animation: bounce 2s ease-in-out infinite;
  text-align: center;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Hero Visual - Code Window */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.code-window {
  background: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: min(400px, 90vw);
  width: 100%;
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

.code-window:hover {
  transform: perspective(1000px) rotateY(-2deg) rotateX(2deg) scale(1.02);
}

.window-header {
  background: #2d2d2d;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.window-controls {
  display: flex;
  gap: 0.5rem;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.control-close {
  background: #ff5f57;
}

.control-minimize {
  background: #ffbd2e;
}

.control-maximize {
  background: #28ca42;
}

.window-title {
  color: #ccc;
  font-size: 0.85rem;
  font-family: 'Monaco', 'Menlo', monospace;
}

.code-content {
  padding: 1.5rem;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
}

.code-line {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  animation: typeIn 0.8s ease-out forwards;
  opacity: 0;
}

.code-line:nth-child(1) { animation-delay: 0.5s; }
.code-line:nth-child(2) { animation-delay: 1s; }
.code-line:nth-child(3) { animation-delay: 1.5s; }
.code-line:nth-child(4) { animation-delay: 2s; }
.code-line:nth-child(5) { animation-delay: 2.5s; }

@keyframes typeIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.line-number {
  color: #6a6a6a;
  margin-right: 1rem;
  min-width: 20px;
  text-align: right;
}

.code-text {
  color: #d4d4d4;
}

.keyword {
  color: #569cd6;
}

.variable {
  color: #9cdcfe;
}

.property {
  color: #92c5f7;
}

.string {
  color: #ce9178;
}

.array {
  color: #4fc1ff;
}

/* Responsive Design Adjustments for Hero */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .code-window {
    max-width: 300px;
    transform: none;
  }

  .code-window:hover {
    transform: scale(1.02);
  }
  
  .about-content-wrapper {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .profile-picture {
    width: 220px;
    height: 220px;
  }

  .about-text {
    text-align: center;
  }

   .about-text > h2 {
    text-align: center;
  }
  
  .about-text .section-title {
    text-align: center;
  }
  
  .about-description {
    text-align: left;
    max-width: 100%;
    padding: 0 2rem;
  }
  
  .about-description p {
    margin-bottom: 1.8rem;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .about-text .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .skills-list {
    justify-content: center;
  }

  .tech-stack {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .floating-element {
    display: none;
  }
}

/* About Section */
.btn-primary {
  background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0052a3 0%, #003366 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #0066cc;
  border-color: #0066cc;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.1);
}

.btn-secondary:hover {
  background: #0066cc;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

/* Enhanced About Section */
.about-section {
  background: linear-gradient(135deg, #fafbfc 0%, #f8f9fa 100%);
  position: relative;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 25% 25%, rgba(0, 102, 204, 0.02) 0%, transparent 50%),
                    radial-gradient(circle at 75% 75%, rgba(0, 102, 204, 0.01) 0%, transparent 50%);
  pointer-events: none;
}

.about-content-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-profile {
  flex-shrink: 0;
}

.profile-picture {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 10px 40px rgba(0, 102, 204, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-picture:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 60px rgba(0, 102, 204, 0.3);
}

.about-text {
  flex: 1;
  text-align: left;
}

.about-text .section-title {
  text-align: center;
  width: 100%;
}

.about-text .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-title {
  margin-bottom: 3rem;
  color: #1a1a1a;
  position: relative;
  display: inline-block;
  text-align: center;
  width: 100%;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #0066cc, #004499);
  border-radius: 2px;
}

.about-description {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 3rem;
  color: #4a4a4a;
  line-height: 1.7;
}

.about-description p {
  margin-bottom: 1.5rem;
}

.about-description p:last-child {
  margin-bottom: 0;
}

.skills-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  margin-top: 3rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  padding: 0 0.5rem;
}

.skill {
  padding: 0.8rem 1.8rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid rgba(0, 102, 204, 0.1);
  border-radius: 25px;
  font-weight: 500;
  font-size: 0.95rem;
  color: #1a1a1a;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.skill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.05), transparent);
  transition: left 0.5s ease;
}

.skill:hover::before {
  left: 100%;
}

.skill:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
  color: white;
  border-color: #0066cc;
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

/* Clean Projects Section */
.projects-section {
  background: #ffffff;
  padding: 6rem 0 8rem 0;
  text-align: center;
}

.projects-section .section-title {
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  text-align: center;
  margin: 1rem auto 4rem;
  font-weight: 400;
  max-width: 600px;
  display: block;
}

.projects-section .section-subtitle {
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  will-change: transform;
  backface-visibility: hidden;
  position: relative;
}

.project-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, #0066cc, #00d4ff);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.project-item:hover::before {
  opacity: 1;
}

.project-item:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 25px 70px rgba(0, 102, 204, 0.25);
}

.project-preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/12;
  cursor: pointer;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.project-preview::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 212, 255, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-item:hover .project-preview::after {
  opacity: 1;
}

.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  backface-visibility: hidden;
}

.project-item:hover .project-preview img {
  transform: scale(1.12) translateZ(0);
  filter: brightness(1.1) contrast(1.05);
}

/* Project Overlay - Optimized for performance */
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.9), rgba(0, 68, 153, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
  will-change: opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.project-item:hover .project-overlay {
  opacity: 1;
  visibility: visible;
}

.overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  color: white;
  text-align: center;
  transform: translateY(0);
  transition: transform 0.25s ease;
}

.project-item:hover .overlay-content {
  transform: translateY(-5px);
}

.overlay-content i {
  font-size: 2.5rem;
  will-change: transform;
}

.overlay-content span {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Live Preview iframe - Performance optimized */
.live-preview {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 1200px;
  height: 85vh;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  overflow: hidden;
  will-change: transform, opacity;
  backface-visibility: hidden;
  isolation: isolate;
}

.live-preview.active {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translate(-50%, -50%) scale(1) !important;
  pointer-events: all !important;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.preview-title {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 0.95rem;
}

.preview-close {
  background: #ff4757;
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.2s ease;
  z-index: 10002;
  position: relative;
}

.preview-close:hover {
  background: #e03e4d;
  transform: rotate(90deg);
}

.live-preview iframe {
  width: 100%;
  height: calc(100% - 60px);
  border: none;
  background: white;
}

/* Backdrop for preview - Performance optimized */
.preview-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  backdrop-filter: blur(5px);
  will-change: opacity;
}

.preview-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* Subtle pulse animation - GPU accelerated */
@keyframes subtlePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.project-item:hover .overlay-content i {
  animation: subtlePulse 2s ease-in-out infinite;
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2rem;
  background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

.project-number {
  font-size: 0.8rem;
  color: #0066cc;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.project-item:hover .project-title {
  color: #0066cc;
}

.project-description {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.5rem 0;
}

.project-stack span {
  font-size: 0.8rem;
  color: #0066cc;
  background: linear-gradient(135deg, #f0f7ff, #e6f2ff);
  padding: 0.5rem 1rem;
  border-radius: 15px;
  font-weight: 600;
  border: 1px solid rgba(0, 102, 204, 0.15);
  transition: all 0.3s ease;
}

.project-item:hover .project-stack span {
  background: linear-gradient(135deg, #0066cc, #0052a3);
  color: white;
  border-color: #0066cc;
  transform: translateY(-2px);
}

/* Tech Badge Colors */
.tech-badge {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
}

.tech-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tech-html {
  background: #fff5f0 !important;
  color: #e34c26 !important;
  border-color: #e34c26;
}

.tech-css {
  background: #f0f8ff !important;
  color: #264de4 !important;
  border-color: #264de4;
}

.tech-js {
  background: #fffbf0 !important;
  color: #f7df1e !important;
  border-color: #f0db4f;
  text-shadow: 0 0 1px rgba(0,0,0,0.3);
}

.tech-sass {
  background: #fff5f9 !important;
  color: #cc6699 !important;
  border-color: #cc6699;
}

.tech-react {
  background: #f0f9ff !important;
  color: #61dafb !important;
  border-color: #61dafb;
}

.tech-node {
  background: #f0faf0 !important;
  color: #339933 !important;
  border-color: #339933;
}

.tech-express {
  background: #f5f5f5 !important;
  color: #000000 !important;
  border-color: #000000;
}

.tech-vue {
  background: #f0fff5 !important;
  color: #42b883 !important;
  border-color: #42b883;
}

.tech-ts {
  background: #f0f8ff !important;
  color: #3178c6 !important;
  border-color: #3178c6;
}

.tech-php {
  background: #f5f5ff !important;
  color: #777bb4 !important;
  border-color: #777bb4;
}

.tech-mysql {
  background: #fff8f0 !important;
  color: #00758f !important;
  border-color: #00758f;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.8rem;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: auto;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.project-link::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.5s ease;
}

.project-link:hover::before {
  left: 100%;
}

.project-link:hover {
  background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

.project-link i {
  transition: transform 0.4s ease;
  font-size: 0.85rem;
}

.project-link:hover i {
  transform: translateX(5px);
}

.project-link:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.2);
}

/* Responsive Projects */
@media (max-width: 768px) {
  .projects-section {
    padding: 3rem 0;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0;
  }
  
  .project-item {
    margin: 0 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  }

  .project-title {
    font-size: 1.2rem;
  }

  .project-description {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .project-info {
    padding: 1.2rem;
    gap: 0.875rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 100%;
  }

  /* Contact Section Mobile */
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-section {
    padding: 3rem 0 1.5rem 0;
  }
}

@media (max-width: 992px) and (min-width: 769px) {
  /* Tablet Contact Layout */
  .contact-container {
    gap: 2.5rem;
  }
  
  .contact-section {
    padding: 3.5rem 0 1.5rem 0;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    margin: 0 1rem;
  }
  
  .contact-section {
    padding: 2rem 0 1rem 0;
  }
  
  .contact-cta {
    margin-bottom: 2rem;
  }
  
  .contact-container {
    gap: 1.5rem;
  }
  
  .cta-animation {
    display: none;
  }
  
  /* Improved mobile typography */
  .container {
    padding: 0 1rem;
  }
  
  h1 {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  h2 {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    line-height: 1.3;
    margin-bottom: 0.8rem;
  }
  
  p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    min-height: 44px; /* Touch-friendly */
  }
  
  /* Prevent horizontal scrolling */
  .hero-section {
    min-height: calc(100vh - 80px);
    padding-top: 100px;
    padding-bottom: 4rem;
  }
  
  /* Fix scroll indicator on mobile */
  .scroll-indicator {
    bottom: 1rem;
    font-size: 0.75rem;
    gap: 0.25rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    margin-left: 0;
    margin-right: 0;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .scroll-indicator .scroll-arrow {
    font-size: 1rem;
  }
  
  /* Mobile form improvements */
  .form-group input,
  .form-group textarea {
    padding: 1.125rem;
    font-size: 16px; /* Prevents iOS zoom on input focus */
    min-height: 48px;
  }
  
  .form-group label {
    font-size: 16px;
  }
  
  .submit-btn {
    min-height: 48px;
    padding: 1rem 1.5rem;
    font-size: 16px;
  }
  
  /* Better touch targets */
  a, button, .nav-link, .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Footer improvements */
  footer {
    padding: 2rem 0;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
}

/* === PRICING SECTION === */
.pricing-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #f5f6f7 100%);
  text-align: center;
}

.pricing-header-content {
  margin-bottom: 4rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.pricing-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.pricing-card.featured {
  border: 2px solid #0066cc;
  transform: scale(1.05);
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 50%, #ffffff 100%);
  box-shadow: 
    0 8px 32px rgba(0, 102, 204, 0.15),
    0 4px 16px rgba(0, 102, 204, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.02) 0%, rgba(0, 102, 204, 0.01) 50%, rgba(0, 102, 204, 0.02) 100%);
  pointer-events: none;
  z-index: 1;
}

.pricing-card.featured > * {
  position: relative;
  z-index: 2;
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: 
    0 16px 48px rgba(0, 102, 204, 0.2),
    0 8px 24px rgba(0, 102, 204, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.1);
}

.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #0066cc;
  color: white;
  padding: 0.4rem 1.2rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0, 102, 204, 0.25);
  z-index: 3;
}

.pricing-header {
  margin-bottom: 2rem;
}

.plan-name {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.plan-description {
  color: #666;
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.5;
}

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1rem;
  flex-direction: column;
}

.price-prefix {
  font-size: 0.85rem;
  color: #999;
  font-weight: 400;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.currency {
  font-size: 1.4rem;
  font-weight: 600;
  color: #0066cc;
}

.amount {
  font-size: 3.5rem;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Style for "Starting at" pricing text */
.amount.starting-price {
  font-size: 1.4rem;
  font-weight: 600;
  color: #666;
}

.period {
  font-size: 1rem;
  color: #666;
  font-weight: 500;
}

.pricing-features {
  margin-bottom: 2.5rem;
  text-align: left;
}

.pricing-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  color: #4a4a4a;
  font-size: 1rem;
  line-height: 1.4;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features i {
  color: #0066cc;
  font-size: 0.9rem;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.pricing-btn {
  width: 100%;
  padding: 1.2rem 2rem;
  margin-top: auto;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.pricing-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.5s ease;
}

.pricing-btn:hover::before {
  left: 100%;
}

.pricing-note {
  margin-top: 3rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(0, 102, 204, 0.1);
}

.pricing-note p {
  margin: 0;
  color: #4a4a4a;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  max-width: none;
  width: 100%;
}

.pricing-note strong {
  color: #0066cc;
  font-weight: 600;
}

.pricing-btn.btn-primary {
  background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.pricing-btn.btn-primary:hover {
  background: linear-gradient(135deg, #0052a3 0%, #003d7a 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

.pricing-btn.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #0066cc;
  border: 2px solid rgba(0, 102, 204, 0.2);
  backdrop-filter: blur(10px);
}

.pricing-btn.btn-secondary:hover {
  background: rgba(0, 102, 204, 0.1);
  border-color: rgba(0, 102, 204, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.2);
}

.section-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.2rem);
  color: #666;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* Responsive pricing adjustments */
@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }
}

@media (max-width: 768px) {
  .pricing-section {
    padding: 4rem 0;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  
  .pricing-card {
    padding: 2rem 1.5rem;
  }
  
  .amount {
    font-size: 1.5rem;
  }
  
  .plan-name {
    font-size: 2.5rem;
  }
  
  .pricing-header-content {
    margin-bottom: 1rem;
  }
  
  .pricing-note {
    margin-top: 2rem;
    padding: 1rem;
  }
  
  .pricing-note p {
    font-size: 0.9rem;
  }
}

/* Clean Contact Section */
.contact-section {
  background: #ffffff;
  padding: 3rem 0 3rem 0;
  text-align: center;
  overflow: hidden;
}

.contact-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.contact-cta {
  margin-bottom: 3rem;
}

.contact-cta-text {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 600px;
  margin: 0 auto;
  color: #4a4a4a;
  line-height: 1.6;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info {
  text-align: left;
}

.contact-info h3 {
  margin-bottom: 1rem;
  color: #1a1a1a;
  font-size: 1.5rem;
}

.contact-info > p {
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border: 1px solid rgba(0, 102, 204, 0.1);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.1);
  border-color: rgba(0, 102, 204, 0.2);
}

.contact-item i {
  color: #0066cc;
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

.contact-item div h4 {
  margin: 0 0 0.2rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1a;
}

.contact-item div p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.contact-item a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #0066cc;
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 102, 204, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-group {
  position: relative;
  margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #ffffff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: #999;
  transition: all 0.3s ease;
  pointer-events: none;
  background: white;
  padding: 0 0.25rem;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -0.5rem;
  left: 0.75rem;
  font-size: 0.85rem;
  color: #0066cc;
  font-weight: 500;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
  width: 100%;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #0052a3 0%, #003366 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

/* Form Message Styles */
.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  text-align: center;
  display: none;
}

.form-message.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.btn-loading {
  display: none;
}

/* Enhanced Footer */
footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  text-align: center;
  padding: 2rem 0 1rem 0;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0066cc, transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
  text-align: left;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: white;
  font-weight: 600;
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-section p {
  color: #b0b0b0;
  line-height: 1.6;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  color: #b0b0b0;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
  border-color: rgba(0, 102, 204, 0.3);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  color: #888;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: clamp(1rem, 4vw, 3rem);
  padding-right: clamp(1rem, 4vw, 3rem);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: #888;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #0066cc;
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: #0066cc;
}

.footer-links a:hover::after {
  width: 100%;
}

/* Enhanced Responsive Design */
@media (max-width: 768px), (max-device-width: 768px), (pointer: coarse) {
  .nav-links {
    display: none !important;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
    z-index: 10000;
  }

  .mobile-menu-toggle .hamburger-line {
    width: 24px;
    height: 3px;
    background: #1a1a1a;
    transition: all 0.3s ease;
    border-radius: 2px;
  }
  
  /* Improved mobile typography and spacing */
  .container {
    padding: 0 clamp(1rem, 5vw, 2rem);
    max-width: 100%;
  }
  
  h1 {
    font-size: clamp(2rem, 8vw, 2.5rem);
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.25rem);
    line-height: 1.4;
    margin-bottom: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
    padding: 0.875rem 1.5rem;
    min-height: 48px;
  }
  
  section {
    padding: clamp(2rem, 6vw, 4rem) 0;
  }
  
  .projects-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* Fix hero section spacing */
  .hero-section {
    padding-top: 120px;
    padding-bottom: 3rem;
    min-height: calc(100vh - 60px);
  }
  
  .hero-content {
    gap: 2rem;
  }
  
  /* Adjust scroll indicator for mobile */
  .scroll-indicator {
    bottom: 1rem;
    font-size: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
  
  .social-links {
    justify-content: center;
  }

  .mobile-menu-toggle .hamburger-line {
    width: 24px;
    height: 3px;
    background: #1a1a1a;
    transition: all 0.3s ease;
    border-radius: 2px;
  }
  
  /* Improved mobile typography and spacing */
  .container {
    padding: 0 clamp(1rem, 5vw, 2rem);
    max-width: 100%;
  }
  
  h1 {
    font-size: clamp(2rem, 8vw, 2.5rem);
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.25rem);
    line-height: 1.4;
    margin-bottom: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
    padding: 0.875rem 1.5rem;
    min-height: 48px;
  }
  
  section {
    padding: clamp(2rem, 6vw, 4rem) 0;
  }
  
  .projects-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  /* Fix hero section spacing */
  .hero-section {
    padding-top: 120px;
    padding-bottom: 3rem;
    min-height: calc(100vh - 60px);
  }
  
  .hero-content {
    gap: 2rem;
  }
  
  /* Adjust scroll indicator for mobile */
  .scroll-indicator {
    bottom: 1rem;
    font-size: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container,
  .hero-content,
  .about-content-wrapper,
  .projects-content-wrapper,
  .contact-content-wrapper {
    padding: 0 1rem;
  }
  
  h1 {
    font-size: clamp(1.8rem, 7vw, 2rem);
  }
  
  .hero-subtitle {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  }
  
  .projects-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-form {
    padding: 2rem;
  }

  .section-padding {
    padding: 2.5rem 0;
  }
}

/* Performance Optimizations & Utilities */
* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Selection Styling */
::selection {
  background: rgba(0, 102, 204, 0.2);
  color: #1a1a1a;
}

::-moz-selection {
  background: rgba(0, 102, 204, 0.2);
  color: #1a1a1a;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #0052a3 0%, #003366 100%);
}

/* Enhanced Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.text-gradient {
  background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glassmorphism {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.shadow-soft {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.shadow-medium {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.shadow-strong {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* iOS-specific fixes and iPhone 17 Pro Max compatibility */
.mobile-menu,
.mobile-menu-toggle {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Mobile Responsive for Live Preview */
@media (max-width: 768px) {
  .live-preview {
    width: 95%;
    height: 90vh;
    border-radius: 8px;
  }
  
  .preview-header {
    padding: 0.8rem 1rem;
  }
  
  .preview-title {
    font-size: 0.85rem;
  }
  
  .preview-close {
    width: 28px;
    height: 28px;
  }
  
  .overlay-content i {
    font-size: 2rem;
  }
  
  .overlay-content span {
    font-size: 0.95rem;
  }
}

@supports (padding-top: env(safe-area-inset-top)) {
  .mobile-nav {
    padding-top: calc(1rem + env(safe-area-inset-top));
  }
  
  .mobile-nav .mobile-nav-item:first-child {
    margin-top: env(safe-area-inset-top);
  }
}

/* iPhone 17 Pro Max specific (430px x 932px) */
@media only screen 
  and (device-width: 430px) 
  and (device-height: 932px) 
  and (-webkit-device-pixel-ratio: 3) {
    
  .mobile-nav {
    padding-top: calc(2rem + env(safe-area-inset-top, 44px));
    height: 100vh;
    height: -webkit-fill-available;
  }
  
  .mobile-nav .mobile-nav-item {
    font-size: 1.5rem;
    padding: 1.2rem 0;
  }
  
  .mobile-menu-toggle {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
}

/* ========================================
   MOBILE MENU OVERLAY
   ======================================== */
#mobileMenu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#closeBtn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #0066cc;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

#closeBtn:hover {
  background: #0052a3;
}

#mobileMenu nav {
  text-align: center;
  width: 100%;
  padding: 2rem;
}

#mobileMenu ul {
  list-style: none;
  padding: 0;
}

#mobileMenu li {
  margin: 2rem 0;
}

.mobile-nav-link {
  font-size: 2rem;
  color: #1a1a1a;
  text-decoration: none;
  padding: 1rem;
  display: block;
  transition: color 0.3s ease;
}

.mobile-nav-link:hover {
  color: #0066cc;
}

/* Loading button state */
.btn-loading {
  display: none;
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */

/* Base reveal state - hidden by default */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Active state - visible when scrolled into view */
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Delay variations for staggered animations */
.reveal-delay-1 {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out 0.1s, transform 0.6s ease-out 0.1s;
}

.reveal-delay-2 {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
}

.reveal-delay-3 {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out 0.3s, transform 0.6s ease-out 0.3s;
}

/* Active states for delayed reveals */
.reveal-delay-1.active,
.reveal-delay-2.active,
.reveal-delay-3.active {
  opacity: 1;
  transform: translateY(0);
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-delay-1,
  .reveal-delay-2,
  .reveal-delay-3 {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  box-shadow: 0 4px 20px rgba(0, 102, 204, 0.3);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 102, 204, 0.5);
  background: linear-gradient(135deg, #0077dd 0%, #0055aa 100%);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

.toast-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: #ffffff;
  color: #1a1a1a;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 300px;
  max-width: 400px;
  transform: translateX(450px);
  opacity: 0;
  animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: all;
  border-left: 4px solid;
}

.toast.success {
  border-left-color: #10b981;
}

.toast.error {
  border-left-color: #ef4444;
}

.toast.info {
  border-left-color: #0066cc;
}

.toast-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.toast.success .toast-icon {
  color: #10b981;
}

.toast.error .toast-icon {
  color: #ef4444;
}

.toast.info .toast-icon {
  color: #0066cc;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.toast-message {
  font-size: 0.9rem;
  color: #4a4a4a;
  margin: 0;
}

.toast-close {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.toast-close:hover {
  background: #f0f0f0;
  color: #1a1a1a;
}

@keyframes slideIn {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(450px);
    opacity: 0;
  }
}

.toast.removing {
  animation: slideOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@media (max-width: 768px) {
  .toast-container {
    top: 80px;
    right: 10px;
    left: 10px;
  }
  
  .toast {
    min-width: auto;
    max-width: 100%;
  }
}

/* ========================================
   PARTICLE CANVAS
   ======================================== */

.particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}




