/*
 * DIGORA Digital Solutions – Global Stylesheet
 *
 * This stylesheet defines the dark themed visual identity for the
 * DIGORA website. A palette of deep blues and blacks provides
 * contrast for the bright accent colour which draws attention
 * to calls to action and key headings. The design is fully
 * responsive: cards stack on mobile screens and the navigation
 * collapses behind a hamburger menu. Use these classes across
 * all pages to ensure a consistent look and feel.
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --bg-color: #0d1117;
  --panel-color: #161b22;
  --accent-color: #0abda0;
  --secondary-color: #58a6ff;
  --text-color: #eaeaea;
  --muted-text: #8b949e;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Poppins', sans-serif;
  scroll-behavior: smooth;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

nav .logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-color);
  text-decoration: none;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav ul li + li {
  margin-left: 20px;
}

nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a:focus {
  color: var(--accent-color);
}

/* Mobile menu toggle */
nav .menu-toggle {
  display: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-color);
}

@media (max-width: 768px) {
  nav ul {
    position: absolute;
    top: 70px;
    right: 0;
    flex-direction: column;
    background-color: var(--bg-color);
    width: 220px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid rgba(255,255,255,0.07);
    padding: 20px;
  }
  nav ul.open {
    transform: translateX(0);
  }
  nav ul li + li {
    margin-left: 0;
    margin-top: 15px;
  }
  nav .menu-toggle {
    display: block;
  }
}

/* General sections */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
}
.section-title {
  font-size: 2.4rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--accent-color);
}

/* Hero */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('images/hero-bg.png');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(13, 17, 23, 0.65);
}
.hero .content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}
.hero h1 {
  font-size: 3rem;
  margin: 0 0 20px;
  line-height: 1.2;
  color: var(--text-color);
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: 35px;
  color: var(--muted-text);
}
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  background-color: var(--accent-color);
  color: var(--bg-color);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
  margin-right: 10px;
}
.btn:hover,
.btn:focus {
  background-color: var(--secondary-color);
  color: var(--bg-color);
}

/* Services preview on home */
.services-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.service-card {
  background-color: var(--panel-color);
  padding: 30px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}
.service-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--accent-color);
}
.service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted-text);
  line-height: 1.5;
}

/* Why DIGORA */
.why-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}
.why-item {
  flex: 1 1 260px;
  background-color: var(--panel-color);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
}
.why-item h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--accent-color);
}
.why-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted-text);
  line-height: 1.5;
}

/* Featured work / portfolio preview */
.features-work {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.feature-card {
  background-color: var(--panel-color);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}
.feature-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.feature-card h4 {
  margin: 0;
  padding: 15px;
  color: var(--accent-color);
  font-size: 1.1rem;
}

/* Process steps */
.process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.step {
  flex: 1 1 220px;
  background-color: var(--panel-color);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
}
.step h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--accent-color);
}
.step p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted-text);
  line-height: 1.5;
}

/* Contact form */
.contact-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 20px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact-form input,
.contact-form textarea {
  padding: 15px;
  border: none;
  border-radius: 5px;
  background-color: var(--panel-color);
  color: var(--text-color);
  font-size: 1rem;
  resize: vertical;
}
.contact-form button {
  align-self: flex-start;
}

/* Footer */
footer {
  background-color: #0a0f15;
  color: var(--muted-text);
  padding: 60px 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.footer-section {
  flex: 1 1 250px;
}
.footer-section h3 {
  color: var(--accent-color);
  margin-top: 0;
  margin-bottom: 12px;
}
.footer-section a {
  color: var(--muted-text);
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.footer-section a:hover,
.footer-section a:focus {
  color: var(--accent-color);
}

/* Table layouts for portfolio page */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.portfolio-item {
  background-color: var(--panel-color);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}
.portfolio-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.portfolio-item .info {
  padding: 20px;
}
.portfolio-item .info h4 {
  margin: 0 0 10px;
  color: var(--accent-color);
}
.portfolio-item .info p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted-text);
}

/* About page */
.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: center;
}
.about-text {
  flex: 1 1 500px;
}
.about-text h2 {
  color: var(--accent-color);
  margin-top: 0;
}
.about-text p {
  color: var(--muted-text);
  line-height: 1.6;
}
.about-image {
  flex: 1 1 400px;
  text-align: center;
}
.about-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

/* Services page cards */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.service-detail {
  background-color: var(--panel-color);
  padding: 40px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-detail:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}
.service-detail h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--accent-color);
}
.service-detail ul {
  padding-left: 20px;
  color: var(--muted-text);
}
.service-detail ul li {
  margin-bottom: 8px;
}
.service-detail .btn {
  margin-top: 20px;
}

/* Process page */
.timeline {
  counter-reset: step;
}
.timeline-step {
  position: relative;
  padding-left: 60px;
  margin-bottom: 40px;
}
.timeline-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.timeline-step h4 {
  margin: 0 0 10px;
  color: var(--accent-color);
}
.timeline-step p {
  margin: 0;
  color: var(--muted-text);
  line-height: 1.5;
}

/* Utility classes */
.text-center {
  text-align: center;
}
.mt-2 { margin-top: 20px; }
.mt-4 { margin-top: 40px; }
.mb-2 { margin-bottom: 20px; }
.mb-4 { margin-bottom: 40px; }
