/* =========================================================
   XO FOR SOFTWARE — FULL OPTIMIZED STYLESHEET
   Clean, responsive, and pixel-perfect according to UI
========================================================= */

/* ============= ROOT VARIABLES ============= */
:root {
  --color-dark-eclipse: #1e1e24;
  --color-closed-shutter: #1e1e24;
  --color-jack-and-coke: #92140c;
  --color-fatback: #fff8f0;
  --color-peach-orange: #ffcf99;
  --color-white: #ffffff;
  --color-muted: #a5aec7;

  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.22);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ============= GLOBAL STYLES ============= */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans Pro", sans-serif;
  background-color: var(--color-fatback);
  color: var(--color-closed-shutter);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1400px, 91%);
  margin: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s ease;
  border: none;
}

.btn-primary {
  background-color: #92140c;
  color: var(--color-white);
  
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

/* Section Titles */
.section-title {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  color: var(--color-muted);
}

/* =========================================================
   HEADER / NAVBAR
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  background-color: var(--color-dark-eclipse);
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo img {
  height: 40px;
}

.logo-text {
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
}

.main-nav a {
  color: white;
  position: relative;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.8rem;    /* space between nav and the button */
}

.main-nav a::after {
  content: "";
  width: 0;
  height: 2px;
  background-color: #92140c;
  position: absolute;
  bottom: -5px;
  left: 0;
  transition: 0.25s;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Mobile Navigation Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 4px;
}

/* =========================================================
   HERO SECTION
========================================================= */

.hero-section {
  position: relative;
  min-height: 100vh;
  background-color: var(--color-dark-eclipse);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 0px;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1200px, 90%);
  margin: auto;
  gap: 4rem;
  padding: 5rem 0;
}

.hero-text {
  flex: 1;
  margin: 5rem;
}

.hero-text h1 {
  font-size: 3rem;
  color: white;
  font-weight: 700;
  line-height: 1.3;
}

.hero-text p {
  margin: 1.2rem 0 2rem;
  color: #d9e2ff;
  max-width: 480px;
  font-size: 1.1rem;
}

.hero-logo-card {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.hero-logo-card img {
  width: 300px;
  margin-right: 4rem;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(30,30,36, 0.25),
    rgba(30,30,36, 0.25)
  );
}

/* =========================================================
   ABOUT
========================================================= */

.about-section {
  background: #fef3e8;
  padding: 80px 0;
}

.about-wrapper {
  max-width: 1100px;
  margin: auto;
}

.about-card {
  display: flex;
  align-items: center;
  gap: 40px;
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.08);
}

.about-image img {
  width: 500px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: #122041;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4b556b;
  max-width: 500px;
}

.about-card-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about-card-body {
  padding: 2.6rem 2.8rem;
}

.about-card-body h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.about-card-body p {
  line-height: 1.65;
  font-size: 1.05rem;
  color: #505262;
}

.slider-arrow.left,
.team-arrow.left { left: -15px; }

.slider-arrow.right,
.team-arrow.right { right: -15px; }

/* ============================
      TEAM CAROUSEL (NEW)
===============================*/
.team-section {
  background: #fef3e8;
  padding: 70px 0;
}

.team-carousel {
  position: relative;
  max-width: 1400px;
  margin: auto;
  overflow: visible;
}

/* Left & right shadow */
.team-carousel::before,
.team-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  width: 90px;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.team-carousel::before {
  left: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.10), rgba(0,0,0,0));
}

.team-carousel::after {
  right: 0;
  background: linear-gradient(to left, rgba(0,0,0,0.10), rgba(0,0,0,0));
}

.team-track-wrapper {
  overflow: hidden;
  padding: 20px 0;
}

.team-track {
  display: flex;
  gap: 26px;
  padding-left: 10px;
  transition: transform 0.35s ease-out;
}

.team-track::-webkit-scrollbar { 
  display: none;                /* Chrome, Safari */
}

/* Team Card */
.team-card {
  min-width: 240px;
  background: #ffffff;
  padding: 1.4rem;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12),
              0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.team-card:focus {
  outline: 3px solid #1e1e24;
  outline-offset: 6px;
  border-radius: 18px;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18),
              0 6px 18px rgba(0, 0, 0, 0.10);
}

.team-photo {
  width: auto;
  height: 260px;
  object-fit: contain;
  display: block;
  margin: 0 auto 10px auto;
  filter: drop-shadow(0px 4px 10px rgba(0,0,0,0.12));
}

.team-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.team-role {
  font-size: 0.9rem;
  color: #666;
}

/* Arrow Buttons */
.team-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 34px;
  cursor: pointer;
  color: #1e1e24;
  transition: 0.3s;
  z-index: 20 !important; 
}

.team-arrow:hover {
  color: #1e1e24;
}

.team-arrow.left {
  left: -40px;
}

.team-arrow.right {
  right: -40px;
}

/* =========================================================
   PROJECTS — PIXEL PERFECT UI
========================================================= */

.projects-section {
  background: linear-gradient(180deg, #1e1e24 0%, #25252e 100%);
  padding: 70px 0;
  text-align: center;
  color: white;
}

.projects-section .section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #ffffff;
}

.projects-section .section-subtitle {
  font-size: 1rem;
  color: #d7e2f5;
  max-width: 620px;
  margin: 0 auto 35px;
  line-height: 1.6;
  opacity: 0.95;
}

.projects-slider {
  max-width: 1100px;   /* perfect for 3 cards + spacing */
  margin: 100px auto;
  position: relative;
  padding: 0 40px;     /* UI left/right breathing space */
}

.slider-track.projects-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 20px;
}

.projects-track::-webkit-scrollbar { display: none; }

/* PROJECT CARD — EXACT UI */
.project-card {
  min-width: 300px;
  max-width: 320px;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.30);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.25s ease;
}

.project-card:hover {
  transform: translateY(-8px);
}

/* IMAGE EXACT UI RATIO */
.project-img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  border-bottom: 1px solid #f0f0f0;
}

/* BODY */
.project-body {
  padding: 16px 18px;
}

.project-title {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #122041;
}

.project-text {
  font-size: 0.90rem;
  line-height: 1.45;
  color: #4b556b;
}

/* ARROWS — EXACT SIZE & POSITION */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 34px;
  cursor: pointer;
  color: #ffffff;
  transition: 0.3s;
}

.slider-arrow:hover {
  color: #630f0f;
}

.slider-arrow.prev { left: 10px; }
.slider-arrow.next { right: 10px; }

/* =========================================================
   SERVICES — PERFECT UI MATCH
========================================================= */

.services-section {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center; 
  background: radial-gradient(circle at top left, rgba(255, 0, 72, 0.22), transparent 70%),
              radial-gradient(circle at bottom right,#1e1e24, transparent 70%),
              var(--color-dark-eclipse);
  padding: 0;
  color: white;
}

.services-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 4rem;
  width: 100%;
  margin: 4rem 4rem;
}

/* LEFT SIDE */
.services-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.services-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.services-description {
  font-size: 1.1rem;
  max-width: 540px;
  color: #d4e0f5;
  line-height: 1.7;
}

.services-section .container,
.services-wrapper {
  padding-left: 60px;
  padding-right: 60px;
}

/* RIGHT SIDE — CARDS */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 1rem 1.6rem;
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.18);
  transition: 0.25s ease;
}

.service-card:hover {
  transform: translateY(-8px);
}

.service-icon {
  height: 48px;
  width: 48px;
  background: #e8f1ff;
  border-radius: 12px;
  font-size: 1.4rem;
  display: flex;
  justify-content: center;
  
  align-items: center;
  color: #1e1e24;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #92140c;
}

.service-card p {
  color: #4c5874;
  line-height: 1.55;
  font-size: 0.95rem;
}

/* ==========================================
   ACHIEVEMENTS — UI PERFECT
========================================== */

.achievements-section {
  background: #fff7ef;
  padding: 80px 20px;
  text-align: center;
}

.achievement-slider {
  position: relative;
  margin-top: 40px;
}

.achievement-track-wrapper {
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 18px;
}

.achievement-track {
  display: flex;

  transition: transform 0.4s ease;
}

/* CARD */

.achievement-card {
  background: white;
  border-radius: 20px;
  min-width: 100%;
  display: flex;
  gap: 30px;
   padding-right: 50px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  min-height: 360px;
  box-sizing: border-box;
}

/* IMAGE */

.achievement-img {
  width: 50%;
  max-width: 500px;
  height: 300px;
  object-fit: cover;
  border-radius: 16px;
  flex-shrink: 0;
}

/* TEXT */

.achievement-body {
  text-align: left;
  flex: 1;
}

.achievement-body h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.3;
}

.achievement-body p {
  line-height: 1.7;
  font-size: 1rem;
  color: #444;
}

/* ARROWS */

.ach-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
  color: #1e1e24;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: 0.3s;
  z-index: 20;
}

.ach-arrow:hover {
  background: #92140c;
  color: white;
}

.ach-arrow.prev {
  left: -20px;
}

.ach-arrow.next {
  right: -20px;
}

/* =========================================================
   CTA SECTION
========================================================= */

.cta-section {
  min-height: 65vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at top left, rgba(255, 0, 72, 0.22), transparent 70%),
              radial-gradient(circle at bottom right, #1e1e24, transparent 70%),
              var(--color-dark-eclipse);
  color: white;
  text-align: center;
}

/* CTA social icons */
.cta-social {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.4rem;
}

.cta-social a {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: black;
  font-size: 1.8rem;
  box-shadow: 0 10px 30px rgba(255,255,255,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cta-social a:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(255,255,255,0.35);
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.4;
}

/* =========================================================
   FOOTER (PIXEL PERFECT WITH UI)
========================================================= */
.site-footer {
  background-color: var(--color-dark-eclipse);
  color: var(--color-white);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 2.8rem;
  padding: 3rem 0 2.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-logo {
  max-width: 220px;
}

.footer-tagline {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: #c4d1f8;
}

.footer-contact {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.2rem 1.5rem;
  align-items: flex-start;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.footer-contact-item i {
  color: #92140c;
}

.footer-contact-item a {
  color: #e3ebff;
  font-size: 0.9rem;
}

.footer-social {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-social-icons {
  display: flex;
  gap: 0.7rem;
}

.footer-social-icons a {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e3ebff;
  transition: background 0.15s ease, transform 0.15s ease;
}

.footer-social-icons a:hover {
  background-color: #92140c;
  transform: translateY(-1px);
}

.footer-bottom {
  padding: 1.3rem 0 1.5rem;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #b0bee2;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-nav a {
  color: #d8e0ff;
}

/* Left and right column fix */
.footer-left {
  display: flex;
  align-items: center;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Contact items in one horizontal row */
.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

/* Social media already perfect — but align left */
.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* =========================================================
   SCROLL TOP BUTTON
========================================================= */

.scroll-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1e1e24;
  border: none;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 30px #92140c;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.25s ease;
  z-index: 999;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}





/* =========================================================
   RESPONSIVE DESIGN — PROFESSIONAL BREAKPOINTS
   - 1024px: Tablets & small laptops
   - 768px: Mobile (main)
   - 576px: Small phones
========================================================= */

/* ========= Large tablets / small laptops (<=1024px) ========= */
@media (max-width: 1024px) {
  .hero-content {
    gap: 3rem;
    padding: 4rem 0;
  }

  .hero-text {
    margin: 3rem 2rem;
  }

  .hero-text h1 {
    font-size: 2.6rem;
  }

  .about-card {
    gap: 30px;
    padding: 32px;
  }

  .about-image img {
    width: 100%;
  }

  .services-wrapper {
    margin: 3rem 2.5rem;
    gap: 3rem;
  }

  .services-section .container,
  .services-wrapper {
    padding-left: 40px;
    padding-right: 40px;
  }

  .achievement-card {
    min-width: 100%;
  }

  .achievement-img {
    width: 45%;
  }

  .achievement-body {
    max-width: 100%;
  }
}

/* ================== Main mobile breakpoint (<=768px) ================== */
@media (max-width: 768px) {

  /* NAV */
  .header-inner {
    padding: 0.75rem 0;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-dark-eclipse);
    display: none;
    padding: 1rem 0 1.2rem;
    text-align: center;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* HERO */
  .hero-section {
    padding-top: 0;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
    padding: 4rem 0 3.5rem;
  }

  .hero-text {
    margin: 0;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text p {
    margin: 1rem auto 1.8rem;
    max-width: 100%;
  }

  .hero-logo-card img {
    width: 220px;
    margin-right: 0;
  }

  /* ABOUT */
  .about-section {
    padding: 60px 0;
  }

  .about-card {
    flex-direction: column;
    text-align: center;
    padding: 28px 22px;
  }

  .about-text p {
    max-width: none;
  }

  .about-image img {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
  }

  /* TEAM */
  .team-section {
    padding: 60px 0;
  }

  .team-carousel {
    max-width: 100%;
    padding: 0 10px;
  }

  .team-carousel::before,
  .team-carousel::after {
    width: 40px;
  }

  .team-track {
    padding-left: 0;
  }

  .team-card {
    min-width: 220px;
  }

  .team-photo {
    height: 230px;
  }

  .team-arrow {
    font-size: 28px;
  }

  .team-arrow.left {
    left: 8px !important;
  }

  .team-arrow.right {
    right: 6px;
  }

  /* PROJECTS */
  .projects-slider {
    padding: 0 20px;
    margin: 30px auto;
  }

  .project-card {
    min-width: 260px;
    max-width: 280px;
  }

  /* SERVICES */
  .services-section {
    height: auto;
    min-height: auto;
    padding: 4rem 0;
  }

  .services-wrapper {
    grid-template-columns: 1fr;
    margin: 0 auto;
    gap: 3rem;
    padding-left: 24px;
    padding-right: 24px;
  }

  .services-left {
    text-align: center;
    align-items: center;
  }

  .services-description {
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  /* ACHIEVEMENTS */
  .achievements-section {
    padding: 60px 0;
  }

  .achievement-track-wrapper {
    padding: 0 10px;
    max-width: 100%;
  }

  .achievement-track {
    gap: 20px;
  }

  .achievement-card {
    flex-direction: column;
    min-width: 100%;
    height: auto;
    padding: 24px 20px;
  }

  .achievement-img {
    width: 100%;
    height: 220px;
  }

  .achievement-body {
    text-align: center;
    max-width: 100%;
  }

  .ach-arrow.prev {
    left: 8px !important;
  }

  .ach-arrow.next {
    right: 6px;
  }

  /* CTA */
  .cta-section h2 {
    font-size: 2rem;
    padding: 0 1.2rem;
  }

  /* FOOTER */
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .footer-contact-row {
    flex-direction: column;
    gap: 0.8rem;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* SCROLL TOP */
  .scroll-top {
    right: 1rem;
    bottom: 1rem;
  }
}

/* ================== Small phones (<=576px) ================== */
@media (max-width: 576px) {

  .container {
    width: 92%;
  }

  .hero-text h1 {
    font-size: 1.9rem;
  }

  .hero-text p {
    font-size: 0.98rem;
  }

  .services-title {
    font-size: 2rem;
  }

  .cta-section h2 {
    font-size: 1.8rem;
  }

  .preloader-text {
    font-size: 0.5rem;
  }

  .team-card {
    min-width: 200px;
    padding: 1.2rem;
  }

  .team-photo {
    height: 210px;
  }

  .project-card {
    min-width: 240px;
  }

  .achievement-img {
    height: 200px;
  }

  .services-wrapper {
    padding-left: 16px;
    padding-right: 16px;
    margin: 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section-subtitle {
    font-size: 0.9rem;
  }
    .team-arrow.left {
    left: 4px !important;
    font-size: 26px;
  }

  .ach-arrow.prev {
    left: 4px !important;
    font-size: 26px;
  }

}

/* ================= TEAM MEMBER PAGE ================= */
.member-page { background: #fef3e8; padding: 0px 0 70px; }

.member-back{
  background: transparent;
  border: none;
  font-size: 34px;
  cursor: pointer;
  color: #92140c;
  margin: 10px 0 20px;
}

.member-hero{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  padding: 0px 0 10px;
}

.member-info h1{
  font-size: 2.6rem;
  color: #122041;
  margin-bottom: 10px;
}

.member-info p{
  color: #4b556b;
  line-height: 1.7;
  max-width: 620px;
}

.member-contact{
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  font-weight: 600;
}

.member-contact a{
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  background: #92140c;
  color: white;
  border-radius: 8px;
  text-decoration: none;
}

.member-photo-wrap{
  display: flex;
  justify-content: center;
}

.member-photo-wrap img{
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: contain;
  border: 6px solid #92140c;
  background: white;
}

.member-block{ margin-top: 45px; }

.member-block h2{
  font-size: 2rem;
  color: #122041;
  margin-bottom: 18px;
}

.member-card{
  background: white;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 14px 35px rgba(0,0,0,0.08);
}
/* ========== PROJECTS (TEAM MEMBER PAGE) — FIXED CENTER + SCROLL ========== */

/* Scroll container */
.member-projects-scroll{
  overflow-x: auto;
  padding: 10px 0 18px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

/* Row (centers when few, scrolls when many) */
.member-projects-row{
  display: flex;
  gap: 20px;
  width: max-content;     /* row width = cards width */
  margin: 0 auto;         /* ✅ centers the whole row */
  padding: 0 12px;        /* small side padding */
}

/* Scrollbar styling */
.member-projects-scroll::-webkit-scrollbar{
  height: 10px;
}
.member-projects-scroll::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,0.15);
  border-radius: 999px;
}

/* Card sizing */
.member-projects-row .member-card{
  flex: 0 0 320px;
  scroll-snap-align: start;
}

.member-project-img{
  width: 100%;
  height: 150px;
  border-radius: 12px;
  object-fit: contain;
  margin-bottom: 12px;
}

.member-project-desc{
  margin-top: 8px;
  opacity: .85;
  line-height: 1.6;
}
.member-contact a:hover {
  transform: scale(1.1);
}



@media (max-width: 900px){
  .member-hero{ grid-template-columns: 1fr; }
  .member-photo-wrap img{ width: 240px; height: 240px; }

}
  @media (max-width: 576px){
  .member-projects-row .member-card{
    flex-basis: 260px;
  }
}
.project-link {
  display: inline-block;
  font-weight: 700;
  color: #000000;
  text-decoration: none;
  margin-bottom: 4px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.project-link:hover {
  color: #2f5eff;
  transform: translateX(2px);
}

.project-link::after {
  content: " ↗";
  font-size: 0.9em;
}


.site-content {
  opacity: 0;
  transition: opacity 1s ease;
}

@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}

/* ============================
   XO FOR SOFTWARE PRELOADER
   (duplicate as in original, last one wins)
============================ */

.preloader {
  width: 100%;
  height: 100vh;
  background: #1e1e24;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  position: fixed;
  top: 0;
  left: 0;
  animation: fadeOut 1s ease forwards;
  animation-delay: 3s; /* how long the loader stays */
}

.preloader-text {
  font-size: 2.5rem;
  font-weight: bold;
  background: linear-gradient(60deg,#528EE5,#CF1B18,#FFF8F0,#FFF8F0);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: typing 3s forwards;
  white-space: nowrap;
  overflow: hidden;
}

@keyframes typing {
  from { width: 0; }
  to { width: 14ch; } /* adjusts to text length */
}

.site-content {
  opacity: 0;
  transition: opacity 1s ease;
}

@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}
@media (max-width: 992px) {

  .achievement-card {
    flex-direction: column;
    text-align: center;
    padding: 25px;
    min-height: auto;
  }

  .achievement-img {
    width: 100%;
    max-width: 100%;
    height: 260px;
  }

  .achievement-body {
    text-align: center;
  }

  .achievement-body h3 {
    font-size: 1.3rem;
  }

  .achievement-body p {
    font-size: 0.95rem;
  }

  .ach-arrow.prev {
    left: 5px;
  }

  .ach-arrow.next {
    right: 5px;
  }
}

/* ========== MOBILE ========== */

@media (max-width: 600px) {

  .achievements-section {
    padding: 60px 15px;
  }

  .achievement-card {
    padding: 20px;
    gap: 20px;
    border-radius: 16px;
  }

  .achievement-img {
    height: 200px;
  }

  .achievement-body h3 {
    font-size: 1.1rem;
  }

  .achievement-body p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .ach-arrow {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }
}