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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #0a0a0a;
    overflow-x: hidden;
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, #ff006e15 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, #8338ec15 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, #3a86ff15 0%, transparent 50%);
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-20px, -20px) rotate(1deg); }
    66% { transform: translate(20px, -10px) rotate(-1deg); }
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.name-headshot {
  position: relative;
  display: inline-block;
}

.name-headshot h1 {
  transition: opacity 2s cubic-bezier(.4,2,.6,1);
  position: relative;
  z-index: 2;
}

.name-headshot .headshot {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90px; /* Adjust as needed */
  height: 90px; /* Adjust as needed */
  border-radius: 50%;
  opacity: 0;
  transition: opacity 2s cubic-bezier(.4,2,.6,1);
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 4px 32px #000a;
}

.name-headshot:hover h1 {
  opacity: 0;
}

.name-headshot:hover .headshot {
  opacity: 1;
}

h1 {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #64b5f6, #81c784, #4db6ac);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.tagline {
    font-size: 1.3em;
    color: #81c784;
    font-weight: 300;
}

.contact {
    margin-top: 20px;
    color: #888;
}

section {
    margin-bottom: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

section:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(129, 199, 132, 0.3);
    transform: translateY(-2px);
}

h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #81c784;
    display: flex;
    align-items: center;
    gap: 10px;
}

h2::before {
    content: '';
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #81c784, transparent);
}

.job {
    margin-bottom: 30px;
    padding-left: 20px;
    border-left: 2px solid #333;
    transition: border-color 0.3s ease;
}

.job:hover {
    border-color: #64b5f6;
}

.job-title {
    font-size: 1.3em;
    color: #64b5f6;
    font-weight: 600;
}

.company {
    color: #4db6ac;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.date {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.job p, .job ul {
    color: #ccc;
    line-height: 1.8;
}

ul {
    list-style: none;
    padding-left: 20px;
}

ul li::before {
    content: '▸ ';
    color: #81c784;
    font-weight: bold;
    margin-left: -20px;
    margin-right: 10px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.skill-category {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-category h3 {
    color: #64b5f6;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.skill-category p {
    color: #aaa;
    font-size: 0.95em;
}

.highlight {
    color: #81c784;
    font-weight: 500;
}

.projects {
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.05), rgba(129, 199, 132, 0.05));
}

.cta {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 50px;
    padding: 40px;
    background: rgba(129, 199, 132, 0.05);
    border-radius: 20px;
    border: 2px solid rgba(129, 199, 132, 0.2);
}

.cta h3 {
    font-size: 1.5em;
    color: #81c784;
    margin-bottom: 20px;
}

.cta a {
    color: #64b5f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cta a:hover {
    color: #81c784;
}

/* Carousel styles */
.carousel-section {
  margin-bottom: 50px;
  text-align: center;
}
.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.carousel-images {
  width: 540px;
  height: 304px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 12px #0005;
  position: relative;
}
.carousel-images img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  position: absolute;
  left: 0; top: 0;
}
.carousel-images img.active {
  display: block;
}
.carousel-btn {
  background: #222;
  color: #81c784;
  border: none;
  font-size: 2em;
  padding: 0 15px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}
.carousel-btn:hover {
  background: #333;
}
/* Grid gallery styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 0 auto 30px auto;
  max-width: 1200px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 12px #0005;
  cursor: zoom-in;
  transition: box-shadow 0.2s, transform 0.2s;
  background: #222;
}

.gallery-grid img:hover,
.gallery-grid img:focus {
  box-shadow: 0 4px 24px #64b5f6cc, 0 2px 12px #0005;
  outline: 2px solid #64b5f6;
  transform: scale(1.03);
  z-index: 2;
}

/* Lightbox overlay */
#lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#lightbox.active {
  display: flex;
}

#lightbox-img-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  z-index: 2; /* Make sure it's above the image */
}

#zoom-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2; /* Make sure it's above the image */
  display: flex;
  gap: 18px;
  justify-content: center;
  background: rgba(20, 20, 20, 0.6); /* Optional: add a subtle background for contrast */
  border-radius: 12px;
  padding: 6px 12px;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 4px 32px #000a;
  background: #222;
  transition: transform 0.2s;
}

#lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 2.5em;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 0 10px;
  line-height: 1;
  transition: color 0.2s;
}
#lightbox-close:hover { color: #64b5f6; }

#zoom-controls {
  margin-top: 18px;
  display: flex;
  gap: 18px;
  justify-content: center;
}
#zoom-controls button {
  font-size: 1.5em;
  background: #222;
  color: #81c784;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
#zoom-controls button:hover { background: #333; color: #64b5f6; }

/* Base bubble style for all main sections */
section, .cta {
  transition: 
    box-shadow 0.4s cubic-bezier(.4,2,.6,1),
    background 0.3s,
    border-color 0.3s,
    transform 0.25s cubic-bezier(.4,2,.6,1),
    filter 0.3s;
}

/* Summary bubble glow (blue) */
.summary:hover {
  box-shadow: 0 0 32px 0 #64b5f655, 0 2px 12px #0005;
  background: rgba(100, 181, 246, 0.08);
  border-color: #64b5f6;
  filter: blur(0.2px) brightness(1.04);
  transform: scale(1.012);
}

/* Experience bubble glow (green) */
.experience:hover {
  box-shadow: 0 0 32px 0 #81c78455, 0 2px 12px #0005;
  background: rgba(129, 199, 132, 0.08);
  border-color: #81c784;
  filter: blur(0.2px) brightness(1.04);
  transform: scale(1.012);
}

/* CTA bubble glow (yellow) */
.cta:hover {
  box-shadow: 0 0 32px 0 #fff17655, 0 2px 12px #0005;
  background: rgba(255, 241, 118, 0.07);
  border-color: #fff176;
  filter: blur(0.2px) brightness(1.04);
  transform: scale(1.012);
}

/* Skills bubble glow (teal) */
.skills:hover {
  box-shadow: 0 0 32px 0 #4db6ac55, 0 2px 12px #0005;
  background: rgba(77, 182, 172, 0.08);
  border-color: #4db6ac;
  filter: blur(0.2px) brightness(1.04);
  transform: scale(1.012);
}

/* Education bubble glow (purple) */
.education:hover {
  box-shadow: 0 0 32px 0 #a084e855, 0 2px 12px #0005;
  background: rgba(160, 132, 232, 0.08);
  border-color: #a084e8;
  filter: blur(0.2px) brightness(1.04);
  transform: scale(1.012);
}

/* Responsive */
@media (max-width: 600px) {
    h1 { font-size: 2em; }
    .container { padding: 20px 15px; }
    section { padding: 20px; }
    .cta { padding: 20px; }
    .skills-grid { gap: 10px; }
    .carousel-images {
        width: 95vw;
        max-width: 100%;
        height: 0;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
        position: relative;
    }
    .carousel-images img {
        position: absolute;
        top: 0; left: 0;
        width: 100%;
        height: 100%;
    }
  .gallery-grid {
    grid-template-columns: 1fr 1fr; /* 2 columns on mobile */
    gap: 8px;
  }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    section {
        border: 1px solid #ddd;
        background: white;
    }
    h1, h2, .tagline, .job-title, .company, a {
        color: black !important;
        -webkit-text-fill-color: black !important;
    }
}

.gallery-heading {
  text-align: center;
  color: #64b5f6; /* blue hue */
  font-size: 1.8em;
  margin-bottom: 20px;
  font-weight: 600;
  display: block;
}

.gallery-heading::before {
  content: none; /* removes the swish */
}