/* public/css/global.css */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* custom fonts */
@font-face {
    font-family: 'Amanojaku';
    src: url('../assets/fonts/Amanojaku Demo.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cinzel Decorative';
    src: url('../assets/fonts/CinzelDecorative-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ninja Kage';
    src: url('../assets/fonts/NinjaKageDemo-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'The Last Shuriken';
    src: url('../assets/fonts/The Last Shuriken.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins Medium';
    src: url('../assets/fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: medium;
    font-style: normal;
    font-display: swap;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.text-white {
    color: var(--text-light) !important;
}

.text-dark {
    color: var(--text-dark) !important;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.title-spacing {
    margin-bottom: 4rem;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--dark-bg);
    border-color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Header & Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 0;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.90);
    padding: 30px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 1.2);
}

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

/* .logo h1 {
    color: var(--text-light);
    font-size: 1.8rem;
    letter-spacing: 2px;
    font-weight: 700;
    font-family: 'Arial', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.7);
    color: transparent;
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
} */

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

.nav-links li a {
    color: var(--text-light);
    font-family: 'Cinzel Decorative', 'serif';
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: capitalize;
    transition: var(--transition-smooth);
    position: relative;
    white-space: nowrap;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-color);
}

.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary-color);
}

/* ── Page Loading Indicator ── */
.page-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.loader-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-red);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Reusable Section Divider ── */
.section-line {
    position: relative;
}

.section-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(1);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
    z-index: 10;
}

/* ── Hamburger Menu & Mobile Navbar ── */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-light);
}

/* X animation when active */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 1024px) {

    /* Solid navbar background on mobile so it's always visible */
    .navbar {
        background: rgba(0, 0, 0, 0.95) !important;
        padding: 15px 0;
    }

    .navbar.scrolled {
        padding: 15px 0;
    }

    .hamburger {
        display: block;
    }

    /* Nav menu drops down from the navbar instead of a fixed overlay */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .nav-menu.active {
        max-height: 100vh;
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 20px 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links li a {
        font-size: 1.2rem;
        display: block;
        padding: 15px 20px;
        text-align: center;
    }

    .nav-links li a.active::after {
        display: none;
    }
}

/* ── Hero Section ── */
.hero-section {
    position: relative;
    height: 100dvh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--dark-bg);
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Screen-reader only (accessible hidden text) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ── Responsive Hero Section ── */
@media (max-width: 1024px) {
    .hero-section {
        height: 60dvh;
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 50dvh;
        min-height: 400px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 50dvh;
        min-height: 300px;
    }
}

/* ── Main Footer ── */
.main-footer {
    position: relative;
    background-color: #000;
    color: var(--text-light);
    overflow: hidden;
    padding-top: 80px;
    z-index: 10;
}

.footer-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 60px;
}

/* Col 1: Brand */
.footer-brand {
    padding-right: 40px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.footer-logo .text-red {
    color: var(--primary-color);
}

.footer-desc {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: var(--text-light);
    transition: var(--transition-smooth);
}

.footer-socials a svg {
    width: 20px;
    height: 20px;
}

.footer-socials a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Col 2 & 3: Titles */
.footer-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

/* Col 2: Links */
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition-smooth);
    position: relative;
    display: inline-block;
}

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

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

.footer-links a:hover::after {
    width: 100%;
}

/* Col 3: Contact Info */
.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info-list li {
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e0e0e0;
}

.footer-email {
    letter-spacing: 1px;
}

/* Bottom Footer Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    font-size: 0.9rem;
    color: #b0b0b0;
    margin: 0;
}

.footer-legal {
    font-size: 0.9rem;
}

.footer-legal a {
    color: #b0b0b0;
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

.footer-legal .divider {
    margin: 0 10px;
    color: #b0b0b0;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        padding-right: 0;
        text-align: center;
    }

    .footer-socials {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-bottom-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .footer-links a::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ═══════════════════════════════════════════════════
   LANGUAGE TOGGLE BUTTON
   ═══════════════════════════════════════════════════ */
.lang-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1;
}

.lang-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.lang-toggle-btn:active {
    transform: translateY(0);
}

.lang-toggle-btn .lang-icon {
    font-size: 1rem;
    line-height: 1;
}

.lang-toggle-btn .lang-label {
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
}

/* Mobile: ensure toggle is visible in hamburger menu */
@media (max-width: 768px) {
    .lang-toggle-btn {
        margin: 10px auto 0;
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.25);
    }
}