@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Sora:wght@300;400;500;600;700;800&display=swap');

/* ========================================
   DEONAFRIK - MAIN THEME SYSTEM
======================================== */

:root {
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-heading: 'Sora', system-ui, sans-serif;

    --brand-50:  #eff6ff;
    --brand-100: #dbeafe;
    --brand-200: #bfdbfe;
    --brand-300: #93c5fd;
    --brand-400: #60a5fa;
    --brand-500: #3b82f6;
    --brand-600: #2563eb;
    --brand-700: #1d4ed8;
    --brand-800: #1e40af;
    --brand-900: #1e3a8a;
    --brand-950: #0f1d4a;

    --dark-50:  #f8fafc;
    --dark-100: #e2e8f0;
    --dark-200: #cbd5e1;
    --dark-300: #94a3b8;
    --dark-400: #64748b;
    --dark-500: #475569;
    --dark-600: #334155;
    --dark-700: #1e293b;
    --dark-800: #0f172a;
    --dark-900: #0a0f1e;
    --dark-950: #050810;

    --cyan-glow: #22d3ee;

    --container-padding: clamp(1rem, 4vw, 5rem);
    --section-spacing: clamp(4rem, 8vw, 8rem);

    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;

    --shadow-glow: 0 10px 40px rgba(34, 211, 238, 0.22);
}

/* ========================================
   RESET
======================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    min-width: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background: var(--dark-950);
    color: var(--dark-100);
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-block: clamp(4rem, 8vw, 8rem);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.1;
}

h1 { font-size: clamp(2.5rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 6vw, 4rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2rem); }

.container {
    width: 100%;
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

/* ========================================
   SCROLLBAR
======================================== */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark-900); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--brand-600), var(--brand-800));
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--brand-500), var(--brand-700));
}

::selection {
    background: rgba(37, 99, 235, 0.35);
    color: white;
}

/* ========================================
   ANIMATIONS
======================================== */

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.15); }
    50%       { box-shadow: 0 0 40px rgba(34, 211, 238, 0.25); }
}

@keyframes gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-float       { animation: float 6s ease-in-out infinite; }
.animate-pulse-glow  { animation: pulse-glow 3s ease-in-out infinite; }
.animate-gradient    { background-size: 200% 200%; animation: gradient-shift 8s ease infinite; }

.animate-shimmer {
    background: linear-gradient(90deg, transparent 0%, rgba(59,130,246,0.12) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

/* ========================================
   GLASS
======================================== */

.glass {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.glass-strong {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

/* ========================================
   TEXT GRADIENT
======================================== */

.text-gradient-brand-, .text-gradient {
    background: linear-gradient(135deg, var(--brand-300), var(--brand-500), var(--cyan-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   BUTTONS
======================================== */

.btn-primary, .btn-secondary, .btn-outline, .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    border-radius: 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-sans);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    color: white;
    border: none;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(34, 211, 238, 0.35);
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.15);
    color: var(--dark-100);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(96, 165, 250, 0.25);
    color: var(--brand-300);
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(96, 165, 250, 0.5);
}

.btn-ghost {
    background: transparent;
    border: none;
    color: var(--dark-100);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); }

/* ========================================
   NAVIGATION
======================================== */

.nav-scrolled {
    background: rgba(5, 8, 16, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(34, 211, 238, 0.08);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--brand-400), transparent);
    transition: width 0.3s ease;
}

.nav-link:hover::after { width: 100%; }

/* ========================================
   PROPERTY CARDS
======================================== */

.property-card {
    position: relative;
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.4s ease;
}

.property-card:hover {
    transform: translateY(-8px);
    border-color: rgba(96, 165, 250, 0.2);
    box-shadow: 0 25px 60px rgba(37, 99, 235, 0.12);
}

.property-card .image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.property-card .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.property-card:hover .image-container img { transform: scale(1.08); }

.property-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(59, 130, 246, 0.15);
    color: var(--brand-300);
    border: 1px solid rgba(96, 165, 250, 0.2);
    backdrop-filter: blur(10px);
}

/* ========================================
   SECTION LABEL
======================================== */

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--brand-300);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
}

.section-label::before, .section-label::after {
    content: '';
    width: 2rem;
    height: 1px;
    background: var(--brand-500);
}

/* ========================================
   FORMS  – White box / dark-blue text
======================================== */

.form-input {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 0.8rem;
    background: #ffffff;
    border: 1.5px solid rgba(148, 163, 184, 0.35);
    color: #1e3a8a;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    transition: all 0.3s ease;
    appearance: auto;
}

.form-input::placeholder { color: #94a3b8; }

.form-input:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.form-input.error { border-color: rgba(239, 68, 68, 0.6); }

select.form-input {
    background-color: #ffffff;
    color: #1e3a8a;
    cursor: pointer;
}

select.form-input option {
    background-color: #ffffff;
    color: #1e293b;
}

textarea.form-input { color: #1e3a8a; }

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-300);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ========================================
   FILTER BUTTONS
======================================== */

.filter-btn {
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.08);
    color: var(--dark-300);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover { color: var(--dark-100); border-color: rgba(96, 165, 250, 0.25); }
.filter-btn.active { background: rgba(59,130,246,0.15); color: var(--brand-300); border-color: rgba(96,165,250,0.25); }

/* ========================================
   TESTIMONIALS
======================================== */

.testimonial-card { position: relative; }

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: clamp(3rem, 8vw, 5rem);
    color: rgba(59, 130, 246, 0.08);
    line-height: 1;
}

/* ========================================
   HERO VIDEO BACKGROUND
======================================== */

.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 120%;
    object-fit: cover;
    z-index: 0;
}

.hero-gradient {
    background: linear-gradient(to bottom, rgba(5,8,16,0.4), transparent, rgba(5,8,16,1));
}

.hero-side-gradient {
    background: linear-gradient(to right, rgba(5,8,16,0.7), transparent, rgba(5,8,16,0.7));
}

/* ========================================
   STATS
======================================== */

.stat-item { text-align: center; }

.stat-value {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    font-family: var(--font-heading);
}

/* ========================================
   SERVICES
======================================== */

.service-card {
    position: relative;
    width: 100%;
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: var(--radius-md);
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-card:hover { transform: translateY(-6px); border-color: rgba(96,165,250,0.2); }

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(59,130,246,0), transparent);
    transition: all 0.4s ease;
}

.service-card:hover::after {
    background: linear-gradient(to right, transparent, rgba(59,130,246,0.4), transparent);
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(34,211,238,0.08));
    border: 1px solid rgba(96, 165, 250, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon { border-color: rgba(96,165,250,0.4); }

/* ========================================
   SHORT LETS SECTION
======================================== */

.short-let-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.short-let-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ========================================
   TEAM SECTION
======================================== */

.team-card {
    position: relative;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.4s ease;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-6px);
    border-color: rgba(96, 165, 250, 0.25);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.1);
}

.team-card .team-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.team-card .team-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s ease;
}

.team-card:hover .team-image-wrap img { transform: scale(1.06); }

.team-card .team-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,8,16,0.85) 0%, transparent 60%);
}

.team-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.team-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.75rem;
    color: var(--brand-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.team-bio {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.6;
}

/* ========================================
   IMAGE UPLOAD
======================================== */

.upload-zone {
    position: relative;
    min-height: 12rem;
    border-radius: 1rem;
    border: 2px dashed rgba(148, 163, 184, 0.15);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-zone:hover { border-color: rgba(96,165,250,0.4); background: rgba(255,255,255,0.04); }
.upload-zone.dragover { border-color: var(--brand-400); background: rgba(59,130,246,0.08); }
.upload-zone.has-image { border-style: solid; }

/* ========================================
   VIDEO UPLOAD AREA
======================================== */

.video-upload-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(148,163,184,0.1);
    border-radius: 0.75rem;
}

.video-url-input {
    flex: 1;
    background: #ffffff;
    border: 1.5px solid rgba(148,163,184,0.35);
    color: #1e3a8a;
    border-radius: 0.6rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    transition: border-color 0.2s;
}

.video-url-input::placeholder { color: #94a3b8; }
.video-url-input:focus { outline: none; border-color: var(--brand-500); }

/* ========================================
   ADMIN PANEL
======================================== */

.admin-sidebar {
    background: rgba(5, 8, 16, 0.96);
    border-right: 1px solid rgba(148, 163, 184, 0.08);
    transition: transform 0.3s ease;
    z-index: 50;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 0.8rem;
    color: var(--dark-300);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.admin-nav-item:hover { color: var(--dark-100); background: rgba(255,255,255,0.05); }
.admin-nav-item.active { color: var(--brand-300); background: rgba(59,130,246,0.12); }

/* Mobile sidebar overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 40;
}

.sidebar-overlay.active { display: block; }

/* ========================================
   SKELETON / ALERTS
======================================== */

.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.75rem;
}

.alert { padding: 1rem 1.25rem; border-radius: 0.8rem; font-size: 0.9rem; }

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #86efac;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

/* ========================================
   ADVERT REEL – horizontal swipe (TikTok-style, sideways)
======================================== */

.adverts-shell {
    position: relative;
    max-width: 1100px;
    margin-inline: auto;
}

.adverts-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 1.5rem;
    background: #000;
}

.adverts-track::-webkit-scrollbar { display: none; }

.advert-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    aspect-ratio: 16 / 10;
    background: #000;
}

@media (min-width: 768px) {
    .advert-slide { aspect-ratio: 20 / 9; }
}

.advert-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

.advert-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 2rem 1.5rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 55%, transparent 100%);
    pointer-events: none;
}

.advert-caption p {
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 36rem;
    font-family: var(--font-sans);
}

.advert-mute-btn {
    position: absolute;
    top: 1rem; right: 1rem;
    width: 2.75rem; height: 2.75rem;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.1rem;
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s ease;
}

.advert-mute-btn:hover { background: rgba(0,0,0,0.7); }

.advert-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem; height: 3rem;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255,255,255,0.12);
    color: white;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 6;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}

.advert-nav-btn:hover { background: rgba(37, 99, 235, 0.6); border-color: rgba(96,165,250,0.4); }
.advert-nav-btn.prev { left: -1.25rem; }
.advert-nav-btn.next { right: -1.25rem; }

@media (max-width: 900px) {
    .advert-nav-btn { display: none; }
}

.advert-progress {
    display: flex;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 1.25rem;
}

.advert-progress span {
    width: 1.75rem;
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,0.15);
    transition: background 0.3s ease;
}

.advert-progress span.active { background: var(--brand-400); }

.advert-swipe-hint {
    position: absolute;
    bottom: 1rem;
    right: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 4;
    pointer-events: none;
}

@media (min-width: 900px) {
    .advert-swipe-hint { display: none; }
}

/* ========================================
   PROPERTY DETAIL — VIDEO PLAYER
======================================== */

.video-player-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: 1rem;
    overflow: hidden;
    background: #000;
}

.video-player-wrap iframe,
.video-player-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   RESPONSIVE GRID
======================================== */

.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
}

/* ========================================
   RESPONSIVE – MOBILE
======================================== */

@media (max-width: 1024px) {
    /* Admin: sidebar slides in from left */
    .admin-sidebar {
        transform: translateX(-100%);
        position: fixed !important;
    }

    .admin-sidebar.sidebar-open {
        transform: translateX(0);
    }

    .admin-main-content {
        margin-left: 0 !important;
    }
}

@media (max-width: 768px) {
    .service-card, .property-card { border-radius: 1rem; }
    .section-label { letter-spacing: 0.15em; }
    .upload-zone { min-height: 10rem; }
}

@media (max-width: 480px) {
    .container { padding-inline: 1rem; }
    .property-card .image-container { aspect-ratio: 4 / 3; }
    .service-icon { width: 3rem; height: 3rem; }
}
