:root {
  /* Color Palette */
  --bg-color: #030303;
  --bg-color-transparent: rgba(3, 3, 3, 0.6);
  --surface-color: rgba(26, 26, 26, 0.4);
  --surface-border: rgba(255, 255, 255, 0.08);
  
  --text-main: #fcfcfc;
  --text-muted: #888888;
  
  --accent-primary: #e0e0e0;
  --accent-secondary: #aaaaaa;
  --accent-gradient: linear-gradient(135deg, #ffffff, #666666);

  /* Terminal-ish Accents (from your screenshot) */
  --accent-teal: #4ecdc4;
  --accent-green: #4ade80;
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  
  /* Tokens */
  --radius-md: 12px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Typography styles */
h1, h2, h3, .brand-logo {
  font-family: var(--font-heading);
  line-height: 1.2;
}

.gradient-text {
  font-family: 'Great Vibes', cursive;
  font-weight: 400; /* Cursive fonts usually look best at normal weight */
  font-size: 1.3em; /* Slightly bump size so it matches the bold sans-serif */
  padding-right: 15px; /* Prevent italics from getting clipped */
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Cinematic Video Background */
.video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  background: var(--bg-color);
}

#bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6; /* Slightly fade the video so text pops */
  filter: grayscale(100%); /* Force monochrome in case user uses colored video */
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(3,3,3,0.2) 0%, rgba(3,3,3,0.8) 100%);
  z-index: -1;
  pointer-events: none;
}

/* UI Components */
.glass-panel {
  background: var(--surface-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #030303;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

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

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

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg-color-transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
  padding: 20px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: #888888;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link[href="index.html"],
.pill-link[href="index.html"] {
  color: #ffffff;
}

.nav-link:hover,
.pill-link:hover {
  color: #73b1ff;
}

.pill-link {
  color: #888888;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

/* Sections */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 10;
}

.section-header {
  margin-bottom: 60px;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.divider {
  width: 60px;
  height: 4px;
  background: var(--accent-gradient);
  margin: 0 auto;
  border-radius: 2px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  z-index: 10;
}

.hero-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 40px;
}

/* Aesthetic Terminal Gallery Section */
.terminal-header {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.1rem;
  color: #4ade80; /* Hacker green for the full command */
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.term-prompt {
  margin-right: 8px;
  font-weight: bold;
}

.term-cursor {
  display: inline-block;
  margin-left: 5px;
  animation: blink 1s step-end infinite;
}

.term-cursor::after {
  content: "_";
  color: #4ade80;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.aesthetic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  width: 100%;
}

.img-wrapper {
  aspect-ratio: 4/5; /* Vertical photo aspect ratio */
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--surface-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  filter: grayscale(100%);
}

.img-wrapper:hover img {
  transform: scale(1.05);
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--accent-primary);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 30px;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 25px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
}

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

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
}

.about-text, .skills-panel {
  padding: 40px;
}

.about-text h3, .skills-panel h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

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

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-chip {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text-main);
  transition: var(--transition);
}

.skill-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text-main);
  min-height: 280px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-green);
  font-weight: 500;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-title {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent-teal);
  margin-bottom: 15px;
  transition: var(--transition);
}

.project-card:hover .project-title {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.project-arrow {
  align-self: flex-end;
  color: var(--text-muted);
  transition: var(--transition);
  margin-top: 20px;
}

.project-card:hover .project-arrow {
  color: var(--text-main);
  transform: translateX(5px);
}

/* Footer Element Overlay */
.footer {
  text-align: center;
  padding: 80px 20px 40px;
  margin-top: 60px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
}

.footer-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.footer-subtitle {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--text-main);
  color: var(--bg-color);
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--surface-border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animation Utilities */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Responsive */
@media (max-width: 900px) {
  .hero-layout {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  
  .aesthetic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* List structure for blog (matching dailies) */
.list { 
  display: grid; 
  gap: 1.5rem; 
  margin-top: 2rem; 
}

.row { 
  display: grid; 
  grid-template-columns: 120px 1fr; 
  gap: 20px; 
  align-items: baseline;
}

.date { 
  color: var(--accent-green); 
  font-family: var(--font-mono);
  font-size: 0.9rem; 
  opacity: 0.8;
}

.txt { 
  color: var(--text-main); 
  font-size: 1.1rem; 
}

.txt a {
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}

.txt a:hover {
  color: var(--accent-teal);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .row { 
    grid-template-columns: 1fr; 
    gap: 8px; 
  }
}

/* About page avatar sizing */
.avatar img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
}
