/* 
    BLUE HORIZON - MODERN SHADCN/UI DESIGN
    Design: Clean, Modern, Professional Dark Mode
    Accent Color: #4c5ed0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Standard shadcn dark colors (Slate/Zinc vibe) */
    --background: #09090b;
    --foreground: #fafafa;

    --card: #09090b;
    --card-foreground: #fafafa;

    --popover: #09090b;
    --popover-foreground: #fafafa;

    --primary: #4c5ed0;
    /* Brand Accent */
    --primary-foreground: #ffffff;

    --secondary: #27272a;
    --secondary-foreground: #fafafa;

    --muted: #27272a;
    --muted-foreground: #a1a1aa;

    --accent: #27272a;
    --accent-foreground: #fafafa;

    --destructive: #7f1d1d;
    --destructive-foreground: #fafafa;

    --border: #27272a;
    --input: #27272a;
    --ring: #4c5ed0;

    --radius: 0.5rem;

    /* Layout */
    --container-max: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* --- Utility Classes --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.text-muted {
    color: var(--muted-foreground);
}

.text-balance {
    text-wrap: balance;
}

/* --- Components --- */

/* Card (shadcn style) */
.card {
    background-color: var(--card);
    color: var(--card-foreground);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(76, 94, 208, 0.3);
    background-color: rgba(76, 94, 208, 0.02);
    box-shadow: 0 10px 40px -15px var(--primary-glow);
}

/* Button (shadcn style) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s, opacity 0.2s;
    cursor: pointer;
    text-decoration: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border: none;
}

.btn-primary:hover {
    background-color: #3f50bc;
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: #323235;
}

.btn-ghost {
    background-color: transparent;
    color: var(--foreground);
}

.btn-ghost:hover {
    background-color: var(--accent);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

/* --- Section Layout --- */
.section-padding {
    padding: 8rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 5rem 0;
    }
}

.section-title {
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--muted-foreground);
    font-size: 1.125rem;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(9, 9, 11, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.6rem 0;
    background-color: rgba(9, 9, 11, 0.95);
    border-bottom-color: var(--primary);
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--foreground);
}

.navbar-brand img {
    height: 24px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-link {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
    text-transform: uppercase;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--foreground);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 992px) {
    .mobile-nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--background);
        border-left: 1px solid var(--border);
        flex-direction: column;
        padding: 5rem 2rem;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.125rem;
        width: 100%;
        display: block;
        padding: 0.75rem 0;
    }
}

.nav-link:hover {
    color: var(--foreground);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, rgba(76, 94, 208, 0.08) 0%, transparent 60%);
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url('https://bluehorizonrp.com/assets/screen1.png');
    background-size: cover;
    background-position: center;
    filter: brightness(0.2) grayscale(0.2);
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background-color: var(--muted);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(3.2rem, 9vw, 5rem);
    line-height: 0.95;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 3.5rem;
    max-width: 550px;
    line-height: 1.6;
}

.hero-logo {
    height: 200px;
    /* Slightly more for impact */
    margin-bottom: 2.5rem;
    max-width: 90vw;
    object-fit: contain;
    filter: drop-shadow(0 0 40px var(--primary-glow));
    animation: logo-float 6s ease-in-out infinite;
}

@media (max-width: 768px) {
    .hero-logo {
        height: 120px;
        margin-bottom: 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem !important;
        white-space: normal !important;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }
}

@keyframes logo-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.gallery-item {
    aspect-ratio: 16/9;
    background-color: var(--muted);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- Team Section --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--muted);
    border: 2px solid var(--border);
    margin-bottom: 1.5rem;
    padding: 4px;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.team-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-desc {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    background-color: var(--background);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

.footer-copy {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--foreground);
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Loader --- */
#loader {
    position: fixed;
    inset: 0;
    background: var(--background);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: loader-spin 0.6s linear infinite;
}

@keyframes loader-spin {
    to {
        transform: rotate(360deg);
    }
}