/* 
 * Dev Keshav Hire - Portfolio Style Sheet
 * Tech Stack: HTML5, CSS3, Bootstrap 5, Vanilla JS
 * Design Language: Minimal, Apple, Vercel, Linear, GitHub, Stripe, Notion
 */

/* ==========================================================================
   CSS Variables & Theme Tokens
   ========================================================================== */
:root {
  --bg-primary: #FAFAF8;
  --bg-secondary: #F5F5F2;
  --bg-card: #FFFFFF;
  
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-light: rgba(37, 99, 235, 0.08);
  
  --border-color: #E5E7EB;
  --success: #16A34A;
  --success-light: rgba(22, 163, 74, 0.08);
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Box Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.03), 0 10px 10px -5px rgba(0, 0, 0, 0.01);
  --shadow-card-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Global Resets & Defaults
   ========================================================================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset for sticky header */
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1.625;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* System Design Blueprint Dots Background */
.blueprint-bg {
  background-image: radial-gradient(rgba(30, 41, 59, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Base Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.022em;
}

/* Large Section Title */
.section-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  position: relative;
}

/* Small Sub-Header */
.section-subtitle {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* Custom Container Constraint */
.container-max {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Custom Spacing */
.py-section {
  padding-top: 7rem;
  padding-bottom: 7rem;
}

/* ==========================================================================
   Component: Navigation Bar (Apple/Vercel style)
   ========================================================================== */
.navbar-custom {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
  padding: 1.25rem 0;
}

.navbar-custom.scrolled {
  background-color: rgba(250, 250, 248, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  box-shadow: var(--shadow-sm);
}

.navbar-brand-custom {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary) !important;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.navbar-brand-custom .dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.nav-link-custom {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary) !important;
  padding: 0.5rem 0.85rem !important;
  transition: var(--transition-fast);
  letter-spacing: -0.01em;
  position: relative;
}

.nav-link-custom:hover {
  color: var(--text-primary) !important;
}

.nav-link-custom.active {
  color: var(--text-primary) !important;
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transition: var(--transition-fast);
}

.nav-link-custom.active::after {
  transform: scaleX(1);
}

/* Hamburger Menu Design */
.navbar-toggler-custom {
  border: none;
  padding: 0.5rem;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
}

.navbar-toggler-custom span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

.navbar-toggler-custom[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.navbar-toggler-custom[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.navbar-toggler-custom[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   Component: Buttons
   ========================================================================== */
.btn-custom {
  font-size: 16px;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

.btn-custom-primary {
  background-color: var(--accent);
  color: #FFFFFF !important;
  border: 1px solid var(--accent);
  box-shadow: 0 2px 4px 0 rgba(37, 99, 235, 0.1);
}

.btn-custom-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px 0 rgba(37, 99, 235, 0.2);
}

.btn-custom-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-custom-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--text-secondary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-custom-sm {
  font-size: 14px;
  padding: 0.45rem 1rem;
  border-radius: 6px;
}

/* ==========================================================================
   Component: Cards
   ========================================================================== */
.card-custom {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card-custom:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(37, 99, 235, 0.25);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-top: 10rem;
  padding-bottom: 7rem;
  position: relative;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.hero-role {
  font-weight: 600;
  color: var(--accent);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-tagline {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.social-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.social-icon-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  text-decoration: none;
}

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

/* ==========================================================================
   Hero SVG Logic Illustration (Sleek Blueprint)
   ========================================================================== */
.hero-illustration-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
}

.backend-schematic-svg {
  width: 100%;
  max-width: 520px;
  height: auto;
}

/* Subtle glowing effects for indicators */
.pulse-dot {
  animation: pulse 3s infinite ease-in-out;
  transform-origin: center;
}

@keyframes pulse {
  0% { r: 4px; opacity: 0.4; }
  50% { r: 7px; opacity: 1; }
  100% { r: 4px; opacity: 0.4; }
}

/* Flow line dashes */
.flow-line {
  stroke-dasharray: 8, 8;
  animation: flow 30s linear infinite;
}

@keyframes flow {
  to {
    stroke-dashoffset: -1000;
  }
}

/* ==========================================================================
   Terminal Section
   ========================================================================== */
.terminal-window {
  background-color: #0F172A; /* Slate 900 */
  border-radius: 12px;
  box-shadow: var(--shadow-premium), 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid #1E293B;
  transition: var(--transition-smooth);
}

.terminal-window:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.terminal-header {
  background-color: #1E293B; /* Slate 800 */
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

.terminal-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-btn-red { background-color: #EF4444; }
.terminal-btn-yellow { background-color: #F59E0B; }
.terminal-btn-green { background-color: #10B981; }

.terminal-title {
  color: #94A3B8;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 13px;
  margin-left: -40px; /* Offset alignment since we have buttons on left */
}

.terminal-body {
  padding: 1.5rem;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 15px;
  color: #E2E8F0;
  height: 270px;
  overflow-y: auto;
  text-align: left;
}

.terminal-line {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.terminal-prompt {
  color: #38BDF8; /* Sky-400 */
}

.terminal-cmd {
  color: #F1F5F9;
  font-weight: 500;
}

.terminal-out {
  color: #CBD5E1;
}

.terminal-accent {
  color: #34D399; /* Emerald-400 */
}

.cursor-blink {
  display: inline-block;
  width: 8px;
  height: 15px;
  background-color: #38BDF8;
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink {
  from, to { background-color: transparent }
  50% { background-color: #38BDF8 }
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skill-category-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-category-title svg {
  color: var(--accent);
}

.skills-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.skill-chip {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.85rem;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.skill-chip:hover {
  background-color: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* ==========================================================================
   Soft Skills & Problem Solving Spotlight
   ========================================================================== */
.soft-skill-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.75rem;
  transition: var(--transition-smooth);
}

.soft-skill-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

/* Spotlight Card for Problem Solving */
.spotlight-card {
  background-color: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-premium), 0 10px 30px -10px rgba(37, 99, 235, 0.08);
  position: relative;
  overflow: hidden;
}

.spotlight-card::before {
  content: 'CRITICAL STRENGTH';
  position: absolute;
  top: 15px;
  right: -35px;
  background-color: var(--accent);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 35px;
  transform: rotate(45deg);
  letter-spacing: 0.05em;
}

.spotlight-badge {
  background-color: var(--accent-light);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.spotlight-badge .status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-simple 1.5s infinite;
}

@keyframes pulse-simple {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* ==========================================================================
   Featured Projects
   ========================================================================== */
.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-premium), 0 30px 60px -15px rgba(0, 0, 0, 0.08);
  border-color: rgba(37, 99, 235, 0.3);
}

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

.project-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.project-icon-link {
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.project-icon-link:hover {
  color: var(--accent);
}

.project-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.project-features-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
}

.project-features-list li {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-features-list li svg {
  color: var(--success);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.project-tag {
  font-size: 13px;
  font-weight: 500;
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

.project-footer {
  margin-top: auto;
  display: flex;
  gap: 1rem;
}

/* ==========================================================================
   Experience Section (Timeline)
   ========================================================================== */
.experience-timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--border-color);
  margin-left: 1rem;
}

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

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  border: 3px solid var(--accent);
  transform: translateX(-6px);
  z-index: 2;
}

.timeline-date {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.timeline-role {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline-company {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.timeline-responsibilities {
  list-style: none;
  padding-left: 0;
}

.timeline-responsibilities li {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}

.timeline-responsibilities li svg {
  color: var(--accent);
  margin-top: 4px;
  flex-shrink: 0;
}

/* ==========================================================================
   Education Section
   ========================================================================== */
.education-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.edu-duration {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background-color: var(--accent-light);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 1rem;
  width: fit-content;
}

.edu-degree {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.edu-school {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-info-text p {
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 0;
  font-weight: 500;
}

.contact-info-text a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.contact-info-text a:hover {
  color: var(--accent);
}

/* Premium Form Elements (Notion/Vercel styling) */
.form-group-custom {
  margin-bottom: 1.5rem;
}

.form-label-custom {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: block;
}

.form-input-custom {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 16px;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.form-input-custom:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.form-input-custom::placeholder {
  color: #A1A1AA;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer-custom {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  background-color: var(--bg-secondary);
}

.footer-text {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 0;
  text-align: center;
}

.footer-logo {
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.footer-logo .dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

/* ==========================================================================
   Utilities / Overrides
   ========================================================================== */
.text-accent {
  color: var(--accent);
}

.text-secondary-custom {
  color: var(--text-secondary);
}

.badge-custom {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

/* Font Size Helpers */
.fs-xs {
  font-size: 13px !important;
}

.fs-sm {
  font-size: 15px !important;
}

.fs-md {
  font-size: 16px !important;
}

.fs-lg {
  font-size: 17px !important;
}

.fs-xl {
  font-size: 18px !important;
}

/* Contact Custom Layout Styles */
.contact-intro-desc {
  font-size: 18px !important;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-info-card {
  min-width: 250px;
}

.bg-card-custom {
  background-color: var(--bg-card) !important;
}

.contact-card-label {
  margin-bottom: 2px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.contact-card-value-link {
  color: var(--text-primary) !important;
  text-decoration: none !important;
  transition: var(--transition-fast);
}

.contact-card-value-link:hover {
  color: var(--accent) !important;
}

.footer-link-custom {
  font-size: 14px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.footer-link-custom:hover {
  color: var(--accent);
}

.bg-secondary-custom-light {
  background-color: var(--bg-secondary) !important;
}
