/* style.css - Main stylesheet */
:root {
    /* Color Palette */
    --primary: #C5A880; /* Soft Gold/Taupe */
    --secondary: #FDFBF7; /* Very Soft Cream */
    --text: #4A4A4A;
    --text-light: #7A7A7A;
    
    --white: #ffffff;
    --cream: #FDFBF7;
    --gold: #D4AF37;
    --dusty-pink: #D4B2A7;
    --sage-green: #A3B19B;
    --soft-brown: #A08C78;
    --bg-dark: #3A3A3A;
    
    /* Typography */
    --font-serif: 'Playfair Display', 'Cormorant Garamond', serif;
    --font-sans: 'Poppins', sans-serif;
    
    /* UI Elements */
    --radius: 16px;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    color: var(--text);
    background-color: var(--secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

/* Reset and base styles */
* {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--soft-brown);
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--soft-brown);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    position: relative;
}

.py-lg { padding-top: 60px; padding-bottom: 60px; }
.py-md { padding-top: 40px; padding-bottom: 40px; }
.mb-lg { margin-bottom: 40px; }
.mb-md { margin-bottom: 24px; }
.mb-sm { margin-bottom: 16px; }
.mt-sm { margin-top: 16px; }
.mt-lg { margin-top: 40px; }

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-gray { color: #aaaaaa; }
.text-sm { font-size: 0.875rem; }

.bg-light { background-color: var(--white); }
.bg-dark { background-color: #2C2720 !important; color: #FDFBF7 !important; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.relative { position: relative; }
.z-10 { z-index: 10; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--soft-brown);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--soft-brown);
    border: 1px solid var(--soft-brown);
}

.btn-outline:hover {
    background-color: var(--soft-brown);
    color: var(--white);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Glassmorphism Panel */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

/* 1. Opening Screen */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-dark);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
}

.subtitle {
    font-family: var(--font-sans);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.bride-groom-names {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.wedding-date {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.guest-welcome {
    margin-bottom: 30px;
}

.guest-name {
    color: var(--primary);
    font-size: 1.8rem;
    margin: 5px 0 0 0;
}

/* Typography elements */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.islamic-text {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--primary);
    margin-bottom: 15px;
}

.body-text {
    color: var(--text-light);
    line-height: 1.8;
}

/* Guest Section */
#guest-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.guest-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 30px;
    background-color: var(--white);
    border: 1px solid rgba(197, 168, 128, 0.2);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    width: 100%;
}

/* Bride Groom Section */
.couple-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.person {
    text-align: center;
}

.person-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 5px solid var(--white);
    box-shadow: var(--shadow-md);
}

.person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Monogram Placeholder */
.mempelai-img-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-family: var(--font-serif);
    font-weight: 500;
    color: var(--primary);
    background: radial-gradient(circle, #FFF 60%, #FDFBF7 100%);
    border: 2px solid rgba(197, 168, 128, 0.4);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    position: relative;
    transition: var(--transition);
}

.mempelai-img-placeholder::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 1px dashed rgba(197, 168, 128, 0.3);
}

.person-name {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.person-parents {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

.ig-link {
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
}

.and-separator {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--primary);
}

/* Countdown Section */
.overlay-section {
    background: linear-gradient(135deg, #3C352E 0%, #2C2720 100%);
    color: #FDFBF7;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 55px;
}

.flip-unit-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Get the bourbon mixin from http://bourbon.io */
/* Reset */
.flip-clock-wrapper * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    -o-backface-visibility: hidden;
    backface-visibility: hidden;
}

.flip-clock-wrapper a {
  cursor: pointer;
  text-decoration: none;
  color: #ccc; }

.flip-clock-wrapper a:hover {
  color: #fff; }

.flip-clock-wrapper ul {
  list-style: none; }

.flip-clock-wrapper.clearfix:before,
.flip-clock-wrapper.clearfix:after {
  content: " ";
  display: table; }

.flip-clock-wrapper.clearfix:after {
  clear: both; }

.flip-clock-wrapper.clearfix {
  *zoom: 1; }

/* Main */
.flip-clock-wrapper {
  font: normal 11px "Helvetica Neue", Helvetica, sans-serif;
  -webkit-user-select: none; }

.flip-clock-meridium {
  background: none !important;
  box-shadow: 0 0 0 !important;
  font-size: 36px !important; }

.flip-clock-meridium a { color: #313333; }

.flip-clock-wrapper {
  display: block;
  position: relative;
  width: 690px !important;
  flex-shrink: 0 !important;
  margin: 1em auto !important;
}

.flip-clock-wrapper:before,
.flip-clock-wrapper:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}
.flip-clock-wrapper:after {
    clear: both;
}

/* Skeleton */
.flip-clock-wrapper ul {
  position: relative;
  float: left;
  margin: 5px;
  width: 60px;
  height: 90px;
  font-size: 80px;
  font-weight: bold;
  line-height: 87px;
  border-radius: 6px;
  background: #000;
}

.flip-clock-wrapper ul li {
  z-index: 1;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  line-height: 87px;
  text-decoration: none !important;
}

.flip-clock-wrapper ul li:first-child {
  z-index: 2; }

.flip-clock-wrapper ul li a {
  display: block;
  height: 100%;
  -webkit-perspective: 200px;
  -moz-perspective: 200px;
  perspective: 200px;
  margin: 0 !important;
  overflow: visible !important;
  cursor: default !important; }

.flip-clock-wrapper ul li a div {
  z-index: 1;
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  font-size: 80px;
  overflow: hidden; 
  outline: 1px solid transparent; }

.flip-clock-wrapper ul li a div .shadow {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2; }

.flip-clock-wrapper ul li a div.up {
  -webkit-transform-origin: 50% 100%;
  -moz-transform-origin: 50% 100%;
  -ms-transform-origin: 50% 100%;
  -o-transform-origin: 50% 100%;
  transform-origin: 50% 100%;
  top: 0; }

.flip-clock-wrapper ul li a div.up:after {
  content: "";
  position: absolute;
  top: 44px;
  left: 0;
  z-index: 5;
  width: 100%;
  height: 3px;
  background-color: #000;
  background-color: rgba(0, 0, 0, 0.4); }

.flip-clock-wrapper ul li a div.down {
  -webkit-transform-origin: 50% 0;
  -moz-transform-origin: 50% 0;
  -ms-transform-origin: 50% 0;
  -o-transform-origin: 50% 0;
  transform-origin: 50% 0;
  bottom: 0;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.flip-clock-wrapper ul li a div div.inn {
  position: absolute;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 200%;
  color: #ccc;
  text-shadow: 0 1px 2px #000;
  text-align: center;
  background-color: #333;
  border-radius: 6px;
  font-size: 70px; }

.flip-clock-wrapper ul li a div.up div.inn {
  top: 0; }

.flip-clock-wrapper ul li a div.down div.inn {
  bottom: 0; }

/* PLAY */
.flip-clock-wrapper ul.play li.flip-clock-before {
  z-index: 3; }

.flip-clock-wrapper .flip {   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7); }

.flip-clock-wrapper ul.play li.flip-clock-active {
  -webkit-animation: asd 0.5s 0.5s linear both;
  -moz-animation: asd 0.5s 0.5s linear both;
  animation: asd 0.5s 0.5s linear both;
  z-index: 5; }

.flip-clock-divider {
  float: left;
  display: inline-block;
  position: relative;
  width: 20px;
  height: 100px; }

.flip-clock-divider:first-child {
  width: 0; }

.flip-clock-dot {
  display: block;
  background: #323434;
  width: 10px;
  height: 10px;
  position: absolute;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  left: 5px; }

.flip-clock-divider .flip-clock-label {
  position: absolute;
  top: -1.7em;
  right: -92px;
  color: white;
  font-size: 24px;
  font-weight: 800;
  text-shadow: none; }

.flip-clock-divider.minutes .flip-clock-label {
  right: -95px; }

.flip-clock-divider.seconds .flip-clock-label {
  right: -98px; }

.flip-clock-dot.top {
  top: 30px; }

.flip-clock-dot.bottom {
  bottom: 30px; }

@-webkit-keyframes asd {
  0% {
    z-index: 2; }

  20% {
    z-index: 4; }

  100% {
    z-index: 4; } }

@-moz-keyframes asd {
  0% {
    z-index: 2; }

  20% {
    z-index: 4; }

  100% {
    z-index: 4; } }

@-o-keyframes asd {
  0% {
    z-index: 2; }

  20% {
    z-index: 4; }

  100% {
    z-index: 4; } }

@keyframes asd {
  0% {
    z-index: 2; }

  20% {
    z-index: 4; }

  100% {
    z-index: 4; } }

.flip-clock-wrapper ul.play li.flip-clock-active .down {
  z-index: 2;
  -webkit-animation: turn 0.5s 0.5s linear both;
  -moz-animation: turn 0.5s 0.5s linear both;
  animation: turn 0.5s 0.5s linear both; }

@-webkit-keyframes turn {
  0% {
    -webkit-transform: rotateX(90deg); }

  100% {
    -webkit-transform: rotateX(0deg); } }

@-moz-keyframes turn {
  0% {
    -moz-transform: rotateX(90deg); }

  100% {
    -moz-transform: rotateX(0deg); } }

@-o-keyframes turn {
  0% {
    -o-transform: rotateX(90deg); }

  100% {
    -o-transform: rotateX(0deg); } }

@keyframes turn {
  0% {
    transform: rotateX(90deg); }

  100% {
    transform: rotateX(0deg); } }

.flip-clock-wrapper ul.play li.flip-clock-before .up {
  z-index: 2;
  -webkit-animation: turn2 0.5s linear both;
  -moz-animation: turn2 0.5s linear both;
  animation: turn2 0.5s linear both; }

@-webkit-keyframes turn2 {
  0% {
    -webkit-transform: rotateX(0deg); }

  100% {
    -webkit-transform: rotateX(-90deg); } }

@-moz-keyframes turn2 {
  0% {
    -moz-transform: rotateX(0deg); }

  100% {
    -moz-transform: rotateX(-90deg); } }

@-o-keyframes turn2 {
  0% {
    -o-transform: rotateX(0deg); }

  100% {
    -o-transform: rotateX(-90deg); } }

@keyframes turn2 {
  0% {
    transform: rotateX(0deg); }

  100% {
    transform: rotateX(-90deg); } }

.flip-clock-wrapper ul li.flip-clock-active {
  z-index: 3; }

/* SHADOW */
.flip-clock-wrapper ul.play li.flip-clock-before .up .shadow {
  background: -moz-linear-gradient(top, rgba(0, 0, 0, 0.1) 0%, black 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(0, 0, 0, 0.1)), color-stop(100%, black));
  background: linear, top, rgba(0, 0, 0, 0.1) 0%, black 100%;
  background: -o-linear-gradient(top, rgba(0, 0, 0, 0.1) 0%, black 100%);
  background: -ms-linear-gradient(top, rgba(0, 0, 0, 0.1) 0%, black 100%);
  background: linear, to bottom, rgba(0, 0, 0, 0.1) 0%, black 100%;
  -webkit-animation: show 0.5s linear both;
  -moz-animation: show 0.5s linear both;
  animation: show 0.5s linear both; }

.flip-clock-wrapper ul.play li.flip-clock-active .up .shadow {
  background: -moz-linear-gradient(top, rgba(0, 0, 0, 0.1) 0%, black 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(0, 0, 0, 0.1)), color-stop(100%, black));
  background: linear, top, rgba(0, 0, 0, 0.1) 0%, black 100%;
  background: -o-linear-gradient(top, rgba(0, 0, 0, 0.1) 0%, black 100%);
  background: -ms-linear-gradient(top, rgba(0, 0, 0, 0.1) 0%, black 100%);
  background: linear, to bottom, rgba(0, 0, 0, 0.1) 0%, black 100%;
  -webkit-animation: hide 0.5s 0.3s linear both;
  -moz-animation: hide 0.5s 0.3s linear both;
  animation: hide 0.5s 0.3s linear both; }

/*DOWN*/
.flip-clock-wrapper ul.play li.flip-clock-before .down .shadow {
  background: -moz-linear-gradient(top, black 0%, rgba(0, 0, 0, 0.1) 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, black), color-stop(100%, rgba(0, 0, 0, 0.1)));
  background: linear, top, black 0%, rgba(0, 0, 0, 0.1) 100%;
  background: -o-linear-gradient(top, black 0%, rgba(0, 0, 0, 0.1) 100%);
  background: -ms-linear-gradient(top, black 0%, rgba(0, 0, 0, 0.1) 100%);
  background: linear, to bottom, black 0%, rgba(0, 0, 0, 0.1) 100%;
  -webkit-animation: show 0.5s linear both;
  -moz-animation: show 0.5s linear both;
  animation: show 0.5s linear both; }

.flip-clock-wrapper ul.play li.flip-clock-active .down .shadow {
  background: -moz-linear-gradient(top, black 0%, rgba(0, 0, 0, 0.1) 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, black), color-stop(100%, rgba(0, 0, 0, 0.1)));
  background: linear, top, black 0%, rgba(0, 0, 0, 0.1) 100%;
  background: -o-linear-gradient(top, black 0%, rgba(0, 0, 0, 0.1) 100%);
  background: -ms-linear-gradient(top, black 0%, rgba(0, 0, 0, 0.1) 100%);
  background: linear, to bottom, black 0%, rgba(0, 0, 0, 0.1) 100%;
  -webkit-animation: hide 0.5s 0.3s linear both;
  -moz-animation: hide 0.5s 0.3s linear both;
  animation: hide 0.5s 0.2s linear both; }

@-webkit-keyframes show {
  0% {
    opacity: 0; }

  100% {
    opacity: 1; } }

@-moz-keyframes show {
  0% {
    opacity: 0; }

  100% {
    opacity: 1; } }

@-o-keyframes show {
  0% {
    opacity: 0; }

  100% {
    opacity: 1; } }

@keyframes show {
  0% {
    opacity: 0; }

  100% {
    opacity: 1; } }

@-webkit-keyframes hide {
  0% {
    opacity: 1; }

  100% {
    opacity: 0; } }

@-moz-keyframes hide {
  0% {
    opacity: 1; }

  100% {
    opacity: 0; } }

@-o-keyframes hide {
  0% {
    opacity: 1; }

  100% {
    opacity: 0; } }

@keyframes hide {
  0% {
    opacity: 1; }

  100% {
    opacity: 0; } }

/* Event Section */
.events-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.event-card {
    text-align: center;
}

.event-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.event-name {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.event-time {
    font-weight: 500;
    color: var(--soft-brown);
}

.event-location {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 600px;
    margin: 40px auto 0;
    padding-left: 30px;
    text-align: left;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 11px;
    width: 2px;
    background-color: var(--dusty-pink);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--white);
    border: 4px solid var(--dusty-pink);
    z-index: 2;
}

.timeline-content {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.timeline-date {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--soft-brown);
    margin-bottom: 5px;
}

/* RSVP Form */
.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--soft-brown);
    box-shadow: 0 0 0 2px rgba(210, 180, 140, 0.2);
}

.alert-success {
    background-color: var(--sage-green);
    color: var(--white);
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
}

/* Gifts */
.gifts-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.gift-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bank-name {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.account-number {
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
}

/* Floating Audio Control */
.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    box-shadow: 0 0 0 0 rgba(197, 168, 128, 0.7);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    animation: music-pulse 2s infinite;
}

@keyframes music-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(197, 168, 128, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(197, 168, 128, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(197, 168, 128, 0); }
}

.floating-btn:hover {
    transform: scale(1.1);
}

/* Masonry Gallery Setup */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    grid-auto-rows: 10px;
    gap: 15px;
    margin-top: 30px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    box-shadow: var(--shadow-md);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--primary);
}

/* Avatar Selection */
.avatar-selection {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.avatar-label {
    cursor: pointer;
    position: relative;
}

.avatar-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.avatar-icon {
    font-size: 2rem;
    display: inline-block;
    padding: 5px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: var(--transition);
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
}

.avatar-label input[type="radio"]:checked ~ .avatar-icon {
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

/* Comments Section */
.comments-section {
    max-width: 600px;
    margin: 40px auto 0;
    text-align: left;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-right: 10px;
}

.comments-list::-webkit-scrollbar {
    width: 6px;
}
.comments-list::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}
.comments-list::-webkit-scrollbar-thumb {
    background: var(--dusty-pink);
    border-radius: 10px;
}

.comment-card {
    display: flex;
    gap: 10px;
    padding: 10px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
    animation: slideUp 0.3s ease forwards;
}

.comment-avatar {
    font-size: 2rem;
    line-height: 1;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.comment-name {
    font-weight: 600;
    color: var(--soft-brown);
    margin: 0;
    font-size: 0.9rem;
}

.comment-status {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 8px;
    background-color: var(--secondary);
    color: var(--text-light);
}

.comment-status.hadir {
    background-color: #2e7d32;
    color: #ffffff;
    font-weight: 500;
}

.comment-status.tidak-hadir {
    background-color: #d32f2f;
    color: #ffffff;
    font-weight: 500;
}

.comment-time {
    font-size: 0.65rem;
    color: var(--text-light);
    margin-top: 4px;
    display: block;
}

.comment-text {
    font-size: 0.85rem;
    color: var(--text);
    margin: 0;
    line-height: 1.4;
}

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

/* Pagination */
.page-btn {
    padding: 5px 12px;
    border: 1px solid var(--primary);
    background-color: var(--white);
    color: var(--primary);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
    font-size: 0.9rem;
}
.page-btn:hover {
    background-color: var(--primary);
    color: var(--white);
}
.page-btn.active {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
}
.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--white);
    color: var(--primary);
}
