/* ======================================================================
   base & spring theme
   ====================================================================== */
/* Madison Butchko: site styles
   Sections are layered in order (base, spring theme, effects, hero, gallery, garden).
   Later sections intentionally refine earlier ones. */

:root {
    /* Spring palette, pulled from the forsythia, bouquet & campus photos */
    --bg-dark: #fff8ec; --bg-section: #fffaf2; --bg-card: #ffffff; --bg-hover: #fff3e0;
    --border: #efe2d2; --cyan: #c2457e; --cyan-soft: #e9789f; --teal: #8a63b8;
    --sky: #8a63b8; --ice: #6b4a8f; --white: #2e2236; --text-mid: #5e5168; --text-dim: #8c7f92;
    --yellow: #f2c230; --yellow-soft: #fbe7a1; --pink: #f4a7bf; --pink-soft: #fde1ea;
    --lilac: #b9a2de; --lilac-soft: #ece4f8; --green: #6e9a4c; --green-soft: #dfecd2; --cream: #fff8ec;
    --font-display: 'Fraunces', Georgia, serif; --font-body: 'DM Sans', system-ui, sans-serif; --font-hand: 'Caveat', cursive;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body);   line-height: 1.6; overflow-x: hidden; }

/* --- NAVIGATION --- */
.nav {  top: 1.1rem; left: 50%; transform: translateX(-50%);  display: flex;     border-radius: 50px;  }
.nav a {    text-decoration: none; border-radius: 50px;  }
.nav a.active {   font-weight: 500;  }

/* Mobile Bar */











/* --- HERO & GENERAL --- */
.hero {  display: flex; align-items: center; justify-content: center;  position: relative; max-width: none; margin: 0; overflow-x: clip; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 75% 70% at 50% 48%, rgba(242, 194, 48, 0.16) 0%, transparent 70%), radial-gradient(ellipse 60% 70% at 30% 50%, rgba(194, 69, 126, 0.05) 0%, transparent 70%), radial-gradient(ellipse 60% 70% at 72% 48%, rgba(138, 99, 184, 0.08) 0%, transparent 70%); pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, transparent 78%, var(--bg-dark) 100%), radial-gradient(ellipse 85% 85% at 50% 48%, transparent 55%, rgba(255, 248, 236, 0) 100%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero-inner { position: relative; z-index: 1; }
.nowrap { white-space: nowrap; }
.hero-inner { display: flex; align-items: center;   width: 100%;  margin: 0 auto; }
.hero-text {  text-align: left; }
.hero-label {    white-space: nowrap; text-transform: uppercase;  margin-bottom: 1.25rem; opacity: 0; animation: fadeUp 0.8s ease forwards 0.2s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.hero h1 { font-family: var(--font-display);     margin-bottom: 1.25rem; opacity: 0; animation: fadeUp 0.8s ease forwards 0.35s; }
.hero h1 em { font-style: italic; background: linear-gradient(135deg, var(--cyan) 0%, var(--sky) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent;  }
.hero-intro {     line-height: 1.8;  opacity: 0; animation: fadeUp 0.8s ease forwards 0.5s; }
.hero-tags { display: flex; flex-wrap: wrap;  margin-bottom: 0; opacity: 0; animation: fadeUp 0.8s ease forwards 0.65s; }
.hero-tag { padding: 0.35rem 0.85rem;  letter-spacing: 0.02em;   border: 1px solid rgba(194, 69, 126, 0.16); border-radius: 50px; text-decoration: none; cursor: pointer; transition: all 0.3s ease; }


.profile-photo { position: relative; width: 212px; height: 284px; border-radius: 16px; overflow: hidden; border: 2px solid rgba(194, 69, 126, 0.85); box-shadow: 0 22px 50px rgba(120, 72, 96, 0.18), 0 0 28px rgba(194, 69, 126, 0.18); transition: box-shadow 0.3s ease; }
.profile-photo + .profile-photo { margin-left: 2px; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.profile-photo:nth-child(1) { z-index: 1; animation: tilt1 6.5s ease-in-out infinite; transform: rotate(-6deg); }
.profile-photo:nth-child(2) { z-index: 2; height: 308px; animation: tiltMid 5.5s ease-in-out infinite -1.2s; transform: translateY(-10px); }
.profile-photo:nth-child(3) { z-index: 1; animation: tilt2 7s ease-in-out infinite -2.5s; transform: rotate(6deg); }
.profile-photo:hover { z-index: 3; box-shadow: 0 28px 60px rgba(120, 72, 96, 0.20), 0 0 40px rgba(194, 69, 126, 0.35); }
/* Hover-to-enlarge for photos of Madison (uses `scale` so it layers on top of the tilt animation) */
.profile-photo, .contact-photo { scale: 1; transition: scale 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease; cursor: zoom-in; }
.profile-photo:hover { scale: 1.2; }
.profile-photo img, .contact-photo img { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.profile-photo:hover img, .contact-photo:hover img { transform: scale(1.04); }
@keyframes tilt1 { 0%, 100% { transform: rotate(-6deg) translate(0, 0); } 33% { transform: rotate(-1deg) translate(-4px, -14px); } 66% { transform: rotate(-8deg) translate(3px, -6px); } }
@keyframes tiltMid { 0%, 100% { transform: rotate(0deg) translateY(-10px); } 25% { transform: rotate(2.5deg) translateY(-24px); } 75% { transform: rotate(-2.5deg) translateY(-4px); } }
@keyframes tilt2 { 0%, 100% { transform: rotate(6deg) translate(0, 0); } 33% { transform: rotate(1deg) translate(4px, -14px); } 66% { transform: rotate(8deg) translate(-3px, -6px); } }

/* Scroll cue */




@keyframes cueDrop { 0% { top: -40%; } 100% { top: 100%; } }
section { padding: 4rem 5%; max-width: 1200px; margin: 0 auto; }
.section-head { text-align: center;  }
.section-title { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.5rem);  color: var(--white); }
.section-title em { font-style: italic;  }
.section-hint { text-align: center;    font-weight: 300; }

/* ============================================
   UNIFIED CIRCLE STYLES (Experience & Skills)
   ============================================ */
/* Containers */




/* Shared Circle Styles */




/* Animations */










@keyframes floatBubble { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Highlight & Hover States */





 /* Skills disappear when expanded */

/* ============================================
   EXPANDED SKILL CIRCLE
   ============================================ */


@keyframes expandCircle { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }








/* Experience panels */


@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }








































/* Gallery */
.gallery-section { background: none; padding: 4rem 0; }
.gallery-container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.gallery-preview { 
    display: grid; 
     
    
    gap: 4px; 
    border-radius: 16px; 
    overflow: hidden; 
    cursor: pointer; 
    position: relative; 
}
.gallery-preview:hover { box-shadow: 0 20px 60px rgba(194, 69, 126, 0.15); }
.preview-item img { width: 100%; height: 100%; object-fit: cover;  }
.preview-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.preview-item:nth-child(8) { grid-column: span 2; }
.preview-item:nth-child(13) { grid-column: span 2; grid-row: span 2; }
.preview-item:nth-child(20) { grid-column: span 2; }

.preview-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(0,0,0,0.7)); display: flex;  justify-content: center; padding-bottom: 1.5rem; opacity: 1; }
.preview-overlay span { padding: 0.85rem 2rem; background: var(--cyan);  font-size: 0.9rem; font-weight: 600; border-radius: 50px;   }
.gallery-preview:hover .preview-overlay span {  box-shadow: 0 6px 30px rgba(194, 69, 126, 0.6); }

.gallery-modal { position: fixed; inset: 0; z-index: 200;  display: none; flex-direction: column; }
.gallery-modal.active { display: flex; }
.gallery-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); }
.gallery-modal-title { font-family: var(--font-display); font-size: 1.5rem; color: var(--white); }
.gallery-modal-close { width: 44px; height: 44px; background: rgba(194, 69, 126, 0.1); border: none; border-radius: 50%; color: var(--cyan); font-size: 1.5rem; cursor: pointer; }
.gallery-modal-tabs { display: flex; gap: 0.4rem; padding: 1rem 1.5rem; flex-wrap: wrap; }
.gallery-modal-tab { padding: 0.4rem 1rem; font-size: 0.75rem; color: var(--text-dim);  border: 1px solid var(--border); border-radius: 50px; cursor: pointer; }
.gallery-modal-tab:hover { border-color: var(--cyan); color: var(--cyan); }
.gallery-modal-tab.active { background: var(--cyan); border-color: var(--cyan);  }
.gallery-collage { flex: 1; overflow-y: auto; padding: 1rem 1.5rem 2rem; }
.collage-grid {  grid-template-columns: repeat(6, 1fr); gap: 4px; }
.collage-item {   cursor: pointer;   }
.collage-item:hover {   z-index: 10; }
.collage-item img {   object-fit: cover; }
.collage-item-title { position: absolute;    padding: 2rem 0.5rem 0.5rem; background: linear-gradient(transparent, rgba(0,0,0,0.85));   opacity: 0;  }
.collage-item:hover .collage-item-title { opacity: 1; }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(46, 34, 54, 0.94); display: none; align-items: center; justify-content: center; padding: 2rem; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 80%; max-height: 85%; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; width: 50px; height: 50px; background: rgba(194, 69, 126, 0.2); border: none; border-radius: 50%; color: var(--cyan); font-size: 1.75rem; cursor: pointer; transition: all 0.3s; }
.lightbox-close:hover { background: rgba(194, 69, 126, 0.4); }
.lightbox-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 60px; height: 60px; background: rgba(194, 69, 126, 0.2); border: 2px solid rgba(194, 69, 126, 0.4); border-radius: 50%; color: var(--cyan); font-size: 1.5rem; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; }
.lightbox-arrow:hover { background: rgba(194, 69, 126, 0.4); transform: translateY(-50%) scale(1.1); }
.lightbox-prev { left: 2rem; }
.lightbox-next { right: 2rem; }
.lightbox-info {     text-align: center; }
.lightbox-title { font-family: var(--font-display); font-size: 1.25rem;  }
.lightbox-cat { font-size: 0.75rem;  text-transform: uppercase; }
.lightbox-counter { font-size: 0.8rem;  margin-top: 0.5rem; }

.gallery-deviant { display: flex; flex-wrap: nowrap; justify-content: center; gap: 28px; margin-top: 26px; }
.gallery-deviant a { display: inline-flex; align-items: center; justify-content: center; flex: 0 1 8.25rem; min-width: 0; min-height: 26px; padding: 0.1rem 0.5rem; font-size: 0.6875rem; font-weight: 500; line-height: 1.2; white-space: nowrap; color: var(--ice); background: none; border: 0; border-radius: 0; text-decoration: none; transition: color 0.3s, background-color 0.3s, border-color 0.3s, box-shadow 0.3s; }
.gallery-deviant a:hover { color: var(--cyan); }
.gallery-deviant a:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; color: var(--cyan); }
@media (prefers-reduced-motion: reduce) {
    .gallery-deviant a { transition: none; }
}
.contact-section { text-align: center; padding: 5rem 5%; }
.contact-title { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--white); margin-bottom: 0.75rem; }
.contact-title em { font-style: italic;  }
.contact-text { font-size: 0.95rem; color: var(--text-mid); max-width: 380px; margin: 0 auto 1.5rem; }
.social-links { display: flex; justify-content: center;  }
.social-link {   display: flex; align-items: center; justify-content: center;  border: 1px solid var(--border);  color: var(--cyan);    }
/* Contact: photo beside text */
.contact-inner { display: flex; align-items: center; justify-content: center;   margin: 0 auto; }
.contact-photo { position: relative; z-index: 1; flex-shrink: 0;   border-radius: 16px; overflow: hidden; border: 2px solid rgba(194, 69, 126, 0.85); transform: rotate(-4deg); animation: contactSway 6s ease-in-out infinite; box-shadow: 0 18px 40px rgba(120, 72, 96, 0.18), 0 0 24px rgba(194, 69, 126, 0.16); }
.contact-photo img { width: 100%; height: 100%; object-fit: cover;  display: block; }
.contact-photo:hover { z-index: 3; scale: 1.3; box-shadow: 0 28px 60px rgba(120, 72, 96, 0.20), 0 0 40px rgba(194, 69, 126, 0.35); }
.contact-inner .contact-body { text-align: left; }
.contact-inner .contact-title {  line-height: 1.05; margin-bottom: 0.9rem; }
.contact-inner .contact-text {  line-height: 1.7;  margin-bottom: 1.75rem; }
@keyframes contactSway { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-8px); } }
.contact-inner .contact-text { margin-left: 0; }
.contact-inner .social-links { justify-content: flex-start; }
footer { text-align: center;   }
footer p { font-size: 0.75rem; color: var(--text-dim); }
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1200px) and (min-width: 769px) {
    .hero { padding: 7rem 5% 8rem; }
    .hero-inner { flex-direction: column; gap: 3rem; }
    .hero-text { flex: none; text-align: center; max-width: 560px; }
    .hero-intro { margin-left: auto; margin-right: auto; }
    .hero-tags { justify-content: center; }
}
@media (max-width: 768px) {
    .hero { padding-top: 70px; }
    .hero { padding: 5rem 1.5rem 3rem; }
    .hero-inner { flex-direction: column; text-align: center; gap: 2.5rem; }
    .hero-text { flex: none; text-align: center; }
    .hero-tags { justify-content: center; }
    .hero-intro { max-width: 100%; }
    
    .profile-photo { width: 100px; height: 136px; border-width: 1.5px; }
    .profile-photo:nth-child(2) { height: 150px; }
    .profile-photo + .profile-photo { margin-left: 0px; }
    .contact-inner { flex-direction: column; gap: 1.75rem; }
    .contact-photo { width: 150px; height: 194px; }
    .contact-inner .contact-text { font-size: 1rem; }
    .contact-inner .contact-body { text-align: center; }
    .contact-inner .contact-text { margin-left: auto; }
    .contact-inner .social-links { justify-content: center; }
    .hero-label { white-space: normal; letter-spacing: 0.16em; }
    
    
    
    /* --- STANDARDIZED MOBILE CIRCLES --- */
    /* Both containers wrap */
    
    
    /* Enforce identical sizing for both types of circles */
    
    
    /* Enforce identical text sizing */
    
    
    
    
    
    
    
    .gallery-preview { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 80px; }
    .preview-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .preview-item:nth-child(8) { grid-column: span 1; }
    .preview-item:nth-child(13) { grid-column: span 2; grid-row: span 1; }
    .preview-item:nth-child(20) { grid-column: span 1; }
    .collage-grid { grid-template-columns: repeat(3, 1fr); gap: 3px; }
    
    .lightbox-arrow { width: 45px; height: 45px; font-size: 1.2rem; }
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
}

