/* css/style.css */

/* --- 1. Variables & Theme --- */
:root {
  /* Palette: Clinical Elegance */
  --bg-color: #FAFAF9;      /* "Paper" white, softer on eyes */
  --text-main: #1C1C1C;     /* Deep Charcoal */
  --text-muted: #5A5A5A;    /* Slate Grey */
  --accent: #5F8D78;        /* "Bio-Teal" / Sage Green */
  --accent-hover: #4A6F5E;
  --white: #FFFFFF;
  --border-color: #E5E5E5;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

/* --- 2. Global Reset & Typography --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

a { color: var(--text-main); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* --- 3. Navigation (Glassmorphism) --- */
header {
  position: fixed;
  top: 0; width: 100%;
  background: rgba(250, 250, 249, 0.85); /* Semi-transparent White */
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background 0.3s ease;
}

.nav {
  display: flex; justify-content: space-between; align-items: center;
  height: 70px; max-width: 1100px; margin: 0 auto; padding: 0 20px;
}

.brand { font-size: 1.5rem; }

.nav-links a {
  margin-left: 25px;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: ''; position: absolute; width: 0; height: 1px;
  bottom: -4px; left: 0; background-color: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

/* --- 4. Hero Section (Home) --- */
/* css/style.css */

/* 1. Remove background-color from the parent so it doesn't block the image */
.hero-overlay {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  /* Removed background-color here */
}

/* 2. Move background-color here and change z-index to 0 */
.hero-bg {
  position: absolute; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%;
  background-size: cover; 
  background-position: center;
  
  z-index: 0; /* Changed from -1 to 0 so it sits inside the element properly */
  background-color: #1C1C1C; /* Dark fallback lives here now */
  filter: brightness(0.5);
  background-image: url('../assets/hero-bg.jpg');
}

/* 3. Ensure text sits ON TOP of the image */
.hero-content {
  position: relative; /* This makes z-index work */
  z-index: 1;         /* Puts text higher than the image */
}

.hero-content h1 {
  font-size: 4rem; 
  margin-bottom: 10px; 
  color: var(--white);
}

.typewriter {
  font-size: 1.5rem; font-family: var(--font-body); opacity: 0.9;
  min-height: 1.6em;
}

.scroll-indicator {
  position: absolute; bottom: 30px;
  animation: bounce 2s infinite; opacity: 0.7;
  color: var(--white);
  font-size: 2rem;
  
  /* NEW: Ensures the arrow doesn't have an underline */
  text-decoration: none; 
  cursor: pointer;
}

@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-10px);} 60% {transform: translateY(-5px);} }

/* --- 5. Elegant Cards --- */
.card {
  background: var(--white);
  padding: 30px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  border-color: var(--accent);
}

.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* --- 6. Metrics & Impact --- */
.metrics {
  display: flex; justify-content: space-between;
  margin-bottom: 40px; padding: 40px 0;
  border-bottom: 1px solid var(--border-color);
}
.metric { text-align: center; }
.metric .num { font-family: var(--font-heading); font-size: 2.5rem; color: var(--accent); font-weight: 700; }
.metric .lbl { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }

/* --- 7. Photography Masonry --- */
.gallery-grid {
  column-count: 3;
  column-gap: 20px;
}
.gallery-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 4px;
}
.gallery-item img { width: 100%; display: block; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.03); }

.gallery-item figcaption {
  position: absolute; bottom: 0; left: 0; width: 100%;
  background: rgba(28, 28, 28, 0.8);
  color: #fff;
  padding: 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.gallery-item:hover figcaption { transform: translateY(0); }

/* --- 8. Timeline (Athletics) --- */
.timeline {
  border-left: 2px solid var(--border-color);
  padding-left: 30px; margin-left: 10px;
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item::before {
  content: ''; position: absolute; left: -36px; top: 5px;
  width: 10px; height: 10px; background: var(--accent);
  border-radius: 50%; border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--border-color);
}
.timeline-date { font-size: 0.85rem; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }

/* --- 9. Skills Progress --- */
.skill-bar { margin-bottom: 15px; }
.skill-info { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 5px; }
.progress-bg { background: #eee; height: 6px; border-radius: 3px; overflow: hidden; }
.progress-fill { background: var(--accent); height: 100%; width: 0; transition: width 1.5s ease; }

/* --- 10. Buttons & Forms --- */
.btn {
  display: inline-block; padding: 12px 24px;
  border: 1px solid var(--text-main);
  background: transparent; color: var(--text-main);
  font-family: var(--font-body); font-size: 0.9rem;
  cursor: pointer; transition: all 0.3s ease;
}
.btn.primary { background: var(--text-main); color: var(--white); border-color: var(--text-main); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }

input, textarea {
  width: 100%; padding: 12px 0; margin-bottom: 20px;
  border: none; border-bottom: 1px solid #ccc;
  background: transparent; font-family: var(--font-body);
  transition: border 0.3s;
}
input:focus, textarea:focus { outline: none; border-bottom: 1px solid var(--accent); }

/* --- 11. Responsive --- */
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .gallery-grid { column-count: 1; }
  .hero-content h1 { font-size: 2.5rem; }
  .metrics { flex-direction: column; gap: 20px; }
}

/* --- ENHANCED FOOTER --- */
footer {
  background-color: #FAFAF9; /* Matches site background for a seamless look */
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
  margin-top: 100px; /* Breathing room from content */
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: 700;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 350px;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* Aligns links to the right */
  gap: 12px;
}

.footer-nav a {
  font-size: 1rem;
  color: var(--text-main);
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.footer-nav a:hover {
  color: var(--accent);
  padding-right: 5px; /* Subtle movement on hover */
}

.copyright {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  color: #999;
  font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 30px;
  }
  .footer-nav {
    align-items: center; /* Center links on mobile */
  }
  .copyright {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

/* css/style.css - Add this to the bottom */

/* --- LIGHTBOX (Image Overlay) --- */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(28, 28, 28, 0.95); /* Dark overlay */
  backdrop-filter: blur(5px);         /* Modern blur effect */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10001; /* Higher than everything else */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#lightbox.active {
  opacity: 1;
  pointer-events: all;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

#lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: var(--accent);
}

