/* ========================================
   Angel Card Reading - Main Stylesheet
   ======================================== */

:root {
    /* Colors */
    --primary: #7c3aed;
    --primary-dark: #5b21b6;
    --primary-light: #a78bfa;
    --secondary: #f59e0b;
    --gold: #d4af37;
    --gold-light: #f4e4ba;

    /* Backgrounds */
    --bg-dark: #0f0a1a;
    --bg-card: #1a1225;
    --bg-section: #150d21;

    /* Text */
    --text-primary: #f8f4ff;
    --text-secondary: #c4b5d4;
    --text-muted: #8b7a9e;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px;

    /* Transitions */
    --transition: 0.3s ease;
}

/* ========================================
   Reset & Base
   ======================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lora', Georgia, serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--gold), #b8860b);
    color: var(--bg-dark);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-light);
    color: var(--primary-light);
}

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

/* ========================================
   Header
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 10, 26, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 24px;
    color: var(--gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gold);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(212, 175, 55, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 20% 80%, rgba(124, 58, 237, 0.2) 0%, transparent 40%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%237c3aed' fill-opacity='0.05'%3E%3Cpath d='M30 30l15-15v30L30 30zm0 0L15 15v30l15-15z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(40px, 8vw, 72px);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Section Styles
   ======================================== */

section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(28px, 5vw, 42px);
    margin-bottom: 15px;
    color: var(--text-primary);
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Card Reading Section
   ======================================== */

.reading-section {
    background: var(--bg-section);
}

.card-selection {
    text-align: center;
}

.cards-spread {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    perspective: 1000px;
}

.card-back {
    width: 100px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-dark), var(--bg-card));
    border: 2px solid var(--primary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card-back::before {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    color: var(--gold);
    opacity: 0.7;
}

.card-back::after {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid var(--gold);
    border-radius: 6px;
    opacity: 0.3;
}

.card-back:hover {
    transform: translateY(-10px) rotateY(10deg);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.4);
    border-color: var(--gold);
}

.instruction {
    color: var(--text-muted);
    font-style: italic;
}

/* Card Result */
.card-result {
    max-width: 800px;
    margin: 0 auto;
}

.result-card {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

@media (max-width: 768px) {
    .result-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .card-image {
        margin: 0 auto;
    }
}

.card-image {
    position: relative;
    width: 250px;
    height: 375px;
}

.card-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse, var(--gold) 0%, transparent 70%);
    opacity: 0.3;
    filter: blur(20px);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.1); }
}

.card-image img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-label {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 10px;
}

.card-info h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.card-message {
    font-size: 18px;
    font-style: italic;
    color: var(--primary-light);
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 3px solid var(--gold);
}

.card-meaning {
    color: var(--text-secondary);
    line-height: 1.8;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ========================================
   Features Section
   ======================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.2);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ========================================
   Archangels Section
   ======================================== */

.archangels-section {
    background: var(--bg-section);
}

.archangels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.archangel-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: var(--transition);
}

.archangel-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.archangel-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.archangel-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, var(--bg-card) 100%);
}

.archangel-image.michael {
    background: linear-gradient(135deg, #1e40af, #7c3aed);
}

.archangel-image.gabriel {
    background: linear-gradient(135deg, #f59e0b, #dc2626);
}

.archangel-image.raphael {
    background: linear-gradient(135deg, #059669, #10b981);
}

.archangel-image.uriel {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
}

.archangel-card h3 {
    font-size: 20px;
    padding: 20px 20px 5px;
    color: var(--text-primary);
}

.archangel-card p {
    padding: 0 20px 25px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ========================================
   About Section
   ======================================== */

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: clamp(28px, 5vw, 42px);
    margin-bottom: 30px;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 17px;
}

.about-content .btn {
    margin-top: 20px;
}

/* ========================================
   Testimonials Section
   ======================================== */

.testimonials-section {
    background: var(--bg-section);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 20px;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.testimonial p {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 16px;
}

.testimonial .author {
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 14px;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--bg-card);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(124, 58, 237, 0.2);
}

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

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand .logo {
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(124, 58, 237, 0.1);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.float {
    animation: float 4s ease-in-out infinite;
}
