:root {
    /* Warm, Dark Bronze / Amber Theme (From Aurum) */
    --primary: #c5a059;
    /* Antique Gold */
    --primary-custom: #c5a059;
    --primary-dim: rgba(197, 160, 89, 0.5);
    --primary-glow: rgba(197, 160, 89, 0.15);

    --background: #080705;
    /* Deep charcoal black */
    --surface: #12100d;
    /* Refined dark wood tone */
    --surface-light: #1c1a16;

    --on-surface: #f4f1ea;
    /* Parchment white */
    --on-surface-variant: #b0a89a;

    --bs-primary: var(--primary);
    --bs-body-bg: var(--background);
    --bs-body-color: var(--on-surface);

    /* Security Accents */
    --clr-security-green: #00FF88;
    --clr-security-blue: #00A3FF;
    --clr-security-red: #FF3366;

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Manrope', sans-serif;
    --font-label: 'Inter', sans-serif;

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-security: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Locomotive scroll specific */
    --scroll-bar-color: var(--primary);
}

/* =============================================
   SCROLLBAR FIXES
   ============================================= */
html.has-scroll-smooth {
    overflow: hidden;
}

html {
    font-size: clamp(14px, 0.85vw, 17px);
}

html.has-scroll-dragging {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.has-scroll-smooth body {
    overflow: hidden;
}

.has-scroll-smooth [data-scroll-container] {
    min-height: 100vh;
}

/* Custom Scrollbar for non-locomotive */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--surface-light);
    border-radius: 10px;
}

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

/* Locomotive Scrollbar */
.c-scrollbar {
    opacity: 0;
    transition: opacity 0.3s, background-color 0.3s;
    width: 10px !important;
}

.c-scrollbar:hover,
.has-scroll-dragging .c-scrollbar,
.has-scroll-scrolling .c-scrollbar {
    opacity: 1;
}

.c-scrollbar_thumb {
    background-color: var(--primary) !important;
    border-radius: 10px !important;
    width: 6px !important;
    margin: 2px !important;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.c-scrollbar_thumb:hover {
    opacity: 1;
}

/* Utilities */
.border-primary-glow {
    border-color: rgba(245, 158, 11, 0.3) !important;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.05);
}

/* Hero Gradient */
no .hero-gradient {
    background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.05) 0%, transparent 40%),
        radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.03) 0%, transparent 40%),
        var(--background);
}

/* =============================================
   PAGE PRELOADER
   ============================================= */
#page-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--background);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#page-preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Utilities */
.text-amber-gradient {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-to-t {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.xsmall {
    font-size: 0.7rem;
}

.tracking-widest {
    letter-spacing: 0.15em;
}

.cursor-pointer {
    cursor: pointer;
}

.w-fit {
    width: fit-content;
}

.font-light {
    font-weight: 300;
}

.hover-primary:hover {
    color: var(--primary) !important;
}

.preloader-spinner {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}

.preloader-spinner .ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2.5px solid transparent;
}

.preloader-spinner .ring-1 {
    border-top-color: var(--primary);
    animation: preloader-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.preloader-spinner .ring-2 {
    border-right-color: rgba(245, 158, 11, 0.4);
    animation: preloader-spin 1.8s cubic-bezier(0.5, 0, 0.5, 1) infinite reverse;
}

.preloader-spinner .ring-3 {
    inset: 8px;
    border-bottom-color: rgba(245, 158, 11, 0.2);
    animation: preloader-spin 1.5s linear infinite;
}

.preloader-brand {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--primary);
    opacity: 0.8;
}

.preloader-sub {
    font-family: var(--font-label);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--on-surface-variant);
    margin-top: 0.4rem;
    text-transform: uppercase;
    opacity: 0;
    animation: preloader-fade-in 0.5s ease 0.3s forwards;
}

@keyframes preloader-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes preloader-fade-in {
    to {
        opacity: 0.6;
    }
}

/* Prevent scroll while loading */
html.is-loading,
body.is-loading {
    overflow: hidden !important;
}

/* Locomotive Scroll stability fixes */
html.has-scroll-smooth {
    overflow: hidden !important;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

html.has-scroll-smooth body {
    overflow: hidden !important;
}

[data-scroll-container] {
    min-height: 100vh;
}

/* =============================================
   BASE STYLES
   ============================================= */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--on-surface);
    -webkit-font-smoothing: antialiased;
    position: relative;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Cfilter id='noiseFilter'%3%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3%3C/filter%3%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3%3C/svg%3%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-headline {
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
    color: #fff;
    font-weight: 600;
    line-height: 1.2;
}

.text-amber-gradient {
    background: linear-gradient(135deg, #c5a059 0%, #f3e5ab 50%, #aa8c2c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 10px 20px rgba(197, 160, 89, 0.1);
}

.font-label {
    font-family: var(--font-label);
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* Typography utilities */
.text-primary-custom {
    color: var(--primary) !important;
}

.text-on-surface-variant {
    color: var(--on-surface-variant) !important;
}

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

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #d4c4b4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-amber-gradient {
    background: linear-gradient(135deg, #c5a059 0%, #f3e5ab 50%, #aa8c2c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 10px 20px rgba(197, 160, 89, 0.1);
}

/* Ambient Orbs */
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.25;
    z-index: 1;
    pointer-events: none;
    animation: float 25s infinite ease-in-out alternate, pulse-orb 10s infinite ease-in-out;
    will-change: transform, opacity, filter;
    filter: blur(80px);
}

@keyframes pulse-orb {

    0%,
    100% {
        opacity: 0.2;
        filter: blur(80px);
    }

    50% {
        opacity: 0.35;
        filter: blur(60px);
    }
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(245, 158, 11, 0.08) 40%, transparent 70%);
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.2) 0%, rgba(217, 119, 6, 0.06) 40%, transparent 70%);
    bottom: 10%;
    right: -10%;
}

.orb-3 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 35%, transparent 65%);
    top: 30%;
    left: -20%;
}

.orb-4 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.15) 0%, rgba(217, 119, 6, 0.05) 40%, transparent 70%);
    top: 60%;
    right: 10%;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1) translateX(0);
    }

    100% {
        transform: translateY(-50px) scale(1.1) translateX(-30px);
    }
}

/* Tactical Background Elements */
.bg-animations {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    background: transparent;
}

.tactical-icon {
    position: absolute;
    color: #f59e0b;
    font-size: 1.2rem;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.4));
    animation: tactical-fade 6s infinite ease-in-out;
}

@keyframes tactical-fade {

    0%,
    100% {
        opacity: 0.05;
        transform: scale(0.9);
    }

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

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #f59e0b;
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(0.5px) drop-shadow(0 0 3px rgba(245, 158, 11, 0.5));
    animation: particle-float var(--duration) linear infinite;
    top: var(--top);
    left: var(--left);
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(245, 158, 11, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 11, 0.08) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.6;
}

@keyframes particle-float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    20% {
        opacity: 0.5;
    }

    80% {
        opacity: 0.5;
    }

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

/* HUD Decorative Elements */
.hud-element {
    position: absolute;
    border: 1px solid rgba(197, 160, 89, 0.2);
    pointer-events: none;
    z-index: 1;
}

.hud-corner-tl {
    top: 50px;
    left: 50px;
    width: 20px;
    height: 20px;
    border-right: none;
    border-bottom: none;
}

.hud-corner-br {
    bottom: 50px;
    right: 50px;
    width: 20px;
    height: 20px;
    border-left: none;
    border-top: none;
}

.hud-dots {
    display: grid;
    grid-template-columns: repeat(4, 4px);
    gap: 4px;
}

.hud-dot {
    width: 4px;
    height: 4px;
    background: rgba(245, 158, 11, 0.4);
    border-radius: 50%;
}

@keyframes hud-flicker {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.5;
    }
}

.flicker {
    animation: hud-flicker 4s infinite ease-in-out;
}

.btn-primary-custom {
    background: linear-gradient(135deg, #c5a059 0%, #aa8c2c 100%);
    color: #000 !important;
    font-family: var(--font-label);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    border-radius: 4px !important;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(45deg);
    transition: 0.6s;
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-primary-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(197, 160, 89, 0.4);
    background: linear-gradient(135deg, #d4b882 0%, #c5a059 100%);
}

justify-content: center;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
    filter: brightness(1.2);
}

.btn-outline-custom {
    background: rgba(245, 158, 11, 0.05);
    backdrop-filter: blur(10px);
    color: var(--primary) !important;
    border: 1px solid rgba(245, 158, 11, 0.4);
    font-family: var(--font-label);
    font-weight: 500;
    border-radius: 4px !important;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-custom:hover {
    background: rgba(197, 160, 89, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.1);
}

.btn-liked {
    background: var(--primary);
    color: #000 !important;
    border: none;
    border-radius: 4px !important;
    box-shadow: 0 0 25px rgba(197, 160, 89, 0.4);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-liked:hover {
    transform: translateY(-3px);
    background: #d4b882;
    box-shadow: 0 0 35px rgba(197, 160, 89, 0.6);
}

@keyframes pulse-gold {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse-gold 0.4s ease-out;
}

/* Cards */
.interactive-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(38, 22, 8, 0.8) 0%, rgba(23, 13, 5, 0.9) 100%);
    border-radius: 16px;
    padding: 2rem;
}

.interactive-card:hover {
    border-color: rgba(245, 158, 11, 0.45) !important;
    box-shadow: 0 0 50px rgba(245, 158, 11, 0.12);
    transform: scale(1.008);
}

.glass-card {
    background: linear-gradient(135deg, rgba(28, 26, 22, 0.1) 0%, rgba(18, 16, 13, 0.1) 100%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(197, 160, 89, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(197, 160, 89, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(197, 160, 89, 0.2);
}

/* Navbar */
.navbar-custom {
    background: rgba(10, 6, 2, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1.25rem !important;
    position: relative;
    transition: all 0.3s ease;
}

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

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
}

.nav-link.active:after {
    width: 15px;
    height: 1px;
}

/* Classical Divider */
.classic-divider {
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 2rem auto;
}

/* Form Inputs */
.custom-input,
.glass-input {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(245, 158, 11, 0.15) !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 0.8rem 1.2rem !important;
}

.custom-input::placeholder,
.glass-input::placeholder {
    color: #ffffff !important;
    opacity: 0.5 !important;
}

.custom-input:focus,
.glass-input:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.1) !important;
}

/* Select / Dropdown dark theme */
select.custom-input,
select.glass-input,
.form-select {
    background-color: var(--surface) !important;
    color: var(--on-surface) !important;
    border-color: rgba(245, 158, 11, 0.15) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23c5a059' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 16px 12px !important;
}

select.custom-input:focus,
select.glass-input:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.1) !important;
}

select.custom-input option,
select.glass-input option,
.form-select option {
    background-color: var(--surface) !important;
    color: var(--on-surface) !important;
}

/* Stats & Badges */
.status-indicator {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    position: relative;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Icon Boxes */
.icon-box {
    background: rgba(245, 158, 11, 0.15);
    color: var(--primary) !important;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    flex-shrink: 0;
}

.icon-box i,
.icon-box span {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box:hover {
    background: rgba(245, 158, 11, 0.25);
    border-color: var(--primary);
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.15);
}

/* Blog Specific */
.blog-card {
    background: rgba(38, 22, 8, 0.4);
    border: 1px solid rgba(245, 158, 11, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.blog-image-wrap {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.blog-card.featured .blog-image-wrap {
    height: 100%;
}

@media (max-width: 767.98px) {
    .blog-card.featured .blog-image-wrap {
        height: 280px;
    }
}

.blog-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image-wrap img {
    transform: scale(1.1);
}

/* Utils */
.tracking-widest {
    letter-spacing: 0.2em;
}

.xsmall {
    font-size: 0.7rem;
}

.small {
    font-size: 0.85rem;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-light {
    font-weight: 300 !important;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Red Liked State */
.btn-liked {
    background: rgba(255, 51, 102, 0.1) !important;
    color: var(--clr-security-red) !important;
    border: 1px solid var(--clr-security-red) !important;
}

.btn-liked i {
    color: var(--clr-security-red) !important;
}
/* Bento Grid & Hover Effects */
.bento-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.group:hover .group-hover-scale {
    transform: scale(1.05);
}

.transition-smooth {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-gradient-to-t {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.line-clamp-1, .line-clamp-2, .line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-1 { -webkit-line-clamp: 1; }
.line-clamp-2 { -webkit-line-clamp: 2; }
.line-clamp-3 { -webkit-line-clamp: 3; }

/* Mobile Optimizations - App Like Feel */
@media (max-width: 768px) {
    :root {
        --mobile-padding: 1.2rem;
    }
    
    .container {
        padding-left: var(--mobile-padding);
        padding-right: var(--mobile-padding);
    }
    
    .font-headline {
        letter-spacing: -0.01em;
    }
    
    .bento-card.large {
        min-height: 350px !important;
    }
    
    .bento-card.medium, .bento-card.small {
        height: 200px !important;
    }
    
    .glass-card {
        padding: 1.25rem !important;
        border-radius: 20px !important;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        border-radius: 12px;
    }
    
    .status-indicator {
        padding: 4px 10px;
        font-size: 0.6rem;
    }

    .navbar-custom {
        padding: 0.8rem 0 !important;
        background: #080705 !important;
        backdrop-filter: blur(20px) !important;
        top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* Notch fix: Extend background upwards */
    .navbar-custom::before {
        content: "";
        position: absolute;
        top: -100px;
        left: 0;
        right: 0;
        height: 100px;
        background: #080705;
        z-index: -1;
    }

    .navbar-brand img {
        height: 35px !important;
    }

    .hero-gradient {
        padding-top: 80px !important;
    }

    section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .row.g-3 {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }
    
    .row.g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
}

.hero-section-padding {
    padding-top: 140px;
}

@media (max-width: 768px) {
    .hero-section-padding {
        padding-top: 100px !important;
    }
}

/* Modern Redesigned Mobile Menu */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%; /* Full width for cleaner look */
        height: 100vh;
        background: #080705; /* Solid dark background */
        padding: 120px 2.5rem 3rem;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex !important;
        flex-direction: column;
        z-index: 998;
        visibility: hidden;
        transform: translateX(100%);
    }

    .navbar-collapse.show {
        right: 0;
        visibility: visible;
        transform: translateX(0);
    }

    .navbar-nav {
        align-items: center !important;
        text-align: center;
        gap: 1.5rem !important;
    }

    .nav-link {
        font-family: var(--font-heading);
        font-size: 1.8rem !important;
        font-weight: 500 !important;
        color: #fff !important;
        padding: 0.5rem 0 !important;
        border: none !important;
        letter-spacing: 0.02em;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .navbar-collapse.show .nav-link {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Staggered entrance for links */
    .navbar-collapse.show .nav-item:nth-child(1) .nav-link { transition-delay: 0.1s; }
    .navbar-collapse.show .nav-item:nth-child(2) .nav-link { transition-delay: 0.15s; }
    .navbar-collapse.show .nav-item:nth-child(3) .nav-link { transition-delay: 0.2s; }
    .navbar-collapse.show .nav-item:nth-child(4) .nav-link { transition-delay: 0.25s; }
    .navbar-collapse.show .nav-item:nth-child(5) .nav-link { transition-delay: 0.3s; }
    .navbar-collapse.show .nav-item:nth-child(6) .nav-link { transition-delay: 0.35s; }
    .navbar-collapse.show .nav-item:nth-child(7) .nav-link { transition-delay: 0.4s; }

    .navbar-toggler {
        position: relative;
        z-index: 1000;
        border: none !important;
        padding: 10px !important;
    }
    
    .navbar-toggler:focus {
        box-shadow: none !important;
    }
}



/* Animated Hamburger Icon */
.hamburger-icon {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Fade-up scroll animation: start invisible, GSAP animates to visible */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    will-change: transform, opacity;
}

/* =============================================
   LIKE BUTTON ANIMATION
   ============================================= */
@keyframes like-pop {
    0% { transform: scale(1); }
    20% { transform: scale(1.35); }
    40% { transform: scale(0.85); }
    60% { transform: scale(1.15); }
    80% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

.btn-like-animate {
    animation: like-pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

@keyframes like-icon-bounce {
    0% { transform: scale(1); }
    25% { transform: scale(1.6); }
    50% { transform: scale(0.8); }
    75% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.like-icon-animate {
    animation: like-icon-bounce 0.5s ease-out !important;
}

@keyframes like-glow {
    0% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.5); }
    100% { box-shadow: 0 0 25px 10px rgba(197, 160, 89, 0); }
}

.btn-like-glow {
    animation: like-glow 0.6s ease-out !important;
}

.like-particle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    box-shadow: 0 0 6px rgba(197, 160, 89, 0.5);
}

/* Comment Delete Button */
.comment-delete-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    color: rgba(255, 255, 255, 0.2) !important;
    padding: 4px 8px !important;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.25s, color 0.25s, transform 0.25s, background 0.25s;
    line-height: 1;
    border: 1px solid transparent !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 6px;
    transform: translateY(-2px);
    backdrop-filter: blur(4px);
}
.glass-card:hover .comment-delete-btn {
    opacity: 0.6;
    transform: translateY(0);
}
.comment-delete-btn:hover {
    opacity: 1 !important;
    color: var(--clr-security-red) !important;
    border-color: rgba(220, 38, 38, 0.3) !important;
    background: rgba(220, 38, 38, 0.1) !important;
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.15);
    transform: scale(1.05);
}
.comment-delete-btn:hover i {
    animation: deleteShake 0.4s ease;
}
@keyframes deleteShake {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(-8deg); }
    40% { transform: rotate(8deg); }
    60% { transform: rotate(-4deg); }
    80% { transform: rotate(4deg); }
}
