/* ================================================= */
/*  0. VARIABLES & THEME SETUP                     */
/* ================================================= */
:root {
  /* 1. Color Scheme */
  --bg-color: #111111;
  --accent-color: #32CD32; /* Electric Lime Green */
  --text-primary: #F2F2F2;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --bg-surface: rgba(255, 255, 255, 0.03); /* For cards and containers */
  --stroke-color: rgba(255, 255, 255, 0.1);

  /* 2. Typography */
  --font-headline: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* 3. Spacing & Sizing */
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 50px;

  /* 4. Transitions & Animations */
  --transition-fast: 0.3s ease;
  --transition-smooth: 0.5s ease-out;

  /* 5. Accessibility */
  --focus-outline: 2px solid var(--accent-color);
}

/* ================================================= */
/*  1. GLOBAL & RESET                              */
/* ================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  scroll-behavior: smooth;
  overflow-x: hidden; 
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
}

/* Thematic selection color */
::selection {
  background-color: var(--accent-color);
  color: var(--bg-color);
}

/* Mouse follow glow effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    circle 500px at var(--mouse-x, -500px) var(--mouse-y, -500px),
    rgba(50, 205, 50, 0.08),
    transparent 80%
  );
  transition: background 0.2s ease-out;
}

/* Focus outline for better accessibility */
a:focus-visible,
button:focus-visible,
.btn-primary:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 3px;
  border-radius: var(--radius-md);
}

/* ================================================= */
/*  2. ANIMATED STARFIELD BACKGROUND               */
/* ================================================= */
.starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  --star-color: var(--accent-color);
  --star-size: 1px;
  --star-shadow-1: 500px;
  --star-shadow-2: 1500px;
  --star-shadow-3: 3000px;
}
.stars1, .stars2, .stars3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  animation: anim-stars 50s linear infinite;
}
.stars1 {
  background-image: radial-gradient(var(--star-size), var(--star-color) var(--star-size), transparent 0);
  background-size: var(--star-shadow-1) var(--star-shadow-1);
}
.stars2 {
  background-image: radial-gradient(var(--star-size), var(--star-color) var(--star-size), transparent 0);
  background-size: var(--star-shadow-2) var(--star-shadow-2);
  animation-duration: 100s;
}
.stars3 {
  background-image: radial-gradient(var(--star-size), var(--star-color) var(--star-size), transparent 0);
  background-size: var(--star-shadow-3) var(--star-shadow-3);
  animation-duration: 150s;
}

/* ================================================= */
/*  3. HEADER & NAVIGATION                         */
/* ================================================= */
.site-header {
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky; /* Changed to sticky for better UX */
  top: 0;
  z-index: 1000;
  background: rgba(17, 17, 17, 0.7); /* Added background for readability on scroll */
  backdrop-filter: blur(10px);
  transition: background 0.3s ease;
}

.site-header .logo {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}
.site-header .logo span {
  color: var(--accent-color);
}
.main-nav .nav-link {
  color: var(--text-primary);
  text-decoration: none;
  margin-left: 25px;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  padding: 5px 0;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--accent-color);
}
/* Underline effect for active/hover links */
.main-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}
.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.mobile-nav-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-primary);
  z-index: 1001; /* Must be above the nav panel */
  background: none;
  border: none;
}
.mobile-nav-toggle #menu-close-icon {
  display: none;
}

/* ================================================= */
/*  4. HERO SECTION                                */
/* ================================================= */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 80px 20px 60px; /* Adjusted padding-top to account for sticky header */
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr;
  align-items: center;
  gap: 30px;
  width: 100%;
}

.hero-left h1 {
  font-family: var(--font-headline);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #ccc, #fff, #ccc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s infinite linear;
  background-size: 200% 100%;
}
.hero-left h1 span {
  background: linear-gradient(90deg, #aaffaa, var(--accent-color), #aaffaa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-left p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 400px;
}

/* Hero Center: Image/Mockup */
.hero-center {
  display: flex;
  justify-content: center;
  animation: fade-in 1s ease-out 0.2s forwards;
  opacity: 0;
}
.profile-image-wrapper {
  position: relative;
  width: clamp(180px, 30vw, 280px);
  height: clamp(180px, 30vw, 280px);
}
.profile-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: rotate-glow 10s linear infinite;
}
.profile-image-wrapper:hover::before {
  opacity: 0.7;
}
.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--stroke-color); /* Fixed variable name */
}

/* Hero Right: CTA Box */
.hero-right {
  animation: slide-in 1s ease-out 0.4s forwards;
  opacity: 0;
}
.cta-box {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--stroke-color); /* Fixed variable name */
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
}
.cta-box h2 {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: var(--text-primary);
}

/* Button Style */
.btn-primary {
  display: inline-block;
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid var(--accent-color);
  margin-bottom: 30px;
  transition: all var(--transition-fast);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.05); /* Added scale for more pop */
  box-shadow: 0 4px 20px rgba(50, 205, 50, 0.4);
  background-color: var(--accent-color);
  color: var(--bg-color);
}

/* Social Links Restyled */
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.social-links a {
  color: var(--text-secondary);
  font-size: 1.5rem;
  transition: all var(--transition-fast);
}
.social-links a:hover {
  color: var(--accent-color);
  transform: translateY(-3px);
}

/* ================================================= */
/*  5. GALLERY PAGE                                */
/* ================================================= */
.gallery-container {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}
.gallery-title {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  margin-bottom: 40px;
}
.gallery-title span {
  color: var(--accent-color);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.photo-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--stroke-color);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.photo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(50, 205, 50, 0.1); /* Enhanced shadow */
}
.photo-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}
.photo-card figcaption {
  padding: 15px;
  font-size: 0.9rem;
  text-align: center;
  color: var(--text-secondary);
}

/* ================================================= */
/*  6. FOOTER                                      */
/* ================================================= */
.site-footer {
  padding: 20px 20px;
  text-align: center;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--stroke-color);
  color: var(--text-secondary);
  font-size: 0.95rem;
  z-index: 100;
  position: relative;
  margin-top: 60px;
}

/* ================================================= */
/*  7. ANIMATIONS & RESPONSIVE                     */
/* ================================================= */
@keyframes anim-stars {
  from { transform: translateY(0); }
  to { transform: translateY(-2000px); }
}
@keyframes rotate-glow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Responsive Design */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }
  .hero-left {
    text-align: center;
    order: 2;
  }
  .hero-left p {
    margin: 0 auto;
    max-width: 500px;
  }
  .hero-center { order: 1; }
  .hero-right { order: 3; }
}

@media (max-width: 768px) {
  /* Mobile Navigation Styles */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 60%;
    max-width: 300px;
    height: 100vh;
    /* Glassmorphism Effect */
    background: rgba(17, 17, 17, 0.9);
    backdrop-filter: blur(10px);
    border-left: 1px solid var(--stroke-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
  }
  .main-nav.active {
    right: 0;
  }
  .main-nav .nav-link {
    margin-left: 0;
    font-size: 1.2rem;
  }
  .mobile-nav-toggle {
    display: block;
  }
}