body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    background: linear-gradient(135deg, var(--main-blue) 0%, var(--accent-blue) 100%);
    color: var(--text-main);
    min-height: 100vh;
}

a, .btn-link {
    color: #d4af37;
}

.navbar {
    background-color: #111111;
    border-bottom: 2px solid #d4af37;
}

.navbar-brand, .nav-link, .navbar-text {
    color: #d4af37 !important;
}

.btn-primary {
    background-color: #d4af37;
    border-color: #d4af37;
    color: #1e1e1e;
}

.btn-primary:hover {
    background-color: #b89024;
    border-color: #b89024;
}

footer {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #111111;
    color: #d4af37;
    text-align: center;
    border-top: 1px solid #d4af37;
}

@font-face {
    font-family: 'Bauhaus93';
    src: url('../fonts/CindieMono-D') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Aptos';
    src: url('../fonts/RedHatMono[wght].ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Segoe UI', 'Roboto', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--sky-white);
}

p {
    font-family: 'Aptos', sans-serif !important;
}

/* Ancient Conquer Theme */
:root {
    --main-blue: #17437a;
    --accent-blue: #6c91cc;
    --sky-white: #ffffff;
    --soft-white: #f4faff;
    --navy: #1e4583;
    --button-blue: #5ca0f2;
    --button-hover: #3a6ea5;
    --glass-bg: rgba(92, 160, 242, 0.15);
    --glass-border: rgba(255,255,255,0.18);
    --text-main: #ffffff;
    --text-secondary: #e0e6ed;
}

body, .ancient-text, .navbar, .nav-link, .navbar-brand, .navbar-text, .ancient-title, .ancient-form-label, .ancient-form-control, .ancient-btn, .ancient-nav-link, .ancient-form-btn, .ancient-form-title, .ancient-form-card, .ancient-form-link {
    color: var(--text-main) !important;
}

body {
    background-color: var(--main-blue);
    color: var(--text-main);
    font-family: 'Segoe UI', sans-serif;
}

.ancient-title {
    color: var(--accent-blue);
    text-shadow: 2px 2px 4px rgba(10, 35, 66, 0.5);
    font-family: 'Cinzel', serif;
    font-weight: bold;
    letter-spacing: 2px;
}

.ancient-container, .ancient-form-card {
    background: var(--glass-bg);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
    border: 1px solid var(--glass-border);
    padding: 2.5rem 2rem;
    margin: 2.5rem 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: fadeIn 0.8s;
}

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

.ancient-btn, .btn-primary {
    background: linear-gradient(90deg, var(--button-blue) 0%, var(--accent-blue) 100%);
    color: var(--sky-white);
    border: none;
    border-radius: 999px;
    padding: 0.8rem 2.2rem;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(92, 160, 242, 0.18);
    transition: background 0.2s, box-shadow 0.2s, color 0.2s, transform 0.2s;
}

.ancient-btn:hover, .btn-primary:hover {
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--button-blue) 100%);
    color: var(--navy);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 24px rgba(92, 160, 242, 0.22);
}

/* Reset and Base Carousel Styles */
.ancient-carousel {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 31.25%; /* 600px height for 1920px width (600/1920 = 0.3125) */
    border: 3px solid var(--accent-blue);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(24, 90, 219, 0.15);
    background-color: var(--main-blue);
}

.ancient-carousel .carousel-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ancient-carousel .carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.ancient-carousel .carousel-item.active {
    display: block;
}

.ancient-carousel .carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ancient-carousel .carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(rgba(10, 35, 66, 0.7), rgba(10, 35, 66, 0.9));
    padding: 1.5rem;
    border-top: 1px solid var(--accent-blue);
    z-index: 2;
}

/* Carousel Controls */
.ancient-carousel .carousel-control-prev,
.ancient-carousel .carousel-control-next {
    width: 10%;
    opacity: 0.8;
    z-index: 3;
}

.ancient-carousel .carousel-control-prev-icon,
.ancient-carousel .carousel-control-next-icon {
    background-color: rgba(26, 26, 26, 0.5);
    border-radius: 50%;
    padding: 1.5rem;
    background-size: 50%;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .ancient-carousel {
        padding-bottom: 40%; /* Taller on smaller screens */
    }
}

@media (max-width: 992px) {
    .ancient-carousel {
        padding-bottom: 50%;
    }
}

@media (max-width: 768px) {
    .ancient-carousel {
        padding-bottom: 60%;
    }
    
    .ancient-carousel .carousel-caption {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .ancient-carousel {
        padding-bottom: 75%;
    }
    
    .ancient-carousel .carousel-caption h3 {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }
    
    .ancient-carousel .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }
}

/* Remove any conflicting styles */
.carousel,
.carousel-inner,
.carousel-item,
.carousel-item img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
}

.ancient-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.ancient-divider {
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
    height: 2px;
    margin: 2rem 0;
    border-radius: 1px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--main-blue);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--sky-white);
}

/* Navbar Styling */
.ancient-navbar {
    background: rgba(39, 68, 114, 0.85) !important;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(39, 68, 114, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin: 1rem 0;
}

.ancient-navbar .navbar-brand {
    font-family: 'Cinzel', serif;
    font-weight: bold;
}

.ancient-navbar .navbar-brand img {
    filter: drop-shadow(0 0 2px rgba(24, 90, 219, 0.3));
}

.ancient-nav-link {
    color: var(--sky-white) !important;
    font-family: 'Cinzel', serif;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.ancient-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.ancient-nav-link:hover {
    color: var(--accent-blue) !important;
}

.ancient-nav-link:hover::after {
    width: 80%;
}

.ancient-navbar .navbar-toggler {
    border-color: var(--accent-blue);
}

.ancient-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(212, 175, 55, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Footer Styling */
.ancient-footer {
    background: rgba(255,255,255,0.08);
    color: var(--text-secondary);
    border-top: none;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -2px 12px rgba(92, 160, 242, 0.08);
    padding: 2rem 0 1rem 0;
    margin-top: 3rem;
}

.ancient-footer .ancient-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
}

/* Main Content Area */
main {
    min-height: calc(100vh - 200px); /* Adjust based on your footer height */
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .ancient-navbar .navbar-collapse {
        background: var(--navy);
        border: 1px solid var(--accent-blue);
        border-radius: 8px;
        margin-top: 1rem;
        padding: 1rem;
    }

    .ancient-nav-link::after {
        display: none;
    }

    .ancient-container {
        margin: 1rem 0;
        padding: 1rem;
    }
}

/* Fix for button hover states on touch devices */
@media (hover: none) {
    .ancient-btn:hover {
        transform: none;
    }
    
    .ancient-nav-link:hover::after {
        width: 0;
    }
}
