/* =============================================
   VISHAL DHIMAN — PORTFOLIO
   Dark theme, teal accent, iOS-inspired
============================================= */

:root {
  --bg: #0d1117;
  --bg-card: #161b22;
  --bg-nav: rgba(13, 17, 23, 0.92);
  --accent: #2dd4bf;
  --accent-dim: rgba(45, 212, 191, 0.1);
  --text: #e6edf3;
  --text-muted: #8b949e;
  --border: rgba(48, 54, 61, 0.8);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }

.accent { color: var(--accent); }

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   NAV
============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: padding var(--transition);
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  counter-increment: none;
}

.nav-links a:hover { color: var(--accent); opacity: 1; }

.nav-cta {
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: 8px 16px;
  border-radius: 6px;
}
.nav-cta:hover { background: var(--accent-dim); opacity: 1 !important; }

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

/* =============================================
   HERO
============================================= */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 100px 80px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-greeting {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero-title {
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-desc {
  max-width: 520px;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-primary {
  background: var(--accent);
  color: #0d1117;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-secondary {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
}
.btn-secondary:hover { background: var(--accent-dim); opacity: 1; transform: translateY(-1px); }

.btn-large { padding: 16px 40px; font-size: 1rem; }

.hero-social {
  display: flex;
  gap: 20px;
}

.hero-social a {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.hero-social a svg { width: 22px; height: 22px; }
.hero-social a:hover { color: var(--accent); opacity: 1; }

/* Phone mockup */
.hero-visual { flex-shrink: 0; }

.phone-mockup {
  width: 220px;
  height: 440px;
  background: var(--bg-card);
  border-radius: 36px;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 0 0 6px #0d1117;
}

.phone-screen {
  width: 190px;
  height: 410px;
  border-radius: 28px;
  background: linear-gradient(135deg, #1c2333 0%, #0d1117 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.app-icon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: transform 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

.app-icon:hover { transform: scale(1.1); }
.app-icon:nth-child(2) { animation-delay: 0.5s; }
.app-icon:nth-child(3) { animation-delay: 1s; }
.app-icon:nth-child(4) { animation-delay: 1.5s; }

.app-icon.abc { background: linear-gradient(135deg, #1a6b5a, #2dd4bf); }
.app-icon.zap { background: linear-gradient(135deg, #6b4e1a, #f59e0b); }
.app-icon.blink { background: linear-gradient(135deg, #1a3a6b, #3b82f6); }
.app-icon.code { background: linear-gradient(135deg, #4b1a6b, #a855f7); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* =============================================
   SECTIONS
============================================= */
section { padding: 100px 0; }
#about { background: var(--bg); }
#experience { background: var(--bg-card); }
#projects { background: var(--bg); }
#skills { background: var(--bg-card); }
#contact { background: var(--bg); }

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title .accent {
  font-size: 1.1rem;
  font-weight: 400;
  font-family: 'Courier New', monospace;
}

.section-title::after {
  content: '';
  display: block;
  flex: 1;
  height: 1px;
  background: var(--border);
  margin-left: 16px;
  max-width: 300px;
}

/* =============================================
   ABOUT
============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.about-text strong { color: var(--text); }
.about-location { color: var(--accent) !important; margin-top: 16px !important; }

.company-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 8px;
}

.company-badges span {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 500;
}

.avatar-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #1d9b8a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: #0d1117;
  border: 3px solid var(--accent);
}

/* =============================================
   EXPERIENCE (TIMELINE)
============================================= */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 0 3px var(--accent);
}

.timeline-content {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition);
}

.timeline-content:hover { border-color: var(--accent); }

.timeline-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.timeline-header h3 { font-size: 1.15rem; font-weight: 600; }

.timeline-company {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
}

.timeline-date {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
  font-family: 'Courier New', monospace;
}

.timeline-content p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 16px; }

/* =============================================
   PROJECTS
============================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(45,212,191,0.1);
}

.project-card.featured { border-color: rgba(45,212,191,0.3); }

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

.project-icon { font-size: 2rem; }

.project-links { display: flex; gap: 12px; }
.project-links a { color: var(--text-muted); }
.project-links a:hover { color: var(--accent); opacity: 1; }

.project-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}

/* =============================================
   TECH TAGS
============================================= */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tech-tags span {
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 500;
  font-family: 'Courier New', monospace;
}

/* =============================================
   SKILLS
============================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.skill-group {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.skill-group h3 {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  font-family: 'Courier New', monospace;
}

.skill-group ul { list-style: none; }

.skill-group li {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-group li::before {
  content: '▸';
  color: var(--accent);
  font-size: 0.75rem;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 12px 24px;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
}

/* =============================================
   CONTACT
============================================= */
.contact-container {
  text-align: center;
  max-width: 600px;
}

.contact-container .section-title::after { display: none; }
.contact-container .section-title { justify-content: center; }

.contact-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 36px;
  line-height: 1.8;
}

.contact-social {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 28px;
}

.contact-social a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.contact-social a:hover { color: var(--accent); opacity: 1; }

/* =============================================
   FOOTER
============================================= */
footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-sub { margin-top: 4px; font-size: 0.78rem; opacity: 0.6; }

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 900px) {
  #hero { padding: 100px 24px 60px; flex-direction: column; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-social { justify-content: center; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image { display: none; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  #navbar { padding: 16px 24px; }
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 24px;
    background: var(--bg-card);
    padding: 16px 24px;
    border-radius: 8px;
    border: 1px solid var(--border);
  }
  .menu-toggle { display: block; }
}

@media (max-width: 500px) {
  .skills-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.4rem; }
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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