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

:root {
    --primary: #06b6d4;
    --primary-dark: #0891b2;
    --primary-light: #22d3ee;
    --accent: #10b981;
    --accent-dark: #059669;
    --bg: #f8fafc;
    --bg-light: #ffffff;
    --bg-section: #f1f5f9;
    --text: #1e293b;
    --text-muted: #475569;
    --card: rgba(255, 255, 255, 0.95);
    --glass: rgba(255, 255, 255, 0.8);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --glow: 0 0 20px rgba(6, 182, 212, 0.15);
    --border: rgba(6, 182, 212, 0.2);
}

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

html,
body {
    font-family: 'Inter', 'Tajawal', system-ui, sans-serif !important;
    color: var(--text) !important;
    background: var(--bg) !important;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #f8fafc 100%);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
    pointer-events: none;
    z-index: 0;
}

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

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

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(6, 182, 212, 0.15) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s ease;
}

.navbar:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.brand-logo {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
    filter: brightness(0.9);
}

.nav-link {
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    align-items: center;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(6, 182, 212, 0.15), transparent 60%);
    z-index: 1;
}

.hero .overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(6, 182, 212, 0.08), transparent 60%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-weight: 900;
    font-size: 3.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Hero animated background shapes */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: floatShape 12s ease-in-out infinite;
}

.hero-bg-shapes .shape:nth-child(1) {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #06b6d4, transparent);
    top: -80px;
    left: -80px;
    animation-delay: 0s;
    animation-duration: 14s;
}

.hero-bg-shapes .shape:nth-child(2) {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #10b981, transparent);
    bottom: 10%;
    right: 5%;
    animation-delay: -3s;
    animation-duration: 16s;
}

.hero-bg-shapes .shape:nth-child(3) {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #22d3ee, transparent);
    top: 40%;
    left: 60%;
    animation-delay: -6s;
    animation-duration: 18s;
}

.hero-bg-shapes .shape:nth-child(4) {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #06b6d4, transparent);
    bottom: 20%;
    left: 20%;
    animation-delay: -9s;
    animation-duration: 12s;
}

.hero-bg-shapes .shape:nth-child(5) {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #059669, transparent);
    top: -50px;
    right: -50px;
    animation-delay: -4s;
    animation-duration: 15s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(30px, -40px) scale(1.1) rotate(90deg);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9) rotate(180deg);
    }
    75% {
        transform: translate(40px, 30px) scale(1.05) rotate(270deg);
    }
}

.get-started-btn-nav {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.get-started-btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}



.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    border: none !important;
    
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3) !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: white !important;
}
.btn-primary-origin
{
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    border: none !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3) !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: white !important;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4) !important;
}

.btn-outline-primary {
    color: var(--text);
    border: 2px solid var(--primary);
    background: transparent;
    padding: 1rem 2rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--bg);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.4);
}

/* Sections */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-weight: 900 !important;
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
    color: var(--text) !important;
}

.section-subtitle {
    color: var(--text-muted) !important;
    font-size: 1.1rem !important;
    margin-bottom: 3rem !important;
}

/* Glass Cards */
.feature-card,
.doctor-card,
.event-card,
.donation-card,
.orthophony-card {
    background: var(--card) !important;
    backdrop-filter: blur(20px);
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow) !important;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.feature-card::before,
.doctor-card::before,
.event-card::before,
.donation-card::before,
.orthophony-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover,
.doctor-card:hover,
.event-card:hover,
.donation-card:hover,
.orthophony-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: var(--shadow-hover) !important;
    border-color: var(--primary) !important;
}

.feature-card:hover::before,
.doctor-card:hover::before,
.event-card:hover::before,
.donation-card:hover::before,
.orthophony-card:hover::before {
    opacity: 1;
}

.icon-badge {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.25);
    transition: all 0.3s ease;
}

.feature-card:hover .icon-badge {
    transform: scale(1.1) rotate(5deg);
}

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

.avatar {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.doctor-card:hover .avatar,
.event-card:hover .avatar,
.donation-card:hover .avatar,
.orthophony-card:hover .avatar {
    transform: scale(1.1);
}

.pill {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
}

/* Progress Bar */
.progress-wrap {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
    height: 12px;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -100% 0;
    }

    100% {
        background-position: 100% 0;
    }
}

/* Contact */
.contact-card {
    border-radius: 16px !important;
    box-shadow: var(--shadow) !important;
    background: var(--card) !important;
    backdrop-filter: blur(20px);
    border: 1px solid var(--border) !important;
    padding: 2rem !important;
}

.form-control,
.form-select {
    padding: 1rem 1.5rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.8);
    color: var(--text);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
    background: rgba(255, 255, 255, 1);
    outline: none;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 0;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-top: 1px solid rgba(6, 182, 212, 0.2);
    color: #94a3b8;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-in.in-view {
    opacity: 1;
}

.slide-up {
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-up.in-view {
    transform: translateY(0);
    opacity: 1;
}

.slide-right {
    transform: translateX(-50px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-right.in-view {
    transform: translateX(0);
    opacity: 1;
}

.zoom-in {
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.zoom-in.in-view {
    transform: scale(1);
    opacity: 1;
}

/* Responsive */
.bg-dark-section {
    background: var(--bg-section);
    position: relative;
}

.bg-light-section {
    background: var(--bg-light);
    position: relative;
}

.bg-dark-section::before,
.bg-light-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.03), transparent 50%);
    pointer-events: none;
}

/* Form Labels */
.form-label {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Card Body Enhancements */
.card-body {
    position: relative;
    z-index: 1;
}

.card-title {
    color: var(--text) !important;
    font-weight: 700 !important;
}

.card {
    border: none !important;
}

/* Social Links */
.d-flex a {
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.d-flex a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* Alert */
.alert-success {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none;
    color: white;
    border-radius: 16px;
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        min-height: 80vh;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
}

/* Error list  */
/* Styling for the error/success list */
ul.errorList {
    list-style-type: none;
    padding: 0;
    margin: 10px 0;
    direction: rtl;
    /* Ensure correct text direction */
}

/* Base styles for list items */
ul.errorList li {
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition:
        opacity 0.3s ease-out,
        transform 0.3s ease-out,
        max-height 0.3s ease-out;
    overflow: hidden;
    max-height: 100px;
    /* Initial height for animation */
    display: flex;
    align-items: center;
}

/* Animation for showing an item */
ul.errorList li.show {
    opacity: 1;
    transform: translateY(0);
    max-height: 100px;
    /* Final height */
}

/* Animation for hiding an item */
ul.errorList li.hiding {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Specific style for error messages */
ul.errorList li.error-message {
    background-color: #fee2e2;
    /* Light red background */
    color: #dc2626;
    /* Red text */
    border: 1px solid #fecaca;
    /* Red border */
}

/* Specific style for success messages */
ul.errorList li.success-message {
    background-color: #d1fae5;
    /* Light green background */
    color: #059669;
    /* Green text */
    border: 1px solid #a7f3d0;
    /* Green border */
}

/* Optional: Add an icon */
ul.errorList li.error-message::before {
    content: "❌ ";
    /* Or use an icon font like Font Awesome: \f00d */
    margin-left: 8px;
}

ul.errorList li.success-message::before {
    content: "✅ ";
    /* Or use an icon font like Font Awesome: \f00c */
    margin-left: 8px;
}
