/* =========================================================
   SUN PROJECT — MIDNIGHT INFRA THEME
   Dark Blue + Teal + Cyber Grid Neon Style
========================================================= */

/* ---------------------------
   ROOT COLORS
---------------------------- */
:root {
  --bg-dark: #0A0F1C;
  --bg-grid: rgba(255, 255, 255, 0.02);
  --text-light: #E8F8FF;
  --text-dim: #9AB7C8;

  --teal: #00E5FF;
  --blue: #29B6F6;
  --blue-glow: rgba(0, 240, 255, 0.45);
  --cyan-glow: rgba(0, 230, 255, 0.55);

  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(0,240,255,0.22);
}

/* 모바일 네비 기본 숨김 */


/* ---------------------------
   GLOBAL
---------------------------- */
.sun-body {
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: "Pretendard", sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* Cyber Grid Background */
.sun-body::before {
  content: "";
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 80px 80px;
  position: fixed;
  top: 0; left: 0;
  z-index: -2;
}

/* Container */
.sun-container {
  width: 92%;
  max-width: 1300px;
  margin: auto;
}

/* Sections */
.sun-section {
  padding: 110px 0;
}

.sun-section-alt {
  padding: 110px 0;
  background: rgba(255, 255, 255, 0.02);
}

.sun-section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 55px;

  background: linear-gradient(90deg, var(--teal), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* =========================================================
   HERO SECTION
========================================================= */

.sun-hero {
  padding: 150px 0 110px;
}

.sun-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;

  max-width: 1300px;
  width: 92%;
  margin: auto;
}

.sun-hero-left {
  flex: 1;
  min-width: 450px;
}

.sun-hero-title {
  font-size: 2.7rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sun-hero-subtitle {
  margin-top: 12px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dim);
}

.sun-hero-desc {
  margin-top: 20px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 620px;
}

.sun-tag-box {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sun-tag-box span {
  padding: 8px 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 30px;
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.sun-hero-right {
  flex: 0 0 260px;
  display: flex;
  justify-content: center;
}

.sun-logo-card {
  width: 260px;
  height: 260px;
  padding: 30px;

  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 28px;

  display: flex;
  justify-content: center;
  align-items: center;

  backdrop-filter: blur(18px);
  box-shadow: 0 0 35px var(--cyan-glow);
}

.sun-logo-card img {
  width: 85%;
}


/* Mobile HERO */
@media (max-width: 860px) {
  .sun-hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .sun-hero-right {
    order: -1;
  }
}


/* =========================================================
   SUMMARY GRID (WHAT / WHY / HOW / RESULT)
========================================================= */

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.summary-card {
  padding: 32px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 18px var(--blue-glow);
}

.summary-card h3 {
  color: var(--teal);
  font-size: 1.35rem;
  margin-bottom: 12px;
  font-weight: 800;
}

.summary-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.55;
}


/* Responsive Summary */
@media (max-width: 1100px) {
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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


/* =========================================================
   TOPOLOGY
========================================================= */

.topology-box {
  width: 100%;
  max-width: 900px;
  margin: auto;
  border-radius: 20px;
  padding: 20px;

  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 28px var(--cyan-glow);
}

.topology-box img {
  width: 100%;
  border-radius: 12px;
}


/* =========================================================
   MY ROLE
========================================================= */

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.role-card {
  padding: 32px;
  border-radius: 22px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 18px var(--blue-glow);
}

.role-card h3 {
  color: var(--teal);
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 800;
}

.role-card p {
  color: var(--text-dim);
  line-height: 1.55;
}


/* Mobile Role */
@media (max-width: 900px) {
  .role-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   PROBLEM → SOLUTION
========================================================= */

.ps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ps-card {
  padding: 32px;
  border-radius: 22px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 18px var(--cyan-glow);
}

.ps-card h3 {
  color: var(--teal);
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.problem {
  color: #ff7e7e;
  margin-bottom: 8px;
}

.solution {
  color: #8fffe7;
}


/* Responsive P/S */
@media (max-width: 900px) {
  .ps-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   SERVER ROLES
========================================================= */

.server-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.server-card {
  padding: 32px;
  border-radius: 20px;

  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);

  box-shadow: 0 0 18px var(--blue-glow);
}

.server-card h3 {
  color: var(--teal);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.server-card p {
  color: var(--text-dim);
  line-height: 1.55;
}

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


/* =========================================================
   SECURITY HARDENING
========================================================= */

.sec-list {
  width: 92%;
  max-width: 900px;
  margin: auto;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.8;
}

.sec-list li {
  margin-bottom: 10px;
}


/* =========================================================
   TIMELINE
========================================================= */

.sun-timeline {
  border-left: 3px solid rgba(0,240,255,0.3);
  padding-left: 40px;
  margin-top: 40px;
}

.sun-timeline-item {
  margin-bottom: 55px;
  position: relative;
}

.sun-timeline-item::before {
  content: "";
  width: 18px;
  height: 18px;
  background: var(--teal);
  border-radius: 50%;
  border: 4px solid var(--blue);
  position: absolute;
  left: -48px;
  box-shadow: 0 0 20px var(--cyan-glow);
}

.sun-timeline-item h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--teal);
}

.sun-timeline-item p {
  color: var(--text-dim);
  margin-top: 6px;
}


/* =========================================================
   SCREENSHOTS
========================================================= */

.shot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.shot-card {
  /* aspect-ratio: 1 / 1; */
  border-radius: 18px;
  overflow: hidden;

  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 0 18px var(--blue-glow);
}

.shot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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


/* =========================================================
   TEAM COLLABORATION
========================================================= */

.collab-desc {
  text-align: center;
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.notion-box {
  max-width: 900px;
  margin: auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 0 25px var(--cyan-glow);
}

.notion-box img {
  width: 100%;
  border-radius: 12px;
}


/* =========================================================
   PDF DOWNLOAD
========================================================= */

.pdf-box {
  text-align: center;
}

.pdf-btn {
  display: inline-block;
  padding: 14px 30px;
  background: var(--teal);
  color: #000;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.05rem;

  box-shadow: 0 0 20px var(--cyan-glow);
  transition: 0.3s ease;
}

.pdf-btn:hover {
  transform: translateY(-3px);
}


/* =========================================================
   FOOTER
========================================================= */

.sun-footer {
  padding: 40px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
