@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   CSS Variables (Design System)
   ========================================================================== */
:root {
  /* Color Palette */
  --primary-color: #0a192f; /* Deep Navy */
  --secondary-color: #112240; /* Lighter Navy */
  --accent-color: #64ffda; /* Cyan/Teal for PCB */
  --accent-cloud: #b392f0; /* Purple for Cloud/IT */
  --text-main: #ccd6f6; /* Light Slate */
  --text-muted: #8892b0; /* Slate */
  --white: #ffffff;
  --bg-gradient: linear-gradient(135deg, #0a192f 0%, #020c1b 100%);
  
  /* Typography */
  --font-family: 'Inter', sans-serif;
  
  /* Glassmorphism */
  --glass-bg: rgba(17, 34, 64, 0.7);
  --glass-border: rgba(100, 255, 218, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--primary-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--white);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--text-main);
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.highlight {
  color: var(--accent-color);
}
.highlight-cloud {
  color: var(--accent-cloud);
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
}
.btn-primary:hover {
  background-color: rgba(100, 255, 218, 0.1);
}

.btn-solid {
  background-color: var(--accent-color);
  color: var(--primary-color);
  border: 1px solid var(--accent-color);
}
.btn-solid:hover {
  background-color: transparent;
  color: var(--accent-color);
}

.btn-cloud {
  background-color: var(--accent-cloud);
  color: var(--primary-color);
  border: 1px solid var(--accent-cloud);
}
.btn-cloud:hover {
  background-color: transparent;
  color: var(--accent-cloud);
}

.section-padding {
  padding: 80px 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-container img {
  height: 40px;
}

.company-name {
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.5px;
}

.footer-logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 10px 0;
}

.nav-links li > a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 5px;
  left: 0;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.nav-links li > a:hover::after,
.nav-links li > a.active::after {
  width: 100%;
}

.nav-links li > a:hover,
.nav-links li > a.active {
  color: var(--accent-color);
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--secondary-color);
  min-width: 250px;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  padding: 10px 0;
  z-index: 1001;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--text-main);
}
.dropdown-menu li a::after {
  display: none;
}
.dropdown-menu li a:hover {
  background: rgba(255,255,255,0.05);
  color: var(--white);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--accent-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Dual Hero Section
   ========================================================================== */
.dual-hero {
  display: flex;
  min-height: 100vh;
  padding-top: 70px;
}

.hero-half {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
  overflow: hidden;
  transition: flex 0.5s ease;
}

.hero-half::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transition: transform 0.8s ease;
}

.hero-half:hover::before {
  transform: scale(1.05);
}

.hero-half::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-pcb::before { background-image: url('../assets/images/hero_bg.png'); }
.hero-pcb::after { background: linear-gradient(0deg, rgba(10,25,47,0.95) 0%, rgba(10,25,47,0.7) 100%); }

.hero-it::before { background-image: url('../assets/images/cloud_it_bg.png'); }
.hero-it::after { background: linear-gradient(0deg, rgba(10,25,47,0.95) 0%, rgba(10,25,47,0.7) 100%); }

.hero-half:hover {
  flex: 1.15;
}

.hero-content {
  z-index: 1;
  max-width: 500px;
}

.hero-half h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--white);
}

.hero-half p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

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

.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 30px;
  backdrop-filter: blur(10px);
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card.cloud-card {
  border-color: rgba(179, 146, 240, 0.2);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card.cloud-card::before {
  background: var(--accent-cloud);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}
.service-card.cloud-card .service-icon { color: var(--accent-cloud); }

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--white);
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ==========================================================================
   Page Headers
   ========================================================================== */
.page-header {
  padding: 150px 0 80px;
  background-color: var(--secondary-color);
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
}

/* ==========================================================================
   Contact Form & Footer (Kept from original with minor tweaks)
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; }
.contact-info-card, .contact-form {
  background: var(--glass-bg);
  padding: 40px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-main); font-weight: 500; }
.form-control {
  width: 100%; padding: 12px 15px; background-color: rgba(2, 12, 27, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 4px; color: var(--white);
  font-family: var(--font-family); font-size: 1rem; transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--accent-color); }
textarea.form-control { resize: vertical; min-height: 150px; }

footer { background-color: #020c1b; padding: 60px 0 20px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-links h4 { color: var(--white); margin-bottom: 20px; font-size: 1.1rem; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links ul li a:hover { color: var(--accent-color); }

/* Animations */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 992px) {
  .dual-hero { flex-direction: column; }
  .hero-half { min-height: 50vh; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px);
    background-color: var(--primary-color); flex-direction: column; justify-content: flex-start;
    padding: 40px 20px; overflow-y: auto;
  }
  .nav-links.active { left: 0; }
  .dropdown-menu { position: static; display: none; background: transparent; box-shadow: none; border: none; padding-left: 20px; }
  .dropdown.active .dropdown-menu { display: block; } /* for JS toggle later if needed */
  .mobile-menu-btn { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   Sales & Marketing Components
   ========================================================================== */

/* Blog & Resource Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.article-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--glass-shadow);
  border-color: var(--accent-color);
}
.article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--secondary-color);
}
.article-content {
  padding: 25px;
}
.article-category {
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: inline-block;
}
.article-title {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 15px;
  line-height: 1.4;
}
.article-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 15px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--glass-bg);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-family);
  transition: var(--transition);
}
.faq-question:hover {
  color: var(--accent-color);
}
.faq-icon {
  font-size: 1.5rem;
  color: var(--accent-color);
  transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 20px;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item.active .faq-answer {
  padding-bottom: 20px;
}

/* Testimonials */
.testimonial-card {
  background: var(--secondary-color);
  padding: 40px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  position: relative;
}
.testimonial-quote {
  font-size: 1.1rem;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 25px;
  line-height: 1.8;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}
.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 2px solid var(--accent-color);
}
.author-info h4 {
  color: var(--white);
  margin-bottom: 3px;
}
.author-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Form specifics for Lead Gen */
.lead-gen-form {
  background: var(--glass-bg);
  padding: 40px;
  border-radius: 8px;
  border: 1px solid var(--accent-color);
  box-shadow: 0 0 30px rgba(100, 255, 218, 0.1);
}

