/* ===== Base / Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root{
  --brand-blue:#3F3FFF;
  --accent:#00CFCF;
  --muted:#F5F5F5;
  --dark:#0b0b2e;
  --max-width:1100px;
  --gap:20px;
  --radius:12px;
  --container-pad:20px;
}
html,body { height:100%; }
body {
  font-family: 'Inter', Arial, sans-serif;
  line-height:1.6;
  color:#333;
  background:var(--muted);
  display:flex;
  flex-direction:column;
  min-height:100vh; /* sticky footer */
  scroll-behavior: smooth;
}

/* ===== General container ===== */
.container {
  width:100%;
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 var(--container-pad);
}

/* ===== Navbar (shared) ===== */
.navbar {
  background:#fff;
  position:sticky;
  top:0;
  z-index:120;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.navbar-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}
.logo img {
  width:180px;
  max-width:100%;
  height:auto;
  display:block;
}
.nav-links {
  display:flex;
  gap:var(--gap);
  align-items:center;
}
.nav-links a {
  color:var(--brand-blue);
  text-decoration:none;
  font-weight:600;
  position:relative;
  padding:6px 4px;
}
.nav-links a::after {
  content:''; position:absolute; left:0; bottom:-6px; width:0; height:2px; background:var(--accent); transition:width .25s;
}
.nav-links a:hover::after { width:100%; }
.nav-links a:hover { color:#6C63FF; }

/* Hamburger for mobile */
.nav-toggle { display:none; background:none; border:none; width:44px; height:44px; align-items:center; justify-content:center; cursor:pointer; }
.hamburger { display:block; position:relative; width:22px; height:2px; background:#333; }
.hamburger::before, .hamburger::after { content:''; position:absolute; left:0; width:22px; height:2px; background:#333; transition: transform .2s ease; }
.hamburger::before{ top:-7px; }
.hamburger::after{ top:7px; }

/* ===== Hero Section (index only) ===== */
.hero {
  position:relative;
  min-height:62vh;
  display:grid;
  place-items:center;
  text-align:center;
  color:white;
  background: var(--dark) url('images/hero.png') center/cover no-repeat;
}
.hero::before{
  content:''; position:absolute; inset:0;
  background: linear-gradient(135deg, rgba(63,63,255,0.66), rgba(108,99,255,0.5), rgba(0,207,207,0.35));
}
.hero-content { position:relative; z-index:1; padding:80px 0; }
.hero h1 { font-size:2.8rem; margin-bottom:12px; line-height:1.05; }
.hero p { color:white; font-size:1.15rem; margin-bottom:18px; max-width:900px; margin-left:auto; margin-right:auto; text-align: center;}

/* CTA buttons */
.cta-button { display:inline-block; background:var(--accent); color:white; padding:14px 28px; border-radius:10px; font-weight:700; text-decoration:none; transition:transform .18s ease, box-shadow .18s ease; }
.cta-button:hover { transform:translateY(-4px); box-shadow:0 10px 30px rgba(0,207,207,0.18); }

/* ===== Sections (shared) ===== */
section {
  padding:70px 0;
  width:100%;
  background:linear-gradient(180deg,#fff 0%, #F0F0FF 100%);
  border-radius:var(--radius);
  margin:40px auto;
}
section .container { padding-top:10px; padding-bottom:10px; }
h2 { color:var(--brand-blue); margin-bottom:18px; font-size:1.9rem; font-weight:600; }
p { font-size:1.05rem; color:#333; margin-bottom:12px; }

/* Project image */
.project-main { width:100%; max-width:900px; display:block; margin:18px auto; border-radius:10px; height:auto; object-fit:cover; }

/* Icon row */
.icon-row { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px,1fr)); gap:18px; margin:18px 0 24px; }
.icon-card { background:#fff; padding:18px; border-radius:12px; box-shadow:0 6px 18px rgba(0,0,0,0.05); text-align:center; }
.icon-card img { width:72px; height:72px; object-fit:contain; margin-bottom:10px; }

/* ===== Contact Page ===== */
.contact {
  text-align: center;
  padding: 80px 20px;
}
.contact h1 {
  font-size: 2.4rem;
  margin-bottom: 16px;
  color: var(--brand-blue);
}
.contact p {
  margin-bottom: 40px;
  font-size: 1.1rem;
  color: #555;
}

.contact-container {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  text-align: left;
}

.contact-form label {
  font-weight: 600;
  margin: 10px 0 6px;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 6px rgba(0,207,207,0.2);
}

.contact-form button {
  width: 100%;
  padding: 14px;
  background: var(--brand-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
  background: #6C63FF;
  transform: translateY(-2px);
}

.contact-info {
  flex: 1;
  min-width: 260px;
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  text-align: left;
}

.contact-info h3 {
  margin-bottom: 14px;
  font-size: 1.4rem;
  color: var(--accent);
}

.contact-info p {
  margin-bottom: 12px;
  font-size: 1rem;
  color: #444;
}
.contact-info a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}
.contact-info a:hover {
  color: var(--accent);
}

/* ===== About Page sections ===== */
.about-section { padding:80px 20px; text-align:center; }
.about-section h2 { font-size:2.6rem; margin-bottom:30px; }
.about-section p { max-width:900px; margin:auto; font-size:1.1rem; text-align:justify; line-height:1.7; }
.mission-vision { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px,1fr)); gap:30px; padding:60px 20px; }
.mission, .vision { background:#fff; padding:40px 25px; border-radius:12px; box-shadow:0 8px 20px rgba(0,0,0,0.08); text-align:justify; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.mission:hover, .vision:hover { transform:translateY(-4px); box-shadow:0 12px 28px rgba(0,0,0,0.12); }
.mission h3, .vision h3 { margin-bottom:20px; color:var(--accent); font-size:1.5rem; }

/* ===== Footer (shared) ===== */
footer {
  margin-top:auto;
  background:var(--dark);
  color:white;
  padding:18px 0;
}
.footer-inner { display:flex; justify-content:space-between; align-items:center; gap:15px; flex-wrap:wrap; max-width:1100px; margin:auto; padding:0 20px; }
.footer-right a { color:var(--accent); text-decoration:none; margin-left:12px; font-size:1.3rem; transition:color 0.3s; }
.footer-right a:hover { color:#6C63FF; }
.footer-left p{color: gray;}

/* ===== Intersection animation helper ===== */
.section-animate { opacity:0; transform:translateY(18px); transition:all .6s ease-out; }
.section-animate.visible { opacity:1; transform:none; }

/* ===== Responsive ===== */
@media (min-width: 1400px) { :root { --max-width:1200px; } .hero h1 { font-size:3.4rem; } }
@media (max-width: 1024px) { .hero h1 { font-size:2.6rem; } .logo img { width:160px; } section { margin:36px auto; padding:60px 0; } }
@media (max-width: 768px) {
  .nav-toggle { display:flex; align-items:center; justify-content:center; }
  .nav-links { position:absolute; top:70px; right:20px; background:#fff; flex-direction:column; display:none; padding:12px; gap:10px; border-radius:10px; box-shadow:0 12px 30px rgba(0,0,0,0.12); min-width:160px; z-index:130; }
  .nav-links.open { display:flex; }
  .nav-links a { color:var(--dark); }
  .logo img { width:150px; }
  .hero { min-height:56vh; }
  .hero h1 { font-size:2.2rem; }
  .hero p { font-size:1.05rem; padding:0 10px; }
  .footer-inner { flex-direction:column; text-align:center; }
  section { margin:28px auto; padding:40px 0; border-radius:10px; }
  .mission-vision { grid-template-columns:1fr; padding:40px 20px; }
  .contact-container { flex-direction: column; gap: 20px; }
}
@media (max-width: 480px) {
  .logo img { width:125px; }
  .hero h1 { font-size:1.8rem; }
  h2 { font-size:1.4rem; }
  .contact form { width:100%; }
  .project-main { max-width:100%; }
  .about-section { padding:40px 15px; }
  .mission, .vision { padding:25px 15px; }
}

/* Make all text justified */
p, li { text-align:justify; }

/* ===== Modal Styles ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.6);
}
.modal-content {
  background: #fff;
  margin: 8% auto;
  padding: 20px;
  border-radius: 12px;
  max-width: 650px;
  position: relative;
}
.modal-content img.project-main {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  margin: 12px 0;
}
.close {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.project-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
.project-card::after {
  content: "Click to view details";
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 14px;
  padding: 5px 10px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project-card:hover::after { opacity: 1; }

.icon-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.icon-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.icon-card:hover .project-overlay { opacity: 1; }


/* =================== TESTIMONIALS STYLES =================== */
.testimonials {
  text-align: center;
  padding: 60px 20px;
  background: #f9f9f9;
}

.testimonials h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
}

/* Carousel container */
.carousel {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
}

/* Testimonial cards */
.testimonial-card {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  padding: 30px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-card.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.testimonial-card p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 15px;
  font-style: italic;
}

.testimonial-card h4 {
  margin: 10px 0 5px;
  font-size: 1.2rem;
  color: #222;
}

.testimonial-card span {
  color: #777;
  font-size: 0.95rem;
}

/* Carousel controls */
.carousel-controls {
  margin-top: 20px;
}

.carousel-controls button {
  background: #333;
  color: #fff;
  border: none;
  font-size: 1.5rem;
  margin: 0 8px;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-controls button:hover {
  background: #555;
}

/* ===== Homepage Contact Form ===== */
.contact-home {
  text-align: center;
  padding: 70px 20px;
  background: linear-gradient(180deg,#fff 0%, #f5f9ff 100%);
  border-radius: var(--radius);
}

.contact-home h2 {
  font-size: 2rem;
  color: var(--brand-blue);
  margin-bottom: 20px;
}

.contact-home form {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-home input,
.contact-home textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-home input:focus,
.contact-home textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 6px rgba(0,207,207,0.2);
}

.contact-home button {
  padding: 14px;
  background: var(--brand-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contact-home button:hover {
  background: #6C63FF;
  transform: translateY(-2px);
}
