/* Modern, Contemporary Website Design */
:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary-color: #ec4899;
  --accent-color: #f59e0b;
  --bg-dark: #0f172a;
  --bg-light: #f8fafc;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

html {
  overflow-x: hidden;
  overflow-y: auto;
  height: 100%;
}

body {
  background: var(--bg-light);
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  padding-top: 200px;
  padding-bottom: 400px;
  min-height: 100vh;
  position: relative;
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-y: auto;
}

body.showing-section {
  padding-top: 0;
  padding-bottom: 400px;
}

.sticky-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  transition: background 0.3s ease;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  background: transparent;
  width: 100%;
}

.header-logo {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-header {
  width: 1520px;
  height: 190px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: none;
  background: transparent;
}

/* PRESERVED: Title animation wrapper - unchanged */
.animation-wrapper {
  width: 800px;
  height: 100px;
  position: relative;
  border: none;
  max-width: 100%;
  margin: 0 auto;
  cursor: pointer;
  border-radius: 12px;
  padding: 10px;
  transition: background-color 0.5s ease;
  background-color: transparent;
}


.container {
  position: relative;
  width: 100%;
  height: 100%;
}

/* PRESERVED: Letter styles with rainbow animated shadow */
.letter {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 100px;
  font-weight: bold;
  color: #39ff14; /* Dayglo green for the title */
  text-shadow: -1px -1px 0 #ff0, 1px -1px 0 #ff0, -1px 1px 0 #ff0,
    1px 1px 0 #ff0, 0 0 10px #ff0; /* Bright yellow outline effect */
  transform-origin: bottom center;
  white-space: nowrap;
  transition: text-shadow 0.3s ease;
}

/* Rainbow color animation - 2 seconds per color, 7 colors = 14 seconds total */
@keyframes rainbowGlow {
  0%, 100% {
    /* Red */
    text-shadow: -1px -1px 0 #ff0, 1px -1px 0 #ff0, -1px 1px 0 #ff0,
      1px 1px 0 #ff0, 0 0 10px #ff0,
      0 0 60px rgba(255, 0, 0, 0.8),
      0 0 100px rgba(255, 0, 0, 0.6);
  }
  14.28% {
    /* Orange */
    text-shadow: -1px -1px 0 #ff0, 1px -1px 0 #ff0, -1px 1px 0 #ff0,
      1px 1px 0 #ff0, 0 0 10px #ff0,
      0 0 60px rgba(255, 165, 0, 0.8),
      0 0 100px rgba(255, 165, 0, 0.6);
  }
  28.56% {
    /* Yellow */
    text-shadow: -1px -1px 0 #ff0, 1px -1px 0 #ff0, -1px 1px 0 #ff0,
      1px 1px 0 #ff0, 0 0 10px #ff0,
      0 0 60px rgba(255, 255, 0, 0.8),
      0 0 100px rgba(255, 255, 0, 0.6);
  }
  42.84% {
    /* Green */
    text-shadow: -1px -1px 0 #ff0, 1px -1px 0 #ff0, -1px 1px 0 #ff0,
      1px 1px 0 #ff0, 0 0 10px #ff0,
      0 0 60px rgba(0, 255, 0, 0.8),
      0 0 100px rgba(0, 255, 0, 0.6);
  }
  57.12% {
    /* Blue */
    text-shadow: -1px -1px 0 #ff0, 1px -1px 0 #ff0, -1px 1px 0 #ff0,
      1px 1px 0 #ff0, 0 0 10px #ff0,
      0 0 60px rgba(0, 0, 255, 0.8),
      0 0 100px rgba(0, 0, 255, 0.6);
  }
  71.4% {
    /* Indigo */
    text-shadow: -1px -1px 0 #ff0, 1px -1px 0 #ff0, -1px 1px 0 #ff0,
      1px 1px 0 #ff0, 0 0 10px #ff0,
      0 0 60px rgba(75, 0, 130, 0.8),
      0 0 100px rgba(75, 0, 130, 0.6);
  }
  85.68% {
    /* Violet */
    text-shadow: -1px -1px 0 #ff0, 1px -1px 0 #ff0, -1px 1px 0 #ff0,
      1px 1px 0 #ff0, 0 0 10px #ff0,
      0 0 60px rgba(238, 130, 238, 0.8),
      0 0 100px rgba(238, 130, 238, 0.6);
  }
}

/* Rainbow color classes for letters - applied via JavaScript */
.letter.color-red {
  text-shadow: -1px -1px 0 #ff0, 1px -1px 0 #ff0, -1px 1px 0 #ff0,
    1px 1px 0 #ff0, 0 0 10px #ff0,
    0 0 60px rgba(255, 0, 0, 0.9),
    0 0 100px rgba(255, 0, 0, 0.7);
}

.letter.color-orange {
  text-shadow: -1px -1px 0 #ff0, 1px -1px 0 #ff0, -1px 1px 0 #ff0,
    1px 1px 0 #ff0, 0 0 10px #ff0,
    0 0 60px rgba(255, 165, 0, 0.9),
    0 0 100px rgba(255, 165, 0, 0.7);
}

.letter.color-yellow {
  text-shadow: -1px -1px 0 #ff0, 1px -1px 0 #ff0, -1px 1px 0 #ff0,
    1px 1px 0 #ff0, 0 0 10px #ff0,
    0 0 60px rgba(255, 255, 0, 0.9),
    0 0 100px rgba(255, 255, 0, 0.7);
}

.letter.color-green {
  text-shadow: -1px -1px 0 #ff0, 1px -1px 0 #ff0, -1px 1px 0 #ff0,
    1px 1px 0 #ff0, 0 0 10px #ff0,
    0 0 60px rgba(0, 255, 0, 0.9),
    0 0 100px rgba(0, 255, 0, 0.7);
}

.letter.color-blue {
  text-shadow: -1px -1px 0 #ff0, 1px -1px 0 #ff0, -1px 1px 0 #ff0,
    1px 1px 0 #ff0, 0 0 10px #ff0,
    0 0 60px rgba(0, 0, 255, 0.9),
    0 0 100px rgba(0, 0, 255, 0.7);
}

.letter.color-indigo {
  text-shadow: -1px -1px 0 #ff0, 1px -1px 0 #ff0, -1px 1px 0 #ff0,
    1px 1px 0 #ff0, 0 0 10px #ff0,
    0 0 60px rgba(75, 0, 130, 0.9),
    0 0 100px rgba(75, 0, 130, 0.7);
}

.letter.color-violet {
  text-shadow: -1px -1px 0 #ff0, 1px -1px 0 #ff0, -1px 1px 0 #ff0,
    1px 1px 0 #ff0, 0 0 10px #ff0,
    0 0 60px rgba(238, 130, 238, 0.9),
    0 0 100px rgba(238, 130, 238, 0.7);
}

/* Navigation */
.main-nav {
  background: transparent;
  padding: 10px 0;
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.menu-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0 20px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-tab {
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  font-family: inherit;
}

.nav-tab:hover {
  color: var(--primary-color);
  background-color: rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.nav-tab.active {
  color: var(--primary-color);
  background-color: rgba(99, 102, 241, 0.15);
}

/* Main Content */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 100px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
  border-radius: 24px;
  margin-top: 360px;
  margin-bottom: 200px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.hero-text {
  animation: fadeInUp 0.8s ease;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.7;
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  color: var(--text-dark);
}

/* Content Sections */
.content-section {
  padding: 160px 0 200px 0;
  display: block;
  animation: fadeIn 0.6s ease;
  scroll-margin-top: 0;
  margin-top: 0;
  position: relative;
  min-height: calc(100vh - 200px);
}

.content-section.active {
  margin-top: 0;
  position: relative;
}

.content-section.active .container-section {
  padding-top: 0;
  margin-top: 0;
}

.content-section.active h2 {
  margin-top: 0;
  padding-top: 0;
  position: relative;
}

.section-intro {
  font-size: 1.25rem;
  color: var(--text-light);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.7;
}

.section-content {
  display: grid;
  gap: 30px;
}

.content-block {
  background: var(--white);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.content-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.content-block h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.content-block p {
  color: var(--text-light);
  line-height: 1.7;
}

.content-block a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.content-block a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Portfolio Grid */
.portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

.portfolio-mobile-list {
  display: none;
}

/* Pricing Grid */
.pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.pricing-card {
  position: relative;
  text-align: center;
}

.pricing-card.featured {
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-1);
  color: var(--white);
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 20px;
}

/* Contact */
.contact-block {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-block a {
  font-size: 1.25rem;
  display: inline-block;
  margin: 8px 0;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 240px;
  }

  header {
    align-items: center;
    justify-content: center;
  }

  .animation-wrapper {
    width: 100%;
    height: 80px;
    margin: 0 auto;
    padding: 0;
    display: block;
  }

  .animation-wrapper .container {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0 auto;
  }

  .letter {
    font-size: 36px;
  }

  .header-logo {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .logo-header {
    width: 100%;
    height: 152px;
    max-width: 100%;
    margin: 0 auto;
    display: block;
  }

  .hero-section {
    padding: 40px 0 60px;
    margin-top: 0;
    padding-top: 140px;
    margin-bottom: 200px;
  }
  
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

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

  .pricing-card.featured {
    transform: scale(1);
  }

  .content-section {
    padding: 20px 0 200px 0;
  }

  .content-block {
    padding: 30px 20px;
  }

  .menu-container {
    gap: 8px;
    flex-wrap: nowrap;
  }

  .nav-tab {
    font-size: 12px;
    padding: 8px 12px;
    white-space: nowrap;
  }


  .portfolio-desktop {
    display: none;
  }

  .portfolio-mobile-list {
    display: block;
  }

  .portfolio-links {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .portfolio-links li {
    margin-bottom: 16px;
  }

  .portfolio-links li:last-child {
    margin-bottom: 0;
  }

  .portfolio-links a {
    font-size: 1.1rem;
    display: block;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
