/* ══════════════════════════════════════
   PORTFOLIO — style.css
   Brown & Black professional theme
   ══════════════════════════════════════ */

/* ── RESET & ROOT ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:           #0a0703;
  --bg2:          #0e0b05;
  --accent:       #c07a3a;
  --accent2:      #e8b870;
  --text:         #e8dcc8;
  --muted:        #7a6248;
  --card-bg:      #140f07;
  --card-border:  rgba(180, 110, 40, 0.22);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── STARS BACKGROUND ── */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: rgba(180, 110, 40, 0.5);
  animation: twinkle var(--d, 3s) ease-in-out infinite var(--delay, 0s);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.1; }
  50%       { opacity: 0.8; }
}

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 60px;
  background: rgba(10, 7, 3, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid rgba(180, 110, 40, 0.15);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent2);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent2);
}

/* ── HERO ── */
.hero {
  padding: 140px 60px 80px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 100, 30, 0.14) 0%, transparent 70%);
  top: 0; right: 100px;
  pointer-events: none;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1);    opacity: 1;   }
  50%       { transform: scale(1.08); opacity: 0.7; }
}

.hero-judges {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.hero-judges span {
  color: var(--accent);
}

.hero-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  object-position: center;
  border: 2px solid rgba(180, 110, 40, 0.5);
  box-shadow: 0 0 40px rgba(180, 100, 30, 0.4);
  margin: 20px 0 24px;
}

.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 700;
  color: var(--accent2);
  margin-bottom: 8px;
}

.hero-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 800;
  color: #f0e4cc;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.hero-headline span {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.hero-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-sub a {
  color: var(--accent);
  text-decoration: none;
}

.hero-desc {
  font-size: 14px;
  color: #6a5238;
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 36px;
}

/* ── SECTION COMMONS ── */
section {
  padding: 80px 60px;
  position: relative;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  font-weight: 500;
}

/* ── WORK EXPERIENCE ── */
#work {
  background: var(--bg2);
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 760px;
}

.work-card {
  background: var(--card-bg);
  border: 0.5px solid var(--card-border);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.work-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at bottom right, rgba(180, 100, 30, 0.1), transparent 60%);
  pointer-events: none;
}

.work-card:hover {
  border-color: rgba(180, 110, 40, 0.5);
  transform: translateY(-2px);
}

.work-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3a1a04, #7a4010);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.work-info .company {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent2);
  margin-bottom: 3px;
}

.work-info .role {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.work-info .period {
  font-size: 10px;
  color: #4a3018;
  margin-top: 3px;
}

/* ── ORBIT / TECH STACK ── */
#orbit {
  background: var(--bg);
  padding: 48px 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.orbit-headline {
  text-align: center;
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #e8dcc8;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.orbit-headline span {
  color: var(--accent);
}

.orbit-subline {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 40px;
}

.icons-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  position: relative;
  z-index: 10;
}

.tech-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #1a1108;
  border: 1px solid rgba(180, 110, 40, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, border-color 0.2s;
  cursor: default;
  position: relative;
  z-index: 10;
}

.tech-icon:hover {
  transform: scale(1.12);
  border-color: var(--accent);
}

.orbit-scene {
  position: relative;
  width: 560px; height: 340px;
  margin-top: -10px;
}

#lineCanvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
}

.orbit-svg-el {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 3;
}

.center-core {
  position: absolute;
  left: 50%; top: 52%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #7a4010, #2e1a04);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 0 40px rgba(180, 100, 30, 0.7), 0 0 80px rgba(180, 100, 30, 0.25);
  animation: corePulse 3s ease-in-out infinite;
}

@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 40px rgba(180,100,30,0.7), 0 0 80px  rgba(180,100,30,0.25); }
  50%       { box-shadow: 0 0 60px rgba(200,130,40,0.9), 0 0 120px rgba(180,100,30,0.45); }
}

.core-symbol {
  color: #e8b870;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  user-select: none;
  line-height: 1;
  letter-spacing: -2px;
}

/* ── ACHIEVEMENTS ── */
#achievements {
  background: var(--bg2);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 900px;
}

.achievement-card {
  min-height: 240px;
  padding: 12px;
  border: 0.5px solid var(--card-border);
  border-radius: 10px;
  background: rgba(20, 15, 7, 0.78);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.achievement-card:hover {
  border-color: rgba(232, 184, 112, 0.42);
  transform: translateY(-2px);
}

.achievement-card img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  background: #090603;
}

/* ── PROJECTS ── */
#projects {
  background: var(--bg);
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 64px;
  max-width: 780px;
}

.project-card:last-child {
  margin-bottom: 0;
}

.project-card.reverse {
  direction: rtl;
}

.project-card.reverse > * {
  direction: ltr;
}

.project-title {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #e8dcc8;
  margin-bottom: 10px;
}

.project-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.project-links {
  display: flex;
  gap: 8px;
}

.proj-link {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(180, 100, 30, 0.12);
  border: 0.5px solid rgba(180, 110, 40, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.proj-link:hover {
  background: rgba(180, 100, 30, 0.3);
}

.project-mockup {
  background: #180f05;
  border: 0.5px solid rgba(180, 110, 40, 0.2);
  border-radius: 10px;
  padding: 16px;
  height: 180px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(180, 110, 40, 0.18);
  width: 60%;
}

.mockup-bar.short { width: 40%; }
.mockup-bar.long  { width: 80%; }

.mockup-block {
  flex: 1;
  background: rgba(180, 110, 40, 0.07);
  border-radius: 6px;
}

.mockup-glow {
  position: absolute;
  bottom: -20px; right: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 100, 30, 0.28), transparent);
}

/* ── CONTACT ── */
#contact {
  background: var(--bg);
  padding-bottom: 100px;
}

.contact-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 28px;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin-bottom: 22px;
}

.contact-detail {
  min-height: 86px;
  padding: 16px;
  border: 0.5px solid rgba(180, 110, 40, 0.24);
  border-radius: 8px;
  background: rgba(20, 15, 7, 0.74);
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
  transition: border-color 0.2s, transform 0.2s, color 0.2s;
}

.contact-detail:hover {
  border-color: rgba(232, 184, 112, 0.46);
  color: var(--accent2);
  transform: translateY(-2px);
}

.contact-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: rgba(180, 100, 30, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-detail strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-mailbox {
  max-width: 560px;
  margin-bottom: 22px;
}

.contact-mailbox label {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-mailbox textarea {
  width: 100%;
  resize: vertical;
  min-height: 132px;
  padding: 14px 16px;
  border: 0.5px solid rgba(180, 110, 40, 0.26);
  border-radius: 8px;
  background: rgba(20, 15, 7, 0.78);
  color: var(--text);
  font: inherit;
  line-height: 1.6;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-mailbox textarea:focus {
  border-color: rgba(232, 184, 112, 0.64);
  box-shadow: 0 0 0 3px rgba(192, 122, 58, 0.12);
}

.contact-mailbox textarea::placeholder {
  color: #6e573e;
}

.contact-mailbox button {
  margin-top: 12px;
  padding: 11px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #140f07;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.contact-mailbox button:hover {
  background: var(--accent2);
  transform: translateY(-1px);
}

.contact-socials {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(180, 100, 30, 0.1);
  border: 0.5px solid rgba(180, 110, 40, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}

.social-icon:hover {
  background: rgba(180, 100, 30, 0.3);
  transform: scale(1.1);
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 24px;
  border-top: 0.5px solid rgba(180, 110, 40, 0.1);
  font-size: 12px;
  color: #4a3018;
  background: var(--bg);
}

/* ── FADE-IN ANIMATION ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 12px; }

  section,
  .hero { padding-left: 20px; padding-right: 20px; }

  .work-grid,
  .achievements-grid,
  .project-card { grid-template-columns: 1fr; }

  .hero-headline { font-size: 32px; }

  .orbit-scene { width: 340px; height: 220px; }

  .contact-details { grid-template-columns: 1fr; }
}
