/* ══════════════════════════════════════════
   MINIMALIST PORTFOLIO — Karthik Nayak
   Inspired by saleh.biz
   ══════════════════════════════════════════ */

@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700,900&display=swap');

:root {
  /* ─── Color Palette ─── */
  --bg-dark: #0a0a0a;
  --bg-card: #121212;
  --bg-nav: rgba(18, 18, 18, 0.8);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-hover: rgba(255, 255, 255, 0.3);
  
  --text-primary: #f5f5f7;
  --text-muted: #8e8e93;
  --text-dim: #636366;
  --accent-white: #ffffff;
  --accent-green: #30d158; /* Active indicator */
  
  /* ─── Typography ─── */
  --font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* ─── Layout ─── */
  --max-width: 960px;
  --section-gap: 100px;
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-dark);
  overflow-x: hidden;
  position: relative;
  padding-bottom: 120px; /* Space for sticky bottom nav */
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s var(--ease-smooth), opacity 0.3s var(--ease-smooth);
}

a:hover {
  color: var(--accent-white);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ─── Layout Container ─── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-block {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  border-bottom: 1px solid var(--border-subtle);
}

.section-block:last-of-type {
  border-bottom: none;
}

/* Section Header Styles */
.section-meta {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-meta::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--text-muted);
}

.section-heading-wrapper {
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 8px;
  max-width: 540px;
}

/* ─── Hero Section ─── */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  width: fit-content;
  margin-bottom: 32px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  display: inline-block;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(48, 209, 88, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); }
}

.hero-title {
  font-size: clamp(38px, 7vw, 68px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-description {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  transition: all 0.3s var(--ease-smooth);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent-white);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background-color: #e5e5ea;
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* ─── Services Section ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 36px;
  transition: border-color 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.service-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 20px;
  display: block;
}

.service-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Works Section ─── */
.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.project-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
  overflow: hidden;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

@media (max-width: 768px) {
  .project-card {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }
}

.project-img-wrapper {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.project-placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.5s var(--ease-smooth), opacity 0.5s var(--ease-smooth);
}

.project-card:hover .project-placeholder-img {
  transform: scale(1.05);
  opacity: 1;
}

/* Generic stylish CSS gradient visuals for previews instead of goofy images */
.project-visual {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.visual-1 { background: linear-gradient(135deg, #1e1e1e 0%, #111111 100%); }
.visual-2 { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); }
.visual-3 { background: linear-gradient(135deg, #161a1d 0%, #0b0c10 100%); }
.visual-4 { background: linear-gradient(135deg, #1b262c 0%, #0f4c75 100%); }
.visual-5 { background: linear-gradient(135deg, #121212 0%, #242424 100%); }
.visual-6 { background: linear-gradient(135deg, #222831 0%, #393e46 100%); }
.visual-7 { background: linear-gradient(135deg, #1f1f1f 0%, #141414 100%); }
.visual-8 { background: linear-gradient(135deg, #0f0f0f 0%, #232323 100%); }
.visual-9 { background: linear-gradient(135deg, #0a1c1d 0%, #173f43 100%); }


.project-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.project-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--text-muted);
}

.project-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.project-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  width: fit-content;
  border-bottom: 1px solid var(--border-medium);
  padding-bottom: 2px;
  transition: all 0.3s var(--ease-smooth);
}

.project-link-btn:hover {
  color: var(--accent-white);
  border-color: var(--accent-white);
  padding-right: 4px;
}

/* Hidden projects list style */
.projects-hidden {
  display: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease-smooth);
}

.projects-hidden.show {
  display: grid;
  opacity: 1;
  animation: fadeIn 0.5s var(--ease-smooth) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.see-more-container {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* ─── Process Section ─── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.process-card {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.3s var(--ease-smooth);
}

.process-card:hover {
  border-color: var(--border-hover);
}

.process-step {
  font-size: 32px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  position: absolute;
  top: 16px;
  right: 20px;
  line-height: 1;
}

.process-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  margin-top: 12px;
}

.process-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── Testimonials Section ─── */
.testimonial-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 48px;
  display: block;
  transition: border-color 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

@media (max-width: 576px) {
  .testimonial-card {
    padding: 24px;
  }
}

.testimonial-quote-mark {
  font-size: 64px;
  font-family: Georgia, serif;
  line-height: 1;
  color: var(--border-medium);
  margin-bottom: -16px;
  margin-top: -16px;
}

.testimonial-text {
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
}

.testimonial-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── Contact Section ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.contact-email-link {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 4px;
  margin-bottom: 32px;
}

.contact-email-link:hover {
  border-color: var(--accent-white);
}

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

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.social-btn:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* WhatsApp CTA & Prominent Button */
.btn-whatsapp {
  background-color: #25d366;
  color: #0a0a0a !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 14px;
  transition: all 0.3s var(--ease-smooth);
  width: 100%;
  box-sizing: border-box;
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
  color: #0a0a0a !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp svg {
  fill: currentColor;
}

.form-whatsapp-banner {
  background-color: rgba(37, 211, 102, 0.04);
  border: 1px dashed rgba(37, 211, 102, 0.3);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  position: relative;
}

.banner-tag {
  background-color: rgba(37, 211, 102, 0.15);
  color: #25d366;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 4px;
}

.banner-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.form-input, .form-select, .form-textarea {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 14px;
  transition: border-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
  width: 100%;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--border-hover);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ─── Marquee loops ─── */
.marquee-section {
  padding: 24px 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background-color: var(--bg-dark);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
  will-change: transform;
}

.marquee-item {
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--text-primary);
  opacity: 0.15;
  white-space: nowrap;
  padding: 0 24px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
}

.marquee-dot {
  color: var(--accent-white);
  padding: 0 12px;
  opacity: 0.25;
  font-size: 12px;
  display: flex;
  align-items: center;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Sticky Bottom Navigation Bar ─── */
.sticky-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 1000;
  width: 90%;
  max-width: 580px;
  background-color: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  padding: 8px 12px 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transition: transform 0.6s var(--ease-smooth), opacity 0.6s var(--ease-smooth);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.sticky-nav.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.nav-brand {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 16px;
}

@media (max-width: 576px) {
  .sticky-nav {
    padding: 8px 12px;
  }
  .nav-brand {
    display: none;
  }
  .nav-list {
    gap: 8px;
  }
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: capitalize;
  padding: 6px 10px;
  border-radius: 100px;
  transition: all 0.3s var(--ease-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-cta-btn {
  font-size: 12px;
  font-weight: 700;
  background-color: var(--accent-white);
  color: var(--bg-dark);
  padding: 10px 18px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-cta-btn:hover {
  background-color: #e5e5ea;
  color: var(--bg-dark);
}

/* ─── Footer ─── */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-dark);
}

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

.footer-text {
  font-size: 13px;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  font-size: 13px;
  color: var(--text-dim);
}

.footer-link:hover {
  color: var(--text-muted);
}
