/* ======== CSS Variables ======== */
:root {
  --primary: #FF8F00; /* Vibrant Solar Orange */
  --primary-hover: #FFB300;
  --secondary: #0A192F; /* Deep Navy Blue */
  --bg-dark: #020C1B;
  --text-light: #E6F1FF;
  --text-muted: #8892B0;
  --glass-bg: rgba(10, 25, 47, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* ======== Global Styles ======== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
  scroll-behavior: smooth;
}

img, video {
  max-width: 100%;
}

p, a, h1, h2, h3, h4, span, div {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

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

span {
  color: var(--primary);
}

/* ======== Typography & Utility ======== */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.text-center {
  text-align: center;
}

.section-title {
  margin-bottom: 3rem;
}

.spacer-sm {
  height: 1.5rem;
}

.mt-2 {
  margin-top: 2rem;
  display: inline-block;
}

/* ======== Buttons ======== */
.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 5px;
  font-weight: 600;
  border: 2px solid var(--primary);
  display: inline-block;
  cursor: pointer;
}

.btn-primary:hover {
  background: transparent;
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 143, 0, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  padding: 0.8rem 1.8rem;
  border-radius: 5px;
  font-weight: 600;
  border: 2px solid var(--text-muted);
  display: inline-block;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}

/* ======== Glassmorphism Utils ======== */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

/* ======== Navbar ======== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(2, 12, 27, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 5%;
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-img {
  height: 50px;
  width: auto;
  max-width: 180px;
  border-radius: 8px; /* Removed 50% circle to ensure logo isn't cut off */
  object-fit: contain; /* Ensures the whole logo fits perfectly */
}

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

.nav-links a {
  font-weight: 600;
  font-size: 1rem;
}

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

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

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

/* ======== Hero Section ======== */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: url('https://images.unsplash.com/photo-1508514177221-188b1cf16e9d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(2, 12, 27, 0.9) 0%, rgba(2, 12, 27, 0.6) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  color: var(--text-light);
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* ======== Partners Section ======== */
.partners {
  padding: 5rem 0;
  background-color: var(--secondary);
}

.partner-logos {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.partner-card {
  padding: 1.5rem 2.5rem;
  background: #ffffff;
  border-radius: 10px;
  border: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(255, 143, 0, 0.1);
}

.partner-card img {
  max-width: 180px;
  max-height: 80px;
  object-fit: contain;
}

/* ======== About Section ======== */
.about {
  padding: 8rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.image-placeholder img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 10px;
}

.experience-badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  padding: 2rem;
  text-align: center;
  border-radius: 10px;
}

.experience-badge .number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.features-list {
  margin-top: 1.5rem;
}

.features-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.features-list i {
  color: var(--primary);
  margin-top: 5px;
}

/* ======== Services Section ======== */
.services {
  padding: 8rem 0;
  background-color: var(--secondary);
}

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

.service-card {
  padding: 3rem 2rem;
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  background: rgba(255, 143, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.icon-wrapper i {
  font-size: 2.5rem;
  color: var(--primary);
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* ======== Projects Section ======== */
.projects {
  padding: 8rem 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.project-card {
  overflow: hidden;
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.img-container {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover img {
  transform: scale(1.1);
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

/* ======== Footer Section ======== */
.footer {
  background-color: #01060e;
  padding: 6rem 0 2rem;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.footer h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-contact i {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
}

/* ======== Animations Utils ======== */
.hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.show {
  opacity: 1;
  transform: translateY(0);
}

/* ======== Custom Project Layouts ======== */
.project-category {
  margin-bottom: 3rem;
}

.project-category h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #fff;
  border-bottom: 2px solid var(--glass-border);
  padding-bottom: 0.5rem;
  display: inline-block;
}

.project-category h3 i {
  color: var(--primary);
  margin-right: 10px;
}

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

.two-cols {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.sub-category {
  padding: 2rem;
  border-radius: 10px;
}

.sub-category h4 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.data-list li {
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 0.8rem;
}

.data-list li:last-child {
  border-bottom: none;
}

.flex-row {
  display: flex;
  align-items: center;
  padding: 1.5rem;
}

.detailed p {
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.project-info.detailed h4 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* ======== Utilities ======== */
.border-primary { border-left: 4px solid var(--primary); }
.p-4 { padding: 2rem; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.text-left { text-align: left; }
.w-100 { width: 100%; }

/* ======== Slider Simulator ======== */
.simulator-section { padding: 8rem 0; background: var(--bg-dark); }
.simulator-container { max-width: 800px; margin: 0 auto; padding: 3rem; text-align: left; border-top: 4px solid var(--primary); }
.simulator-intro h2 { margin-bottom: 0.5rem; }
.simulator-intro p { margin-bottom: 2rem; }
.input-group { margin-bottom: 1.5rem; }
.input-group label { display: block; margin-bottom: 0.5rem; color: var(--text-light); font-weight: 600; }
.input-group input, .input-group select { width: 100%; padding: 1rem; border-radius: 5px; border: 1px solid var(--glass-border); background: rgba(255,255,255,0.05); color: #fff; font-size: 1rem; }
.input-group input:focus, .input-group select:focus { outline: none; border-color: var(--primary); }
.input-group select option { background: var(--bg-dark); color: #fff; }
.hidden-element { display: none; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.result-box { background: rgba(255,255,255,0.05); padding: 1.5rem; border-radius: 8px; text-align: center; }
.result-label { display: block; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.result-value { display: block; font-size: 1.5rem; font-weight: 800; color: #fff; }
.highlight-box { background: rgba(255, 143, 0, 0.1); border: 1px solid var(--primary); }
.highlight-box .result-value { color: var(--primary); font-size: 1.8rem; }

/* ======== FAQs and Feedback ======== */
.faq-feedback { padding: 8rem 0; background: var(--secondary); }
.accordion-item { border-bottom: 1px solid var(--glass-border); margin-bottom: 1rem; }
.accordion-header { width: 100%; text-align: left; background: transparent; border: none; color: #fff; font-size: 1.1rem; font-weight: 600; padding: 1rem 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: var(--transition); }
.accordion-header:hover { color: var(--primary); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.accordion-content p { padding-bottom: 1rem; }
.accordion-item.active .accordion-content { max-height: 500px; }
.accordion-item.active .accordion-header i { transform: rotate(180deg); color: var(--primary); }

.feedback-container { padding: 3rem; border-top: 4px solid var(--primary); }
.feedback-form input, .feedback-form select, .feedback-form textarea { width: 100%; padding: 1rem; margin-bottom: 1rem; border-radius: 5px; border: 1px solid var(--glass-border); background: rgba(255,255,255,0.05); color: #fff; font-family: 'Outfit'; font-size: 1rem; }
.feedback-form input:focus, .feedback-form select:focus, .feedback-form textarea:focus { outline: none; border-color: var(--primary); }

/* ======== Chatbot UI ======== */
.chatbot-wrapper { position: fixed; bottom: 30px; right: 30px; z-index: 9999; }
.chatbot-toggle { width: 60px; height: 60px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; justify-content: center; align-items: center; font-size: 1.8rem; cursor: pointer; box-shadow: 0 5px 15px rgba(255, 143, 0, 0.3); transition: var(--transition); }
.chatbot-toggle:hover { transform: scale(1.1); }
.chatbot-container { position: absolute; bottom: 80px; right: 0; width: 350px; background: rgba(2, 12, 27, 0.95); border: 1px solid var(--glass-border); border-radius: 10px; overflow: hidden; display: none; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.chatbot-container.active { display: flex; }
.chatbot-header { background: var(--primary); color: #fff; padding: 1rem; display: flex; justify-content: space-between; align-items: center; }
.chatbot-header h4 { font-size: 1.1rem; }
.chatbot-body { padding: 1rem; height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; }
.message { padding: 0.8rem 1rem; border-radius: 10px; max-width: 80%; font-size: 0.9rem; line-height: 1.4; }
.bot-message { background: rgba(255,255,255,0.1); color: var(--text-light); align-self: flex-start; border-bottom-left-radius: 2px; }
.user-message { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 2px; }
.chatbot-input { display: flex; border-top: 1px solid var(--glass-border); }
.chatbot-input input { flex-grow: 1; padding: 1rem; background: transparent; border: none; color: #fff; outline: none; font-size: 0.95rem; }
.chatbot-input button { width: 60px; background: transparent; border: none; color: var(--primary); font-size: 1.2rem; cursor: pointer; transition: color 0.2s; }
.chatbot-input button:hover { color: #fff; }

/* ======== Responsive Design ======== */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .experience-badge {
    bottom: -20px;
    right: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 2rem 0;
    border-bottom: 1px solid var(--glass-border);
  }
  
  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .partner-card {
    padding: 1.5rem;
    width: 100%;
    text-align: center;
  }
  
  .flex-row {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .text-left {
    text-align: center;
  }
  
  .image-placeholder img {
    height: 300px; /* Reduces height on mobile so the image isn't cropped cut-off */
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .chatbot-container {
    width: 90vw;
    right: 5vw;
  }
}
