/* -----------------------------------------------------------
   DNK Dev - Clean Professional Design System (Updated for Blue Theme)
----------------------------------------------------------- */

:root {
  --bg: #ffffff;
  --surface: #f8f9fa;
  --accent: #E52D4A;
  --accent-light: #ffe0e6;
  --text-main: #333333;
  --text-muted: #666666;
  --border: #e0e0e0;
  --radius: 8px;
  --radius-lg: 16px;
}

/* ========== ANIMATIONS ========== */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

main {
  padding-top: 80px;
}

/* --- Layout Defaults --- */
section { padding: 80px 8%; }

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* --- Card Styling --- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* --- Hero Section Styling --- */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 80px 8%;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), transparent 28%), linear-gradient(180deg, #08101f 0%, #0b152d 38%, #08131f 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.14), transparent 22%), radial-gradient(circle at 85% 15%, rgba(56, 189, 248, 0.12), transparent 18%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.1), transparent 55%), linear-gradient(180deg, rgba(8, 18, 38, 0) 0%, rgba(8, 18, 38, 0.88) 100%);
  pointer-events: none;
}

.hero-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(320px, 0.95fr);
  gap: 40px;
  align-items: center;
}

.hero-copy {
  color: #ffffff;
  padding: 20px 0;
}

.hero-tag {
  display: inline-flex;
  margin-bottom: 22px;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #93c5fd;
}

.hero-copy h1 {
  font-size: clamp(3rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
}

.hero-copy h2 {
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  font-weight: 500;
  margin-bottom: 28px;
  color: rgba(226, 232, 255, 0.88);
  max-width: 760px;
}

.hero-copy p {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 32px;
  max-width: 650px;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.hero-ctas .btn {
  min-width: 180px;
  text-align: center;
  padding: 14px 28px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.hero-ctas .btn:hover {
  transform: translateY(-2px);
}

.hero-ctas .btn.primary {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.24);
  border: 1px solid transparent;
}

.hero-ctas .btn.primary:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
  box-shadow: 0 26px 50px rgba(14, 165, 233, 0.28);
}

.hero-ctas .btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #dbeafe;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-ctas .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(56, 189, 248, 0.6);
}

.hero-panels {
  display: grid;
  gap: 24px;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 30px;
  padding: 32px;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(18px);
}

.hero-panel-main {
  position: relative;
}

.panel-badge {
  display: inline-flex;
  padding: 10px 16px;
  background: rgba(56, 189, 248, 0.12);
  border-radius: 999px;
  color: #bae6fd;
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.hero-panel-main h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #f8fafc;
  margin-bottom: 18px;
}

.hero-panel-main p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.8;
}

.panel-list {
  margin-top: 26px;
  display: grid;
  gap: 16px;
}

.panel-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 18px;
}

.panel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #38bdf8;
  margin-top: 6px;
}

.panel-item strong {
  display: block;
  color: #f8fafc;
  margin-bottom: 6px;
}

.panel-item p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.98rem;
  line-height: 1.7;
}

.hero-panel-secondary {
  display: grid;
  gap: 22px;
  align-items: start;
  text-align: left;
}

.panel-stat {
  display: inline-flex;
  padding: 18px 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 800;
  width: fit-content;
}

.hero-panel-secondary p {
  margin: 0;
  color: #e2e8f0;
  line-height: 1.85;
  font-size: 1rem;
}

.panel-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.panel-footer span {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #dbeafe;
  font-size: 0.95rem;
}

.btn.primary {
  background: #3b82f6;
  color: white;
}

.btn.primary:hover {
  background: #2563eb;
}

.btn.ghost {
  border: 2px solid rgba(59, 130, 246, 0.9);
  color: #bfdbfe;
  background: rgba(255, 255, 255, 0.06);
}

.btn.ghost:hover {
  background: rgba(59, 130, 246, 0.16);
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero {
    padding: 60px 5%;
  }
  .hero-copy h1 {
    font-size: 2.7rem;
  }
  .hero-copy h2 {
    font-size: 1.4rem;
  }
}

.hero-stats {
  padding: 32px 8% 56px;
  background: rgba(15, 23, 42, 0.95);
}

.hero-stats-grid {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  padding: 24px;
  color: #e2e8f0;
  box-shadow: 0 20px 60px rgba(8, 18, 38, 0.15);
}

.hero-stat-card .stat-value {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.hero-stat-card p {
  margin: 0;
  line-height: 1.65;
  color: rgba(226, 232, 255, 0.78);
  font-size: 0.98rem;
}

@media (max-width: 900px) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 640px) {
  .hero-stats {
    padding: 28px 5% 40px;
  }
  .hero-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Stats Section --- */
.stats {
  background: var(--surface);
  padding: 60px 8%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-card h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.stat-card p {
  color: var(--text-muted);
}

/* --- Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
  border-color: var(--accent);
}

.service-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text-main);
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: var(--accent);
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 15px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-card ul {
  margin-bottom: 20px;
  flex: 1;
}

.service-card ul li {
  color: var(--text-muted);
  margin-bottom: 8px;
  font-size: 0.9rem;
  padding-left: 20px;
  position: relative;
}

.service-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* --- Portfolio Section --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.portfolio-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main);
  transition: color 0.3s ease;
}

.portfolio-card:hover h3 {
  color: var(--accent);
}

.portfolio-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1;
}

.portfolio-full {
  /* 2x2 layout - no spanning */
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-full {
    grid-column: 1;
    max-width: 100%;
  }
}

/* --- Process Section --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  padding: 40px 0;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 5%;
  right: 5%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 100%);
  z-index: 0;
  border-radius: 2px;
}

.process-step {
  padding: 40px 20px 20px 20px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.process-step:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(229, 45, 74, 0.15);
  transform: translateY(-6px);
}

.process-step::before {
  content: attr(data-step);
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(229, 45, 74, 0.3);
  z-index: 1;
}

.process-step h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text-main);
  margin-top: 10px;
  transition: color 0.3s ease;
}

.process-step:hover h3 {
  color: var(--accent);
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .process-grid::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* --- Contact Section --- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 15px;
}

.contact-form input,
.contact-form select {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
}

.contact-form button {
  padding: 12px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #CC1F3A;
}

/* --- Testimonials Section --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 10px;
  color: var(--text-main);
}

.testimonial cite {
  color: var(--text-muted);
  font-weight: 600;
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.about-card {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.about-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text-main);
}

.about-card p {
  color: var(--text-muted);
}

/* --- CTA Section --- */
.cta {
  background: var(--accent);
  color: white;
  text-align: center;
  padding: 60px 8%;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.cta .btn {
  background: white;
  color: var(--accent);
}

.cta .btn:hover {
  background: #f0f0f0;
}

/* --- FAQ Section --- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
  padding: 24px;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
  content: '−';
  transform: rotate(0deg);
}

.faq-answer {
  padding: 0 24px 24px 24px;
  color: var(--text-muted);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.faq-answer p {
  margin: 16px 0 0 0;
}

.faq-answer p:first-child {
  margin-top: 0;
}

/* --- FAQ Responsive --- */
@media (max-width: 768px) {
  .faq-container {
    gap: 12px;
  }

  .faq-question {
    padding: 20px;
    font-size: 1rem;
  }

  .faq-question::after {
    font-size: 1.3rem;
  }

  .faq-answer {
    padding: 0 20px 20px 20px;
  }
}
