/* --- TABLE OF CONTENTS ---
1.  CSS Variables & Global Styles
2.  Utility Classes
3.  Header & Navigation
4.  Hero Section
5.  Page Header & General Content
6.  Cards
7.  Content Lists (Battles Page)
8.  About Page Specifics
9.  Contact Page Specifics
10. Footer
11. Responsive Design (Media Queries)
12. Chatbot Styles
13. New About Page Styles
14. Offering Cards Styles
15. Globe Language Switcher (Fixed Position)
--------------------------- */

/* 1. CSS Variables & Global Styles */
:root {
    --color-primary: #0a2342; /* Navy Blue */
    --color-secondary: #c89b3c; /* Gold */
    --color-background: #ffffff;
    --color-background-light: #f4f4f9; /* Light Gray */
    --color-text: #333333;
    --color-text-light: #ffffff;
    --font-heading: 'Lora', serif;
    --font-body: 'Lato', sans-serif;
    --container-width: 1140px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary);
}

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

/* 2. Utility Classes */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

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

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-secondary);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: transparent;
    color: var(--color-primary);
    transform: translateY(-2px);
}

.section-padding { padding: 100px 0; }
.bg-light { background-color: var(--color-background-light); }
.text-center { text-align: center; }

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #8e2de2, #4a00e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title-black {
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    color: #000;
}
.section-intro-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: #555;
}

/* 3. Header & Navigation */
.main-header {
    background-color: var(--color-background);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--color-primary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-toggle { display: none; } /* Hidden on desktop */

/* 4. Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35vh;
    background-image: url('images/Gemini_Generated_Image_hyjxyahyjxyahyjx.png');
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
}

/* 5. Page Header & General Content */
.page-header {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    text-align: center;
    padding: 60px 0;
}
.page-header .page-title { color: var(--color-text-light); }
.page-header .page-subtitle { font-size: 1.2rem; opacity: 0.9; }

.content-container { max-width: 800px; margin: 0 auto; }
.content-container h2 { margin-top: 2.5rem; }
.content-container hr { margin: 2.5rem 0; border: 0; border-top: 1px solid #ddd; }
.content-image {
    margin-bottom: 2rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 6. Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--color-background);
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title { margin-bottom: 0.5rem; }
.card-meta { font-size: 0.9rem; color: #777; margin-bottom: 1rem; }
.card-text { margin-bottom: 1.5rem; flex-grow: 1; }
.card-link { font-weight: 700; align-self: flex-start; }

/* 7. Content Lists (Battles Page) */
.content-list-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    background: #fff;
    padding: 1.5rem;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.content-list-image { flex-shrink: 0; width: 35%; max-width: 400px; }
.content-list-image img { border-radius: 5px; }
.content-list-text { flex-grow: 1; }
.content-list-text h3 { margin-top: 0; }
.content-meta { font-size: 0.9rem; color: #777; margin-bottom: 1rem; }

/* 8. About Page Specifics */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.team-member { text-align: center; }
.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
    border: 4px solid var(--color-background-light);
}
.team-member .team-title { font-weight: 700; color: #555; }

/* 9. Contact Page Specifics */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}
.info-list { list-style: none; margin-top: 1.5rem; }
.info-list li { margin-bottom: 1rem; }
.info-list strong { color: var(--color-primary); }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 700; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-body);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
}

/* 10. Footer */
.main-footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo .brand-logo {
    color: var(--color-text-light);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

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

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact a {
    color: var(--color-text-light);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 11. Responsive Design */
@media (max-width: 992px) {
    .content-list-item { flex-direction: column; }
    .content-list-image { width: 100%; max-width: 100%; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --header-height: 70px; }
    h1 { font-size: 2.5rem; }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .section-padding { padding: 60px 0; }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--color-primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-links.nav-active {
        transform: translateX(0);
    }
    
    .nav-links a { color: var(--color-text-light); font-size: 1.2rem; }

    .nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
    }

    .hamburger {
        display: block;
        position: relative;
        width: 25px;
        height: 2px;
        background: var(--color-primary);
        transition: background 0.2s ease-in-out;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 2px;
        background: var(--color-primary);
        transition: transform 0.2s ease-in-out, top 0.2s ease-in-out, bottom 0.2s ease-in-out;
    }

    .hamburger::before { top: -8px; }
    .hamburger::after { bottom: -8px; }

    .nav-toggle.active .hamburger { background: transparent; }
    .nav-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
    .nav-toggle.active .hamburger::after { bottom: 0; transform: rotate(-45deg); }
}

/* 12. Chatbot Styles */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
}

.chat-button {
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-popup {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 500px;
    height: 70vh;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background-color: var(--color-primary);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    color: white;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.chat-body {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    padding: 8px 12px;
    border-radius: 18px;
    max-width: 80%;
    line-height: 1.4;
}

.user-message {
    background-color: var(--color-secondary);
    color: white;
    align-self: flex-end;
}

.bot-message {
    background-color: #f1f1f1;
    color: var(--color-text);
    align-self: flex-start;
}

.chat-footer {
    padding: 15px;
    display: flex;
    border-top: 1px solid #eee;
}

#chat-input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 10px 15px;
    margin-right: 10px;
}

#send-btn {
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
}

/* 13. New About Page Styles */
.content-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}

.accent-text {
    color: var(--color-secondary);
    font-weight: 700;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 14. Offering Cards Styles */
.card-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: block; /* Makes the link behave like a block */
}

.offering-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

@media (max-width: 1200px) {
    .offering-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

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

.offering-card {
    background-color: var(--color-background);
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offering-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.offering-card i {
    width: 48px;
    height: 48px;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.offering-card h3 {
    margin-bottom: 1rem;
}

.offering-card ul {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    text-align: left;
}

.offering-card ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.offering-card ul li::before {
    content: '✓';
    color: var(--color-secondary);
    position: absolute;
    left: 0;
}

/* 15. Globe Language Switcher (Fixed Position) */
#language-switcher-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1002; /* Higher than chat widget */
}

#language-switcher-container .relative {
    position: relative;
}

#globe-button {
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

#globe-button:hover {
    background-color: var(--color-secondary);
}

#globe-button .lucide-globe {
    width: 32px;
    height: 32px;
}

#language-menu {
    position: absolute;
    bottom: 110%; /* Position menu above the button */
    left: 0;
    width: 160px; /* w-40 */
    background-color: #ffffff; /* bg-white */
    border: 1px solid #e5e7eb; /* border-gray-200 */
    border-radius: 0.5rem; /* rounded-lg */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
    z-index: 1003;
}

#language-menu.hidden {
    display: none;
}

#language-menu a {
    display: block;
    padding: 0.75rem 1rem; /* px-4 py-3 */
    font-size: 0.9rem; /* text-sm */
    color: #374151; /* text-gray-700 */
    text-decoration: none;
    transition: background-color 0.2s;
}

#language-menu a:hover {
    background-color: #f3f4f6; /* hover:bg-gray-100 */
}
