/* =========================================================
   DIGITAL SWINDON – CORE STYLESHEET
   Typography: Lato
   Theme: Dark / Cyan Accent
   ========================================================= */

/* --------------------
   GLOBAL VARIABLES
-------------------- */
:root {
  --bg: #ffffff;
  --bg-2: #000000;
  --panel: #111111;
  --card-bg: #1a1a1a;
  --muted: #9aa0a6;
  --accent: #00d1ff;
  --accent-2: #7c4dff;
  --radius: 12px;
  --container: 1200px;
  --text: #ffffff;
  --text-dark: #000000;
}

/* --------------------
   BASE STYLES
-------------------- */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text-dark);
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------
   TYPOGRAPHY
-------------------- */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  color: var(--text-dark);
  font-weight: 700;
}

.muted {
  color: var(--muted);
}

/* --------------------
   BUTTONS
-------------------- */
.btn,
.btn-outline {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  transition: all 0.2s ease;
}

.btn {
  background: var(--accent);
  color: var(--text-dark);
}

.btn:hover {
  opacity: 0.9;
}

.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--text-dark);
}

/* --------------------
   HEADER / NAVIGATION
-------------------- */
.site-header {
  background: var(--bg-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 999;
}

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

.brand img {
  height: 200px;
}

.nav a {
  margin-left: 22px; 
  color: var(--bg);
  font-weight: 600;
}

.nav a:hover {
  color: var(--accent);
}

.nav .btn {
  margin-left: 34px;
  color: #000;
}

/* --------------------
   HERO SECTION
-------------------- */
.hero-variant {
  padding: 80px 0;
  background: var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.hero-text h1 {
  font-size: 48px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero-text p {
  color: var(--bg-2);
  margin: 0;
}

.hero-image img {
  border-radius: var(--radius);
}

.hero-panel {
  background: var(--bg-2);
  color: var(--bg);
  padding: 20px;
  font-size: 24px;
}

.hero-panel h2 {
  color: var(--bg);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-text h1 {
    font-size: 36px;
  }
}

/* --------------------
   SECTIONS
-------------------- */
.section {
  padding: 56px 0;
}

.section h2 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 36px;
}

/* --------------------
   GRID LAYOUTS
-------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature {
  background: var(--bg-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* =========================================================
   FULLSCREEN CAROUSEL STYLING
   ========================================================= */
.carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
  color: #fff;
}

.carousel-track {
  display: flex;
  transition: transform 0.8s ease-in-out;
  height: 100%;
}

.carousel-slide {
  flex: 0 0 100%;
  position: relative;
  text-align: center;
  height: 100%;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: brightness(0.8);
}

.carousel-text {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  max-width: 800px;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
}

.carousel-text h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #00d1ff;
}

.carousel-text p {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Navigation buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.carousel-btn:hover {
  background: rgba(0, 209, 255, 0.6);
}

#prev {
  left: 20px;
}
#next {
  right: 20px;
}

/* Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-dot.active {
  background: #00d1ff;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .carousel-text h2 {
    font-size: 2rem;
  }
  .carousel-text p {
    font-size: 1rem;
  }
}


/* --------------------
   CASE STUDIES
-------------------- */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 980px) {
  .cs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cs-grid {
    grid-template-columns: 1fr;
  }
}

.cs-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
}

.cs-info {
  padding: 16px;
}

/* --------------------
   PROCESS / LISTS
-------------------- */
.process-list {
  list-style: decimal;
  margin-left: 20px;
  color: var(--bg);
}

.process-list li {
  margin-bottom: 12px;
}

/* --------------------
   CTA QUOTE
-------------------- */
.cta-quote {
  background: var(--card-bg);
  text-align: center;
  padding: 60px 0;
}

.cta-quote h2 {
  margin-bottom: 16px;
}

.cta-quote p {
  color: var(--muted);
  margin-bottom: 24px;
}

.cta-quote .btn {
  background: var(--accent);
  color: #000;
  padding: 12px 24px;
  border-radius: 999px;
}

/* --------------------
   CONTACT PAGE
-------------------- */
.contact-section {
  padding: 60px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-form-wrapper form {
  display: grid;
  gap: 14px;
}

.contact-form-wrapper input,
.contact-form-wrapper textarea {
  background: #0b0b0b;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  font-size: 15px;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.contact-list strong {
  color: var(--accent);
}

/* --------------------
   FOOTER
-------------------- */
.site-footer {
  background: var(--panel);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 36px 0;
  margin-top: 28px;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  height: 44px;
}

/* --------------------
   SECTION FADE-IN ANIMATION
-------------------- */
.fade-section {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}
