/* ============================================
   ALBIN ANTONY — PORTFOLIO STYLESHEET
   Aesthetic: Dark editorial with amber accents
   ============================================ */

:root {
  --bg: #0c0c0e;
  --surface: #131316;
  --surface2: #1a1a1f;
  --border: rgba(255,255,255,0.07);
  --text: #e8e6e0;
  --text-muted: #7a7870;
  --text-dim: #4a4844;
  --accent: #e8a320;
  --accent-dim: rgba(232, 163, 32, 0.12);
  --accent-glow: rgba(232, 163, 32, 0.3);
  --font-display: 'Playfair Display', serif;
  --font-mono: 'DM Mono', monospace;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* NOISE OVERLAY */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* SIDE NAV */
.side-nav {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  display: block;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-dot::after {
  content: attr(data-label);
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.nav-dot:hover::after,
.nav-dot.active::after { opacity: 1; }

.nav-dot.active,
.nav-dot:hover {
  background: var(--accent);
  transform: scale(1.6);
}

/* CONTAINER */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 3rem;
}

/* SECTIONS */
.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 0;
  position: relative;
}

/* ============ HERO ============ */
.hero-section {
  padding: 0;
  overflow: hidden;
  position: relative;
  background: radial-gradient(ellipse 80% 60% at 60% 50%, rgba(232,163,32,0.04) 0%, transparent 70%);
}

.hero-bg-text {
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(10rem, 22vw, 22rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
}

.hero-content {
  padding: 0 3rem;
  max-width: 900px;
  z-index: 1;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hero-tag::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--accent);
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.name-line { display: block; }

.accent-line {
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  text-shadow: 0 0 80px var(--accent-glow);
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 3rem;
}

.hero-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
  background: var(--surface);
}

.contact-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.chip-icon {
  font-size: 0.8rem;
  color: var(--accent);
  font-style: normal;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2rem;
  padding: 0.85rem 1.8rem;
  border: 1.5px solid var(--accent);
  border-radius: 3rem;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.35s ease, box-shadow 0.35s ease;
  width: fit-content;
}

.download-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-101%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.download-btn:hover { color: #0c0c0e; box-shadow: 0 0 24px var(--accent-glow); }
.download-btn:hover::before { transform: translateX(0); }

.download-icon,
.download-badge { position: relative; z-index: 1; }

.download-btn span:not(.download-icon):not(.download-badge) { position: relative; z-index: 1; }

.download-btn > * { position: relative; z-index: 1; }

.download-badge {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.5rem;
  border-radius: 0.2rem;
  border: 1px solid currentColor;
  opacity: 0.65;
}

.scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.scroll-line {
  width: 3rem;
  height: 1px;
  background: var(--text-dim);
  animation: scrollLine 1.5s ease-in-out infinite;
  transform-origin: left;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleX(1); opacity: 0.4; }
  50% { transform: scaleX(0.4); opacity: 1; }
}

/* ============ SECTION LABELS ============ */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.section-label::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 4rem;
}

/* ============ SUMMARY ============ */
.summary-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.summary-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.summary-heading h2 em {
  font-style: italic;
  color: var(--accent);
}

.summary-body p {
  margin-bottom: 1.5rem;
  color: rgba(232,230,224,0.75);
  font-size: 1rem;
  line-height: 1.8;
}

.summary-body p strong { color: var(--text); font-weight: 500; }

.stat-row {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; }

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ============ SKILLS ============ */
.skills-section { }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, var(--accent-dim), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-card:hover {
  border-color: rgba(232,163,32,0.3);
  transform: translateY(-4px);
}

.skill-card:hover::before { opacity: 1; }

.skill-card-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.skill-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.tag-group { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem;
  border-radius: 0.3rem;
  background: var(--surface2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.tag.highlight {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(232,163,32,0.2);
}

/* ============ EXPERIENCE ============ */
.experience-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.timeline {
  position: relative;
  padding-left: 12rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
}

.timeline-meta {
  position: absolute;
  left: -12rem;
  width: 10rem;
  top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.2rem;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  text-align: right;
}

.timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--text-dim);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.timeline-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: border-color 0.3s ease;
}

.timeline-item:hover .timeline-card {
  border-color: rgba(232,163,32,0.2);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.timeline-role {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.timeline-company {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.timeline-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.3rem 0.7rem;
  border-radius: 2rem;
}

.timeline-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.timeline-bullets li {
  padding-left: 1.2rem;
  position: relative;
  font-size: 0.9rem;
  color: rgba(232,230,224,0.7);
  line-height: 1.7;
}

.timeline-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.6rem;
  top: 0.3rem;
}

.timeline-bullets li strong { color: var(--text); font-weight: 500; }

/* ============ COMPETENCIES ============ */
.comp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}

.comp-item {
  padding: 2.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background 0.3s ease;
  position: relative;
}

.comp-item:hover { background: var(--surface2); }

.comp-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.8rem;
}

.comp-item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.comp-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============ EDUCATION ============ */
.education-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.edu-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 3rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--bg);
  transition: border-color 0.3s ease;
  gap: 2rem;
}

.edu-card:hover { border-color: rgba(232,163,32,0.3); }

.edu-degree {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.edu-school {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.edu-location {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.edu-year {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232,163,32,0.3);
  line-height: 1;
  white-space: nowrap;
}

/* ============ FOOTER ============ */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* ============ ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.22s; }
.delay-3 { transition-delay: 0.34s; }
.delay-4 { transition-delay: 0.46s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .container { padding: 0 1.5rem; }
  .hero-content { padding: 0 1.5rem; }
  .summary-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .comp-grid { grid-template-columns: 1fr 1fr; }
  .timeline { padding-left: 3rem; }
  .timeline::before { left: 0.7rem; }
  .timeline-meta {
    position: static;
    width: auto;
    margin-bottom: 0.5rem;
    justify-content: flex-start;
    padding-left: 1.5rem;
  }
  .timeline-date { font-size: 0.6rem; }
  .side-nav { display: none; }
  .edu-card { flex-direction: column; }
  .edu-year { font-size: 2rem; }
}

@media (max-width: 600px) {
  .skills-grid { grid-template-columns: 1fr; }
  .comp-grid { grid-template-columns: 1fr; }
  .hero-name { font-size: clamp(3rem, 16vw, 6rem); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
