﻿/* ========================================
   Team X - Portfolio Styles
   ======================================== */

:root {
  --bg: #fbf5ee;
  --bg-alt: #f5ebe0;
  --ink: #1c2b2d;
  --ink-soft: #5b6a6c;
  --accent: #e07a3f;
  --accent-deep: #a24f20;
  --accent-2: #f4a340;
  --teal: #2f8f83;
  --card: #ffffff;
  --border: #e9e0d2;
  --shadow-sm: 0 10px 30px rgba(28, 43, 45, 0.06);
  --shadow-lg: 0 30px 60px rgba(28, 43, 45, 0.12);
  --radius: 20px;
  --radius-sm: 14px;
}

* { scroll-behavior: smooth; }

.skip-link {
  position: absolute; top: -48px; left: 1rem; z-index: 2000;
  background: var(--ink); color: #fff; padding: .7rem 1.2rem; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none; transition: top .2s ease;
}
.skip-link:focus { top: 1rem; color: #fff; }
.hero:focus { outline: none; }

/* Bootstrap caps .container at 1320px even on very wide screens - widen it
   progressively so the site uses more of the viewport on large monitors. */
@media (min-width: 1400px) { .container { max-width: 1290px; } }
@media (min-width: 1600px) { .container { max-width: 1460px; } }
@media (min-width: 1900px) { .container { max-width: 1680px; } }
@media (min-width: 2200px) { .container { max-width: 1880px; } }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

h1, h2, h3, .navbar-brand, .hero-title, .section-title {
  font-family: "Sora", sans-serif;
}

.text-accent { color: var(--accent-deep); }

/* ===== Buttons ===== */
.btn { border-radius: 999px; font-weight: 600; padding: 0.65rem 1.5rem; transition: transform .2s ease, box-shadow .2s ease; }
.btn-accent { background: var(--accent-deep); color: #fff; box-shadow: 0 12px 24px rgba(224, 122, 63, 0.3); }
.btn-accent:hover { background: #8a4119; color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px rgba(224, 122, 63, 0.38); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-lg { padding: 0.85rem 1.9rem; }

.link-accent { color: var(--accent-deep); font-weight: 600; text-decoration: none; }
.link-accent:hover { color: #8a4119; }

/* ===== Navbar ===== */
.navbar {
  padding: 1rem 0;
  background: rgba(251, 247, 240, 0.85);
  backdrop-filter: blur(12px);
  transition: box-shadow .3s ease, padding .3s ease;
}
.navbar.scrolled { box-shadow: var(--shadow-sm); padding: 0.6rem 0; }
.navbar-brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.3rem; color: var(--ink); }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-deep));
  color: #fff; font-family: "Sora"; font-weight: 800;
}
.brand-accent { color: var(--accent-deep); }
.navbar .nav-link { color: var(--ink-soft); font-weight: 500; margin: 0 0.35rem; position: relative; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--ink); }
.navbar .nav-link.active::after {
  content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 2px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.navbar-toggler { border: none; font-size: 1.6rem; color: var(--ink); box-shadow: none !important; }
.btn-nav { padding: 0.5rem 1.2rem; }

/* ===== Hero ===== */
.hero { padding: 11rem 0 6rem; position: relative; border-bottom: 1px solid var(--border); }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--teal); letter-spacing: .04em; text-transform: uppercase; font-size: .82rem; }
.eyebrow-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }
.hero-title { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; margin: 1rem 0 1.25rem; }
.hero-sub { font-size: 1.12rem; color: var(--ink-soft); max-width: 480px; line-height: 1.7; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 2rem 0; }
.hero-meta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 2.2rem; }
.meta-item { display: flex; align-items: center; gap: 0.7rem; }
.meta-num { font-family: "Sora"; font-size: 2.4rem; font-weight: 800; color: var(--ink); }
.meta-label { font-size: 0.82rem; color: var(--ink-soft); line-height: 1.25; }
.meta-divider { width: 1px; height: 42px; background: var(--border); }
.hero-mail { color: var(--accent-deep); font-weight: 600; text-decoration: none; }
.hero-mail:hover { text-decoration: underline; }

/* Hero visual */
.hero-visual { position: relative; min-height: 440px; display: grid; place-items: center; }
.blob {
  position: absolute; inset: 0; margin: auto;
  width: 380px; height: 380px;
  background: linear-gradient(135deg, var(--teal), #3aa697);
  border-radius: 42% 58% 63% 37% / 42% 45% 55% 58%;
  filter: blur(2px); opacity: .95;
  animation: morph 9s ease-in-out infinite;
}
@keyframes morph {
  0%,100% { border-radius: 42% 58% 63% 37% / 42% 45% 55% 58%; }
  50% { border-radius: 58% 42% 40% 60% / 55% 58% 42% 45%; }
}
.avatar-card {
  position: absolute; z-index: 2;
  background: var(--card); border-radius: 18px; padding: 0.8rem 1.1rem 0.8rem 0.8rem;
  display: flex; align-items: center; gap: 0.7rem; box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}
.avatar-1 { top: 8%; left: 2%; }
.avatar-3 { top: 8%; right: 2%; animation-delay: .8s; }
.avatar-2 { bottom: 8%; left: 2%; animation-delay: 1.5s; }
.avatar-4 { bottom: 8%; right: 2%; animation-delay: 2.2s; }
.avatar {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  color: #fff; font-family: "Sora"; font-weight: 700; font-size: 1.3rem;
  background: linear-gradient(135deg, var(--c1), var(--c2));
}
.avatar-info { display: flex; flex-direction: column; line-height: 1.2; }
.avatar-info strong { font-size: 0.95rem; }
.avatar-info span { font-size: 0.78rem; color: var(--ink-soft); }
.floating-chip {
  position: absolute; z-index: 2; top: 45%; right: -2%;
  background: var(--card); border-radius: 999px; padding: 0.5rem 1rem;
  font-size: 0.82rem; font-weight: 600; box-shadow: var(--shadow-lg);
  animation: float 5.5s ease-in-out infinite; animation-delay: 1s;
}
.floating-chip i { color: var(--teal); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ===== Sections ===== */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }
.section-eyebrow { color: var(--accent-deep); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; margin-bottom: .6rem; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; }
.section-text { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.7; }

.stats-row { display: flex; gap: 2.5rem; margin-top: 2rem; }
.stat-num { font-family: "Sora"; font-size: 2.6rem; font-weight: 800; display: block; }
.stat-label { color: var(--ink-soft); font-size: .9rem; }

/* ===== Service cards (used across the 30 project case-study pages) ===== */
.service-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem; height: 100%; transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card--raised { box-shadow: var(--shadow-sm); }
.service-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.5rem; color: #fff; background: var(--ic); margin-bottom: 1.1rem;
}
.service-card h3 { font-size: 1.2rem; font-weight: 700; }
.service-card p { color: var(--ink-soft); font-size: .94rem; margin-bottom: 1rem; }
.service-count { font-weight: 700; font-size: .85rem; color: var(--teal); }

/* ===== Service tiles (homepage services grid) ===== */
.service-tile {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1.4rem; height: 100%; transition: transform .25s ease, box-shadow .25s ease;
}
.service-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.service-tile .service-icon {
  width: 48px; height: 48px; border-radius: 14px; font-size: 1.3rem; margin-bottom: .9rem;
}
.service-tile h3 { font-size: .98rem; font-weight: 700; margin-bottom: .3rem; }
.service-tile p { color: var(--ink-soft); font-size: .84rem; margin: 0; line-height: 1.5; }

/* ===== Team cards ===== */
.team-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.2rem; height: 100%; text-align: center; transition: transform .25s ease, box-shadow .25s ease;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-avatar {
  width: 88px; height: 88px; border-radius: 26px; margin: 0 auto 1.2rem;
  display: grid; place-items: center; color: #fff; font-family: "Sora"; font-weight: 800; font-size: 2.2rem;
  background: linear-gradient(135deg, var(--c1), var(--c2));
}
.team-card h3 { font-weight: 700; font-size: 1.4rem; margin-bottom: .25rem; }
.team-role { color: var(--accent-deep); font-weight: 600; font-size: .92rem; }
.team-bio { color: var(--ink-soft); font-size: .95rem; line-height: 1.6; }
.team-tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 1.2rem 0; }
.team-tags li { background: var(--bg-alt); border-radius: 999px; padding: .3rem .85rem; font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.team-social { display: flex; gap: .8rem; justify-content: center; }
.team-social a, .footer-social a {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: var(--ink); background: var(--bg-alt); transition: all .2s ease; text-decoration: none;
}
.team-social a:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }

/* ===== Work cards ===== */
.work-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; height: 100%; transition: transform .25s ease, box-shadow .25s ease;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
a.work-card { display: block; text-decoration: none; color: var(--ink); }
.work-card--nda { border-style: dashed; border-width: 2px; border-color: var(--accent); background: transparent; }
.work-card--nda .work-thumb { background: repeating-linear-gradient(45deg, var(--bg-alt), var(--bg-alt) 14px, #ece4d5 14px, #ece4d5 28px); color: var(--accent-deep); }
.work-thumb {
  height: 180px; display: grid; place-items: center; font-size: 3.4rem; color: #fff;
  background: linear-gradient(135deg, var(--wc1), var(--wc2));
}
.work-body { padding: 1.4rem 1.6rem 1.7rem; }
.work-tag { display: inline-block; background: var(--bg-alt); color: var(--ink-soft); font-size: .75rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.work-tag--live { background: var(--accent-deep); color: #fff; margin-left: .35rem; }
.work-body h3 { font-weight: 700; font-size: 1.3rem; margin: .7rem 0 .35rem; }
.work-body p { color: var(--ink-soft); font-size: .93rem; margin: 0; }

.works-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ===== Timeline ===== */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -2rem; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 4px var(--bg-alt); }
.timeline-step { font-size: .78rem; font-weight: 700; color: var(--accent-deep); text-transform: uppercase; letter-spacing: .05em; }
.timeline-content h3 { font-weight: 700; font-size: 1.25rem; margin: .3rem 0 .4rem; }
.timeline-content p { color: var(--ink-soft); margin: 0; font-size: .96rem; line-height: 1.6; }

/* ===== Testimonials ===== */
.testimonial {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; height: 100%; margin: 0; transition: transform .25s ease, box-shadow .25s ease;
}
.testimonial--featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.testimonial--featured blockquote, .testimonial--featured figcaption small { color: rgba(255,255,255,.75); }
.testimonial--featured .stars { color: var(--accent-2); }
.testimonial:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.stars { color: var(--accent-deep); margin-bottom: 1rem; font-size: .9rem; }
.testimonial blockquote { font-size: 1rem; line-height: 1.7; color: var(--ink-soft); }
.testimonial figcaption { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; }
.t-avatar { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-family: "Sora"; font-weight: 700; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.testimonial figcaption strong { display: block; font-size: .95rem; }
.testimonial figcaption small { color: var(--ink-soft); font-size: .82rem; }

/* ===== Contact ===== */
.contact-section { padding-bottom: 6rem; }
.contact-card {
  background: linear-gradient(135deg, #223a3c, var(--ink));
  border-radius: 32px; padding: 3.5rem; color: #fff; box-shadow: var(--shadow-lg);
}
.contact-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.1; }
.contact-title .text-accent { color: var(--accent-2); }
.contact-text { color: rgba(255,255,255,.72); margin: 1rem 0 1.6rem; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; align-items: center; gap: .7rem; margin-bottom: .7rem; color: rgba(255,255,255,.9); }
.contact-list i { color: var(--accent-2); }
.contact-form .form-label { color: rgba(255,255,255,.8); font-size: .85rem; font-weight: 500; margin-bottom: .3rem; }
.contact-form .form-control {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #fff; border-radius: 12px; padding: .7rem 1rem;
}
.contact-form .form-control::placeholder { color: rgba(255,255,255,.62); }
.contact-form .form-control:focus { background: rgba(255,255,255,.1); border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(244,163,64,.35); color: #fff; }
.form-status { margin: .8rem 0 0; font-size: .88rem; font-weight: 600; }
.form-status.is-error { color: #ffb4a0; }
.form-status.is-error a { color: inherit; text-decoration: underline; }
.form-status.is-success { color: #9fe0c8; }

/* ===== Footer ===== */
.footer { background: var(--bg-alt); padding: 3.5rem 0 2rem; }
.footer-brand { font-size: 1.2rem; }
.footer-tag { color: var(--ink-soft); margin-top: .6rem; font-size: .92rem; }
.footer-nav { list-style: none; padding: 0; margin: 0; display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.footer-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 500; }
.footer-nav a:hover { color: var(--accent); }
.footer-social { display: inline-flex; gap: .7rem; }
.footer-divider { border-color: var(--border); opacity: 1; margin: 2rem 0 1.2rem; }
.footer-copy { text-align: center; color: var(--ink-soft); font-size: .85rem; margin: 0; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .blob, .avatar-card, .floating-chip { animation: none; }
  .reveal { transition: opacity .01s linear; transform: none; }
  .btn:hover, .service-card:hover, .service-tile:hover, .team-card:hover, .work-card:hover, .testimonial:hover, .team-social a:hover {
    transform: none;
  }
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
  .navbar-collapse { background: var(--card); border-radius: 16px; padding: 1rem 1.2rem; margin-top: .8rem; box-shadow: var(--shadow-sm); }
  .btn-nav { margin-top: .6rem; display: inline-block; }
  .hero { padding-top: 8rem; }
  .contact-card { padding: 2rem; }
}
@media (max-width: 575px) {
  .stats-row { gap: 1.5rem; }
  .hero-meta { gap: 1rem; }
  .meta-divider { display: none; }
}
