/* Custom Properties & Dark Studio Theme */
:root {
    --bg-dark: #0f1115;
    --bg-card: #181b22;
    --accent-gold: #e5b869;
    --accent-purple: #7052ff;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-glow: rgba(229, 184, 105, 0.2);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(15px);
    background: rgba(15, 17, 21, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-gold);
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent-gold);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
    
    /* Fallback image first */
    background-image: linear-gradient(rgba(15, 17, 21, 0.8), rgba(15, 17, 21, 0.8)), var(--hero-bg-fallback);
    /* WebP image standard */
    background-image: linear-gradient(rgba(15, 17, 21, 0.8), rgba(15, 17, 21, 0.8)), var(--hero-bg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    
    /* Apply hero-bg.webp with a dark overlay to maintain text contrast */
    background: linear-gradient(
        135deg,
        rgba(15, 17, 21, 0.85) 0%,
        rgba(15, 17, 21, 0.65) 50%,
        rgba(15, 17, 21, 0.90) 100%
    ), url('../images/hero-bg.webp') center/cover no-repeat;
}
.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(112,82,255,0.2) 0%, rgba(0,0,0,0) 70%);
    top: 20%;
    right: 10%;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hero-content {
    max-width: 700px;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(229, 184, 105, 0.1);
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.2rem;
    background: linear-gradient(135deg, var(--accent-gold), #c4943f);
    color: #000;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(229, 184, 105, 0.3);
    transition: var(--transition);
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(229, 184, 105, 0.5);
}

/* Section Components */
section {
    padding: 6rem 5%;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

/* Card Grid Layouts */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--border-glow);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.card-body {
    padding: 1.8rem;
}

.card-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    display: block;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

/* Footer Styling */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 5%;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Scroll Animation Target */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   Modular Popup Modal System
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 11, 15, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 
                0 0 30px rgba(229, 184, 105, 0.15);
    transform: scale(0.85) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}

.modal-overlay.is-visible .modal-card {
    transform: scale(1) translateY(0);
}

/* Close Button */
.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
}

/* Modal Content Styling */
.modal-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 0.8rem;
}

.modal-message {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.modal-action-btn {
    width: 100%;
    justify-content: center;
}