/* Mobile-First CSS for Intergalactic Holdings */
/* Variables for light and dark mode */
:root {
  --bg: #ffffff;
  --panel: #f5f5f5;
  --primary: #0a0a2a;
  --muted: #666666;
  --accent: #0a0a2a;
  --accent-600: #000047;
  --text: #333333;
  --inverse-text: #ffffff;
  --radius: 10px;
  --transition: 0.28s ease;
  --container-width: 100%;
  --eddy: #666666;
}

/* Base resets - Mobile First */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html, body { 
  height: 100%; 
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  font-size: 16px;
}

/* Container */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header - Mobile Optimized */
.site-header { 
  position: sticky; 
  top: 0; 
  z-index: 1000;
  background: rgb(255, 255, 255);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  width: 100%;
}

.logo { 
  display: flex; 
  align-items: center; 
  gap: 0.5rem; 
  text-decoration: none; 
}

.logo-img { 
  width: 50px; 
  height: 54px; 
  object-fit: contain; 
}

.brand { 
  font-weight: 800; 
  font-size: 1rem; 
  color: var(--primary); 
}

/* Header tools */
.header-tools { 
  display: flex; 
  gap: 0.5rem; 
  align-items: center; 
}

.icon-btn { 
  background: transparent; 
  border: none; 
  padding: 0.5rem; 
  border-radius: 8px; 
  cursor: pointer; 
  color: var(--primary);
  font-size: 1.2rem;
}

/* Mobile Navigation */
.nav-menu { 
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 10, 42, 0.98);
  backdrop-filter: blur(10px);
  padding: 5rem 2rem 2rem;
  z-index: 999;
  overflow-y: auto;
}

.nav-menu.open { 
  display: block;
  animation: slideInRight 0.3s ease-out;
}

.nav-menu ul { 
  display: flex; 
  flex-direction: column; 
  gap: 1.5rem; 
  list-style: none;
}

.nav-link { 
  color: var(--inverse-text); 
  text-decoration: none; 
  font-weight: 500; 
  font-size: 1.2rem;
  padding: 0.5rem 0;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Hamburger Button */
.hamburger { 
  display: inline-block; 
  border: none; 
  background: transparent; 
  cursor: pointer; 
  font-size: 1.5rem; 
  color: var(--primary);
  z-index: 1001;
  padding: 0.5rem;
}

/* Hero Section - Mobile Optimized */
.hero-banner {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('building.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 2rem 1rem;
  color: var(--inverse-text);
  position: relative;
}

.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 0;
}

.hero-content { 
  position: relative; 
  z-index: 1; 
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.hero-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-content p { 
  color: rgba(255, 255, 255, 0.9); 
  margin-bottom: 1.5rem; 
  font-size: 1rem;
  text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

/* Buttons - Mobile Optimized */
.btn { 
  display: inline-block; 
  padding: 0.9rem 1.8rem; 
  border-radius: 10px; 
  border: none; 
  cursor: pointer; 
  transition: all var(--transition); 
  font-weight: 600; 
  text-decoration: none; 
  font-size: 1rem;
  min-height: 50px;
  line-height: 1.2;
}

.primary-btn { 
  background: var(--accent); 
  color: var(--inverse-text); 
  box-shadow: 0 6px 18px rgba(74,74,240,0.15); 
}

/* Sections */
.section { 
  padding: 3rem 0; 
  background: transparent; 
}

.section-header { 
  text-align: center; 
  margin-bottom: 2rem; 
  padding: 0 1rem;
}

.section-header h2 { 
  font-size: 1.8rem; 
  margin-bottom: 0.8rem; 
  color: var(--primary); 
}

.section-header p { 
  width: 100%; 
  margin: 0 auto; 
  color: var(--primary); 
  font-size: 1rem; 
}

/* About grid - Mobile Stack */
.about-grid { 
  display: flex; 
  flex-direction: column;
  gap: 2rem; 
}

.about-text p { 
  color: var(--accent); 
  margin-bottom: 1.2rem; 
  line-height: 1.6; 
  font-size: 1rem;
}

.quote { 
  font-style: italic; 
  color: var(--accent); 
  border-left: 4px solid var(--accent); 
  padding-left: 1.2rem; 
  margin: 1.5rem 0; 
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
}

/* Features - Mobile Stack */
.features { 
  display: flex; 
  flex-direction: column;
  gap: 1.5rem; 
  color: var(--bg);
}

.feature { 
  background-color: var(--eddy);
  background-size: cover;
  background-position: center;
  padding: 1.5rem; 
  border-radius: 12px; 
  box-shadow: 0 8px 20px rgba(0,0,0,0.03);
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.feature-icon { 
  font-size: 1.8rem; 
  color: var(--accent); 
  margin-bottom: 0.8rem; 
}

/* Industries grid - Mobile 2 columns */
.industries-grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 1rem; 
}

.industry-card { 
  background-color: var(--panel);
  background-size: cover;
  background-position: center;
  padding: 1.5rem; 
  border-radius: 12px; 
  text-align: center; 
  box-shadow: 0 8px 20px rgba(0,0,0,0.03);
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.industry-icon { 
  font-size: 2.2rem; 
  color: var(--accent); 
  margin-bottom: 0.5rem; 
}

/* Values grid - Mobile Stack */
.values-grid { 
  display: flex; 
  flex-direction: column;
  gap: 1.5rem; 
}

.value-card { 
  background: var(--panel); 
  padding: 1.5rem; 
  border-radius: 12px; 
  box-shadow: 0 8px 20px rgba(0,0,0,0.03);
  transition: transform var(--transition), box-shadow var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.value-card h3 { 
  color: var(--primary); 
  display: flex; 
  gap: 0.5rem; 
  align-items: center; 
  margin-bottom: 0.8rem; 
  font-size: 1.2rem;
}

/* Stats Section */
.stats {
  background-image: url('banner.jpg');
  background-size: cover;
  background-position: center;
  color: var(--inverse-text);
  text-align: center;
  padding: 3rem 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.stat-card {
  padding: 1rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--inverse-text);
}

.stat-label {
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
}

/* Contact layout - Mobile Stack */
.contact-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info {
  order: 2;
}

.contact-form {
  order: 1;
}

.contact-item { 
  display: flex; 
  gap: 0.8rem; 
  margin-bottom: 1.5rem; 
  color: var(--accent); 
  align-items: flex-start;
}

.contact-icon { 
  font-size: 1.3rem; 
  color: var(--accent); 
  margin-top: 0.2rem; 
  flex-shrink: 0;
}

/* Form - Mobile Optimized */
.contact-form {
  background: var(--panel);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  width: 100%;
}

.form-group { 
  margin-bottom: 1.2rem; 
}

.form-label { 
  display: block; 
  margin-bottom: 0.5rem; 
  color: var(--primary); 
  font-weight: 600; 
  font-size: 1rem;
}

.form-control { 
  width: 100%; 
  padding: 0.9rem 1rem; 
  border: 1px solid rgba(0,0,0,0.1); 
  border-radius: 8px; 
  background: var(--bg); 
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  font-size: 1rem;
  min-height: 50px;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74,74,240,0.1);
}

.form-feedback { 
  min-height: 1.4rem; 
  margin-bottom: 0.6rem; 
  color: var(--muted); 
  font-size: 0.9rem;
}

/* Contact Title Styling */
#contact-title {
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 0.7rem;
  text-shadow: 0 2px 10px rgba(74,74,240,0.08);
}

/* About section title */
#about-title {
  color: var(--primary);
  font-size: 1.8rem;
  font-weight: 900;
}

/* Contact subtitle */
.contact-info #contact-subtitle {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Footer - Mobile Optimized */
.site-footer {
  background: var(--primary);
  color: var(--inverse-text);
  padding: 2.5rem 0 1rem;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
  justify-content: flex-start;
}

.footer-brand .brand {
  color: var(--inverse-text);
  font-size: 1.3rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 1rem;
}

.footer-heading {
  color: var(--inverse-text);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.footer-contact i {
  color: var(--accent);
  margin-top: 0.2rem;
  min-width: 16px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--inverse-text);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-link:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--accent);
}

.copyright {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* Scroll Up Button */
#scrollUpBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#scrollUpBtn:hover {
  background: var(--accent-600);
  transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Stars background */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  width: 100vw;
  height: 100vh;
}

.star {
  position: absolute;
  background-color: #ffe066;
  border-radius: 50%;
  animation: twinkle 5s infinite ease-in-out;
  opacity: 0.7;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Tablet Styles */
@media (min-width: 768px) {
  .container {
    width: 96%;
    max-width: 1200px;
    padding: 0 2rem;
  }
  
  .header-inner {
    padding: 1rem 2rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.2rem;
  }
  
  .industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
    display: grid;
  }
}

/* Desktop Styles */
@media (min-width: 992px) {
  .hamburger {
    display: none;
  }
  
  .nav-menu {
    display: flex;
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
  }
  
  .nav-menu ul {
    flex-direction: row;
  }
  
  .nav-link {
    color: var(--primary);
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
    border-bottom: none;
  }
  
  .about-grid {
    grid-template-columns: 1fr 380px;
    display: grid;
  }
  
  .contact-container {
    grid-template-columns: 1fr 1fr;
    display: grid;
  }
  
  .contact-info {
    order: 1;
  }
  
  .contact-form {
    order: 2;
  }
  
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
  }
  
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  
  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .industries-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}