/* DEATHLOVEMAGICK - Official Stylesheet */

:root {
    --bg-dark: #0a0a0a;
    --bg-accent: #1a1a1a;
    --gold: #b39359;
    --purple: #4a2c5a;
    --text-main: #d1d1d1;
    --text-dim: #999;
    
    /* Golden Hexagon Pattern */
    --sacred-geo-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23b39359' stroke-width='1' stroke-opacity='0.1'/%3E%3C/svg%3E");
}

/* 1. Global Reset & Mobile Stability */
html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden; /* Prevents sideways scrolling on mobile */
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Lora', serif;
    line-height: 1.6;
}

h1, h2, h3 { 
    font-family: 'Cinzel', serif; 
    color: var(--gold); 
    text-transform: uppercase; 
    letter-spacing: 2px; 
}

/* 2. The Veil (Loader) */
#loader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: var(--bg-dark);
    background-image: var(--sacred-geo-pattern);
    background-size: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.loader-content { 
    text-align: center; 
    animation: pulse 2s infinite ease-in-out; 
}

/* DLM icons */
.dlm-icons { 
    font-size: 2rem; 
    color: var(--gold); 
    display: block; 
    margin-bottom: 30px; 
    filter: drop-shadow(0 0 30px var(--purple)); 
}

.loader-text { 
    font-family: 'Cinzel', serif; 
    color: var(--gold); 
    letter-spacing: 4px; 
    font-size: 1rem; 
    text-transform: uppercase; 
    opacity: 0.8;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1); }
}

.loader-hidden { opacity: 0; visibility: hidden; }

/* 3. Hero Section & Cinematic Video */
header {
    height: 100vh; 
    height: 100dvh;
    position: relative;
    overflow: hidden;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    text-align: center;
}

#hero-video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; 
    min-height: 100%;
    width: auto; 
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.4);
    background: var(--bg-dark);
}

.logo-area {
    position: relative; 
    z-index: 2;
    padding: 2rem; 
    width: 90%; 
    max-width: 800px;
}

/* Doubled Logo scale with responsive limits */
.main-logo {
    max-width: 640px; 
    width: 95%; 
    height: auto; 
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(179, 147, 89, 0.4));
}

.heart-logo {
    max-width: 320px; /* was 640 */
    width: 55%; /* was 95% */
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(179, 147, 89, 0.4));
}

.logo-area p { 
    font-style: italic; 
    color: var(--text-dim); 
    font-size: 1.1rem; 
}

.cta-button {
    margin-top: 2rem; 
    display: inline-block;
    padding: 12px 35px; 
    border: 1px solid var(--gold);
    color: var(--gold); 
    text-decoration: none;
    font-family: 'Cinzel', serif; 
    transition: 0.4s ease;
}

.cta-button:hover { 
    background: var(--gold); 
    color: var(--bg-dark); 
    box-shadow: 0 0 20px var(--gold); 
}

/* 4. Sections & Cards */
section { padding: 6rem 10%; }
.alt-bg { background-color: var(--bg-accent); }
.section-title { text-align: center; margin-bottom: 4rem; font-size: 2rem; }

.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2.5rem; 
}

.card {
    background: var(--bg-accent); 
    padding: 2.5rem;
    border-top: 3px solid var(--purple); 
    transition: all 0.4s ease;
}

.card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 10px 30px rgba(74, 44, 90, 0.3), 0 0 10px rgba(179, 147, 89, 0.2);
    border-top-color: var(--gold);
}

.about-content { 
    max-width: 750px; 
    margin: 0 auto; 
    text-align: center; 
}

/* 5. Instagram Integration */
#instagram-feed [class*="Post__Container"] {
    background-color: var(--bg-dark); 
    border: 1px solid rgba(179, 147, 89, 0.15); 
    transition: all 0.4s ease;
}

#instagram-feed [class*="Post__Container"]:hover {
    transform: translateY(-8px); 
    box-shadow: 0 10px 30px rgba(74, 44, 90, 0.3);
    border-color: var(--gold);
}

#instagram-feed [class*="PostText__Caption"] {
    color: var(--text-dim) !important;
}

/* 6. Footer Branding */
footer {
    text-align: center;
    padding: 5rem 10%;
    border-top: 1px solid #222;
    background-color: #050505;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.social-links { margin-bottom: 1.5rem; }
.social-links a { 
    color: var(--gold); 
    margin: 0 15px; 
    text-decoration: none; 
    font-family: 'Cinzel', serif; 
    transition: 0.3s ease; 
}

.social-links a:hover { 
    color: #fff; 
    text-shadow: 0 0 10px var(--gold); 
}

.copyright { letter-spacing: 1px; }

/* 7. Scroll to Top Interface */
#scrollToTop {
    display: none; 
    position: fixed;
    bottom: 30px; 
    right: 30px; 
    z-index: 99;
    border: 1px solid var(--gold); 
    background: rgba(10, 10, 10, 0.8);
    color: var(--gold); 
    padding: 12px 18px; 
    cursor: pointer;
    font-family: 'Cinzel', serif; 
    transition: 0.3s ease;
    backdrop-filter: blur(4px);
}

#scrollToTop:hover { 
    background: var(--gold); 
    color: var(--bg-dark); 
}

/* 8. Mobile Fine-Tuning */
@media (max-width: 768px) {
    section { padding: 4rem 5%; }
    
    /* Loader adjustments for mobile screens */
    .dlm-icons { font-size: 2rem; } 
    
    .main-logo { width: 95%; }
    .section-title { font-size: 1.6rem; }
    footer { padding: 4rem 5%; }
    
    #scrollToTop { bottom: 20px; right: 20px; padding: 10px 15px; }
}