/* ============================================
   Modern & Beautiful Website Styles
   ============================================ */

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

:root {
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --secondary-color: #7c3aed;
  --accent-color: #06b6d4;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --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);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
  overflow-x: hidden;
}

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

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

/* ============================================
   Navigation Bar
   ============================================ */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  transition: all 0.3s ease;
  animation: navbarSlideDown 0.6s ease-out;
}

.navbar.scrolled {
  padding: 1rem 3rem;
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

@keyframes navbarSlideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.logo {
  display: flex;
  align-items: center;
  height: 120px;
}

.logo img {
  height: 110px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
  animation: logoFloat 3s ease-in-out infinite;
}

.logo img:hover {
  transform: scale(1.1) rotate(2deg);
  filter: drop-shadow(0 5px 15px rgba(37, 99, 235, 0.3));
}

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

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

.nav-links li {
  position: relative;
}

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  position: relative;
  transition: var(--transition);
  border-radius: 8px;
}

.nav-links a:hover {
  background: rgba(37, 99, 235, 0.1);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 0.5rem;
  background: transparent;
  border: none;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Active Navigation Link */
.nav-links a.active {
  color: var(--primary-color);
}

.nav-links a.active::after {
  width: 100%;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  /* Background image */
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-blend-mode: overlay;
  color: white;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
  animation: heroFadeIn 1.5s ease-out;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.75) 0%, rgba(118, 75, 162, 0.75) 100%);
  z-index: 0;
  animation: gradientShift 8s ease infinite;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  z-index: 0;
  animation: patternMove 20s linear infinite;
}

/* Floating particles effect */
.hero {
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
    url('../images/hero-bg.jpg');
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes gradientShift {
  0%, 100% {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.75) 0%, rgba(118, 75, 162, 0.75) 100%);
  }
  50% {
    background: linear-gradient(135deg, rgba(118, 75, 162, 0.75) 0%, rgba(102, 126, 234, 0.75) 100%);
  }
}

@keyframes patternMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease-out, textGlow 3s ease-in-out infinite 1s;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 255, 255, 0.1);
  letter-spacing: -0.02em;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin-bottom: 2.5rem;
  opacity: 0.95;
  max-width: 900px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease-out 0.3s both, textFloat 4s ease-in-out infinite 1.5s;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
  font-weight: 300;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .hero p {
    white-space: normal;
    max-width: 600px;
  }
}

@keyframes textGlow {
  0%, 100% {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 255, 255, 0.1);
  }
  50% {
    text-shadow: 0 2px 25px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 255, 255, 0.2);
  }
}

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

.btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  background: var(--bg-white);
  color: var(--primary-color);
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease-out 0.5s both, buttonPulse 2s ease-in-out infinite 1.5s;
  border: 2px solid transparent;
  text-shadow: none;
  overflow: hidden;
}

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

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

.btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(37, 99, 235, 0.3);
  background: var(--primary-color);
  color: white;
}

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

@keyframes buttonPulse {
  0%, 100% {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 255, 255, 0.2);
  }
}

/* ============================================
   Features Section
   ============================================ */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature {
  padding: 2.5rem;
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  transform: translateY(30px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
  transition: left 0.5s;
}

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

.feature:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 20px rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.2);
}

.feature.visible {
  opacity: 1;
  transform: translateY(0);
  animation: featureFadeIn 0.8s ease-out forwards, featureBounce 0.6s ease-out 0.3s;
  background: var(--bg-white);
}

@keyframes featureBounce {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.02);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.feature h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 700;
  transition: var(--transition);
}

.feature:hover h2 {
  color: var(--primary-dark);
}

.feature p {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.feature div[style*="font-size: 3rem"],
.feature div[style*="font-size: 2.5rem"] {
  display: inline-block;
  transition: transform 0.3s ease;
}

.feature:hover div[style*="font-size: 3rem"],
.feature:hover div[style*="font-size: 2.5rem"] {
  animation: iconBounce 0.6s ease-in-out;
  transform: scale(1.2) rotate(5deg);
}

@keyframes iconBounce {
  0%, 100% {
    transform: scale(1.2) rotate(5deg);
  }
  50% {
    transform: scale(1.3) rotate(-5deg);
  }
}

/* ============================================
   Footer
   ============================================ */

footer {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--text-dark);
  color: white;
  margin-top: 4rem;
}

footer p {
  font-size: 1rem;
  opacity: 0.9;
}

/* ============================================
   Animations
   ============================================ */

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

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

[data-animate="fade-up"] {
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-animate="fade-up"].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
  }

  .logo img {
    height: 75px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    margin-top: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem;
    border-radius: 8px;
    transition: var(--transition);
  }

  .nav-links a:hover {
    background: var(--bg-light);
  }

  .hero {
    min-height: 70vh;
    padding: 3rem 1.5rem;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .features {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem;
    gap: 1.5rem;
  }

  .feature {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.75rem 1rem;
  }

  .logo img {
    height: 65px;
  }

  .hero {
    min-height: 60vh;
    padding: 2rem 1rem;
  }

  .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }

  .features {
    padding: 2rem 1rem;
  }

  .feature {
    padding: 1.5rem;
  }
}

/* ============================================
   Smooth Scrolling
   ============================================ */

html {
  scroll-behavior: smooth;
}

/* ============================================
   Section Spacing
   ============================================ */

section[id] {
  scroll-margin-top: 120px;
}

/* ============================================
   Cursor Effects (Optional Enhancement)
   ============================================ */

body {
  cursor: default;
}

a, button {
  cursor: pointer;
}

/* ============================================
   Loading Animation
   ============================================ */

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Removed conflicting shimmer animation */

/* ============================================
   Focus States for Accessibility
   ============================================ */

a:focus,
button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ============================================
   Loading States
   ============================================ */

/* Section Headings */
.features h2[style*="grid-column"],
section > h2:first-child {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
  font-weight: 700;
  grid-column: 1 / -1;
  position: relative;
  padding-bottom: 1rem;
}

.features h2[style*="grid-column"]::after,
section > h2:first-child::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

/* Section Spacing */
section[id] {
  scroll-margin-top: 120px;
  position: relative;
}
