/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --bg-color: linear-gradient(135deg, #e8f4f8 0%, #d1e7f0 100%);
  --text-color: #2c3e50;
  --header-bg: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  --section-bg: rgba(255,255,255,0.95);
  --section-border: rgba(26, 60, 114, 0.1);
  --hero-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --btn-bg: linear-gradient(135deg, #00d2d3 0%, #54a0ff 100%);
  --btn-shadow: rgba(0, 210, 211, 0.4);
  --btn-hover-shadow: rgba(0, 210, 211, 0.6);
  --h2-color: #1e3c72;
  --card-bg: rgba(255,255,255,0.9);
  --card-text: #2c3e50;
  --card-h3: #00d2d3;
  --accent-color: #00d2d3;
  --industrial-blue: #1e3c72;
  --hero-text-color: #2c3e50;
}

.dark-mode {
  --bg-color: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  --text-color: #ecf0f1;
  --header-bg: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
  --section-bg: rgba(44,62,80,0.9);
  --section-border: rgba(52,73,94,0.2);
  --hero-bg: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
  --btn-bg: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  --btn-shadow: rgba(231,76,60,0.4);
  --btn-hover-shadow: rgba(231,76,60,0.6);
  --h2-color: #ecf0f1;
  --card-bg: rgba(52,73,94,0.8);
  --card-text: #ecf0f1;
  --card-h3: #5dade2;
  --hero-text-color: #fff;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-color);
  padding-top: 5rem;
  min-height: 100vh;
  transition: background 0.3s, color 0.3s;
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

header {
  background: var(--header-bg);
  color: #fff;
  padding: 1rem 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
}

nav ul li {
  margin: 0 1rem;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}

nav ul li a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

nav ul li a:hover::before {
  width: 100%;
}

nav ul li a:hover {
  background-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.theme-toggle {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: absolute;
  top: 1rem;
  left: 4rem;
  backdrop-filter: blur(10px);
}

.theme-toggle:hover {
  background-color: rgba(255,255,255,0.2);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.view-toggle {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  position: absolute;
  top: 1rem;
  left: 1rem;
  backdrop-filter: blur(10px);
}

.view-toggle:hover {
  background-color: rgba(255,255,255,0.2);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Force mobile styles */
.force-mobile body {
  padding-top: 5rem;
}

.force-mobile .hero h1 {
  font-size: 2rem;
}

.force-mobile .hero p {
  font-size: 1rem;
}

.force-mobile .grid {
  grid-template-columns: 1fr;
}

.force-mobile .company-images {
  flex-direction: column;
}

.force-mobile .company-images img {
  width: 100%;
  margin-bottom: 1rem;
}

.force-mobile nav ul li a {
  font-size: 0.9rem;
  padding: 0.3rem 0.5rem;
}

.force-mobile nav ul li {
  margin: 0 0.5rem;
}

.force-mobile .section {
  padding: 1rem;
}

.force-mobile .card {
  padding: 1rem;
}

/* Force desktop styles */
.force-desktop .grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.force-desktop body {
  padding-top: 3rem;
}

.force-desktop .hero h1 {
  font-size: 3rem;
}

.force-desktop .hero p {
  font-size: 1.3rem;
}

.force-desktop nav ul li a {
  font-size: 1rem;
  padding: 0.5rem 1rem;
}

.force-desktop nav ul li {
  margin: 0 1rem;
}

footer {
  text-align: center;
  padding: 1rem 0;
  background: var(--header-bg);
  color: #fff;
}

.social-media {
  margin-bottom: 0.5rem;
}

.social-link {
  color: #fff;
  margin: 0 0.5rem;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: scale(1.2);
}

.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-color);
}

.breadcrumb a {
  color: var(--accent-color);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.hero {
  background: var(--hero-bg);
  background-image:
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    linear-gradient(135deg, var(--hero-bg) 0%, rgba(102, 126, 234, 0.8) 100%);
  color: var(--hero-text-color);
  text-align: center;
  padding: 4rem 2rem;
  margin-bottom: 2rem;
  border-radius: 15px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,0.1);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  animation: slideUp 1s ease-out, glow 2s ease-in-out infinite alternate;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  animation: slideUp 1.2s ease-out, fadeInGlow 1.5s ease-out;
}

@keyframes glow {
  from { text-shadow: 2px 2px 4px rgba(0,0,0,0.3); }
  to { text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 10px rgba(255,255,255,0.5); }
}

@keyframes fadeInGlow {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.btn {
  display: inline-block;
  background: var(--btn-bg);
  color: #fff;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--btn-shadow);
  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.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px var(--btn-hover-shadow);
}

.section {
  background-color: var(--section-bg);
  backdrop-filter: blur(10px);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  border: 1px solid var(--section-border);
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--industrial-blue));
  border-radius: 15px 15px 0 0;
}

.section h2 {
  margin-bottom: 1rem;
  color: var(--h2-color);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.card {
  background-color: var(--card-bg);
  color: var(--card-text);
  padding: 1.5rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border: 1px solid var(--section-border);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 210, 211, 0.1), transparent);
  transition: left 0.5s;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25), 0 0 20px rgba(0, 210, 211, 0.3);
}

.card h3 {
  margin-bottom: 0.5rem;
  color: var(--card-h3);
  font-weight: 600;
  transition: color 0.3s;
}

.card:hover h3 {
  color: var(--industrial-blue);
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.card i {
  display: block;
  text-align: center;
  margin-bottom: 1rem;
}

.sub-products {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.sub-products li {
  font-weight: bold;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  font-size: 0.9em;
}

.hero-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.company-images {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
}

.company-images img {
  width: 45%;
  height: auto;
  border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding-top: 5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .company-images {
    flex-direction: column;
  }

  .company-images img {
    width: 100%;
    margin-bottom: 1rem;
  }

  nav ul li a {
    font-size: 0.9rem;
    padding: 0.3rem 0.5rem;
  }

  nav ul li {
    margin: 0 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 1rem;
  }

  .section {
    padding: 1rem;
  }

  .card {
    padding: 1rem;
  }
}

form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
}

input, textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 3px;
}

button {
  background-color: #2c3e50;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #34495e;
}

footer {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
  box-shadow: 0 -4px 6px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    margin: 0.5rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

/* Enhanced animations and transitions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.section {
  animation: fadeInUp 0.8s ease-out;
}

.card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
  animation: pulse 0.6s ease-in-out;
}

/* Enhanced typography */
h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  line-height: 1.7;
}

/* Loading animation for buttons */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

/* Focus indicators for accessibility */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.theme-toggle:focus, .view-toggle:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  /* Hide screen-only elements */
  nav, .theme-toggle, .view-toggle, .breadcrumb, .social-media, footer {
    display: none !important;
  }

  /* Reset backgrounds and colors for ink saving */
  body, .section, .card, header {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    border: none !important;
  }

  /* Optimize typography for printing */
  body {
    font-size: 12pt !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  h1, h2, h3 {
    color: black !important;
    page-break-after: avoid;
  }

  .section {
    page-break-inside: avoid;
    margin: 20px 0 !important;
    padding: 10px 0 !important;
  }

  .card {
    break-inside: avoid;
    margin: 10px 0 !important;
    padding: 10px !important;
    border: 1px solid #ccc !important;
  }

  /* Ensure links are visible */
  a {
    color: black !important;
    text-decoration: underline !important;
  }

  /* Hide images that don't add value when printed */
  .hero-image {
    display: none !important;
  }

  /* Add page margins */
  @page {
    margin: 0.5in;
  }
}