/* Infinity Labs - Modern Material Design CSS */

:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --secondary-color: #8b5cf6;
  --accent-color: #06b6d4;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  padding-top: 80px; /* Add padding to account for fixed navbar */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: 60px;
}

.navbar-brand {
  text-decoration: none;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.infinity-symbol {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
}

.brand-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.navbar-nav .nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero-section {
  padding: 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  margin: 0;
  width: 100%;
  display: flex;
  align-items: center;
  min-height: auto;
}

.container {
  width: 100%;
  padding-right: 0.25rem;
  padding-left: 0.25rem;
  margin-right: auto;
  margin-left: auto;
}

.hero-section .row {
  width: 100%;
  margin: 0;
  justify-content: center;
  text-align: center;
}

.hero-visual {
  display: none;
  height: 300px;
}

.hero-content {
  padding: 0.5rem 0.1rem;
  max-width: 100%;
  margin: 0 auto;
  width: 100%;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.2;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0 auto 1.5rem;
  line-height: 1.6;
  max-width: 600px;
  padding: 0 0.5rem;
}

.hero-stats {
  display: flex;
  gap: 1.25rem;
  margin: 0.75rem auto;
  flex-wrap: nowrap;
  justify-content: center;
  max-width: 600px;
  padding: 0.5rem 0.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  min-width: 100%;
}

.hero-stats::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.stat-item {
  text-align: center;
  flex-shrink: 0;
  min-width: 80px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn {
  padding: 0.75rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

/* Floating Cards Animation */
.hero-visual {
  position: relative;
  height: 400px;
}

.floating-cards {
  position: relative;
  width: 100%;
  height: 100%;
}

.floating-card {
  position: absolute;
  width: 120px;
  height: 120px;
  background: white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  animation: float 6s ease-in-out infinite;
}

.card-1 {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.card-2 {
  top: 50%;
  right: 20%;
  animation-delay: 2s;
}

.card-3 {
  bottom: 20%;
  left: 50%;
  animation-delay: 4s;
}

.card-icon {
  font-size: 3rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(5deg); }
  66% { transform: translateY(10px) rotate(-5deg); }
}

/* Apps Section */
.apps-section {
  padding: 50px 0;
  background: var(--bg-secondary);
}

.section-header {
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

/* App Cards */
.app-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.app-card:hover {
  transform: translateY(-8px);
}

.card-3d-wrapper {
  perspective: 1000px;
  height: 380px;
  margin-bottom: 1.5rem;
}

.card-3d {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.card-front {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  background: white;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  box-shadow: none;
  border: none;
}

.app-icon {
  width: 100%;
  height: 200px;
  margin: 0;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  transition: none;
  flex-shrink: 0;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
}

.app-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.app-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.app-rating {
  margin-bottom: 1rem;
}

.stars {
  color: #fbbf24;
  font-size: 1.125rem;
  margin-right: 0.5rem;
}

.rating-text {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.app-downloads {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* About Section */
.about-section {
  padding: 50px 0;
  background: white;
}

.about-content {
  padding-right: 2rem;
}

.about-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.mission-vision {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mission-item h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.mission-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.team-illustration {
  position: relative;
  height: 300px;
}

.team-member {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  padding: 1rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.member-1 {
  top: 20%;
  left: 10%;
}

.member-2 {
  top: 60%;
  right: 10%;
}

.member-avatar {
  width: 60px;
  height: 60px;
  background: var(--gradient-secondary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.member-info h5 {
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.member-info p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Contact Section */
.contact-section {
  padding: 3rem 0;
  background-color: var(--bg-secondary);
}

.contact-section .section-header {
  margin-bottom: 1.5rem;
}

.contact-section .section-subtitle {
  font-size: 1rem;
  margin-bottom: 2rem;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-item {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  padding: 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 8px;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.contact-icon .material-icons {
  font-size: 1.25rem;
}

.contact-details h5 {
  margin-bottom: 0.1rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-details p, 
.contact-details a {
  color: var(--text-secondary);
  margin: 0;
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.4;
}

.contact-details a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contact-section {
    padding: 2rem 0;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .contact-item {
    padding: 0.75rem;
  }
  
  .contact-icon {
    width: 32px;
    height: 32px;
  }
  
  .contact-icon .material-icons {
    font-size: 1.1rem;
  }
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 1rem;
}

.footer-links h5,
.footer-apps h5 {
  color: white;
  margin-bottom: 1rem;
}

.footer-links ul,
.footer-apps ul {
  list-style: none;
}

.footer-links ul li,
.footer-apps ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a,
.footer-apps ul li a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover,
.footer-apps ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  margin-top: 2rem;
  padding-top: 2rem;
}

.footer-bottom p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Modal Styles */
.modal-content {
  border-radius: 24px;
  border: none;
  box-shadow: var(--shadow-xl);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 2rem 1rem;
}

.modal-body {
  padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 70px 0 10px;
  }
  
  .hero-stats {
    justify-content: flex-start;
    padding: 0.25rem 1rem;
    margin: 0.5rem -1rem;
    width: calc(100% + 2rem);
  }
  
  .stat-item {
    min-width: 90px;
  }
  
  .hero-content {
    padding: 0 1rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .floating-cards {
    display: none;
  }
  
  .about-content {
    padding-right: 0;
    margin-bottom: 2rem;
  }
  
  .team-illustration {
    height: 200px;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 20px 0 10px;
  }
  
  .apps-section,
  .about-section,
  .contact-section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .card-front {
    padding: 1.5rem;
  }
}
