/* ============================================================
   DHRUV AWS PROJECT — services.css
   Shared styles for all AWS Service Info Pages
   ============================================================ */

/* ── Fonts & Reset ── */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

:root {
  --bg-primary: #0B1120;
  --bg-secondary: #111827;
  --bg-card: #1A2440;
  --bg-card-hover: #1E2A4A;
  --cyan: #00E5FF;
  --cyan-mid: rgba(0,229,255,0.3);
  --cyan-glow: rgba(0,229,255,0.08);
  --orange: #FF9900;
  --orange-mid: rgba(255,153,0,0.3);
  --green: #22C55E;
  --green-mid: rgba(34,197,94,0.3);
  --red: #EF4444;
  --text-white: #F8FAFC;
  --text-gray: #94A3B8;
  --text-dim: #64748B;
  --border-color: rgba(0,229,255,0.1);
  --transition: 0.3s ease;
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-white);
  line-height: 1.7;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--cyan-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }
::selection { background: rgba(0,229,255,0.3); color: #fff; }

/* ── Navbar ── */
.service-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(11,17,32,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 24px;
  height: auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Left Side: Brand Logo ── */
.service-nav .nav-left {
  display: flex;
  align-items: center;
  gap: 0;
}

/* ── Right Side: Service Name ── */
.service-nav .nav-right {
  display: flex;
  align-items: center;
}

.service-nav .nav-title {
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.5));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-nav .nav-title span {
  -webkit-text-fill-color: var(--cyan);
}

/* ── Nav Logo (Dhruv AWS brand) ── */
.service-nav .nav-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all var(--transition);
}

.service-nav .nav-logo-link:hover {
  opacity: 0.85;
  transform: translateX(-2px);
}

.service-nav .nav-logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #FF9900, #FF6600);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  box-shadow: 0 0 25px rgba(255,153,0,0.4);
  flex-shrink: 0;
}

.service-nav .nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.service-nav .nav-logo-title {
  font-family: 'Orbitron', monospace;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-white);
  letter-spacing: 0.5px;
}

.service-nav .nav-logo-sub {
  font-size: 10px;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Back button ── */
.service-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: rgba(255,255,255,0.04);
  color: var(--text-gray);
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition);
  margin-right: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.service-back-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--cyan-mid);
  color: var(--cyan);
  transform: translateX(-3px);
}

/* ── Hero Section ── */
.service-hero {
  padding: 120px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.service-hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
  pointer-events: none;
}
.service-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,229,255,0.08);
  border: 1px solid var(--cyan-mid);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  position: relative;
}
.service-hero .service-hero-icon {
  width: 80px; height: 80px;
  margin: 0 auto 24px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  position: relative;
  animation: heroFloat 3s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.service-hero .service-hero-icon.color-s3 { background: linear-gradient(135deg, rgba(0,229,255,0.2), rgba(0,229,255,0.05)); color: var(--cyan); box-shadow: 0 0 40px rgba(0,229,255,0.15); }
.service-hero .service-hero-icon.color-lambda { background: linear-gradient(135deg, rgba(255,153,0,0.2), rgba(255,153,0,0.05)); color: var(--orange); box-shadow: 0 0 40px rgba(255,153,0,0.15); }
.service-hero .service-hero-icon.color-cognito { background: linear-gradient(135deg, rgba(34,197,94,0.2), rgba(34,197,94,0.05)); color: var(--green); box-shadow: 0 0 40px rgba(34,197,94,0.15); }
.service-hero .service-hero-icon.color-ec2 { background: linear-gradient(135deg, rgba(255,153,0,0.2), rgba(255,153,0,0.05)); color: var(--orange); box-shadow: 0 0 40px rgba(255,153,0,0.15); }
.service-hero .service-hero-icon.color-efs { background: linear-gradient(135deg, rgba(0,229,255,0.2), rgba(0,229,255,0.05)); color: var(--cyan); box-shadow: 0 0 40px rgba(0,229,255,0.15); }
.service-hero h1 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 8px;
  position: relative;
}
.service-hero .service-full-name {
  font-size: clamp(14px, 2vw, 18px);
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
}
.service-hero .hero-sub {
  font-size: 16px;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  position: relative;
}

/* ── Content Section ── */
.content-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
  position: relative;
  z-index: 1;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header .section-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  padding: 4px 12px;
  border: 1px solid var(--cyan-mid);
  border-radius: 100px;
  background: rgba(0,229,255,0.05);
}
.section-header h2 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-gray);
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Content Card ── */
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.info-card:hover {
  border-color: var(--cyan-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.info-card:hover::before { opacity: 1; }
.info-card h3 {
  font-family: 'Orbitron', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.info-card h3 i { font-size: 16px; }
.info-card p {
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 12px;
}
.info-card p:last-child { margin-bottom: 0; }
.info-card ul {
  list-style: none;
  padding: 0;
}
.info-card ul li {
  color: var(--text-gray);
  font-size: 14px;
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.info-card ul li:last-child { border-bottom: none; }
.info-card ul li::before {
  content: '\25B7';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 14px;
}
.info-card ul li strong { color: var(--text-white); }

/* ── Feature Grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.feature-card:hover {
  border-color: var(--cyan-mid);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.feature-card .f-icon {
  width: 48px; height: 48px;
  border-radius: 14p

}

/* ======================== FLOW / ARCHITECTURE DIAGRAM ======================== */
.flow-diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin: 40px 0 20px;
  position: relative;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 140px;
  max-width: 180px;
  flex: 1 1 0;
  position: relative;
}

.flow-step-box {
  width: 100%;
  background: linear-gradient(135deg, rgba(0,229,255,0.08), rgba(0,229,255,0.02));
  border: 1px solid var(--cyan-mid);
  border-radius: 16px;
  padding: 20px 14px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  backdrop-filter: blur(10px);
}

.flow-step-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--cyan-glow);
  border-color: var(--cyan);
}

.flow-step .f-icon {
  font-size: 28px;
  margin-bottom: 10px;
  display: block;
}

.flow-step .f-icon.color-s3 { color: #00E5FF; }
.flow-step .f-icon.color-lambda { color: #FF9900; }
.flow-step .f-icon.color-cognito { color: #22C55E; }
.flow-step .f-icon.color-ec2 { color: #FF9900; }
.flow-step .f-icon.color-efs { color: #00E5FF; }

.flow-step-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-white);
  margin: 0 0 4px;
  line-height: 1.3;
}

.flow-step-desc {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.4;
}

/* ── Arrow Connector ── */
.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  flex: 0 0 auto;
  color: var(--cyan-mid);
  font-size: 18px;
  position: relative;
  padding: 0 4px;
}

.flow-arrow i {
  opacity: 0.5;
  transition: all var(--transition);
}

.flow-step:hover ~ .flow-arrow i,
.flow-arrow:hover i {
  opacity: 1;
  color: var(--cyan);
  transform: scale(1.2);
}

/* ── Step Number Badge ── */
.flow-step-num {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 24px;
  height: 24px;
  background: var(--cyan);
  color: #0B1120;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,229,255,0.4);
}

/* ── Flow Wrapper ── */
.flow-wrapper {
  background: rgba(0,229,255,0.03);
  border: 1px solid rgba(0,229,255,0.08);
  border-radius: 20px;
  padding: 30px 20px;
  margin-top: 30px;
  position: relative;
  overflow: hidden;
}

.flow-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-mid), transparent);
}

.flow-label {
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
}

/* ── Vertical Flow (for mobile) ── */
@media (max-width: 768px) {
  .flow-diagram {
    flex-direction: column;
    align-items: center;
  }
  .flow-step {
    min-width: 200px;
    max-width: 280px;
  }
  .flow-arrow {
    min-width: 0;
    padding: 8px 0;
    transform: rotate(90deg);
  }
}

/* ── Flow Row Wrapper ── */
.flow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

/* ── Extra Color Classes ── */
.color-s3-light { color: #00E5FF; }
.color-lambda-light { color: #FF9900; }
.color-cognito-light { color: #22C55E; }
.color-ec2-light { color: #FF9900; }
.color-efs-light { color: #00E5FF; }

/* Amplify & API Gateway icon colors */
.service-hero-icon.color-amplify {
  background: rgba(192,38,211,0.2);
  color: #D946EF;
  box-shadow: 0 0 40px rgba(192,38,211,0.15);
}
.f-icon.color-amplify {
  color: #D946EF !important;
}
.t-amplify {
  color: #D946EF !important;
  background: rgba(192,38,211,0.15);
}

.service-hero-icon.color-api {
  background: rgba(20,184,166,0.2);
  color: #14B8A6;
  box-shadow: 0 0 40px rgba(20,184,166,0.15);
}
.f-icon.color-api {
  color: #14B8A6 !important;
}
.t-api {
  color: #14B8A6 !important;
  background: rgba(20,184,166,0.15);
}

/* ── Architecture Desc Card ── */
.arch-note {
  background: rgba(0,229,255,0.05);
  border-left: 3px solid var(--cyan);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin-top: 20px;
  color: var(--text-gray);
  font-size: 14px;
  line-height: 1.7;
}
