/* styles.css — Optimized, Minimal Clean (DM Sans, white bg) */

/* Import is optional because we included the font link in index.html.
   Keep this in case of direct CSS usage. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;700;900&display=swap');

:root{
  --bg: #ffffff;
  --page-max: 1200px;
  --spacing: 20px;
  --color-900: #111;   /* primary text */
  --color-700: #333;
  --muted: #6b6b6b;
  --accent: #000000;   /* button background */
  --card-border: #eef0f2;
  --radius: 10px;
  --shadow: 0 6px 18px rgba(16,24,40,0.06);
  --container-pad: 24px;
}

*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--color-900);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.6;
  font-size:16px;
}

/* Utility container */
.container{
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 var(--container-pad);
  box-sizing: border-box;
}

/* Header */
.site-header{
  width:100%;
  background: transparent;
  border-bottom: 1px solid transparent;
  position: sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(6px);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 18px 0;
}

/* Brand */
.brand{
  font-weight:700;
  letter-spacing:0.2px;
  color:var(--color-900);
  text-decoration:none;
  font-size:1.05rem;
}

/* Nav */
.primary-nav{
  display:flex;
  align-items:center;
  gap:14px;
}

.primary-nav a{
  color:var(--color-700);
  text-decoration:none;
  font-weight:500;
  padding:8px 10px;
  border-radius:8px;
  transition: background .18s ease, color .18s ease;
  font-size:0.95rem;
}

.primary-nav a:hover,
.primary-nav a:focus{
  background: rgba(0,0,0,0.03);
  color:var(--color-900);
  outline:none;
}

.btn-outline{
  border:1px solid var(--card-border);
  padding:8px 12px;
  font-weight:600;
}

.clients {
  position: relative;
  width: 100%;
  height: 100svh;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 2rem;
  overflow: hidden;
}

.clients-preview {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 60%;
  z-index: 0;
  pointer-events: none;
}

.client-img-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
  will-change: clip-path;
  overflow: hidden;
}

.client-img-wrapper img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform, opacity;
}

.clients-header p {
  position: relative;
  color: #acacac;
  z-index: 1;
}

.clients-list {
  position: relative;
  width: 80%;
  margin-bottom: 8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.75rem;
  mix-blend-mode: difference;
  z-index: 2;
}

.client-name {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.client-name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0.15rem;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms ease-out;
}

.client-name:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}



/* Hero */
.hero{
  padding:64px 0;
  background: var(--bg);
}

.hero-grid{
  display:grid;
  grid-template-columns: 1fr 420px;
  gap:32px;
  align-items:center;
  min-height:320px;
}

.hero-content h1{
  font-size: clamp(1.6rem, 2.6vw, 2.6rem);
  line-height:1.05;
  margin-bottom: 18px;
  color:var(--color-900);
  font-weight:700;
}

.lead{
  color:var(--muted);
  font-size:1.05rem;
  margin-bottom:22px;
}

.btn-primary{
  display:inline-block;
  background:var(--accent);
  color:#fff;
  padding:12px 18px;
  border-radius:8px;
  text-decoration:none;
  font-weight:700;
  transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.btn-primary:hover,
.btn-primary:focus{
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

/* Hero media */
.hero-media img{
  width:100%;
  max-width:420px;
  border-radius:12px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  display:block;
}

/* Sections */
.section{
  padding:56px 0;
  background: var(--bg);
}

/* Section header */
.section-header{
  max-width:900px;
  margin: 0 auto 28px;
  text-align:center;
}

.section-header h2{
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  color:var(--color-900);
  margin-bottom:8px;
  font-weight:700;
}

.section-header p{
  color:var(--muted);
  margin-bottom:0;
}

/* Cards grid (services) */
.cards-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:20px;
  max-width:1200px;
  margin:auto;
}

.card{
  background: #fff;
  border:1px solid var(--card-border);
  border-radius: var(--radius);
  padding:20px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
  min-height:140px;
}

.card:hover{
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(16,24,40,0.06);
}

.card-icon{
  width:48px;
  height:48px;
  object-fit:contain;
  margin-bottom:12px;
}

/* Feature list (product dev) */
.feature-list{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:18px;
  max-width:1000px;
  margin:auto;
}

.feature h4{
  margin-bottom:6px;
  font-size:1.05rem;
  color:var(--color-900);
  font-weight:700;
}

.feature p{
  color:var(--muted);
  margin:0;
}

/* Technologies grid */
.tech-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:20px;
  max-width:1200px;
  margin:auto;
}

.tech-card{
  background:#fff;
  border:1px solid var(--card-border);
  padding:20px;
  border-radius:10px;
  box-shadow: var(--shadow);
  transition: transform .18s ease;
}

.tech-card h3{
  margin-bottom:8px;
  font-size:1.05rem;
  color:var(--color-900);
  font-weight:700;
}

.tech-card p{
  color:var(--muted);
  margin:0;
  font-size:0.98rem;
}

/* ========== FAQ SECTION ========== */

.faq-section {
  padding: 80px 0;
  background: var(--bg);
}

.faq {
  max-width: 980px;
  margin: 28px auto 0;
}

/* Each item */
.faq-item {
  border: 1px solid var(--card-border);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden; /* ensures rounded corners hide content while collapsed */
  background: #fff;
}

/* Button (question) */
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: transparent;
  border: none;
  padding: 18px 20px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-900);
  cursor: pointer;
  text-align: left;
}

/* icon */
.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.04);
  color: var(--accent);
  font-size: 18px;
  transition: transform .25s ease, background .2s ease;
}

/* ===========================
   SDLC Section
=========================== */

.sdlc-section {
  padding: 80px 0;
  background: var(--bg);
  color: var(--text);
  text-align: center;
}

.sdlc-section .section-title {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.sdlc-section .section-intro {
  max-width: 720px;
  margin: 0 auto 40px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Timeline grid */
.sdlc-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

/* Each Step */
.sdlc-step {
  background: var(--card);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  text-align: left;
}

.sdlc-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}

.sdlc-step h3 {
  margin-top: 18px;
  font-size: 1.3rem;
  font-weight: 600;
}

.sdlc-step p {
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.6;
  font-size: 0.99rem;
}

/* Icons */
.sdlc-icon {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background: rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s;
}

[data-theme="dark"] .sdlc-icon {
  background: rgba(255,255,255,0.08);
}

.sdlc-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
}


/* Answer — collapsed */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .36s cubic-bezier(.2,.9,.2,1), opacity .28s ease, padding .28s ease;
  padding: 0 20px;
}

/* Answer content styling */
.faq-answer .faq-body {
  padding: 16px 0 20px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

/* Active / open state (visual only) */
.faq-item.active .faq-question {
  /* you can change bg or color when active */
  background: rgba(0,0,0,0.02);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: rgba(0,0,0,0.07);
}

/* Accessibility focus */
.faq-question:focus {
  outline: 3px solid rgba(0,0,0,0.06);
  outline-offset: 2px;
}

/* Contact form styles */
.contact-section{
  padding:48px 0;
  background: var(--bg);
}
.contact-form{
  max-width:760px;
  margin:18px auto 0;
  background: #fff;
  border:1px solid var(--card-border);
  border-radius:12px;
  padding:18px;
  box-shadow: var(--shadow);
}
.contact-form .form-row{display:flex;flex-direction:column;margin-bottom:12px}
.contact-form label{font-weight:600;margin-bottom:6px;color:var(--color-900)}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea{
  border:1px solid var(--card-border);
  padding:10px 12px;border-radius:8px;background:transparent;color:var(--color-900)
}
.contact-form .form-actions{display:flex;align-items:center;gap:12px}
.contact-status{color:var(--muted);font-size:0.95rem}

@media (max-width: 640px){
  .contact-form{padding:14px}
}

/* ===========================
   Timeline Section
=========================== */

.timeline-section {
    padding: 80px 0;
    background: #fff;
    font-family: "DM Sans", sans-serif;
    color: #222;
}

.timeline-title {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.timeline-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
}

/* Timeline Container */
.timeline {
    position: relative;
    margin: 0 auto;
    padding-left: 30px;
    border-left: 2px solid #ccc;
    max-width: 850px;
}

/* Timeline Item */
.timeline-item {
    position: relative;
    padding: 0 0 40px 30px;
}

/* Dot */
.timeline-dot {
    width: 16px;
    height: 16px;
    background: #000;
    border-radius: 50%;
    position: absolute;
    left: -9px;
    top: 4px;
}

/* Content */
.timeline-content {
    background: #f9f9f9;
    padding: 20px 24px;
    border-radius: 10px;
    border: 1px solid #e3e3e3;
    transition: transform .25s ease, box-shadow .25s ease;
}

.timeline-content h3 {
    margin-bottom: 6px;
    font-size: 1.25rem;
    font-weight: 600;
}

.timeline-content p {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

/* Hover Animation */
.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}


/* Responsive */
@media (max-width: 600px) {
    .timeline {
        padding-left: 20px;
    }
    
    .timeline-item {
        padding-left: 20px;
    }
    
    .timeline-dot {
        left: -10px;
    }

    .timeline-content {
        padding: 18px 20px;
    }
}

/* ===========================
   Cost Section
=========================== */

.cost-section {
    padding: 80px 0;
    background: #fff;
    font-family: "DM Sans", sans-serif;
    color: #222;
}

.cost-title {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cost-subtitle {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
}

/* Grid */
.cost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Cards */
.cost-card {
    background: #f9f9f9;
    padding: 26px 24px;
    border-radius: 12px;
    border: 1px solid #e3e3e3;
    transition: transform .25s ease, box-shadow .25s ease;
}

.cost-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.cost-card p {
    margin-bottom: 16px;
    color: #555;
    font-size: 0.98rem;
    line-height: 1.6;
}

.cost-card ul {
    margin: 0;
    padding-left: 18px;
}

.cost-card ul li {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 6px;
    line-height: 1.5;
}

/* Hover effect */
.cost-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Conclusion */
.cost-conclusion {
    max-width: 760px;
    margin: 60px auto 0;
    text-align: center;
}

.cost-conclusion h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.cost-conclusion p {
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Responsive */
@media (max-width: 600px) {
    .cost-title {
        font-size: 2rem;
    }
    .cost-card {
        padding: 22px;
    }
}



/* Footer */
.site-footer{
  border-top:1px solid var(--card-border);
  margin-top:36px;
  padding:20px 0;
  background:var(--bg);
}

.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:var(--muted);
  font-size:0.95rem;
}

.footer-links a{
  color:var(--muted);
  text-decoration:none;
  margin-left:12px;
}

/* Responsive */
@media (max-width: 1000px){
  .cards-grid{grid-template-columns: repeat(2, 1fr)}
  .tech-grid{grid-template-columns: repeat(2, 1fr)}
  .hero-grid{grid-template-columns: 1fr}
  .hero-media{order: -1} /* media above content on small screens */
  .feature-list{grid-template-columns: 1fr}
}

@media (max-width: 640px){
  .primary-nav{display:none} /* simplify header on small screens; replace with mobile nav later if needed */
  .cards-grid{grid-template-columns: 1fr}
  .tech-grid{grid-template-columns: 1fr}
  .hero{padding:40px 0}
  .hero-content h1{font-size:1.6rem}
  .faq-question { padding: 14px 16px; font-size: 1rem; }
  .faq-answer .faq-body { padding: 12px 0 16px; }
}

/* Accessibility focus states */
a:focus, button:focus{
  outline: 3px solid rgba(0,0,0,0.08);
  outline-offset: 4px;
  border-radius:6px;
}
