@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800;900&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #d4af37;
    --primary-hover: #f4d03f;
    --primary-dark: #b8941f;
    --bg-dark: #1a0a2e;
    --bg-darker: #0f0519;
    --bg-card: rgba(45, 25, 70, 0.6);
    --bg-card-solid: #2d1946;
    --text-main: #c9b8e0;
    --text-light: #ffffff;
    --text-gold: #f4d03f;
    --accent: #ff006e;
    --accent-light: #ff4d94;
    --accent-purple: #8338ec;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 50%, var(--bg-darker) 100%);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 20%, rgba(131, 56, 236, 0.15) 0%, transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(255, 0, 110, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* Global Text Wrapping */
h1, h2, h3, h4, h5, h6, p, a, span, div {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-light);
    line-height: 1.2;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-light);
    text-shadow: 0 0 15px rgba(255, 77, 148, 0.5);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    background: linear-gradient(180deg, rgba(15, 5, 25, 0.95) 0%, rgba(26, 10, 46, 0.9) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.main-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: var(--text-main);
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    position: relative;
    padding: 5px 2px;
}

.main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: var(--transition);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.main-nav a:not(.btn):hover::after {
    width: 100%;
}

.main-nav a:not(.btn):hover {
    color: var(--primary);
}

.btn-signup {
    padding: 8px 24px;
    font-size: 0.85rem;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-light);
    transition: var(--transition);
}

/* Footer */
.main-footer {
    background: linear-gradient(180deg, var(--bg-darker) 0%, #050208 100%);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    margin-top: 60px;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-contact p {
    margin-bottom: 10px;
}

.sitemap-link a {
    color: var(--text-main);
    margin-right: 10px;
}

.sitemap-link a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    font-size: 0.85rem;
    color: rgba(201, 184, 224, 0.5);
}

/* Button & Utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 34px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.8rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--primary) 100%);
    color: var(--bg-darker);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3), inset 0 1px 0 rgba(255,255,255,0.3);
    background-size: 200% 200%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
    color: var(--bg-darker);
    background-position: 100% 0;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--accent-light);
    color: var(--accent-light);
    box-shadow: 0 0 30px rgba(255, 77, 148, 0.2);
}

.page-header {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(to bottom, rgba(31, 40, 51, 0.8), var(--bg-dark));
    border-bottom: 1px solid rgba(102, 252, 241, 0.1);
}

.page-title {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

/* Breakpoints */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .main-nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(11, 12, 16, 0.95);
        backdrop-filter: blur(10px);
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.4s ease-out;
        border-bottom: 1px solid rgba(102, 252, 241, 0.1);
    }

    .main-nav.active {
        max-height: 400px;
    }

    .main-nav .nav-list {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        text-align: center;
    }
}