/* style.css - Main Stylesheet for E-Pop Promotional Website (v1.3 - Added Demo Card Style) */

/* 1. Root Variables & Global Styles */
:root {
    --primary-gold: #b08d57;
    --dark-text: #3a2d20;
    --light-text: #6e6154;
    --bg-parchment: #f4f1ed;
    --bg-dark-overlay: rgba(30, 25, 20, 0.75);
    --border-color: #dcd3c5;
    --primary-red: #8c2a2a;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Lato', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background-color: var(--bg-parchment); color: var(--dark-text); line-height: 1.7; font-size: 16px; background-image: url('byzantine_pattern.png'); background-repeat: repeat; }

.container { width: 90%; max-width: 1100px; margin: 0 auto; }
.btn { display: inline-block; padding: 12px 30px; background-color: var(--primary-gold); color: #fff; text-decoration: none; font-weight: 700; border-radius: 8px; transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease; border: none; cursor: pointer; }
.btn:hover { transform: translateY(-3px); background-color: #c4a16e; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.btn-secondary { background-color: transparent; border: 2px solid var(--border-color); color: var(--dark-text); }
.btn-secondary:hover { background-color: var(--border-color); color: var(--dark-text); }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
section { padding: 100px 0; }

/* 2. Header & Navigation */
.main-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1001; padding: 20px 0; transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease; border-bottom: 1px solid transparent; }
.main-header.scrolled { background-color: rgba(255, 255, 255, 0.98); box-shadow: 0 2px 10px rgba(0,0,0,0.05); border-bottom: 1px solid var(--border-color); padding: 15px 0; }
.nav-bar { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: #fff; text-decoration: none; transition: color 0.3s ease; z-index: 1002; }
.main-header.scrolled .logo { color: var(--dark-text); }
.nav-links { display: none; list-style: none; }
.nav-links li { position: relative; margin-left: 30px; }
.nav-link { color: #fff; text-decoration: none; font-weight: 700; transition: color 0.2s ease; padding: 5px 0; border-bottom: 2px solid transparent; }
.main-header.scrolled .nav-link { color: var(--dark-text); }
.nav-link:hover, .dropdown:hover > .nav-link { color: var(--primary-gold); }
.nav-link.highlight { color: var(--primary-gold); }

/* Dropdown Menu */
.dropdown-content { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background-color: #fff; min-width: 220px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); border-radius: 8px; padding: 10px 0; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.dropdown:hover .dropdown-content { display: block; opacity: 1; visibility: visible; }
.dropdown-content a { color: var(--dark-text); padding: 12px 20px; text-decoration: none; display: block; font-weight: 700; white-space: nowrap; }
.dropdown-content a:hover { background-color: var(--bg-parchment); color: var(--primary-gold); }

/* 3. Hamburger Menu (Mobile) */
.hamburger { display: flex; flex-direction: column; justify-content: space-around; width: 24px; height: 24px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1002; }
.hamburger span { width: 24px; height: 3px; background: #fff; border-radius: 10px; transition: all 0.3s ease-in-out; position: relative; transform-origin: 1px; }
.main-header.scrolled .hamburger span { background: var(--dark-text); }
body.mobile-nav-open .logo { color: #fff !important; }
body.mobile-nav-open .hamburger span { background: #fff; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: translateX(20px); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg); }

.mobile-nav { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(42, 34, 26, 0.98); backdrop-filter: blur(10px); display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; z-index: 1000; }
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav ul { list-style: none; }
.mobile-nav li { margin: 20px 0; text-align: center; }
.mobile-nav .nav-link { color: #fff; font-size: 1.8rem; }
.mobile-nav .dropdown-content { position: static; display: block; background: transparent; box-shadow: none; padding: 10px 0 0 0; transform: none; opacity: 1; visibility: visible; }
.mobile-nav .dropdown-content a { color: rgba(255,255,255,0.7); font-size: 1.2rem; padding: 8px 0; }
.mobile-nav .dropdown-content a:hover { background: none; color: var(--primary-gold); }

/* 4. Page Specific & Other Styles */
#hero { height: 100vh; min-height: 700px; color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; background-image: url('cathedral_background.jpg'); background-size: cover; background-position: center; background-attachment: fixed; }
#hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 50%), var(--bg-dark-overlay); }
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-content h1 { font-size: 4rem; margin-bottom: 20px; letter-spacing: 1px; }
.hero-content p { font-size: 1.25rem; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; color: rgba(255, 255, 255, 0.9); }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2.8rem; margin-bottom: 10px; }
.section-title p { font-size: 1.1rem; color: var(--light-text); max-width: 700px; margin: 0 auto; }
#mission { background-color: #fff; }
#mission p { font-size: 1.2rem; text-align: center; max-width: 800px; margin: 0 auto; line-height: 1.8; }
.apps-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.app-card { background-color: #fff; border-radius: 12px; box-shadow: 0 5px 25px rgba(0,0,0,0.07); border: 1px solid var(--border-color); padding: 40px; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.app-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.app-card .status { font-weight: 700; color: var(--primary-gold); margin-bottom: 10px; }
.app-card h3 { font-size: 2rem; margin-bottom: 15px; }
.app-card p { color: var(--light-text); margin-bottom: 30px; flex-grow: 1; }
.app-card .actions { display: flex; gap: 15px; flex-wrap: wrap; }
.app-card.coming-soon { opacity: 0.65; }
.app-card.coming-soon .status { color: var(--light-text); }
.app-card.coming-soon .btn { background-color: #ccc; cursor: not-allowed; }
.app-card.coming-soon:hover { transform: none; box-shadow: 0 5px 25px rgba(0,0,0,0.07); }
footer { padding: 40px 0; text-align: center; font-size: 1rem; background-color: var(--dark-text); color: rgba(255,255,255,0.6); }
footer p { margin: 0; }
.fade-in-section { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in-section.visible { opacity: 1; transform: translateY(0); }
.page-header { padding-top: 150px; padding-bottom: 50px; text-align: center; }
.page-header h1 { font-size: 3.5rem; }
.page-header p { font-size: 1.2rem; color: var(--light-text); max-width: 600px; margin: 10px auto 0; }
.content-wrapper { background-color: rgba(255,255,255,0.95); padding: 50px; border-radius: 12px; box-shadow: 0 5px 25px rgba(0,0,0,0.07); border: 1px solid var(--border-color); }
.content-section { margin-bottom: 50px; padding-bottom: 30px; border-bottom: 1px solid var(--border-color); }
.content-section:last-child { border-bottom: none; margin-bottom: 0; }
.content-section h2 { font-size: 2.2rem; margin-bottom: 20px; color: var(--primary-red); }
.content-section h3 { font-size: 1.5rem; margin-top: 20px; margin-bottom: 15px; }
.content-section p, .content-section li { margin-bottom: 15px; color: var(--light-text); }
.content-section ol, .content-section ul { padding-left: 20px; }
.content-section strong { color: var(--dark-text); }
.tutorial-image-container { text-align: center; margin: 40px 0; }
.tutorial-image-container img { max-width: 100%; height: auto; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.final-cta { text-align: center; margin-top: 40px; }

/* 5. Responsive Media Queries */
@media (min-width: 992px) {
    .hamburger { display: none; }
    .nav-links { display: flex; align-items: center; }
    .hero-content h1 { font-size: 5.5rem; }
    .apps-grid { grid-template-columns: repeat(2, 1fr); }
    body { font-size: 18px; }
}
@media (min-width: 768px) and (max-width: 991px) {
    .hamburger { display: none; }
    .nav-links { display: flex; align-items: center; }
    .hero-content h1 { font-size: 5rem; }
    .apps-grid { grid-template-columns: repeat(2, 1fr); }
}

/* NEW STYLES FOR DEMO CARD */
.demo-credentials-card {
    background-color: var(--bg-parchment);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin: 0 auto 30px auto;
    max-width: 450px;
    text-align: center;
}
.demo-credentials-card h4 {
    font-size: 1.4rem;
    color: var(--dark-text);
    margin-bottom: 15px;
}
.demo-credentials-card p {
    color: var(--light-text);
    margin-bottom: 15px;
}
.demo-credentials-card code {
    background-color: #fff;
    border: 1px solid var(--border-color);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
    color: var(--primary-red);
    font-weight: 700;
}