/* =====================================================
   homepage.css — Complete Responsive + Dark Mode Version
   ===================================================== */

/* ---------- RESET & ROOT VARS ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root{
  --nav-h: 68px;                 
  --bg: #d6ebfc;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --primary: #0b69ff;
  --accent: #06b6d4;
  --hero-1: #3b5ed1;
  --hero-2: #717477;
  --shadow: 0 10px 30px rgba(16,24,40,0.08);
  --radius: 12px;
  --container-pad: 20px;
  --max-w: 1100px;
  --focus: 3px solid rgba(11,105,255,0.14);
  --transition: 180ms ease;
}

/* dark-mode variables */
body.dark-mode {
  --bg: #0b1220;
  --surface: #0f1724;
  --text: #e6eef8;
  --muted: #9aa6bd;
  --primary: #4e9eff;
  --accent: #06b6d4;
  --hero-1: #2b4fb5;
  --hero-2: #42464f;
  --shadow: 0 10px 30px rgba(0,0,0,0.45);
  --focus: 3px solid rgba(78,158,255,0.12);
}

/* ---------- BASE ---------- */
html, body { height: 100%; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .25s ease, color .25s ease;
  padding-top: var(--nav-h);
}

/* container helper */
.container{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  width: calc(100% - (var(--container-pad) * 2));
}

/* =========================
   NAVBAR
   ========================= */
.home-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1200;
    margin-top: 20px;

  display: flex;
  justify-content: center;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.home-nav.scrolled {
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 28px rgba(16,24,40,0.12);
  border-bottom: 1px solid rgba(16,24,40,0.06);
  top: 50;
}

body.dark-mode .home-nav.scrolled {
  background: rgba(7,12,20,0.6);
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.home-nav .nav-container {
  width: 100%;
  max-width: var(--max-w);
  padding: 0 calc(var(--container-pad));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* logo */
.home-nav .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}
.home-nav .logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-right: 10px;
}
.home-nav .company-name {
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
}

/* nav links */
.home-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.home-nav .nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15.5px;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s, transform 0.12s;
}
.home-nav .nav-links a:hover {
  background: rgba(11,105,255,0.06);
  color: var(--primary);
  transform: translateY(-2px);
}
.home-nav .nav-links a:focus {
  outline: none;
  box-shadow: var(--focus);
}

/* theme button */
.home-nav .theme-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg,#1f72ff,#0f4fe0);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,0.45);
  transition: transform 0.12s, background 0.2s;
  z-index: 20;
}
.home-nav .theme-btn:hover {
  transform: translateY(-2px);
  background: rgba(90,74,234,0.06);
  color: wheat;
}

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 25;
}
.hamburger .bar {
  height: 3px;
  width: 100%;
  background-color: var(--text);
  border-radius: 3px;
}

/* mobile responsiveness */
@media (max-width: 768px) {
  .home-nav {
  position: fixed;
  top: 0;}
  .home-nav .nav-links {
    position: absolute;
    top: 100%; 
    right: 0;
    background-color: var(--surface);
    flex-direction: column;
    width: 200px;
    padding: 1rem;
    display: none;
    z-index: 15;
  }
  .home-nav .nav-links.show { display: flex; }
  .hamburger { display: flex; }
  .theme-btn { margin-left: 8px; }
}

/* very narrow screens */
@media (max-width: 720px) {
  .home-nav .nav-container {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px calc(var(--container-pad));
  }
  .home-nav .theme-btn {
    align-self: flex-end;
    margin: 6px 0;
  }
}

/* =========================
   HERO
   ========================= */
.hero{
  margin-top: 90px;
  text-align:center;
  padding: 72px 18px 50px;
  background: linear-gradient(135deg,var(--hero-1),var(--hero-2));
  color:#fff;
  border-radius: 0 0 22px 22px;
  box-shadow: inset 0 -14px 30px rgba(0,0,0,0.12);
  position: relative;
  overflow: visible;
}
.hero img{
  display:block;
  margin: 20px auto;
  width: min(360px, 42%);
  max-width: 360px;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.18);
  padding: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
}
.hero .btn{
  display:inline-block;
  margin-top: 14px;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight:800;
  background: #ffffff;
  color: var(--hero-1);
  box-shadow: 0 12px 36px rgba(0,0,0,0.16);
  text-decoration:none;
  transition: transform .14s ease;
}
.hero .btn:hover{ transform: translateY(-5px); }
body.dark-mode .hero .btn{
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.06);
}

/* =========================
   SERVICES
   ========================= */
.info-section{ padding: 54px 0; }
.service-list{
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 18px;
  padding: 0;
}
.service-list li{
  background: var(--surface);
  padding: 16px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  display:flex;
  gap:14px;
  align-items:flex-start;
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 120px;
  overflow: hidden;
}
@media (max-width: 520px){
  .service-list{ grid-template-columns: 1fr; gap:12px; }
  .service-list li{ flex-direction: column; align-items:flex-start; min-height: auto; padding: 14px; }
  .service-list i{ width:46px; height:46px; margin-bottom:6px; }
}

/* icon circle */
.service-list i{
  font-size: 18px;
  color: #fff;
  width:48px; height:48px;
  display:flex; align-items:center; justify-content:center;
  border-radius:12px;
  background: linear-gradient(180deg,var(--primary),var(--accent));
  box-shadow: 0 8px 22px rgba(11,105,255,0.12);
  flex-shrink:0;
}
.service-list li > *:not(i){
  flex: 1 1 auto;
  min-width: 0;
}
.service-list li h4, .service-list li strong { font-size: 1rem; margin-bottom: 6px; color: var(--text); }
.service-list li small{ display:block; color: var(--muted); font-size: 0.95rem; line-height:1.35; }
.service-list li:hover{ transform: translateY(-6px); box-shadow: 0 18px 48px rgba(0,0,0,0.12); }

/* =========================
   ABOUT, COLLABORATORS, REVIEWS, FAQ
   ========================= */
   /* ---------- About Us Section ---------- */
.about-us {
    padding: 3rem 1rem;
    background: var(--bg);
    color: var(--text);
    transition: background var(--transition), color var(--transition);
}

.about-us .about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-us .about-content img {
    flex: 1 1 300px;
    max-width: 500px;
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.about-us .about-content img:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-strong);
}

.about-us .about-content .text {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-us .about-content .text p {
    line-height: 1.6;
    font-size: clamp(1rem, 1.1vw, 1.1rem);
}

.about-us .about-content .text .btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background var(--transition), transform var(--transition);
    width: fit-content;
}

.about-us .about-content .text .btn:hover {
    background: var(--primary-600);
    transform: translateY(-2px);
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .about-us .about-content {
        flex-direction: column;
        text-align: center;
    }
    .about-us .about-content .text .btn {
        margin: 0 auto;
    }
}

/* Dark mode support */
body.dark-mode .about-us {
    background: #0b1220;
    color: #e6eef8;
}

body.dark-mode .about-us .about-content img {
    box-shadow: 0 6px 20px rgba(255,255,255,0.06);
}

body.dark-mode .about-us .about-content .text .btn {
    background: linear-gradient(180deg, var(--primary-600), var(--primary));
    color: #fff;
}

/* ... keep your existing sections styling as before ... */
/* =========================
   COLLABORATORS / PARTNERS
   ========================= */
.section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--text);
}

.partners {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner img {
  width: 140px;        /* fixed width */
  height: 140px;       /* fixed height to make square */
  object-fit: contain;  /* maintain aspect ratio */
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner img:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.partner p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 768px) {
  .partners {
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .partners {
    flex-direction: column;
    gap: 20px;
  }

  .partner img {
    width: 120px;
    height: 120px;
  }

  .section h2 {
    font-size: 1.6rem;
  }
}
.review-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.review {
  background: var(--surface);
  padding: 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  color: var(--text);
}
.faq-list {
  margin-top: 18px;
}
.faq-item {
  background: var(--surface);
  padding: 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.faq-item strong {
  display: block;
  margin-bottom: 6px;
}

/* =========================
   FOOTER
   ========================= */
footer{
  padding: 22px;
  margin-top: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
  border-top: 1px solid rgba(0,0,0,0.06);
}
footer p{ text-align:center; color: var(--muted); font-size: 0.95rem; }
.social-links{
  display:flex; gap:12px; justify-content:center; margin-top:12px;
}
.social-links a{
  width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:8px; text-decoration:none; color:var(--text);
  background: var(--surface); box-shadow: var(--shadow);
  transition: transform .14s ease, background .14s;
}
.social-links a:hover{ transform: translateY(-5px); background: linear-gradient(180deg,var(--primary),var(--accent)); color:#fff; }

/* =========================
   RESPONSIVE TWEAKS
   ========================= */
@media (max-width: 980px){
  .service-list{ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap:14px; }
  .about-content{ padding: 12px; }
  .hero h1{ font-size: 2rem; }
  .partner{ width: 150px; }
}
@media (max-width: 560px){
  body{ padding-top: calc(var(--nav-h) + 6px); }
  .hero{ padding: 44px 12px; border-radius: 0 0 14px 14px; }
  .hero h1{ font-size: 1.5rem; }
  .hero p{ font-size: 0.95rem; }
  nav{ padding: 10px; }
  .partner{ width: 130px; }
  .reviews{ grid-template-columns: 1fr; }
  .service-list{ grid-template-columns: 1fr; gap:12px; }
  .service-list li{ min-height: auto; }
  .about-content img{ width: 84%; }
}
