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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

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

/* Animated Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: -1;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.shape {
  position: absolute;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 80px;
  height: 80px;
  background: #ff6b6b;
  border-radius: 50%;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 60px;
  height: 60px;
  background: #4ecdc4;
  border-radius: 50%;
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.shape-3 {
  width: 100px;
  height: 100px;
  background: #45b7d1;
  border-radius: 50%;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

.shape-4 {
  width: 40px;
  height: 40px;
  background: #f9ca24;
  border-radius: 50%;
  top: 40%;
  left: 70%;
  animation-delay: 1s;
}

.shape-5 {
  width: 120px;
  height: 120px;
  background: #f0932b;
  border-radius: 50%;
  bottom: 40%;
  right: 30%;
  animation-delay: 3s;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.nav-logo {
  display: flex;
  align-items: center;
  max-height: 40px;
  overflow: hidden;
}

.nav-logo .logo-img {
  height: 28px !important;
  width: auto !important;
}

.nav-logo i {
  margin-right: 10px;
  color: #ff6b6b;
  animation: rotate 3s linear infinite;
}

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

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #ff6b6b;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff6b6b;
  transition: width 0.3s ease;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 100px 20px 20px;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  animation: slideInLeft 1s ease-out;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: 1.3rem;
  color: white;
  margin-bottom: 15px;
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.2);
  padding: 10px 20px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  display: inline-block;
}

.hero-description {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 30px;
  line-height: 1.8;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
  color: white;
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #333;
  border: 2px solid #333;
}

.btn-secondary:hover {
  background: #333;
  color: white;
  transform: translateY(-3px);
}

.pulse {
  animation: pulse 3.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideInRight 1s ease-out;
  max-width: 400px;
  width: 100%;
  flex-shrink: 0;
}

.tech-circle {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9a56, #ff7a47);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(255, 122, 71, 0.3);
  transition: opacity 1.5s ease-in-out;
}

.orbit {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: orbit 10s linear infinite;
}

.orbit-1 {
  width: 120px;
  height: 120px;
  animation-duration: 8s;
}

.orbit-2 {
  width: 180px;
  height: 180px;
  animation-duration: 12s;
}

.orbit-3 {
  width: 240px;
  height: 240px;
  animation-duration: 16s;
}

.planet {
  position: absolute;
  width: 30px;
  height: 30px;
  background: white;
  border-radius: 50%;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667eea;
  font-size: 12px;
}

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

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* Section Styles */
section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #333;
}

.section-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 40px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: #ff6b6b;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
  margin-top: 10px;
}

/* Innovation Cube */
.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.innovation-cube {
  position: relative;
  width: 200px;
  height: 200px;
  transform-style: preserve-3d;
  animation: rotateCube 20s linear infinite;
}

.cube-face {
  position: absolute;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: white;
  font-size: 1.2rem;
}

.cube-face.front { transform: rotateY(0deg) translateZ(100px); }
.cube-face.back { transform: rotateY(180deg) translateZ(100px); }
.cube-face.right { transform: rotateY(90deg) translateZ(100px); }
.cube-face.left { transform: rotateY(-90deg) translateZ(100px); }
.cube-face.top { transform: rotateX(90deg) translateZ(100px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(100px); }

@keyframes rotateCube {
  0% { transform: rotateX(0deg) rotateY(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Services Section */
.services {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.service-card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::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;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  animation: float 3s ease-in-out infinite;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #333;
}

.service-card p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-features {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.feature-tag {
  background: #f8f9fa;
  color: #666;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid #e9ecef;
}

/* Contact Section */
.contact {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.contact-content {
  display: flex;
  justify-content: center;
}

.contact-info {
  display: flex;
  flex-direction: row;
  gap: 60px;
  justify-content: center;
  align-items: flex-start;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-item i {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.contact-item h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #333;
}

.contact-item a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #ff6b6b;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #ff6b6b;
}

.contact-form button {
  width: 100%;
}

/* Footer */
.footer {
  background: #333;
  color: white;
  padding: 40px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  max-height: 32px;
  overflow: hidden;
}

.footer-logo .logo-img {
  height: 24px !important;
  width: auto !important;
}

/* Defensive CSS to prevent layout issues */
.hero-visual {
  max-width: 400px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.hero-logo {
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
}

/* Logo styling */
.logo-img {
  height: 32px;
  width: 32px;
  margin-right: 8px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  /* Performance optimizations */
  will-change: transform;
  transform: translateZ(0);
  max-width: 32px;
  max-height: 32px;
  flex-shrink: 0;
  display: block;
  overflow: hidden;
}

/* Alternative background image approach for better cross-browser support */
.logo-bg {
  background-image: url('../SmallLogo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  will-change: transform;
  transform: translateZ(0);
}

.logo-bg:hover {
  transform: scale(1.1);
}

.nav-logo .logo-bg {
  height: 28px;
  width: 28px;
  margin-right: 8px;
}

.footer-logo .logo-bg {
  height: 24px;
  width: 24px;
  margin-right: 8px;
}

/* Ensure object-fit fallback for older browsers */
.logo-img {
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center;
  object-position: center;
}

/* Specific logo sizing for navigation */
.nav-logo .logo-img {
  height: 28px !important;
  width: 28px !important;
  max-height: 28px !important;
  max-width: 28px !important;
  min-height: 28px !important;
  min-width: 28px !important;
}

/* Specific logo sizing for footer */
.footer-logo .logo-img {
  height: 24px !important;
  width: 24px !important;
  max-height: 24px !important;
  max-width: 24px !important;
  min-height: 24px !important;
  min-width: 24px !important;
}

.logo-img:hover {
  transform: scale(1.1);
}

/* Hero logo styling */
.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 3s ease-in-out infinite;
}

.hero-logo-img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 20px 60px rgba(255, 122, 71, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 300px;
  max-height: 300px;
  flex-shrink: 0;
}

.hero-logo-img:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 80px rgba(255, 122, 71, 0.4);
}

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

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100vw;
    height: 100vh;
    height: -webkit-fill-available;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: left 0.3s ease;
    z-index: 9999;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-link {
    font-size: 1.2rem;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .contact-info {
    flex-direction: column;
    gap: 30px;
  }
  
  .contact-item {
    justify-content: center;
    text-align: center;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-info {
    flex-direction: column;
    gap: 30px;
  }
  
  .contact-item {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .contact-info {
    gap: 20px;
  }
}

/* ===== MOBILE RESPONSIVE STYLES ===== */

/* Tablet and smaller screens */
@media (max-width: 768px) {
  /* Hero Section */
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding: 80px 20px 20px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .tech-circle {
    width: 250px;
    height: 250px;
  }
  
  .orbit-1 {
    width: 100px;
    height: 100px;
  }
  
  .orbit-2 {
    width: 150px;
    height: 150px;
  }
  
  .orbit-3 {
    width: 200px;
    height: 200px;
  }
  
  /* About Section */
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .stats {
    justify-content: center;
    gap: 30px;
  }
  
  .innovation-cube {
    width: 120px;
    height: 120px;
  }
  
  /* Navigation */
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    display: none;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  /* Section padding */
  .section {
    padding: 80px 0;
  }
  
  .container {
    padding: 0 20px;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  /* Hero Section */
  .hero {
    padding: 80px 15px 20px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-description {
    font-size: 0.9rem;
  }
  
  .tech-circle {
    width: 200px;
    height: 200px;
  }
  
  .orbit-1 {
    width: 80px;
    height: 80px;
  }
  
  .orbit-2 {
    width: 120px;
    height: 120px;
  }
  
  .orbit-3 {
    width: 160px;
    height: 160px;
  }
  
  .planet {
    width: 25px;
    height: 25px;
    top: -12px;
    font-size: 10px;
  }
  
  /* Navigation */
  .nav-logo span {
    font-size: 1.3rem;
  }
  
  .navbar {
    padding: 0 15px;
  }
  
  /* About Section */
  .stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .innovation-cube {
    width: 100px;
    height: 100px;
  }
  
  .cube-face {
    font-size: 0.8rem;
  }
  
  /* Section spacing */
  .section {
    padding: 60px 0;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  /* Buttons */
  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  
  /* Footer */
  .footer {
    padding: 40px 0;
  }
  
  .footer-logo span {
    font-size: 1.2rem;
  }
}

/* Small mobile phones */
@media (max-width: 320px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .tech-circle {
    width: 150px;
    height: 150px;
  }
  
  .orbit-1 {
    width: 60px;
    height: 60px;
  }
  
  .orbit-2 {
    width: 90px;
    height: 90px;
  }
  
  .orbit-3 {
    width: 120px;
    height: 120px;
  }
  
  .planet {
    width: 20px;
    height: 20px;
    top: -10px;
    font-size: 8px;
  }
  
  .innovation-cube {
    width: 80px;
    height: 80px;
  }
  
  .cube-face {
    font-size: 0.7rem;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: 60px 20px 20px;
  }
  
  .hero-content {
    gap: 30px;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .tech-circle {
    width: 180px;
    height: 180px;
  }
}

/* Additional Animations */
.service-card.animate {
  animation: fadeInUp 0.6s ease forwards;
}

section.animate {
  animation: fadeInUp 0.8s ease forwards;
}

/* Scroll-triggered animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced button effects */
.btn {
  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%;
}

/* Glow effect for interactive elements */
.nav-link:hover,
.social-link:hover,
.btn:hover {
  filter: drop-shadow(0 0 10px rgba(255, 107, 107, 0.5));
}

/* Tech circle enhanced animation */
.tech-circle {
  animation: breathe 3.5s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Touch and interaction improvements for mobile */
@media (max-width: 768px) {
  /* Better touch targets */
  .nav-link {
    padding: 15px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .btn {
    min-height: 44px;
    padding: 12px 24px;
  }
  
  /* Prevent zoom on input focus */
  input, textarea, select {
    font-size: 16px;
  }
  
  /* Smooth scrolling for mobile */
  html {
    scroll-behavior: smooth;
  }
  
  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }
  
  /* Fix for mobile Safari */
  .hero {
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }
  
  /* Better spacing for mobile */
  .hero-buttons {
    margin-top: 30px;
  }
  
  /* Close mobile menu when clicking a link */
  .nav-link {
    width: 100%;
    text-align: center;
  }
  
  /* Improve mobile menu appearance */
  .nav-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  
  /* Better mobile animations */
  .floating-shapes {
    opacity: 0.3;
  }
  
  .shape {
    animation-duration: 20s;
  }
}

/* Safari iOS specific fixes */
@supports (-webkit-touch-callout: none) {
  /* Safari on iOS detection */
  
  /* Fix viewport height issues on iOS Safari */
  .hero {
    min-height: 100vh;
    min-height: -webkit-fill-available;
  }
  
  /* Fix Safari's bouncy scrolling */
  body {
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
  }
  
  /* Fix Safari's zoom on input focus */
  input, textarea, select, button {
    font-size: 16px !important;
    -webkit-appearance: none;
    appearance: none;
    -webkit-border-radius: 0;
    border-radius: 0;
  }
  
  /* Fix Safari's backdrop-filter support */
  .nav-menu {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }
  
  /* Fix Safari's transform performance */
  .tech-circle,
  .orbit,
  .planet,
  .innovation-cube {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
  }
  
  /* Fix Safari's animation performance */
  .floating-shapes .shape {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
  }
  
  /* Fix Safari's gradient rendering */
  .gradient-text {
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  /* Fix Safari's button styling */
  .btn {
    -webkit-appearance: none;
    appearance: none;
    -webkit-border-radius: 8px;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Fix Safari's link tap highlight */
  a, button {
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Fix Safari's safe area for iPhone X and newer */
  @media screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) {
    .hero {
      padding-top: env(safe-area-inset-top, 80px);
      padding-bottom: env(safe-area-inset-bottom, 20px);
    }
    
    .navbar {
      padding-top: env(safe-area-inset-top, 0px);
    }
  }
  
  /* Fix Safari's safe area for iPhone 12/13/14 */
  @media screen and (device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3) {
    .hero {
      padding-top: env(safe-area-inset-top, 80px);
      padding-bottom: env(safe-area-inset-bottom, 20px);
    }
    
    .navbar {
      padding-top: env(safe-area-inset-top, 0px);
    }
  }
}

/* Additional iOS Safari fixes */
@media (max-width: 768px) {
  /* Fix Safari's 100vh issue */
  .hero {
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
  }
  
  /* Better font rendering on iOS */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* Fix Safari's touch scrolling */
  .nav-menu {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Fix Safari's button focus outline */
  button:focus {
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Fix Safari's select dropdown */
  select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }
  
  /* Fix Safari's animation flickering */
  .tech-circle,
  .orbit,
  .planet {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
  }
  
  /* Fix Safari's transform origin */
  .innovation-cube {
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
  }
  
  /* Fix Safari's text rendering */
  .hero-title,
  .section-title {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  
  /* Fix Safari's sticky positioning */
  .navbar {
    position: fixed;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}

/* iOS Safari performance optimizations */
@media (max-width: 768px) {
  /* Reduce animations on mobile for better performance */
  .floating-shapes .shape {
    animation-duration: 25s;
    will-change: transform;
  }
  
  /* Optimize transforms for better performance */
  .tech-circle,
  .orbit,
  .planet,
  .innovation-cube,
  .nav-menu {
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  /* Fix iOS Safari rubber band effect */
  body {
    position: relative;
    overflow-x: hidden;
  }
  
  /* Fix iOS Safari address bar hide/show */
  .hero {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    position: relative;
  }
  
  /* Better touch scrolling */
  * {
    -webkit-overflow-scrolling: touch;
  }
  
  /* Fix iOS Safari font size adjustment */
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  
  /* Fix iOS Safari button active state */
  .btn:active {
    -webkit-transform: scale(0.98);
    transform: scale(0.98);
  }
  
  /* Fix iOS Safari navigation menu */
  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100vw;
    height: 100vh;
    height: -webkit-fill-available;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: left 0.3s ease;
    z-index: 9999;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  
  /* Fix iOS Safari navbar */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    padding-top: env(safe-area-inset-top, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }
  
  /* Fix hero section padding for iOS safe area */
  .hero {
    padding-top: calc(70px + env(safe-area-inset-top, 0px));
    padding-left: env(safe-area-inset-left, 20px);
    padding-right: env(safe-area-inset-right, 20px);
    padding-bottom: env(safe-area-inset-bottom, 20px);
  }
  
  /* Fix section padding for iOS safe area */
  .section {
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }
  
  /* Fix footer padding for iOS safe area */
  .footer {
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }
}
#protein-ai {
  padding: 100px 0;
  text-align: center;
  background: radial-gradient(circle at top left, #ffecd2, #fcb69f);
  position: relative;
  overflow: hidden;
}

#protein-ai .section-title {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: #222;
}

#protein-ai .product-description {
  font-size: 1.3rem;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #333;
}

.product-logo-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-logo {
  max-width: 650px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
  animation: float 6s ease-in-out infinite;
  transform-origin: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.animated-fade-in {
  opacity: 1;
}

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