/* Ganga Saraswathi Technologies — styles. Mobile-first. */
:root {
  --navy-950: #070f20;
  --navy-900: #0b1830;
  --navy-800: #11213f;
  --charcoal: #1c2433;
  --ink: #0f1a2e;
  --text: #36425a;
  --muted: #5d6a82;
  --line: #e2e7f0;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --cyan: #0ea5e9;
  --cyan-text: #0369a1; /* AA-contrast cyan for text and focus on light backgrounds */
  --border-field: #7b8aa5;
  --cyan-bright: #22d3ee;
  --blue: #2563eb;
  --violet: #7c5cff;
  --violet-deep: #5b3fd6;
  --green: #0f9d74;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(11, 24, 48, .18);
  --font: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1160px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--bg); }
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--cyan-text); outline-offset: 3px; box-shadow: 0 0 0 3px #fff; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; text-decoration: none; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy-900); color: #c3cde0; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .form-card h3 { color: var(--ink); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-text); margin-bottom: 12px; }
.section--dark .eyebrow { color: var(--cyan-bright); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section--dark .section-head p { color: #9fb0cc; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: .95rem; padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: linear-gradient(135deg, var(--cyan-text), var(--blue)); color: #fff; box-shadow: 0 8px 22px -8px rgba(37, 99, 235, .6); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .04); }
.btn--ghost:hover { border-color: var(--cyan-bright); }
.btn--outline { color: var(--ink); border-color: var(--line); background: #fff; }
.btn--outline:hover { border-color: var(--blue); }
.btn--sm { padding: 9px 18px; font-size: .88rem; }

/* Announcement + header */
.announce { background: var(--navy-950); color: #b6c4de; font-size: .85rem; text-align: center; padding: 8px 20px; }
.announce a { color: var(--cyan-bright); font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 6px 24px -14px rgba(11, 24, 48, .25); }
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand img { width: 42px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1rem; font-weight: 800; }
.brand-text span { font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav-menu { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 14px 20px 24px; display: none; flex-direction: column; gap: 4px; box-shadow: 0 24px 40px -20px rgba(11, 24, 48, .3); }
.nav-menu.is-open { display: flex; }
.nav-menu a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; padding: 12px 6px; border-radius: 8px; }
.nav-menu a:not(.btn):hover, .nav-menu a.is-active { color: var(--blue); }
.nav-menu .btn { margin-top: 10px; }
.nav-toggle { width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; display: grid; place-items: center; padding: 0; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, background .25s; content: ""; }
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(900px 500px at 85% 10%, rgba(124, 92, 255, .28), transparent 60%), radial-gradient(800px 500px at 10% 90%, rgba(14, 165, 233, .22), transparent 60%), linear-gradient(160deg, var(--navy-950), var(--navy-900) 55%, var(--charcoal)); color: #c3cde0; padding: 64px 0 80px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%); }
.hero-grid { position: relative; display: grid; gap: 44px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .grad { background: linear-gradient(90deg, var(--cyan-bright), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.1rem; max-width: 560px; color: #aebbd4; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chip { font-size: .8rem; font-weight: 600; padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); color: #cfe0f7; background: rgba(255, 255, 255, .05); }
.hero-art { width: 100%; max-width: 520px; margin: 0 auto; }
.float { animation: float 7s ease-in-out infinite; }
.float.d2 { animation-delay: -2.5s; } .float.d3 { animation-delay: -4.5s; }
@keyframes float { 50% { transform: translateY(-8px); } }
.pulse { animation: pulse 2.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 50% { opacity: .45; } }

/* Services */
.service-groups { display: grid; gap: 24px; }
.group-card { --accent: var(--cyan); --accent-text: var(--cyan-text); --accent-soft: #e6f6fd; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.group-card--marketing { --accent: var(--green); --accent-text: #0b7a5a; --accent-soft: #e3f6ef; }
.group-card--design { --accent: var(--violet); --accent-text: var(--violet-deep); --accent-soft: #eeeaff; }
.group-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.group-icon svg { width: 26px; height: 26px; }
.group-card > p { color: var(--muted); font-size: .95rem; }
.service-list { margin: 18px 0 22px; display: grid; gap: 2px; }
.service-list li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-weight: 600; font-size: .95rem; color: var(--ink); }
.service-list li:last-child { border-bottom: 0; }
.service-list li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--accent); }
.service-list a { color: inherit; text-decoration: none; }
.service-list a:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.group-card .btn { --c: var(--accent-text); color: var(--c); border-color: var(--c); background: transparent; }
.group-card .btn:hover { background: var(--accent-soft); }

/* Principles */
.principles { display: grid; gap: 18px; }
.principle { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius); padding: 24px; transition: transform .25s, border-color .25s; }
.principle:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, .5); }
.principle .num { font-size: .8rem; font-weight: 800; color: var(--cyan-bright); letter-spacing: .1em; }
.principle p { margin: 0; font-size: .95rem; color: #9fb0cc; }

/* Process */
.timeline { position: relative; display: grid; gap: 28px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--cyan), var(--violet)); }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.step::before { content: ""; position: absolute; left: -24px; top: 28px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--cyan); }
.step-num { font-size: 2rem; font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--cyan-text), var(--violet-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Technologies */
.tech-grid { display: grid; gap: 18px; }
.tech-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tech-card h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .88rem; font-weight: 700; color: var(--ink); background: var(--bg-soft); border: 1px solid var(--line); padding: 6px 13px; border-radius: 10px; }
.note { font-size: .85rem; color: var(--muted); margin-top: 20px; }

/* Portfolio */
.work-grid { display: grid; gap: 22px; }
.work-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.work-media { aspect-ratio: 16 / 9; display: grid; place-items: center; background: repeating-linear-gradient(45deg, #eef2f9, #eef2f9 12px, #e7ecf6 12px, #e7ecf6 24px); color: var(--muted); font-weight: 700; font-size: .85rem; text-align: center; padding: 12px; }
.work-media img { width: 100%; height: 100%; object-fit: cover; }
.work-body { padding: 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.badge { align-self: flex-start; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: #fff4d6; color: #8a5a00; }
.work-cat { font-size: .8rem; font-weight: 700; color: var(--cyan-text); text-transform: uppercase; letter-spacing: .08em; }
.work-body p { color: var(--muted); font-size: .93rem; margin: 0; }
.work-services { font-size: .85rem; font-weight: 600; color: var(--ink); margin-top: auto; padding-top: 10px; }

/* About */
.about-grid { display: grid; gap: 36px; align-items: start; }
.mv { display: grid; gap: 16px; }
.mv-card { border-radius: var(--radius); padding: 24px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--cyan); }
.mv-card:nth-child(2) { border-left-color: var(--violet); }
.mv-card h3 { margin-bottom: 6px; }
.mv-card p { margin: 0; color: var(--muted); }
.facts { margin-top: 20px; display: grid; gap: 8px; font-weight: 600; color: var(--ink); }
.facts li { display: flex; gap: 10px; }
.facts svg { flex: none; width: 20px; height: 20px; color: var(--cyan); margin-top: 3px; }

/* Commitment */
.commit-grid { display: grid; gap: 18px; }
.commit { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.commit p { margin: 0; color: var(--muted); font-size: .95rem; }
/* Testimonials (hidden until verified entries exist; see README) */
.testimonials[hidden] { display: none; }
.quote { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.quote footer { margin-top: 12px; font-weight: 700; color: var(--ink); font-size: .9rem; }

/* Contact */
.contact-grid { display: grid; gap: 36px; }
.contact-info { display: grid; gap: 18px; align-content: start; }
.info-item { display: flex; gap: 14px; }
.info-item[hidden] { display: none; }
.info-item .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(34, 211, 238, .12); color: var(--cyan-bright); display: grid; place-items: center; }
.info-item .ico svg { width: 22px; height: 22px; }
.info-item h3 { font-size: .95rem; margin: 0 0 2px; }
.info-item p, .info-item a { margin: 0; color: #aebbd4; font-size: .95rem; word-break: break-word; }
.info-item a { color: var(--cyan-bright); }
.info-item .todo { color: #f5c26b; font-style: italic; }
.form-card { background: #fff; color: var(--text); border-radius: 20px; padding: 26px 22px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); }
.form-card h3 { font-size: 1.25rem; }
.form-grid { display: grid; gap: 16px; margin-top: 16px; }
.field label { display: block; font-weight: 700; font-size: .88rem; color: var(--ink); margin-bottom: 6px; }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid var(--border-field); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c0392b; }
.error { display: none; color: #b3261e; font-size: .85rem; font-weight: 600; margin-top: 5px; }
.field.has-error .error { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--blue); }
.form-status { border-radius: 12px; padding: 14px 16px; font-size: .92rem; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink); }
.form-status[data-type="error"] { background: #fdecea; border-color: #f2b8b5; color: #8c1d18; }
.form-status[data-type="warn"] { background: #fff4d6; border-color: #f0d58a; color: #6b4700; }
.form-status[data-type="info"] { background: #e6f6fd; border-color: #a9dcf3; color: #0b4a68; }
.form-note { font-size: .82rem; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--navy-950); color: #94a4c0; padding: 56px 0 28px; font-size: .93rem; }
.footer-grid { display: grid; gap: 32px; }
.site-footer h3 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer a { color: #94a4c0; text-decoration: none; }
.site-footer a:hover { color: var(--cyan-bright); }
.site-footer li { margin-bottom: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand-text span { color: #7d8eab; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; background: var(--navy-900); color: #fff; border: 1px solid rgba(255, 255, 255, .2); display: grid; place-items: center; text-decoration: none; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s, transform .25s; z-index: 90; box-shadow: var(--shadow); }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 20px; height: 20px; }

/* Legal pages */
.legal { padding: 56px 0 80px; max-width: 780px; }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal .draft { background: #fff4d6; border: 1px solid #f0d58a; color: #6b4700; border-radius: 12px; padding: 14px 16px; font-size: .92rem; }

/* Reveal animation (only when JS is active) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (min-width: 640px) {
  .principles, .tech-grid, .work-grid, .commit-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (min-width: 900px) {
  .section { padding: 96px 0; }
  .nav-toggle { display: none; }
  .nav-menu { position: static; display: flex; flex-direction: row; align-items: center; gap: 4px; padding: 0; border: 0; box-shadow: none; background: transparent; }
  .nav-menu .btn { margin: 0 0 0 12px; }
  .hero { padding: 96px 0 110px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .service-groups { grid-template-columns: repeat(3, 1fr); }
  .principles, .commit-grid { grid-template-columns: repeat(3, 1fr); }
  .tech-grid, .work-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1.1fr .9fr; }
  .contact-grid { grid-template-columns: .8fr 1.2fr; gap: 56px; }
  .form-card { padding: 34px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; }
  /* Alternating timeline */
  .timeline { grid-template-columns: repeat(4, 1fr); padding: 34px 0 0; gap: 20px; }
  .timeline::before { left: 0; right: 0; top: 10px; bottom: auto; width: auto; height: 2px; }
  .step::before { left: 22px; top: -31px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
