/* =====================================================
   RESET & ROOT VARIABLES (PROFESSIONAL HIGH-CONTRAST)
===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

:root {
  --primary: #2563eb;          /* Royal Electric Blue */
  --primary-hover: #1d4ed8;    /* Darker Blue */
  --secondary: #0ea5e9;        /* Sky Blue Accent */
  --bg-dark: #0f172a;          /* Slate Dark Background */
  --bg-card-dark: #1e293b;     /* Card Dark Background */
  --bg-light: #f8fafc;         /* Pure Light Section Background */
  --card-light: #ffffff;       /* Pure White Card */
  --text-dark: #0f172a;        /* High Contrast Dark Text */
  --text-muted-dark: #475569;  /* Muted Dark Text */
  --text-light: #f8fafc;       /* Crisp White Text */
  --text-muted-light: #94a3b8; /* Soft White Subtext */
  --border-light: #e2e8f0;     /* Border for Light Cards */
  --border-dark: #334155;      /* Border for Dark Cards */
  --gradient-btn: linear-gradient(135deg, #2563eb, #0284c7);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* =====================================================
   NAVBAR & LOGO
===================================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border-dark);
  backdrop-filter: blur(12px);
}

header.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.navbar {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: var(--text-light);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 42px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
  padding: 2px;
}

.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted-light);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--text-light);
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -6px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-btn {
  padding: 10px 24px;
  border-radius: 6px;
  background: var(--gradient-btn);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

.nav-btn::after {
  display: none !important;
}

.menu-btn {
  display: none;
  color: var(--text-light);
  font-size: 28px;
  cursor: pointer;
}

/* =====================================================
   HERO SECTION
===================================================== */

.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--text-light);
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-dark);
}

.hero::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  right: -100px;
  top: 50px;
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-text small {
  display: inline-block;
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: rgba(14, 165, 233, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(14, 165, 233, 0.2);
  margin-bottom: 15px;
}

.hero h1 {
  font-size: clamp(42px, 5.5vw, 68px);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
  font-weight: 800;
}

.hero h1 span {
  color: #38bdf8;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-muted-light);
  max-width: 600px;
  font-size: 18px;
  margin-bottom: 35px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-btn);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.btn-outline {
  border: 2px solid var(--border-dark);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
}

.btn-outline:hover {
  background: #ffffff;
  color: var(--text-dark);
  border-color: #ffffff;
}

/* Hero visual */

.hero-visual {
  position: relative;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tech-circle {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 2px dashed rgba(56, 189, 248, 0.3);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: rotate 25s linear infinite;
}

.tech-circle::before,
.tech-circle::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-circle::before {
  width: 250px;
  height: 250px;
}

.tech-circle::after {
  width: 160px;
  height: 160px;
}

.core {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.4);
  animation: pulse 2.5s infinite;
  z-index: 2;
  overflow: hidden;
  padding: 5px;
  border: 3px solid var(--primary);
}

.core-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.floating {
  position: absolute;
  padding: 10px 20px;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid var(--border-dark);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  font-weight: 700;
  font-size: 14px;
  color: var(--secondary);
}

.f1 { top: 40px; left: 10px; }
.f2 { top: 110px; right: -10px; }
.f3 { bottom: 60px; left: 20px; }
.f4 { bottom: 20px; right: 30px; }

@keyframes rotate {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* =====================================================
   SECTION COMMON
===================================================== */

section {
  padding: 100px 0;
}

.section-heading {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 60px;
}

.section-heading small {
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
}

.section-heading h2 {
  font-size: clamp(32px, 4vw, 44px);
  margin: 10px 0 16px;
  color: var(--text-dark);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-heading p {
  color: var(--text-muted-dark);
  font-size: 17px;
}

/* =====================================================
   ABOUT SECTION
===================================================== */

.about {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h3 {
  font-size: 34px;
  margin-bottom: 20px;
  color: var(--text-dark);
  font-weight: 800;
}

.about-content p {
  color: var(--text-muted-dark);
  margin-bottom: 20px;
  font-size: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.feature {
  background: var(--card-light);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.feature h4 {
  margin-bottom: 8px;
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 700;
}

.feature p {
  font-size: 13px;
  margin: 0;
  color: var(--text-muted-dark);
}

.about-card {
  min-height: 400px;
  background: var(--bg-dark);
  border-radius: 20px;
  padding: 45px;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-dark);
}

.about-card::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 40px solid rgba(37, 99, 235, 0.15);
  right: -80px;
  top: -80px;
}

.about-card h3 {
  font-size: 42px;
  position: relative;
  margin-bottom: 20px;
  color: var(--secondary);
  font-weight: 800;
}

.about-card p {
  color: var(--text-muted-light);
  position: relative;
  font-size: 17px;
}

/* =====================================================
   SERVICES SECTION
===================================================== */

.services {
  background: #ffffff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  padding: 35px 28px;
  border: 1fr solid var(--border-light);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.service-number {
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 20px 0;
  border: 1px solid #dbeafe;
}

.service-card h3 {
  margin-bottom: 12px;
  color: var(--text-dark);
  font-size: 20px;
  font-weight: 700;
}

.service-card p {
  color: var(--text-muted-dark);
  font-size: 14px;
  line-height: 1.6;
}

/* =====================================================
   WHY US SECTION
===================================================== */

.why {
  background: var(--bg-dark);
  color: var(--text-light);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.why .section-heading h2 {
  color: var(--text-light);
}

.why .section-heading p {
  color: var(--text-muted-light);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  padding: 32px 24px;
  border: 1px solid var(--border-dark);
  border-radius: 16px;
  background: var(--bg-card-dark);
  box-shadow: var(--shadow-md);
}

.why-card span {
  font-size: 36px;
  color: var(--secondary);
  font-weight: 800;
}

.why-card h3 {
  margin: 16px 0 10px;
  color: var(--text-light);
  font-size: 20px;
  font-weight: 700;
}

.why-card p {
  color: var(--text-muted-light);
  font-size: 14px;
  line-height: 1.6;
}

/* =====================================================
   STATS / COUNTERS
===================================================== */

.stats {
  background: #ffffff;
  padding: 70px 0;
  border-bottom: 1px solid var(--border-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 24px;
}

.stat h3 {
  font-size: 48px;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 5px;
}

.stat p {
  color: var(--text-dark);
  font-weight: 700;
  font-size: 15px;
}

/* =====================================================
   TECHNOLOGY SECTION
===================================================== */

.technology {
  background: var(--bg-light);
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 850px;
  margin: auto;
}

.tech {
  padding: 14px 28px;
  border: 1px solid var(--border-light);
  border-radius: 30px;
  font-weight: 700;
  font-size: 15px;
  background: #ffffff;
  color: var(--text-dark);
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.tech:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* =====================================================
   PROJECTS SECTION
===================================================== */

.projects {
  background: #ffffff;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.project-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-image {
  height: 240px;
  background: linear-gradient(135deg, #1e293b, #2563eb);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.project-info {
  padding: 28px;
}

.project-info small {
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-info h3 {
  margin: 8px 0 10px;
  color: var(--text-dark);
  font-size: 22px;
  font-weight: 700;
}

.project-info p {
  color: var(--text-muted-dark);
  font-size: 15px;
}

/* =====================================================
   FOUNDERS SECTION
===================================================== */

.founders {
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 850px;
  margin: auto;
}

.founder {
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  background: #ffffff;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.founder:hover {
  transform: translateY(-6px);
}

.founder-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  overflow: hidden;
  border: 4px solid var(--primary);
  background: var(--bg-light);
  box-shadow: var(--shadow-sm);
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.founder h3 {
  font-size: 22px;
  color: var(--text-dark);
  font-weight: 700;
}

.founder span {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}

.founder p {
  color: var(--text-muted-dark);
  margin-top: 14px;
  font-size: 14px;
}

/* =====================================================
   COMPANY INFO SECTION
===================================================== */

.company-info {
  background: #ffffff;
}

.info-box {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--border-light);
  max-width: 900px;
  margin: auto;
  box-shadow: var(--shadow-sm);
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.info-row:last-child {
  border-bottom: none;
}

.info-row strong {
  color: var(--text-dark);
  font-weight: 700;
}

.info-row span {
  color: var(--text-muted-dark);
  text-align: right;
  font-weight: 500;
}

/* =====================================================
   CTA SECTION
===================================================== */

.cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  text-align: center;
  border-top: 1px solid var(--border-dark);
}

.cta h2 {
  font-size: clamp(34px, 4.5vw, 52px);
  margin-bottom: 16px;
  font-weight: 800;
}

.cta p {
  max-width: 700px;
  margin: 0 auto 35px;
  color: var(--text-muted-light);
  font-size: 18px;
}

.cta .btn {
  background: #ffffff;
  color: var(--bg-dark);
  font-weight: 800;
}

.cta .btn:hover {
  background: var(--secondary);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
}

/* =====================================================
   CONTACT SECTION
===================================================== */

.contact {
  background: var(--bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
}

.contact-info h3 {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--text-dark);
  font-weight: 800;
}

.contact-info p {
  color: var(--text-muted-dark);
  margin-bottom: 30px;
  font-size: 16px;
}

.contact-item {
  margin-bottom: 20px;
}

.contact-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text-dark);
  font-size: 15px;
}

.contact-item span {
  color: var(--text-muted-dark);
  font-size: 15px;
}

.contact-form {
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  outline: none;
  background: #ffffff;
  color: var(--text-dark);
  font-size: 15px;
  transition: border-color 0.2s ease;
}

.form-group textarea {
  height: 130px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

#formMessage {
  margin-top: 15px;
  color: #16a34a;
  font-weight: 700;
  display: none;
}

/* =====================================================
   FOOTER SECTION
===================================================== */

footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 70px 0 30px;
  border-top: 1px solid var(--border-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

footer h3 {
  margin-bottom: 18px;
  color: var(--text-light);
  font-size: 20px;
  font-weight: 700;
}

footer p,
footer a {
  color: var(--text-muted-light);
  font-size: 14px;
  transition: color 0.2s ease;
}

footer ul li {
  margin-bottom: 12px;
}

footer a:hover {
  color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 25px;
  text-align: center;
  color: var(--text-muted-light);
  font-size: 14px;
}

/* =====================================================
   BACK TO TOP BUTTON
===================================================== */

#topBtn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--gradient-btn);
  color: #ffffff;
  cursor: pointer;
  display: none;
  z-index: 999;
  font-size: 20px;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  transition: transform 0.2s ease;
}

#topBtn:hover {
  transform: translateY(-3px);
}

/* =====================================================
   SCROLL ANIMATIONS
===================================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   RESPONSIVE DESIGN
===================================================== */

@media (max-width: 1000px) {
  .services-grid,
  .why-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-text {
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    height: 360px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 80%;
    height: calc(100vh - 80px);
    background: var(--bg-dark);
    border-left: 1px solid var(--border-dark);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 40px;
    transition: right 0.4s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    right: 0;
  }

  .menu-btn {
    display: block;
  }

  .about-grid,
  .founders-grid,
  .projects-grid,
  .feature-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .info-row {
    flex-direction: column;
    gap: 6px;
  }

  .info-row span {
    text-align: left;
  }
}

@media (max-width: 550px) {
  section {
    padding: 70px 0;
  }

  .services-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 16px;
  }

  .tech-circle {
    width: 270px;
    height: 270px;
  }

  .floating {
    font-size: 12px;
    padding: 8px 14px;
  }

  .f1 { left: 0; }
  .f2 { right: 0; }

  .contact-form {
    padding: 24px;
  }
}