/* 
   MINIMAL PREMIUM DARK THEME
   Inspired by harshith.com
*/

:root {
  --bg-color: #0a0908;
  --text-color: #e8e4dc;
  --text-muted: #a3a19e;
  --border-color: #2a2928;
  --accent-color: #e8e4dc;
  --accent-hover: #ffffff;
  
  --font-sans: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;

  --transition-smooth: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* =========================================
   TYPOGRAPHY
========================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-color);
}

.large-text {
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

/* =========================================
   LAYOUT / STRUCTURE
========================================= */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================================
   HEADER
========================================= */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 0;
}

.brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.site-nav a:hover {
  color: var(--text-color);
}

/* =========================================
   HERO SECTION
========================================= */
.hero-section {
  display: flex;
  flex-direction: column-reverse;
  gap: 3rem;
  padding: 4rem 0 6rem 0;
}

@media (min-width: 768px) {
  .hero-section {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.hero-content {
  flex: 1;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
}

.hero-text {
  font-size: 1.1rem;
  max-width: 500px;
  margin-bottom: 2.5rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--text-color);
  color: var(--bg-color);
  border: 1px solid var(--text-color);
}

.btn-primary:hover {
  background: transparent;
  color: var(--text-color);
}

.btn-secondary {
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--text-color);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  font-size: 1.2rem;
}

.social-links a {
  color: var(--text-muted);
}

.social-links a:hover {
  color: var(--text-color);
  transform: translateY(-2px);
}

.hero-image-wrap {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin: 0 auto; /* Centers the image on mobile */
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
  transition: var(--transition-smooth);
}

.hero-image:hover,
.hero-image:active,
.hero-image-wrap:active .hero-image {
  filter: grayscale(0%);
}

/* =========================================
   COMMON SECTION STYLES
========================================= */
section {
  padding: 5rem 0;
  border-top: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  section {
    grid-template-columns: 250px 1fr;
  }
}

.section-heading h2 {
  font-size: 2rem;
  position: sticky;
  top: 2rem;
}

.section-description {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* =========================================
   ABOUT / STATS
========================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

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

.stat-val {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* =========================================
   EXPERTISE
========================================= */
.expertise-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.expertise-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.expertise-item p {
  color: var(--text-muted);
}

/* =========================================
   SKILLS
========================================= */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  cursor: default;
}

.skill-pill:hover {
  transform: translateY(-3px);
  background: var(--text-color);
  color: var(--bg-color);
  border-color: var(--text-color);
}

.skill-pill i {
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.skill-pill:hover .fa-python { color: #3776AB; }
.skill-pill:hover .fa-js { color: #F7DF1E; }
.skill-pill:hover .fa-code { color: #3178C6; }
.skill-pill:hover .fa-brain { color: #ff6b6b; }
.skill-pill:hover .fa-eye { color: #4dabf7; }
.skill-pill:hover .fa-react { color: #61dafb; }
.skill-pill:hover .fa-node-js { color: #68a063; }
.skill-pill:hover .fa-database { color: #f29111; }
.skill-pill:hover .fa-git-alt { color: #f34f29; }
.skill-pill:hover .fa-docker { color: #2496ed; }

/* =========================================
   GRIDS (Projects & Certs)
========================================= */
.minimal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.minimal-card {
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-color);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.minimal-card:hover {
  border-color: var(--text-muted);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8), 0 5px 10px rgba(0, 0, 0, 0.6);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.card-issuer {
  font-size: 0.85rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.verify-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-size: 0.85rem;
  border-radius: 4px;
  margin-top: 1rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  background: transparent;
}

.verify-btn:hover {
  background: var(--text-color);
  color: var(--bg-color);
}

/* =========================================
   FOOTER
========================================= */
.site-footer {
  padding: 6rem 0 3rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.site-footer p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 2rem auto;
}

.footer-email {
  font-family: var(--font-serif);
  font-size: 2rem;
  display: inline-block;
  margin-bottom: 3rem;
  border-bottom: 1px solid transparent;
}

.footer-email:hover {
  border-bottom-color: var(--text-color);
}

.footer-socials {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 4rem;
}

.footer-socials a {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.footer-socials a:hover {
  color: var(--text-color);
}

.footer-bottom {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =========================================
   ANIMATIONS (Scroll Reveal)
========================================= */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   MODALS
========================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 9, 8, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.minimal-modal {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  width: 90%;
  max-width: 600px;
  padding: 3rem;
  border-radius: 4px;
  position: relative;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.modal-overlay.active .minimal-modal {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  color: var(--text-color);
}

@media (max-width: 600px) {
  .site-header { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
  .site-nav { flex-wrap: wrap; gap: 1rem; }
  .page-wrap { padding: 0 1rem; }
}


@media (min-width: 900px) {
  .minimal-grid {
    grid-template-columns: 1fr 1fr;
  }
}

