/* styles.css
   Modern, Striking, Bold Theme
*/

:root {
  /* Dark Mode - Deep Space */
  --bg-primary: #050505;        
  --bg-secondary: #111111;      
  --bg-tertiary: #1a1a1a;       
  
  --text-primary: #f8fafc;      
  --text-secondary: #94a3b8;    
  --text-tertiary: #64748b;     
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  
  /* Bold Gradients / Accents */
  --accent: #38bdf8;            
  --accent-muted: rgba(56, 189, 248, 0.15);
  --accent-hover: #0ea5e9;      
  
  --gradient-1: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  --gradient-glow: rgba(56, 189, 248, 0.3);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;

  --max-width: 1100px;
  --section-padding: 8rem;

  --font-sans: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-fast: 150ms ease;
  --transition-smooth: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode */
:root[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;      
  --bg-tertiary: #f1f5f9;       
  
  --text-primary: #0f172a;      
  --text-secondary: #475569;    
  --text-tertiary: #94a3b8;     
  
  --border-color: rgba(15, 23, 42, 0.1);
  --border-hover: rgba(15, 23, 42, 0.25);
  
  --accent: #0284c7;            
  --accent-muted: rgba(2, 132, 199, 0.08);
  --accent-hover: #0369a1;      

  --gradient-1: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%);
  --gradient-glow: rgba(2, 132, 199, 0.15);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; 
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

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

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.mono { font-family: var(--font-mono); }

/* ------------------------------
   Utility
-------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  z-index: 1000;
}
.skip-link:focus { top: 1rem; }

.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
}
:root[data-theme="light"] .glass {
  background: rgba(255, 255, 255, 0.7);
}

.max-w-text {
  max-width: 800px;
}

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ------------------------------
   Header
-------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(5, 5, 5, 0.8); 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-smooth), background-color var(--transition-fast);
}

:root[data-theme="light"] .site-header {
  background-color: rgba(255, 255, 255, 0.85);
}

.site-header.scrolled {
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link { font-size: 0.95rem; font-weight: 500; color: var(--text-secondary); }
.nav-link:hover { color: var(--text-primary); }

.theme-toggle {
  background: none;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  cursor: pointer;
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.theme-toggle:hover { color: var(--text-primary); border-color: var(--border-hover); }
.theme-toggle svg { width: 20px; height: 20px; fill: currentColor; }

.nav-toggle { display: none; }
@media (max-width: 768px) {
  .nav-toggle {
    display: flex; background: none; border: none; cursor: pointer;
    width: 36px; height: 36px; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  }
  .nav-toggle-line {
    display: block; width: 24px; height: 2px; background-color: var(--text-secondary); border-radius: 2px;
    transition: transform 300ms ease, opacity 300ms ease;
  }
  .nav-links {
    position: absolute; top: 80px; left: 0; width: 100%; flex-direction: column;
    background-color: var(--bg-primary); border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem 2rem; gap: 1.5rem; transform: translateY(-10px);
    opacity: 0; pointer-events: none; transition: all var(--transition-smooth);
    box-shadow: var(--shadow-md);
  }
  .nav-links.active { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle.open .nav-toggle-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open .nav-toggle-line:nth-child(2) { opacity: 0; }
  .nav-toggle.open .nav-toggle-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ------------------------------
   Buttons & Links
-------------------------------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem; background: var(--gradient-1); color: #ffffff;
  font-weight: 600; font-size: 1rem; border-radius: var(--radius-sm); border: none;
  transition: all var(--transition-fast); box-shadow: 0 4px 14px var(--gradient-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--gradient-glow); color: #fff; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem; background: transparent; color: var(--text-primary);
  font-weight: 600; font-size: 1rem; border-radius: var(--radius-sm); border: 2px solid var(--border-color);
  transition: all var(--transition-fast);
}
.btn-outline:hover { border-color: var(--text-primary); background: rgba(255,255,255,0.05); }

.btn-large { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-huge { padding: 1.25rem 2.5rem; font-size: 1.25rem; border-radius: var(--radius-md); }

.link-highlight { color: var(--text-primary); font-weight: 500; transition: color 0.2s; }
.link-highlight:hover { color: var(--accent); }
.icon-sm { width: 18px; height: 18px; fill: currentColor; }

/* ------------------------------
   Sections
-------------------------------- */
.section { padding: var(--section-padding) 0; }
.section-alt { background-color: var(--bg-secondary); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }

.section-header { margin-bottom: 4rem; max-width: 650px; }
.section-label { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 1rem; }
.section-title { font-size: clamp(2.5rem, 4vw, 3.5rem); color: var(--text-primary); margin-bottom: 1.5rem; }
.section-subtitle, .section-body { font-size: 1.15rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.5rem; }
.section-body:last-child { margin-bottom: 0; }

/* ------------------------------
   Hero Section
-------------------------------- */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: calc(100vh - 80px); padding: 6rem 0; overflow: hidden;
}

.hero-bg-gradient {
  position: absolute; top: -20%; left: -10%; width: 70vw; height: 70vw;
  background: radial-gradient(circle, var(--gradient-glow) 0%, rgba(0,0,0,0) 70%);
  z-index: 0; opacity: 0.8; pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 900px; }

.hero-greeting { font-size: 1rem; font-weight: 600; color: var(--accent); margin-bottom: 1.5rem; letter-spacing: 0.05em; }

.hero-name { font-size: clamp(3.5rem, 8vw, 6.5rem); line-height: 1.05; margin-bottom: 1.5rem; }

.hero-title-bold { font-size: clamp(1.5rem, 3vw, 2.5rem); color: var(--text-secondary); font-weight: 600; margin-bottom: 2rem; }

.hero-tagline { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--text-secondary); max-width: 700px; line-height: 1.6; margin-bottom: 3rem; }

.hero-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-social { display: flex; gap: 1.5rem; margin-bottom: 4rem; }
.hero-social a { color: var(--text-secondary); transition: transform 0.2s, color 0.2s; }
.hero-social a:hover { color: var(--text-primary); transform: translateY(-2px); }
.hero-social svg { width: 28px; height: 28px; fill: currentColor; }

.currently-building-card {
  padding: 2rem; border-radius: var(--radius-md); max-width: 750px; box-shadow: var(--shadow-md);
}
.currently-building-card h3 { font-family: var(--font-mono); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); margin-bottom: 1rem; }
.currently-building-card p { font-size: 1.05rem; margin-bottom: 1rem; }
.currently-building-card ul { font-size: 1rem; color: var(--text-secondary); padding-left: 1.5rem; list-style-type: square; }
.currently-building-card li { margin-bottom: 0.5rem; }

/* ------------------------------
   Projects (List Style)
-------------------------------- */
.project-list { display: flex; flex-direction: column; gap: 3rem; }

.project-row {
  display: flex; flex-direction: column; padding: 3rem;
  background-color: var(--bg-primary); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); transition: all var(--transition-smooth);
}
.project-row:hover { border-color: var(--border-hover); box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.project-title { font-size: 1.75rem; margin-bottom: 0.75rem; }
.project-tech { font-size: 0.85rem; color: var(--accent); margin-bottom: 1.5rem; font-weight: 500; }
.project-desc { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 1.5rem; max-width: 800px; }
.project-metric { font-size: 1rem; background: var(--bg-secondary); padding: 1rem 1.5rem; border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 2rem; }
.project-metric strong { color: var(--text-primary); }

.project-links { display: flex; gap: 1rem; }
.btn-github {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem;
  background-color: var(--bg-secondary); color: var(--text-primary); font-weight: 600;
  border-radius: var(--radius-sm); border: 1px solid var(--border-color); transition: all 0.2s;
}
.btn-github:hover { background-color: var(--bg-tertiary); border-color: var(--text-secondary); }
.btn-github svg { width: 20px; height: 20px; fill: currentColor; }

/* ------------------------------
   Experience Timeline
-------------------------------- */
.timeline { display: flex; flex-direction: column; gap: 3rem; }
.timeline-item { position: relative; padding-left: 2.5rem; }
.timeline-item::before { content: ''; position: absolute; top: 0; bottom: -3rem; left: 0.5rem; width: 2px; background-color: var(--border-color); }
.timeline-item:last-child::before { bottom: 0; }
.timeline-item::after {
  content: ''; position: absolute; top: 0.5rem; left: 0; width: 18px; height: 18px;
  background-color: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px var(--bg-primary); transition: transform 0.2s;
}
.timeline-item:hover::after { transform: scale(1.2); }

.experience-card { padding: 0; }
.experience-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.experience-title-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.experience-title { font-size: 1.35rem; color: var(--text-primary); }
.experience-company { font-size: 1.25rem; color: var(--accent); font-weight: 600; }
.experience-meta { font-family: var(--font-mono); font-size: 0.95rem; color: var(--text-tertiary); }
.experience-context { font-size: 1.1rem; color: var(--text-primary); font-weight: 500; margin-bottom: 1.5rem; }
.experience-list { padding-left: 1.25rem; color: var(--text-secondary); font-size: 1.05rem; line-height: 1.6; }
.experience-list li { margin-bottom: 0.75rem; position: relative; list-style-type: none; }
.experience-list li::before { content: "▹"; position: absolute; left: -1.25rem; color: var(--accent); font-weight: bold; }

.tech-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.tech-tag {
  font-family: var(--font-mono); font-size: 0.8rem; padding: 0.4rem 0.75rem;
  background-color: var(--bg-secondary); color: var(--text-primary); border: 1px solid var(--border-color); border-radius: 4px;
}

/* ------------------------------
   Skills Grid
-------------------------------- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.skill-card {
  padding: 2.5rem; background-color: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-md);
}
.skill-category { font-size: 1.25rem; margin-bottom: 1.5rem; color: var(--text-primary); }
.skill-list { font-size: 1rem; color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.6; }
.skill-list strong { color: var(--text-primary); display: inline-block; width: 80px; }

/* ------------------------------
   Education
-------------------------------- */
.education-card { padding: 2.5rem; background-color: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-md); max-width: 800px; }
.education-degree { font-size: 1.5rem; margin-bottom: 0.5rem; }
.education-school { font-size: 1.2rem; color: var(--accent); font-weight: 500; margin-bottom: 0.5rem; }
.education-meta { font-family: var(--font-mono); font-size: 0.95rem; color: var(--text-tertiary); margin-bottom: 1.5rem; }
.education-desc { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.6; }

/* ------------------------------
   Contact Section
-------------------------------- */
.contact-section { text-align: center; padding: 10rem 0; }
.contact-content { max-width: 600px; margin: 0 auto; }
.contact-title { font-size: clamp(3rem, 5vw, 4.5rem); margin-bottom: 1.5rem; }
.contact-desc { font-size: 1.25rem; color: var(--text-secondary); margin-bottom: 3rem; }
.contact-buttons { display: flex; justify-content: center; }

/* ------------------------------
   Footer
-------------------------------- */
.site-footer { padding: 3rem 0; text-align: center; border-top: 1px solid var(--border-color); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.footer-social { display: flex; gap: 1.5rem; }
.footer-social a { color: var(--text-secondary); transition: transform 0.2s, color 0.2s; }
.footer-social a:hover { color: var(--text-primary); transform: translateY(-2px); }
.footer-social svg { width: 24px; height: 24px; fill: currentColor; }
.footer-text { font-size: 0.95rem; color: var(--text-tertiary); }

/* ------------------------------
   Scroll Animations 
-------------------------------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1), transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

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