/* G & I Techlabs - Main Stylesheet */

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

/* CSS Variables for Theme Colors */
:root {
  --primary: #8b4513;
  --secondary: #ff6b6b;
  --dark: #5d4037;
  --light: #fff8f3;
  --cream: #ffefd5;
  --accent-blue: #4ecdc4;
  --text-dark: #333333;
  --warm-gradient: linear-gradient(135deg, #ffe4d6 0%, #ffdab9 100%);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 5px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Base Typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light);
  overflow-x: hidden;
}

/* Navigation Styles */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 248, 243, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all 0.3s ease;
}

/* Enhanced sticky navigation on scroll */
nav.scrolled {
  background: rgba(255, 248, 243, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(15px);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.25rem;
}

.logo-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

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

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

.lang-toggle {
  background: var(--secondary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.lang-toggle:hover {
  transform: scale(1.05);
  background: #ff5252;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: var(--warm-gradient);
  background-image: url("hero-background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
}

/* Hero overlay for better text readability */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: white;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: white;
  max-width: 700px;
  margin: 0 auto 2rem;
  animation: fadeInUp 0.8s ease 0.2s both;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.cta-button {
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  animation: fadeInUp 0.8s ease 0.4s both;
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 107, 107, 0.4);
}

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

/* Section Base Styles */
section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark);
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  text-align: center;
  border-top: 4px solid var(--secondary);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Innovation Lab Section */
.innovation-section {
  background: white;
  padding: 5rem 2rem;
}

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

.innovation-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  color: #666;
  font-size: 1.1rem;
  line-height: 1.8;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.app-card {
  background: var(--light);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.app-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.app-status {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  text-transform: uppercase;
}

.app-status.in-production {
  background: #4caf50;
  color: white;
}

.app-status.beta {
  background: var(--secondary);
  color: white;
}

.app-mockup {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.device-frame {
  width: 180px;
  height: 360px;
  background: #1a1a1a;
  border-radius: 30px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
}

.device-frame::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  background: #333;
  border-radius: 3px;
}

.app-screen {
  width: 100%;
  height: 100%;
  background: var(--warm-gradient);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  color: var(--dark);
}

.app-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.app-screenshot-with-frame {
  width: 180px;
  height: 360px;
  object-fit: cover;
  border-radius: 0;
}

.app-card h3 {
  color: var(--primary);
  font-size: 1.75rem;
  margin-bottom: 1rem;
  text-align: center;
}

.app-description {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.tech-tag {
  background: var(--cream);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.app-insights {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.app-insights h4 {
  color: var(--dark);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.app-insights p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

.app-link {
  display: inline-block;
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
}

.app-link:hover {
  color: var(--primary);
  transform: translateX(5px);
}

/* Responsive adjustments for Innovation Lab */
@media (max-width: 768px) {
  .apps-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .app-card {
    padding: 2rem;
  }

  .device-frame {
    width: 150px;
    height: 300px;
  }

  .app-status {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Clients Section */
.clients-section {
  background: var(--cream);
  padding: 5rem 2rem;
}

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

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.client-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.client-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.client-logo-placeholder {
  width: 100px;
  height: 100px;
  background: var(--warm-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.client-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  border-radius: 10px;
  background: white;
  padding: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.client-logo-dark {
  background: #000000;
}

.client-card h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.visit-link {
  color: var(--secondary);
  font-weight: 500;
  margin-top: 1rem;
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.quote-icon {
  font-size: 3rem;
  color: var(--secondary);
  opacity: 0.3;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-text {
  color: #555;
  line-height: 1.8;
  margin: 1rem 0 2rem;
  font-style: italic;
}

.testimonial-author {
  border-top: 2px solid var(--cream);
  padding-top: 1rem;
}

.testimonial-author strong {
  display: block;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.testimonial-author span {
  color: #777;
  font-size: 0.9rem;
}

/* Value Proposition Section */
.value-props {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.value-item {
  text-align: center;
  padding: 1.5rem;
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}

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

/* Contact Section */
.contact {
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  color: white;
  text-align: center;
  border-radius: 20px;
  padding: 4rem 2rem;
  margin: 2rem auto;
  max-width: 800px;
}

.contact h2 {
  color: white;
  margin-bottom: 1rem;
}

.contact-button {
  background: white;
  color: var(--primary);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.contact-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Email obfuscation styling */
.footer-email-link {
  color: #4a9eff;
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
}

.footer-email-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--light);
    padding: 2rem;
    box-shadow: var(--shadow-md);
  }

  .services-grid,
  .clients-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .value-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

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

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

  section {
    padding: 3rem 1rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-3 {
  margin-top: 3rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

/* Footer Styles */
.footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #ffffff;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-logo .logo-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.footer-info p {
  color: #b0b0b0;
  line-height: 1.6;
  max-width: 400px;
}

.footer-contact h4 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-contact p {
  margin: 0;
}

.footer-contact a {
  color: #4a9eff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 1.5rem 2rem 0;
  border-top: 1px solid #333;
  text-align: center;
}

.footer-bottom p {
  color: #888;
  font-size: 0.9rem;
  margin: 0;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer {
    padding: 2rem 0 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-info {
    align-items: center;
  }

  .footer-info p {
    max-width: none;
  }

  .footer-bottom {
    padding: 1rem 2rem 0;
  }
}
