/* =========================================================
   syntax_raja portfolio — shared styles (v2, polished)
   ========================================================= */

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

:root {
  --bg-dark: #0b1220;
  --bg-panel: #16324a;
  --bg-panel-2: #14293c;
  --accent-blue: #3b82c4;
  --accent-blue-bright: #6db3e8;
  --accent-violet: #a06be0;
  --text-light: #f5f7fa;
  --text-dim: #b9c4d0;
  --nav-bg: #0a0a0a;
  --top-strip-bg: #e7e7e7;
  --top-strip-text: #1a1a1a;
  --white: #ffffff;
  --off-white: #f4f5f7;
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 10px 30px rgba(10, 20, 40, 0.18);
  --shadow-card-hover: 0 16px 40px rgba(10, 20, 40, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--text-light);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

::selection { background: var(--accent-blue-bright); color: #05070f; }

/* ---------- Top notice strip ---------- */
.top-strip {
  background: var(--top-strip-bg);
  color: var(--top-strip-text);
  text-align: center;
  font-size: 0.85rem;
  padding: 10px 16px;
}

/* ---------- Nav bar ---------- */
.navbar {
  background: var(--nav-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #1c1c1c;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; }

.brand .brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  color: var(--white);
}

.brand .brand-name .accent { color: var(--accent-blue-bright); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 600;
  letter-spacing: 0.4px;
  font-size: 0.88rem;
}

.nav-links a {
  color: var(--white);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom-color: var(--accent-blue-bright);
  color: var(--accent-blue-bright);
}

.nav-dropdown { position: relative; }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 14px;
  background: var(--nav-bg);
  border: 1px solid #262626;
  border-radius: 8px;
  min-width: 220px;
  padding: 8px 0;
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 500;
  border-bottom: none;
}

.nav-dropdown-menu a:hover { background: #161616; color: var(--accent-blue-bright); }

.nav-search {
  color: var(--white);
  font-size: 1.05rem;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.nav-search:hover { opacity: 1; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 20px;
    border-top: 1px solid #1c1c1c;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; border-bottom: none; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: #0f0f0f;
    margin-top: 4px;
    display: none;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-toggle { display: block; }
  .nav-search { display: none; }
}

/* ---------- Hero (space background) ---------- */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(80,120,200,0.25), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(120,60,180,0.18), transparent 60%),
    linear-gradient(160deg, #05070f 0%, #0a1120 45%, #101a2e 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, #ffffff 100%, transparent),
    radial-gradient(1.5px 1.5px at 25% 60%, #ffffff 100%, transparent),
    radial-gradient(1px 1px at 40% 15%, #ffffff 100%, transparent),
    radial-gradient(2px 2px at 60% 40%, #ffffff 100%, transparent),
    radial-gradient(1px 1px at 75% 75%, #ffffff 100%, transparent),
    radial-gradient(1.5px 1.5px at 90% 25%, #ffffff 100%, transparent),
    radial-gradient(1px 1px at 15% 85%, #ffffff 100%, transparent),
    radial-gradient(1.5px 1.5px at 55% 90%, #ffffff 100%, transparent);
  opacity: 0.8;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  padding: 0 6vw;
}

.hero-content { flex: 1; min-width: 280px; }

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: var(--accent-blue-bright);
  text-transform: uppercase;
  margin: 0 0 14px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.1s;
}

.hero-content .hero-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  color: var(--white);
  margin: 0;
  line-height: 1.05;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.25s;
}

.hero-content .hero-tag .brackets { color: var(--accent-blue-bright); }

.hero-sub {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 22px 0 0;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.4s;
}

.hero-visual {
  flex: 1;
  max-width: 560px;
  min-width: 280px;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.35s;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero-content .hero-tag, .hero-sub, .hero-visual,
  .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ---------- Tagline strip ---------- */
.tagline-strip {
  background: var(--bg-panel-2);
  padding: 34px 6vw;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.tagline-strip p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.9rem);
  font-weight: 700;
  color: var(--white);
  margin: 0;
  text-align: center;
}

/* ---------- Portfolio button divider ---------- */
.portfolio-divider {
  background: var(--bg-panel-2);
  padding: 40px 6vw 60px;
  display: flex;
  justify-content: center;
}

.portfolio-btn {
  background: var(--white);
  color: #111;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 50px;
  border-radius: 30px;
  letter-spacing: 0.3px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.portfolio-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.45); }

/* ---------- Portfolio grid section ---------- */
.portfolio-section { background: var(--off-white); padding: 8px 6vw 80px; }

.portfolio-hint {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  margin: 34px 0 42px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
}

.portfolio-card { display: flex; flex-direction: column; }

.portfolio-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  display: inline-block;
  width: fit-content;
  margin: 0 0 14px;
  padding-bottom: 3px;
  border-bottom: 3px solid var(--accent-blue-bright);
  letter-spacing: 0.3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.portfolio-card:hover h3 { color: var(--accent-blue); border-color: var(--accent-violet); }

.portfolio-card .card-thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0d1b2e;
  border: 1px solid #223a52;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.portfolio-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-card:hover .card-thumb { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.portfolio-card:hover .card-thumb img { transform: scale(1.06); }

/* ---------- Generic page hero (About / Contact) ---------- */
.page-hero {
  position: relative;
  background:
    radial-gradient(ellipse at 15% 30%, rgba(80,120,200,0.22), transparent 55%),
    radial-gradient(ellipse at 85% 70%, rgba(120,60,180,0.15), transparent 60%),
    linear-gradient(160deg, #05070f 0%, #0a1120 45%, #101a2e 100%);
  padding: 70px 6vw;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 15%, #fff 100%, transparent),
    radial-gradient(1px 1px at 18% 40%, #fff 100%, transparent),
    radial-gradient(1.5px 1.5px at 30% 75%, #fff 100%, transparent),
    radial-gradient(1px 1px at 40% 12%, #fff 100%, transparent),
    radial-gradient(1.5px 1.5px at 52% 55%, #fff 100%, transparent),
    radial-gradient(1px 1px at 60% 85%, #fff 100%, transparent),
    radial-gradient(1.5px 1.5px at 68% 25%, #fff 100%, transparent),
    radial-gradient(1px 1px at 78% 60%, #fff 100%, transparent),
    radial-gradient(1.5px 1.5px at 88% 20%, #fff 100%, transparent),
    radial-gradient(1px 1px at 92% 70%, #fff 100%, transparent),
    radial-gradient(1.5px 1.5px at 15% 90%, #fff 100%, transparent),
    radial-gradient(1px 1px at 48% 30%, #fff 100%, transparent);
  opacity: 0.7;
}

.about-hero { display: flex; align-items: center; gap: 60px; min-height: 480px; }
.about-hero-text { position: relative; z-index: 2; flex: 1.1; }

.about-hero-text h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 1px;
  margin-bottom: 22px;
}

.about-hero-text p { color: var(--text-dim); font-size: 1.03rem; line-height: 1.75; max-width: 600px; }

.about-hero-photo {
  position: relative;
  z-index: 2;
  flex: 0.9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  max-width: 400px;
  margin-left: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.about-hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.section-block { padding: 60px 6vw; }
.section-block.white { background: var(--white); color: #111; }
.section-block.navy { background: var(--bg-panel); color: var(--white); }
.section-block.offwhite { background: var(--off-white); color: #111; }

.section-block h2 { font-family: var(--font-display); font-size: 2rem; margin: 0 0 20px; }
.section-block p { font-size: 1.03rem; line-height: 1.8; max-width: 900px; margin: 0 0 8px; }

.edu-block { margin-bottom: 34px; padding-left: 20px; border-left: 3px solid var(--accent-blue-bright); }
.edu-block h3 { font-size: 1.1rem; margin: 0 0 4px; }
.edu-block .edu-years { color: var(--accent-blue-bright); font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.edu-block .edu-place { text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-dim); font-size: 0.9rem; }

/* ---------- Contact page ---------- */
.contact-hero { min-height: 300px; display: flex; align-items: flex-end; }
.contact-hero-inner { position: relative; z-index: 2; }
.contact-hero h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 3.4rem); color: var(--white); margin: 0; }

.social-row { background: var(--white); display: flex; justify-content: center; gap: 26px; padding: 30px 6vw; }

.social-row a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  color: #333;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.social-row a:hover { transform: translateY(-3px); background: var(--bg-panel); color: var(--accent-blue-bright); }
.social-row svg { width: 22px; height: 22px; }

.contact-note { background: var(--off-white); color: #222; padding: 36px 6vw; text-align: center; font-size: 1.05rem; line-height: 1.7; }
.contact-note p { max-width: 720px; margin: 0 auto; }

.contact-form-section { background: var(--bg-panel-2); padding: 70px 6vw 90px; display: flex; justify-content: center; }

.contact-form {
  width: 100%;
  max-width: 620px;
  background: var(--bg-panel);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.contact-form h2 { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 6px; }
.contact-form .form-lead { color: var(--text-dim); font-size: 0.95rem; margin: 0 0 28px; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: #0d1c30;
  border: 1px solid #26415e;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue-bright);
  box-shadow: 0 0 0 3px rgba(109,179,232,0.18);
}

.form-group .field-error { color: #f28b82; font-size: 0.8rem; margin-top: 6px; display: none; }
.form-group.invalid input,
.form-group.invalid textarea { border-color: #f28b82; }
.form-group.invalid .field-error { display: block; }

.submit-btn {
  width: 100%;
  background: linear-gradient(120deg, var(--accent-blue-bright), var(--accent-violet));
  color: #05070f;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(109,179,232,0.35); }
.submit-btn:active { transform: translateY(0); }

.form-status { margin-top: 16px; font-size: 0.9rem; text-align: center; color: var(--accent-blue-bright); display: none; }
.form-status.show { display: block; }

/* ---------- Placeholder pages ---------- */
.placeholder-page {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 80px 6vw;
  background: var(--off-white);
  color: #222;
}

.placeholder-page h1 { font-family: var(--font-display); font-size: 2.2rem; margin-bottom: 12px; }
.placeholder-page p { color: #555; max-width: 480px; }

.skills-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
}
.skills-list li {
  position: relative;
  padding-left: 22px;
  font-size: 1.05rem;
  color: #333;
  text-align: left;
}
.skills-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
}

/* ---------- Skills page ---------- */
.skills-hero {
  min-height: 420px;
  display: flex;
  align-items: center;
}

.skills-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  flex-wrap: wrap;
}

.skills-hero-text { flex: 1; min-width: 260px; }

.skills-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  color: var(--white);
  margin: 0;
}

.skills-hero-banner {
  flex: 0 1 380px;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.skill-trait-card { display: flex; flex-direction: column; }

.skill-trait-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin: 14px 0 0;
  padding-bottom: 3px;
  border-bottom: 3px solid var(--accent-blue-bright);
  width: fit-content;
  letter-spacing: 0.3px;
}

.skill-trait-thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  background: #0a1120;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.skill-trait-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.skill-trait-card:hover .skill-trait-thumb { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.skill-trait-card:hover .skill-trait-thumb img { transform: scale(1.04); }

/* ---------- Footer ---------- */
.site-footer { background: var(--nav-bg); color: var(--text-dim); text-align: center; padding: 26px; font-size: 0.85rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .about-hero { flex-direction: column; }
  .about-hero-photo { margin: 0 auto; max-width: 100%; }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .contact-form { padding: 28px; }
}
