@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --accent-color: #fdcb6e;
    --dark-bg: #1e1e2e;
    --card-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.8);
}

* {
    font-family: 'Tajawal', sans-serif;
    box-sizing: border-box;
}

body {
    background-color: #f3f4f6;
    color: #2d3436;
    overflow-x: hidden;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.dark .glass {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.dark .glass-card {
    background: rgba(30, 41, 59, 0.8);
    /* slate-800 with opacity */
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

/* Vanta Background - Visible in both modes */
#vanta-bg {
    opacity: 0.6;
    transition: opacity 0.5s ease;
}

html.dark #vanta-bg {
    opacity: 0.7;
}

/* Light mode body - no additional background needed, Vanta handles it */
html:not(.dark) body {
    background-color: transparent !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Floating Elements Animation */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    animation: float 20s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -50px) rotate(10deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .nav-link {
    color: #2d3436;
}

.navbar.scrolled .logo-text {
    color: var(--primary-color);
}

/* Footer - Theme aware */
footer {
    transition: background-color 0.3s, color 0.3s;
}

/* Dark mode footer text */
html.dark footer p,
html.dark footer span,
html.dark footer a,
html.dark footer h4,
html.dark footer li {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Dark Mode Utilities for Glass Effect */
.dark .glass-effect {
    background: rgba(30, 30, 50, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Dark Mode Text Color Overrides */
.dark .text-gray-800 {
    color: #f3f4f6 !important;
}

.dark .text-gray-700 {
    color: #e5e7eb !important;
}

.dark .text-gray-600 {
    color: #d1d5db !important;
}

.dark .text-gray-500 {
    color: #9ca3af !important;
}

/* Dark Mode Body Background */
.dark body,
body.dark {
    background-color: #111827 !important;
}

/* Dark Mode Form Inputs */
.dark .form-input,
.dark input,
.dark textarea,
.dark select {
    background-color: #1f2937;
    border-color: #374151;
    color: #f3f4f6;
}

.dark .form-input::placeholder,
.dark input::placeholder,
.dark textarea::placeholder {
    color: #9ca3af;
}

/* Dark Mode Cards */
.dark .feature-card,
.dark .contact-card,
.dark .stat-card {
    background: rgba(30, 30, 50, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Dark Mode White Backgrounds */
.dark .bg-white {
    background-color: #1f2937 !important;
}

.dark .bg-gray-50 {
    background-color: #111827 !important;
}