/* ═══════════════════════════════════════════
   DIPAK GOHIL — PORTFOLIO STYLES
   Theme: Dark Luxury · Navy + Gold
═══════════════════════════════════════════ */

/* ── Variables ───────────────────────────── */
:root {
  --navy:        #0a0f1e;
  --navy-mid:    #111827;
  --gold:        #c9932a;
  --gold-light:  #e0a83a;
  --gold-dim:    rgba(201, 147, 42, 0.15);
  --gold-glow:   rgba(201, 147, 42, 0.06);
  --cream:       #e8e4d8;
  --muted:       #a89b88;
  --subtle:      #555555;
  --rule:        rgba(201, 147, 42, 0.1);

  --font-display: 'Playfair Display', serif;
  --font-body:    'DM Sans', sans-serif;

  --max-w:    1100px;
  --radius:   12px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--cream);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Scrollbar ───────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

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

/* ── Layout Helpers ──────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 0 40px;
}

.container--narrow {
  max-width: 700px;
  text-align: center;
}

/* ── Buttons ─────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 13px 32px;
  border-radius: 6px;
  border: 1.5px solid var(--gold);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn-outline:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 13px 24px;
  border-radius: 6px;
  border: 1px solid rgba(168, 155, 136, 0.25);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn-ghost:hover { color: var(--cream); border-color: var(--muted); transform: translateY(-2px); }
.btn-ghost svg { flex-shrink: 0; }

/* ── Cards ───────────────────────────────── */
.card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.card:hover {
  border-color: rgba(201, 147, 42, 0.45);
  background: var(--gold-glow);
  transform: translateY(-4px);
}

/* ── Tags / Skill Chips ──────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tag {
  display: inline-block;
  background: rgba(201, 147, 42, 0.1);
  border: 1px solid rgba(201, 147, 42, 0.3);
  color: var(--gold);
  border-radius: 100px;
  padding: 5px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  transition: background var(--transition), transform var(--transition);
  cursor: default;
}
.tag:hover { background: rgba(201, 147, 42, 0.25); transform: scale(1.05); }
.tag--sm { font-size: 11px; padding: 4px 11px; }

/* ── Section Shared ──────────────────────── */
.section { padding: 100px 0; position: relative; z-index: 1; }
.section--alt { background: rgba(255, 255, 255, 0.015); }

.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 20px;
}
.divider--center { margin: 0 auto 20px; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.05;
  margin-bottom: 12px;
}

.section-sub {
  font-family: var(--font-body);
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 56px;
  max-width: 620px;
}

.gold-text { color: var(--gold); }

/* ── Fade-in Animations ──────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease var(--delay, 0s), transform 0.7s ease var(--delay, 0s);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}

#navbar.scrolled {
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--rule);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--gold);
  border-color: var(--gold);
}

/* Nav action group (resume + hire me) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-resume {
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 1px;
  gap: 6px;
}

.nav-cta { padding: 10px 24px; font-size: 12px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }

.mobile-link {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--cream);
  transition: color var(--transition);
}
.mobile-link:hover { color: var(--gold); }

.mobile-link--resume {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 12px 28px;
  border-radius: 6px;
  margin-top: 8px;
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  z-index: 1;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-circle--lg {
  right: -100px; top: 50%;
  transform: translateY(-50%);
  width: 600px; height: 600px;
  border: 1px solid rgba(201, 147, 42, 0.08);
  animation: pulse-ring 6s ease-in-out infinite;
}
.hero-circle--md {
  right: -60px; top: 50%;
  transform: translateY(-50%);
  width: 400px; height: 400px;
  border: 1px solid rgba(201, 147, 42, 0.12);
  animation: pulse-ring 6s ease-in-out infinite 0.5s;
}
.hero-circle--glow {
  right: 100px; top: 40%;
  width: 180px; height: 180px;
  background: rgba(201, 147, 42, 0.06);
  filter: blur(40px);
  animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { transform: translateY(-50%) scale(1); opacity: 1; }
  50%       { transform: translateY(-50%) scale(1.03); opacity: 0.7; }
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: hero-enter 1s ease forwards;
}

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Available badge — pulsing green dot */
.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.hero-badge__dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
  animation: ping 2s ease-in-out infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.hero-badge__text {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 110px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -2px;
  color: var(--cream);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--muted);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 32px;
}
.hero-subtitle strong { color: var(--cream); font-weight: 500; }

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 52px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.stat__num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
}
.stat__label {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ═══════════════════════════════════════════
   SKILLS
═══════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card__category {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════════
   EXPERIENCE
═══════════════════════════════════════════ */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  gap: 24px;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.timeline-dot {
  width: 14px; height: 14px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--navy);
  outline: 2px solid var(--gold);
  flex-shrink: 0;
  margin-top: 6px;
}

.timeline-dot--sm {
  width: 10px; height: 10px;
  background: transparent;
  border: 2px solid var(--gold);
  outline: none;
  opacity: 0.6;
}

.timeline-line {
  width: 2px;
  flex: 1;
  min-height: 40px;
  background: linear-gradient(to bottom, rgba(201,147,42,0.4), transparent);
  margin: 6px 0;
}

.timeline-card { flex: 1; margin-bottom: 40px; }

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.timeline-role {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--cream);
}

.timeline-period {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(201,147,42,0.1);
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

.timeline-company {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}

.timeline-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.timeline-points li strong {
  color: var(--cream);
  font-weight: 600;
}

.timeline-points li::before {
  content: '▸';
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Employment gap note */
.gap-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(74, 222, 128, 0.04);
  border: 1px solid rgba(74, 222, 128, 0.15);
  border-radius: var(--radius);
  margin-top: 8px;
}
.gap-note__icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.gap-note p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.gap-note p strong { color: #4ade80; font-weight: 600; }

/* ═══════════════════════════════════════════
   PROJECTS
═══════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.project-icon { font-size: 36px; line-height: 1; }

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

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(201, 147, 42, 0.08);
  border: 1px solid rgba(201, 147, 42, 0.25);
  border-radius: 6px;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.project-link:hover {
  background: rgba(201, 147, 42, 0.2);
  border-color: rgba(201, 147, 42, 0.5);
  transform: translateY(-1px);
}

.project-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 8px;
}

.project-highlight {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201, 147, 42, 0.12);
  border: 1px solid rgba(201, 147, 42, 0.3);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.project-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.project-desc strong { color: var(--cream); font-weight: 500; }

.project-tags { margin-bottom: 0; }

/* ═══════════════════════════════════════════
   EDUCATION
═══════════════════════════════════════════ */
.edu-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 680px;
}

.edu-degree {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 6px;
}

.edu-school {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
}

.edu-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.edu-gpa {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
}
.edu-gpa strong {
  color: var(--gold);
  font-weight: 700;
}

/* ═══════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════ */
.contact-header { margin-bottom: 0; }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 40px 0;
  text-align: left;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--gold-dim);
  border-radius: 10px;
  color: var(--cream);
  transition: border-color var(--transition), background var(--transition);
}
.contact-item:hover {
  border-color: rgba(201,147,42,0.5);
  background: rgba(201,147,42,0.06);
}

.contact-icon {
  font-size: 22px;
  width: 36px;
  flex-shrink: 0;
}

.contact-label {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact-value {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--cream);
}

.contact-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  padding: 28px 40px;
  border-top: 1px solid var(--rule);
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer p {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--subtle);
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .hero { padding: 100px 24px 60px; }
  .section { padding: 70px 0; }

  #navbar { padding: 16px 24px; }

  .nav-links,
  .nav-actions { display: none; }

  .hamburger { display: flex; }

  .hero-title { font-size: 52px; }
  .section-title { font-size: 36px; }

  .hero-circle--lg { width: 320px; height: 320px; right: -80px; }
  .hero-circle--md { width: 220px; height: 220px; right: -50px; }
  .hero-circle--glow { display: none; }

  .hero-stats { gap: 28px; }
  .stat__num { font-size: 28px; }

  .skills-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }

  .timeline-role { font-size: 17px; }
  .timeline-period { font-size: 11px; }

  .contact-item { padding: 12px 16px; }
  .contact-value { font-size: 13px; word-break: break-all; }

  .edu-card { flex-direction: column; align-items: flex-start; }
  .edu-right { align-items: flex-start; }

  .contact-cta { flex-direction: column; align-items: stretch; }
  .contact-cta .btn-primary,
  .contact-cta .btn-outline { text-align: center; justify-content: center; }
}

@media (max-width: 480px) {
  .skills-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary,
  .btn-outline,
  .btn-ghost { text-align: center; justify-content: center; }
}
