@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&family=Caveat:wght@700&display=swap');

:root {
  /* Dynamic Color Palette - Changes Monthly */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  
  --accent-1: #0ea5e9; /* Cyan */
  --accent-2: #10b981; /* Green */
  
  --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  
  /* Frosted Glass Background Colors */
  --glass-nav: rgba(255, 255, 255, 0.85);
  --section-bg: rgba(255, 255, 255, 0.25); /* 0.25 is very transparent! You can increase this if text is hard to read */
  --section-bg-secondary: rgba(248, 250, 252, 0.35); 
  --card-bg: rgba(255, 255, 255, 0.15); /* Cards */
  
  --glass-border: rgba(0, 0, 0, 0.05);
  --shadow-vibrant: 0 20px 40px -10px rgba(16, 185, 129, 0.15);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-accent: 'Caveat', cursive;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: transparent;
}

/* Full Page Fixed Background */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -10;
  background-image: var(--page-bg-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  /* Hardware acceleration for smoother mobile rendering */
  transform: translateZ(0);
  will-change: transform;
}

::selection {
  background-color: var(--accent-green);
  color: #fff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800; /* Bolder for vibrant look */
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

h1 { font-size: clamp(3.5rem, 7vw, 6rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 1.25rem; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); margin-bottom: 1rem; }

p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

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

a:hover {
  color: var(--accent-1);
}

/* Layout Classes */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  position: relative;
  background-color: var(--section-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--glass-border);
}

.bg-secondary {
  background-color: var(--section-bg-secondary);
}

/* Navigation - Glassmorphism */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  background: var(--glass-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 85px;
}

.logo {
  font-weight: 900;
  font-size: 1.75rem;
  letter-spacing: -0.05em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-transform: uppercase;
}

.navbar:not(.scrolled) .logo {
  background: #fff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.navbar:not(.scrolled) .nav-link {
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.navbar:not(.scrolled) .nav-link.active,
.navbar:not(.scrolled) .nav-link:hover {
  color: #fff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent-gradient);
  transition: width var(--transition-fast);
  border-radius: 3px;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 85px;
  position: relative;
  background: transparent;
  color: #fff; /* White text for contrast */
}

/* Dark overlay for text readability */
.hero::before,
.hero-subpage::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.4) 0%, rgba(15,23,42,0.1) 50%, rgba(15,23,42,0.6) 100%);
  z-index: 0;
}

.hero-subpage {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding-top: 85px;
  position: relative;
  background: transparent;
  color: #fff; /* White text for contrast */
}

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

.gradient-text {
  background: #fff; /* Override gradient for readability on photos */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.75rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  max-width: 800px;
  margin-top: 2rem;
  margin-bottom: 3.5rem;
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Bento Box Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  grid-auto-rows: minmax(280px, auto);
}

.bento-item {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
  transition: transform var(--transition-bounce), box-shadow var(--transition-bounce);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-vibrant);
  border-color: rgba(16, 185, 129, 0.2);
}

/* Subtle gradient background on hover for bento items */
.bento-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.03), rgba(16, 185, 129, 0.03));
  opacity: 0;
  transition: opacity var(--transition-smooth);
  z-index: 1;
}

.bento-item:hover::before {
  opacity: 1;
}

.bento-item h3 {
  margin-bottom: 1rem;
  font-size: 2rem;
  z-index: 2;
  position: relative;
}

.bento-item h2 {
  z-index: 2;
  position: relative;
}

.bento-item p, .bento-item ul, .bento-item span {
  z-index: 2;
  position: relative;
}

.bento-icon {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  display: inline-block;
  z-index: 2;
  position: relative;
  background: var(--bg-secondary);
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
}

/* Specific Grid Spans */
.col-span-12 { grid-column: span 12; }
.col-span-8 { grid-column: span 8; }
.col-span-6 { grid-column: span 6; }
.col-span-4 { grid-column: span 4; }

/* Interactive Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.5rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  z-index: 2;
  position: relative;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 25px rgba(16, 185, 129, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
}

.btn-outline:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

/* Utility Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  background-color: var(--section-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-email {
  color: var(--text-primary);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.footer-text {
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0;
  font-size: 0.8rem;
}

/* Add some vibrant specificity for the dark items */
.bento-item[style*="background: var(--accent-gradient)"] {
  border: none;
  box-shadow: 0 15px 35px rgba(14, 165, 233, 0.25);
}
.bento-item[style*="background: var(--accent-gradient)"] h3,
.bento-item[style*="background: var(--accent-gradient)"] p {
  color: #fff !important;
}

/* Responsive */
@media (max-width: 1024px) {
  .col-span-8, .col-span-4 {
    grid-column: span 12;
  }
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 85px;
    left: 0;
    width: 100%;
    background: var(--glass-nav);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
  }

  .nav-links.show {
    display: flex;
  }

  /* Force dark text in mobile menu since background is always frosted white */
  .navbar:not(.scrolled) .nav-link {
    color: var(--text-primary);
    text-shadow: none;
  }
  
  .navbar:not(.scrolled) .nav-link:hover,
  .navbar:not(.scrolled) .nav-link.active {
    color: var(--accent-1);
  }

  .mobile-menu-btn {
    display: block;
  }

  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.35rem; }
  p { font-size: 1.05rem; }
  
  .hero-subtitle {
    font-size: 1.15rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
  }
  
  .col-span-6 {
    grid-column: span 12;
  }
  
  .section {
    padding: 3.5rem 0;
  }
  
  /* Shrinking "elliptic" backgrounds (bento boxes, buttons, icons) for mobile */
  .bento-item {
    padding: 1.5rem;
    border-radius: 1rem;
  }
  
  .bento-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    margin-bottom: 1.25rem;
    border-radius: 16px;
  }
  
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .footer-email {
    font-size: 0.75rem;
  }
  
  .footer-text {
    font-size: 0.7rem;
  }
}
