/* ============================================================
   CODING-THEMED PORTFOLIO THEME — GREEN ON DARK
   Updated: more spacing, consistent nav styling
   ============================================================ */

:root{
  --bg-dark: #071412;
  --panel: #0b1d18;
  --muted: #9db3ac;
  --accent: #55e089;
  --accent-2: #7ee8b3;
  --mono-bg: #05221b;
  --text: #e8fff7;
  --hint: #7fb69c;

  --radius:12px;
  --shadow: 0 14px 40px rgba(2,6,6,0.55);
  --maxw:1200px;

  --mono: "JetBrains Mono", "Fira Code", "Roboto Mono", Menlo, Monaco, Consolas, "Courier New", monospace;
}

/* base */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  padding:0;
  font-family:var(--mono);
  background:var(--bg-dark);
  color:var(--text);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

/* ============================
   TOP NAVBAR (left-center-right)
   fixed at top
   ============================ */
.top-codebar{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  padding:14px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:#0b1d18;
  border-bottom:1px solid rgba(255,255,255,0.06);
  box-shadow:0 12px 36px rgba(0,0,0,0.6);
  z-index:99999;
  font-family:var(--mono);
}

/* left: home */
.top-left{ min-width:120px; display:flex; align-items:center; }
.top-home-link{
  display:inline-block;
  padding:8px 14px;
  border-radius:8px;
  background:linear-gradient(120deg,var(--accent),var(--accent-2));
  color:#04120d;
  text-decoration:none;
  font-weight:800;
  box-shadow:0 10px 26px rgba(0,0,0,0.45);
  transition:transform .14s ease;
}
.top-home-link:hover{ transform:translateY(-2px); }

/* center: about info horizontally spread */
.top-center{ flex:1 1 auto; display:flex; justify-content:center; }
.top-about{
  display:flex;
  gap:28px;
  align-items:center;
  padding:8px 16px;
  border-radius:10px;
  background:linear-gradient(180deg, rgba(0,0,0,0.24), rgba(0,0,0,0.12));
  border:1px solid rgba(255,255,255,0.04);
  box-shadow: inset 0 0 14px rgba(0,0,0,0.30);
  color:var(--accent-2);
  font-size:14px;
  white-space:nowrap;
}
.top-about .about-item{ display:inline-block; color:var(--accent-2); }

/* right: nav links (styled pills) */
.top-right{
  display:flex;
  gap:10px;
  align-items:center;
  min-width:220px;
  justify-content:flex-end;
}
.top-right a{
  padding:8px 14px;
  border-radius:10px;
  text-decoration:none;
  font-family:var(--mono);
  font-size:14px;
  color:var(--muted);
  transition:all .16s ease;
  background:transparent;
  border:1px solid transparent;
}
.top-right a:hover{
  color:var(--accent-2);
  transform:translateY(-3px);
  background:rgba(85,224,137,0.04);
  box-shadow:0 10px 26px rgba(0,0,0,0.45);
}
.top-right a.active{
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  color:#04120d;
  font-weight:800;
  box-shadow:0 12px 30px rgba(0,0,0,0.55);
  transform:none;
}

/* push main content down so top bar doesn't overlap */
.wrap{
  max-width:var(--maxw);
  margin:130px auto 80px auto;  /* more space top & bottom */
  padding:36px;
  display:flex;
  flex-direction:column;
  gap:36px;                     /* more breathing room between sections */
}

/* page header (below nav) */
.header{ display:flex; align-items:center; gap:18px; }
.logo{
  width:72px; height:72px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  color:#04120d; font-weight:900; font-size:24px; box-shadow:var(--shadow);
}
.title h1{ margin:0; font-size:26px; color:var(--accent); font-family:var(--mono); }
.small{ color:var(--muted); font-size:14px; }

/* cards */
.card{
  background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding:30px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.03);
  box-shadow:var(--shadow);
  transition:transform .28s ease, box-shadow .28s ease;
}
.card:hover{ transform:translateY(-8px); box-shadow:0 24px 60px rgba(0,0,0,0.7); }

/* hero */
.hero{ display:flex; gap:36px; align-items:center; }
.hero .media img{ width:300px; height:180px; object-fit:cover; border-radius:14px; box-shadow:0 14px 40px rgba(0,0,0,0.6); border:1px solid rgba(255,255,255,0.04); }

/* forms/inputs */
textarea.code-input, input.code-input{
  width:100%;
  min-height:100px;
  background:var(--mono-bg);
  border:1px solid rgba(255,255,255,0.06);
  padding:16px;
  color:var(--text);
  border-radius:10px;
  font-family:var(--mono);
  font-size:15px;
  line-height:1.6;
}

/* background gradient & blobs (script.js manipulates) */
#bg-gradient{
  position:fixed; inset:0; z-index:-100;
  opacity:0.03 !important;
  filter:blur(48px);
  background:linear-gradient(120deg, rgba(85,224,137,0.10), rgba(126,232,179,0.08), rgba(60,130,90,0.06));
}
.blob{ position:fixed; pointer-events:none; z-index:-90; mix-blend-mode:screen; opacity:0.20 !important; filter:blur(20px); transition:transform 300ms linear; }

/* progress & footer */
#scroll-progress{ position:fixed; top:0; left:0; height:4px; width:0; background:linear-gradient(90deg,var(--accent),var(--accent-2)); z-index:999999; border-bottom-left-radius:4px; border-bottom-right-radius:4px; }
footer{ text-align:center; color:var(--muted); font-size:13px; margin-top:28px; padding-bottom:26px; }

/* responsive */
@media (max-width:980px){
  .hero{ flex-direction:column-reverse; gap:18px; }
  .hero .media img{ width:100%; height:200px; }
  .wrap{ padding:20px; gap:24px; margin-top:150px; }
  .top-about{ gap:14px; font-size:13px; padding:6px 10px; white-space:normal; }
  .top-right{ min-width:140px; }
}
@media (max-width:640px){
  .top-codebar{ flex-direction:column; gap:8px; align-items:stretch; padding:10px; }
  .top-left, .top-right{ justify-content:center; }
  .wrap{ margin-top:180px; padding:16px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  #bg-gradient{ animation:none!important; opacity:0.03 }
  .blob{ animation:none!important; transition:none!important; opacity:0.14!important; }
  .card:hover{ transform:none; }
}

/* ============================================================
   IMPROVED SPACING FOR SECTIONS, TITLES, AND CONTENT
   ============================================================ */

/* Increase vertical spacing inside cards */
.card {
  padding: 38px;                  /* previously 26–30px */
  margin-bottom: 32px;            /* extra space below each card */
}

/* Add more space above & below section titles */
.card h2,
.card h3 {
  margin-top: 0;
  margin-bottom: 22px !important;  /* bigger spacing under titles */
  font-size: 26px;
}

/* More space between paragraphs inside cards */
.card p {
  margin-top: 14px;
  margin-bottom: 14px;
  line-height: 1.75;
}

/* Increase spacing between card groups */
main > .card:not(:last-child) {
  margin-bottom: 40px !important;
}

/* Extra breathing room between hero & rest of page */
.hero {
  margin-bottom: 40px !important;
}

/* Slightly increase spacing between card title + first element */
.card h2 + p,
.card h3 + p {
  margin-top: 10px !important;
}

/* Bigger gap between any heading and next card */
section.card + section.card {
  margin-top: 40px !important;
}

/* ============================
   BUTTON STYLE (for Read my journey →)
   ============================ */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #04120d;
  font-weight: 800;
  text-decoration: none;
  font-family: var(--mono);
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.50);
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(0,0,0,0.55);
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.50);
}

.hero .media img{
  width:420px;
  height:280px;
  border-radius:14px;
  object-fit:cover;
}
