@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=DM+Sans:wght@300;400;500;700&family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+Arabic:wght@300;400;500;700;800&display=swap');

:root {
    --color-bg: #09090b;
    --color-surface: #12131a;
    --color-surface-card: #0b0f19;
    --color-outline: rgba(255, 255, 255, 0.08);
    --color-primary: #6366f1; /* Indigo */
    --color-secondary: #a855f7; /* Purple */
    --color-tertiary: #0d9488; /* Teal */
    --color-tertiary-hover: #0f766e;
    --color-emerald: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: #e3e1ec;
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #09090b;
}
::-webkit-scrollbar-thumb {
    background: #1f1f29;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2a2a38;
}

/* Atmospheric Glow Backgrounds */
.glow-bg {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
    transition: all 1s ease-in-out;
}

.glow-teal {
    background: radial-gradient(circle, var(--color-tertiary) 0%, rgba(13, 148, 136, 0) 70%);
}

.glow-indigo {
    background: radial-gradient(circle, var(--color-primary) 0%, rgba(99, 102, 241, 0) 70%);
}

.glow-purple {
    background: radial-gradient(circle, var(--color-secondary) 0%, rgba(168, 85, 247, 0) 70%);
}

/* Glassmorphism elements */
.glass-nav {
    background: rgba(9, 9, 11, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
    background: rgba(18, 19, 26, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(18, 19, 26, 0.6);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
}

.glass-panel {
    background: rgba(11, 15, 25, 0.5);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Arabic calligraphy backdrop texture */
.arabic-texture {
    position: absolute;
    font-family: 'Noto Sans Arabic', sans-serif;
    font-size: 32rem;
    font-weight: 800;
    color: #ffffff;
    opacity: 0.02;
    line-height: 1;
    user-select: none;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.5s ease;
}

/* Logo styling */
.huroof-logo path.cls-1 {
    fill: #ffffff !important;
    transition: fill 0.3s ease;
}
.huroof-logo path.cls-2 {
    fill: var(--color-tertiary) !important;
    transition: fill 0.3s ease;
}
.huroof-logo:hover path.cls-2 {
    fill: var(--color-primary) !important;
}

/* Animation utilities */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: 3s;
}

.animate-pulse-slow {
    animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(1deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.15; transform: scale(1); }
    50% { opacity: 0.25; transform: scale(1.1); }
}

/* Custom Cursor Glow Trail */
.cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0) 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    will-change: transform;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Interactive Card Hover Glow border */
.card-hover-glow {
    position: relative;
    overflow: hidden;
}

.card-hover-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    transform: translate(var(--x, 0px), var(--y, 0px));
}

.card-hover-glow:hover::before {
    opacity: 1;
}

/* Step builder transition */
.step-transition {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-hidden {
    display: none;
    opacity: 0;
    transform: translateY(15px);
}

.step-active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Scroll-driven Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Custom interactive background lines */
.bg-grid {
    position: absolute;
    inset: 0;
    background-size: 60px 60px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    pointer-events: none;
    z-index: 0;
}

/* Responsive typography styling */
.text-font-jakarta {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.text-font-dm {
    font-family: 'DM Sans', sans-serif;
}

.text-font-inter {
    font-family: 'Inter', sans-serif;
}
