/* Kaleb Trading - Premium Bright Design System */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Bright Color Palette */
    --bg-deep: #020617;
    /* Midnight Deep */
    --bg-card: #0f172a;
    /* Slate Deep */
    --bg-card-hover: #1e293b;
    --accent-primary: #c5a059;
    /* Champagne Gold */
    --accent-secondary: #94a3b8;
    /* Titanium Silver */
    --accent-gradient: linear-gradient(135deg, #c5a059 0%, #d4af37 100%);
    --text-main: #f8fafc;
    /* Near White */
    --text-muted: #94a3b8;
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --hero-overlay: rgba(15, 23, 42, 0.75);

    /* Spacing & Sizing */
    --container-width: 1280px;
    --section-padding: clamp(4rem, 10vw, 8rem);

    /* Effects */
    --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    --transition-base: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-bounce: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-slow: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    --glass-blur: blur(16px);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

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

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* In hero context, keep white text */
.hero .text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: var(--transition-base);
}

.glass-panel:hover {
    border-color: var(--accent-primary);
    background: rgba(30, 41, 59, 0.8);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-base);
    padding: 1.5rem 0;
    background: transparent;
    border-bottom: 1px solid transparent;
}

header.scrolled {
    padding: 0.75rem 0;
    background: rgba(15, 23, 42, 0.85);
    /* Dark Glass */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

header.scrolled .logo,
header.scrolled .nav-links>li>a {
    color: var(--text-main);
}

/* Initial state for transparent header (white text on hero) */
header:not(.scrolled) .logo,
header:not(.scrolled) .nav-links>li>a {
    color: #fff;
}

header:not(.scrolled) .nav-links>li>a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

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

.logo {
    display: flex;
    align-items: center;
    height: auto;
}

.logo img {
    height: 100px;
    width: auto;
    transition: var(--transition-base);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.2));
}

header:not(.scrolled) .logo img {
    filter: brightness(1.5) drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

header.scrolled .logo img {
    height: 70px;
    /* Shrunk on scroll */
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(255, 255, 255, 0.25));
}

/* Nav Links */
.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-links>li {
    position: relative;
}

.nav-links>li>a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    transition: var(--transition-base);
}

.nav-links>li>a:hover,
.nav-links>li>a.active {
    color: var(--accent-primary);
    background: rgba(37, 99, 235, 0.06);
}

/* Dropdown Menu */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 240px;
    background: #0f172a;
    /* Slate Deep */
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    padding: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 100;
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 16px;
    height: 16px;
    background: #0f172a;
    border-top: 1px solid var(--glass-border);
    border-left: 1px solid var(--glass-border);
}

.nav-links>li:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
}

.nav-dropdown a:hover {
    background: rgba(37, 99, 235, 0.06);
    color: var(--accent-primary);
}

.nav-dropdown a i {
    width: 18px;
    text-align: center;
    color: var(--accent-primary);
    font-size: 0.85rem;
}

.nav-cta {
    margin-left: 0.5rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 28px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition-base);
    border-radius: 2px;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #fff;
    padding-top: 100px;
    /* Restored padding for header clearance */
}


.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(15, 23, 42, 0.8) 0%,
            rgba(15, 23, 42, 0.4) 40%,
            rgba(15, 23, 42, 0.85) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    text-align: center;
    animation: hero-fade-in 1.2s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

@keyframes hero-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: clamp(3.5rem, 10vw, 6rem);
    line-height: 1;
    margin-bottom: 2rem;
    font-weight: 800;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto 3rem;
    max-width: 700px;
    font-weight: 400;
    backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, 0.3);
    padding: 1.25rem 2rem;
    border-radius: 16px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
}

/* Sub-page Hero Adjustment - Placed after general styles for priority */
.hero-sub {
    height: 70vh !important;
    min-height: 550px !important;
    padding-top: 100px !important;
}

.hero-sub .hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem) !important;
    margin-bottom: 1.5rem;
}

/* Glassmorphism Hero Layout */
.hero-glass .container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-glass .hero-content {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 2rem;
    text-align: center;
    max-width: 900px;
    box-shadow: none;
}

.hero-glass .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-glass .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-glass .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(15, 23, 42, 0.8) 0%,
            rgba(15, 23, 42, 0.4) 40%,
            rgba(15, 23, 42, 0.85) 100%);
    z-index: -1;
    display: block !important;
}

.hero-glass .hero-content h1 {
    color: #fff;
    font-size: clamp(3rem, 8vw, 5.5rem) !important;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-glass .hero-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 400;
    margin-bottom: 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 968px) {
    .hero-split .container {
        grid-template-columns: 1fr;
        padding-top: 120px;
        text-align: center;
    }

    .hero-split .hero-content {
        order: 1;
        text-align: center;
    }

    .hero-split .hero-image {
        order: 2;
        height: 300px;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.8;
    transition: var(--transition-base);
    cursor: pointer;
}

.scroll-indicator:hover {
    opacity: 1;
    bottom: 1.5rem;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-bounce);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #000 !important;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.3);
    border: none;
    transition: var(--transition-bounce);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(197, 160, 89, 0.5);
    filter: brightness(1.1);
}

/* Shimmer Animation for Buttons */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    transition: all 0.6s;
}

.btn-shimmer:hover::after {
    left: 150%;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--glass-border);
    color: var(--text-main);
}

.hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-outline:hover {
    background: rgba(37, 99, 235, 0.06);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-3px);
}

.hero .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

/* ===========================
   SECTIONS
   =========================== */
section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ===========================
   GRID LAYOUTS
   =========================== */
.grid {
    display: grid;
    gap: 2.5rem;
    align-items: stretch;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

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

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

/* ===========================
   PREMIUM CARDS
   =========================== */
.card {
    position: relative;
    padding: 3.5rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    transition: var(--transition-bounce);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.card>p {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card:hover {
    transform: translateY(-20px);
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}


.card img {
    border-radius: 12px;
    transition: var(--transition-base);
}

.card:hover img {
    transform: scale(1.05);
}

.card i {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    display: block;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.card-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    font-weight: 600;
}

.card-link i {
    font-size: 0.9rem;
    margin: 0;
}

/* ===========================
   REVEAL ANIMATIONS
   =========================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

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

/* Stagger delays */
.reveal:nth-child(1) {
    transition-delay: 0.1s;
}

.reveal:nth-child(2) {
    transition-delay: 0.2s;
}

.reveal:nth-child(3) {
    transition-delay: 0.3s;
}

/* ===========================
   FOOTER
   =========================== */
footer {
    background: #030712; /* Much deeper black for clear section separation */
    color: #fff;
    padding: 8rem 0 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer h4,
footer .footer-title {
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    filter: brightness(1.6) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

footer .logo {
    color: #fff;
}

.footer-desc {
    color: #94a3b8;
    max-width: 300px;
}

.footer-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
}

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

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--accent-primary);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    color: #94a3b8;
    margin-bottom: 1.25rem;
}

.footer-contact i {
    color: var(--accent-primary);
}

.copyright {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #64748b;
    font-size: 0.9rem;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .logo img {
        height: 60px; /* Smaller on mobile */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background: var(--bg-deep);
        flex-direction: column;
        justify-content: center;
        padding: 4rem 2rem;
        transition: var(--transition-base);
        z-index: 1000;
        box-shadow: none;
        gap: 1.5rem;
    }

    .nav-links.active {
        right: 0;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    }

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

    .nav-links>li>a {
        font-size: 1.25rem;
        padding: 1rem;
        display: block;
    }

    .nav-dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        padding: 0 0 0 1rem;
        min-width: 0;
    }

    .nav-dropdown::before {
        display: none;
    }

    .nav-dropdown a {
        font-size: 1rem;
        padding: 0.6rem 1rem;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 1rem;
    }

    .nav-cta .btn {
        width: 100%;
        justify-content: center;
    }

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

    .hero-btns {
        justify-content: center;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    /* Removed conflicting grid-3 rule to favor top-level media queries */

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   ADVANCED ANIMATIONS
   =========================== */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Staggered Slide In Right */
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: var(--transition-slow);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

@keyframes float-y {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-x {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(20px);
    }
}

@keyframes slow-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-float {
    animation: float-y 6s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.1;
        transform: scale(1);
    }

    50% {
        opacity: 0.2;
        transform: scale(1.1);
    }
}

.bg-ornament {
    position: absolute;
    pointer-events: none;
    z-index: -1;
    filter: blur(80px);
    border-radius: 50%;
}