/* =============================================
   SRIVIDYALAYAM — index.html styles
   ============================================= */

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* HERO */
#hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 3rem;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-btns {
    display: flex;
    gap: 4rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0;
}

.hero-btns .btn-primary {
    margin-left: 1.1rem;
}

.hero-btns .btn-primary,
.hero-btns .btn-ghost {
    min-width: 200px;
    text-align: center;
}

.hero-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(160deg, #8B5A00 0%, #C07800 40%, #E09010 60%, #C07800 100%);
    z-index: -2;
}

.hero-overlay {
    display: none;
}

.hero-discover {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
    color: rgba(245, 233, 200, 0.7);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    text-align: center;
    z-index: 2;
    transition: color 0.3s ease, transform 0.3s ease;
}

.hero-discover:hover {
    color: var(--gold-light);
    transform: translateY(-3px);
}

.hero-portrait {
  position: absolute;
  top: 10vh;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(201, 168, 76, 0.7);
  box-shadow: 0 0 0 6px rgba(201, 168, 76, 0.15), 0 8px 32px rgba(0,0,0,0.4);
  z-index: 3;
  background: var(--crimson-deep);
}

.hero-portrait-left {
  left: 20%;
}

.hero-portrait-right {
  right: 16%;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.hero-portrait-left img {
  object-position: 40% 65%;
  transform: scale(1.35);
  transform-origin: 40% 65%;
}

.hero-portrait-right img {
  object-position: 70% 15%;
}

.hero-bg,
.hero-overlay {
    z-index: -1;
}

.hero-discover-arrow { font-size: 1.2rem; }

@keyframes bobble {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50%       { opacity: 1;   transform: translateY(6px); }
}

/* ABOUT */
#about {
    background: white;
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 550px 1fr;
    gap: 3rem;
    align-items: center;
}

.about-visual {
    position: relative;
    padding-bottom: 2rem;
    max-width: 550px;
}

.about-frame {
    width: 100%;
    aspect-ratio: 3/2;
    background: linear-gradient(135deg, var(--crimson-deep), var(--crimson));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.about-frame::before {
    content: '';
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(201, 168, 76, 0.4);
    pointer-events: none;
    z-index: 1;
}

.about-frame-icon {
    font-size: 7rem;
    color: rgba(201, 168, 76, 0.2);
    font-family: serif;
}

.about-divider {
    width: 48px;
    height: 2px;
    background: var(--gold);
    margin: 1.5rem 0;
}

.about-text p {
    font-size: 0.97rem;
    line-height: 1.85;
    color: var(--muted);
    margin-bottom: 1.1rem;
}

.about-text p strong { color: var(--text); }

/* GALLERY */
#gallery {
    background: var(--cream);
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

.gallery-note {
    font-size: 0.88rem;
    color: var(--muted);
    font-style: italic;
    margin-top: 0.5rem;
    margin-bottom: 3rem;
}

.gallery-carousel {
    position: relative;
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    margin: 0 auto;
    background: var(--gold-pale);
    border: 1px solid rgba(201, 168, 76, 0.35);
    overflow: hidden;
}

.gallery-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.gallery-slide.active { opacity: 1; }

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(15, 0, 5, 0.55);
    color: var(--gold-light);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;
    letter-spacing: 0.04em;
    padding: 0.85rem 1.5rem;
    text-align: center;
}

.gallery-dots { display: none; }

/* VIDEOS */
#videos {
    background: white;
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

.videos-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 3rem auto 0 auto;
}

.videos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.video-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border: 1px solid rgba(201, 168, 76, 0.3);
    overflow: hidden;
}

.video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-caption {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-style: italic;
    color: var(--muted);
    text-align: center;
    padding: 0.75rem 0.5rem 0 0.5rem;
    letter-spacing: 0.03em;
}

.video-single {
    display: flex;
    justify-content: center;
}

.video-single .video-item {
    width: calc(50% - 0.75rem);
}

.yt-btn {
    display: inline-block;
    margin-top: 0.5rem;
    background: var(--gold);
    color: var(--crimson-deep);
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.55rem 1.2rem;
    transition: background 0.2s;
}

.yt-btn:hover { background: var(--gold-light); }

/* FOOTER */
footer {
    position: relative;
    z-index: 1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-visual {
        max-width: 100%;
        padding-bottom: 3rem;
    }

    .gallery-carousel {
        max-width: 100%;
        aspect-ratio: 4/3;
    }

    .videos-grid { grid-template-columns: 1fr; }
    .videos-layout { max-width: 100%; }
    .video-single .video-item { width: 100%; }

   #hero {
    min-height: 100vh;
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 4rem 1.5rem 3rem;
    align-items: flex-end;
}

    .hero-bg,
    .hero-overlay {
        position: absolute !important;
        z-index: 0;
        background-position: center center !important;
        background-size: cover !important;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    .hero-btns .btn-primary,
    .hero-btns .btn-ghost {
        min-width: 0;
        width: 75%;
        text-align: center;
        margin-left: 0 !important;
        padding: 0.7rem 1.5rem;
        font-size: 0.72rem;
    }

    .hero-discover {
        margin-top: 1rem;
        font-size: 0.65rem;
    }
}