/* 
    Stylesheets for Yayasan Sanggar Pangeran Mancur Jaya 
    Modern, Premium, and Cultural Aesthetics 
*/

:root {
    /* Color Palette */
    --color-primary-dark: #20130e;
    --color-maroon: #7C1818;
    --color-bg-light: #FBF8F1;
    --color-bg-white: #FFFFFF;

    --color-gold: #D4AF37;
    --color-gold-hover: #b5952f;
    --color-gold-light: #F4E4BA;

    --color-text-main: #333333;
    --color-text-light: #666666;
    --color-text-white: #F8F9FA;

    --color-border: #E2E8F0;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Variables */
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    --nav-height: 80px;
}

/* ================== GLOBAL STYLES ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-white);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

.text-gold {
    color: var(--color-gold);
}

.text-white {
    color: var(--color-text-white) !important;
}

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

.section {
    padding: 6rem 0;
    overflow: hidden;
}

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

.bg-dark {
    background-color: var(--color-primary-dark);
}

.text-center {
    text-align: center !important;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.relative {
    position: relative;
}

/* ================== TYPOGRAPHY & HEADINGS ================== */
.section-subtitle {
    font-family: var(--font-body);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-maroon);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--color-gold);
    margin-bottom: 1.5rem;
}

.lead-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-primary-dark);
}

/* ================== BUTTONS ================== */
.btn-primary,
.btn-outline,
.btn-outline-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.95rem;
    font-family: var(--font-body);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-primary-dark);
}

.btn-primary:hover {
    background-color: var(--color-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-gold);
    color: var(--color-text-white);
}

.btn-outline:hover {
    background-color: var(--color-gold);
    color: var(--color-primary-dark);
}

.btn-outline-white {
    background-color: transparent;
    border-color: #fff;
    color: #fff;
}

.btn-outline-white:hover {
    background-color: #fff;
    color: var(--color-primary-dark);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

/* ================== NAVBAR ================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav.scrolled {
    background: rgba(42, 23, 12, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-white);
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo-gold {
    color: var(--color-gold);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-item {
    color: var(--color-text-white);
    font-size: 0.95rem;
    font-weight: 400;
    position: relative;
    opacity: 0.85;
}

.nav-item:hover,
.nav-item.active {
    opacity: 1;
    color: var(--color-gold);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-gold);
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-white);
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background-color: var(--color-primary-dark);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transform: translateY(-150%);
    opacity: 0;
    transition: all 0.4s ease-in-out;
    z-index: 999;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-link {
    color: var(--color-text-white);
    font-size: 1.2rem;
    text-align: center;
    padding: 0.5rem;
}

.mobile-btn {
    text-align: center;
}

/* ================== HERO SECTION ================== */
.hero-section {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--color-text-white);
}

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

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(32, 19, 14, 0.9) 0%, rgba(124, 24, 24, 0.6) 100%);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content {
    max-width: 700px;
    margin-top: 4rem;
}

.hero-content .badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-white);
}

.hero-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-indicator a {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
}

.scroll-indicator a:hover {
    opacity: 1;
    color: var(--color-gold);
}

.scroll-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.bounce-anim {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

/* ================== ABOUT SECTION ================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    padding-right: 2rem;
    padding-bottom: 2rem;
}

.image-frame {
    position: relative;
    z-index: 2;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.image-frame img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-frame:hover img {
    transform: scale(1.05);
}

.floating-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: var(--color-gold);
    color: var(--color-primary-dark);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.badge-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.badge-text {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

.pattern-bg {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(var(--color-gold) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: 1;
}

.features-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-bg-light);
    color: var(--color-maroon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-text h5 {
    margin-bottom: 0.25rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
}

.feature-text p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* ================== PROGRAMS SECTION ================== */
.program-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.program-card {
    background: var(--color-bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--color-gold);
}

.card-img-container {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.program-card:hover .card-img-container img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(32, 19, 14, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.program-card:hover .card-overlay {
    opacity: 1;
}

.card-content {
    padding: 2rem;
    position: relative;
}

.card-icon {
    position: absolute;
    top: -25px;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--color-gold);
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.card-content h3 {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-content p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ================== CTA BANNER ================== */
.banner-cta {
    position: relative;
    padding: 6rem 0;
    background-image: url('https://images.unsplash.com/photo-1590076215667-875d4cebbfae?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(124, 24, 24, 0.85);
    /* Maroon overlay */
}

/* ================== GALLERY SECTION ================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 280px;
    gap: 15px;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--box-shadow);
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h5 {
    color: white;
    margin-bottom: 0.2rem;
    font-family: var(--font-body);
}

.gallery-overlay p {
    font-size: 0.8rem;
    margin-bottom: 0;
    color: var(--color-gold);
}

/* ================== CONTACT SECTION ================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.info-item i {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 5px;
}

.info-item h5 {
    color: white;
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.info-item p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.contact-form-container {
    background: var(--color-bg-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-primary-dark);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--color-bg-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* ================== FOOTER ================== */
.footer {
    background-color: #160c07;
    /* Darker than primary */
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-desc {
    margin-bottom: 2rem;
    max-width: 350px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.social-links a:hover {
    background: var(--color-gold);
    color: var(--color-primary-dark);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: white;
    font-family: var(--font-body);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a:hover {
    color: var(--color-gold);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* ================== ANIMATIONS & RESPONSIVE ================== */
.reveal {
    opacity: 0;
    transition: all 1s ease-out;
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-in {
    transform: scale(0.95);
    opacity: 0;
}

.reveal.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablets and below */
@media (max-width: 992px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-image-wrapper {
        margin-bottom: 2rem;
    }

    .feature-item {
        margin-bottom: 1rem;
    }

    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Mobile only */
@media (max-width: 768px) {

    .section {
        padding: 4rem 0;
    }

    .nav-links,
    .desktop-only {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .logo {
        font-size: 1.1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .nav-container {
        padding: 0 1.5rem;
    }

    .hero-content {
        margin-top: 2rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .hero-buttons a {
        width: 100%;
        text-align: center;
    }

    .about-image-wrapper {
        padding-right: 1rem;
        padding-bottom: 1.5rem;
    }

    .image-frame img {
        height: 350px;
    }

    .floating-badge {
        padding: 1rem;
    }

    .badge-number {
        font-size: 2rem;
    }

    .program-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        padding: 2rem 1.5rem;
    }

    .footer {
        padding: 3rem 0 2rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 576px) {
    .container {
        padding: 0 1.25rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .lead-text {
        font-size: 1rem;
    }

    .logo {
        font-size: 1rem;
    }
}