/* ============================================
   Frontend Styles - Masark Learn Design (Original)
   Based on learn-saudi-english React design
   ============================================ */

:root {
    /* Colors - Masark Learn Brand Colors */
    --primary: 210 55% 23%;
    /* Navy #1B365D */
    --primary-foreground: 0 0% 100%;
    --secondary: 38 35% 60%;
    /* Gold #C4A46F */
    --secondary-foreground: 220 15% 20%;
    --background: 0 0% 100%;
    --foreground: 220 15% 20%;
    --muted: 220 10% 95%;
    --muted-foreground: 220 10% 45%;
    --card: 0 0% 100%;
    --card-foreground: 220 15% 20%;
    --border: 220 15% 90%;
    --input: 220 15% 90%;
    --ring: 210 55% 23%;
    /* Navy #1B365D */
    --radius: 0.75rem;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1B365D, #2d5080);
    --gradient-secondary: linear-gradient(135deg, #C4A46F, #b8946a);
    --gradient-hero: linear-gradient(135deg, #1B365D 0%, #2d5080 50%, #C4A46F 100%);

    /* Shadows */
    --shadow-soft: 0 4px 24px -8px hsl(220 85% 50% / 0.15);
    --shadow-glow: 0 0 40px hsl(220 85% 50% / 0.25);
}

/* ============================================
   Base Styles
   ============================================ */

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

body {
    font-family: 'Cairo', 'Poppins', sans-serif;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    direction: rtl;
}

html {
    direction: rtl;
}

[dir="ltr"] body,
[dir="ltr"] html {
    direction: ltr;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: hsl(var(--background) / 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid hsl(var(--border) / 0.5);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.navbar .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
    margin-inline-start: 15px;

}

.navbar-brand:hover {
    opacity: 0.8;
}

.navbar-logo {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.navbar-brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .navbar-nav {
        display: flex;
    }
}

.nav-link {
    color: hsl(var(--foreground) / 0.8);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: hsl(var(--primary));
    font-weight: 700;
}

.navbar-actions {
    display: none;
    align-items: center;
    gap: 0.75rem;
    margin-left: 15px;
}

@media (min-width: 768px) {
    .navbar-actions {
        display: flex;
    }
}

.navbar-toggler {
    display: block;
    padding: 12px;
    margin: -4px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: hsl(var(--foreground));
    z-index: 1500;
    position: relative;
}

@media (min-width: 768px) {
    .navbar-toggler {
        display: none;
    }
}

/* Mobile Menu Backdrop */
.navbar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.navbar-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.navbar-mobile {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    background: hsl(var(--background));
    z-index: 1300;
    display: flex !important;
    /* Force flex but use transform for hiding */
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    opacity: 0;
    padding: 0;
    border-top: none;
}

[dir="ltr"] .navbar-mobile {
    right: auto;
    left: 0;
    transform: translateX(-100%);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.navbar-mobile.open {
    transform: translateX(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.navbar-mobile-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid hsl(var(--border) / 0.5);
    background: hsl(var(--background));
}

.navbar-close {
    background: transparent;
    border: none;
    padding: 0.5rem;
    color: hsl(var(--foreground));
    cursor: pointer;
}

.navbar-mobile-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.navbar-mobile .nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    border-bottom: 1px solid hsl(var(--border) / 0.3);
    color: hsl(var(--foreground));
}

.navbar-mobile .nav-link:last-child {
    border-bottom: none;
}

.navbar-mobile .nav-link.active {
    color: hsl(var(--primary));
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    border-radius: calc(var(--radius) - 2px);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.5;
}

.btn-primary {
    background: var(--gradient-primary);
    color: hsl(var(--primary-foreground));
    font-weight: 700;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    font-weight: 700;
}

.btn-secondary:hover {
    background: hsl(45, 90%, 50%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.btn-outline {
    background: transparent;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
}

.btn-outline:hover {
    background: hsl(var(--muted));
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    height: 56px;
}

.btn-ghost {
    background: transparent;
    color: hsl(var(--foreground));
}

.btn-ghost:hover {
    background: hsl(var(--muted));
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--gradient-hero);
    padding: 4rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='grid' width='40' height='40' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 40 0 L 0 0 0 40' fill='none' stroke='white' stroke-opacity='0.1' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23grid)'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-text {
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-text {
        text-align: right;
    }
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-title-highlight {
    display: block;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .hero-subtitle {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    padding-top: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .hero-buttons {
        justify-content: center;
    }
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: center;
    padding-top: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 1024px) {
    .hero-stats {
        justify-content: flex-end;
    }
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    color: hsl(var(--secondary));
}

.hero-stat-label {
    font-size: 0.875rem;
}

.hero-divider {
    height: 3rem;
    width: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.hero-image-wrapper {
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-secondary);
    filter: blur(48px);
    opacity: 0.2;
    border-radius: 9999px;
}

.hero-image {
    position: relative;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    width: 100%;
    height: auto;
}

/* ============================================
   Sections
   ============================================ */

.section {
    padding: 5rem 0;
}

.section-muted {
    background: hsl(var(--muted) / 0.3);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-title-highlight {
    color: hsl(var(--primary));
}

.section-subtitle {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    max-width: 42rem;
    margin: 0 auto;
}

/* ============================================
   Cards
   ============================================ */

.card {
    background: hsl(var(--card));
    color: hsl(var(--card-foreground));
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-soft);
    transform: translateY(-8px);
}

.card-glow {
    border-color: hsl(var(--primary));
    box-shadow: var(--shadow-glow);
}

.card-icon {
    background: var(--gradient-primary);
    padding: 0.75rem;
    border-radius: 0.75rem;
    width: fit-content;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.card-description {
    color: hsl(var(--muted-foreground));
}

/* ============================================
   Features Section
   ============================================ */

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   Pricing Section
   ============================================ */

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pricing-card {
    position: relative;
    padding: 2rem;
}

.pricing-card.popular {
    border-color: hsl(var(--primary));
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: hsl(var(--secondary-foreground));
    font-weight: 700;
}

.pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pricing-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-description {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 2.25rem;
    font-weight: 700;
    color: hsl(var(--primary));
    margin-bottom: 0.5rem;
}

.pricing-period {
    color: hsl(var(--muted-foreground));
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.pricing-feature-icon {
    color: hsl(var(--primary));
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.pricing-feature-text {
    font-size: 0.875rem;
}

/* ============================================
   Testimonials Section
   ============================================ */

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 72rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-rating-star {
    color: hsl(var(--secondary));
    fill: hsl(var(--secondary));
}

.testimonial-text {
    color: hsl(var(--foreground));
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
}

.testimonial-info-name {
    font-weight: 700;
}

.testimonial-info-role {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

/* ============================================
   Courses Section
   ============================================ */

.courses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.course-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
    border-color: hsl(var(--primary) / 0.3);
}

.course-card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: hsl(var(--muted));
}

.course-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-card-image {
    transform: scale(1.05);
}

.course-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    position: relative;
}

.course-card-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
}

.course-card-image-placeholder i {
    width: 64px;
    height: 64px;
    color: white;
    z-index: 1;
    opacity: 0.9;
}

.course-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px;
}

.course-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: hsl(var(--foreground));
    line-height: 1.4;
}

.course-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.course-card-title a:hover {
    color: hsl(var(--primary));
}

.course-card-description {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.course-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--border) / 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.course-card-price {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.course-card-price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--primary));
    line-height: 1.2;
}

.course-card-price-range {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--primary));
    line-height: 1.2;
}

.course-card-price-label {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.course-card-button {
    flex-shrink: 0;
    white-space: nowrap;
}

/* ============================================
   About Page
   ============================================ */

.about-hero {
    position: relative;
    padding: 5rem 0;
    background: var(--gradient-hero);
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='grid' width='40' height='40' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 40 0 L 0 0 0 40' fill='none' stroke='white' stroke-opacity='0.1' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23grid)'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.about-hero-content {
    position: relative;
    z-index: 10;
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
    color: white;
    padding: 0 1rem;
}

.about-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .about-hero-title {
        font-size: 3rem;
    }
}

.about-hero-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.75;
}

@media (min-width: 768px) {
    .about-hero-text {
        font-size: 1.25rem;
    }
}

.about-mission {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-mission {
        grid-template-columns: 1fr 1fr;
    }
}

.about-mission-image {
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    width: 100%;
    height: auto;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .about-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.about-stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: hsl(var(--primary));
    margin-bottom: 0.5rem;
    text-align: center;
}

.about-stat-label {
    color: hsl(var(--muted-foreground));
    text-align: center;
}

.about-values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .about-values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .about-values-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.about-team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 80rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .about-team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.team-member-avatar {
    width: 8rem;
    height: 8rem;
    border-radius: 9999px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

/* ============================================
   Contact Page
   ============================================ */

.contact-hero {
    position: relative;
    padding: 5rem 0;
    background: var(--gradient-hero);
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='grid' width='40' height='40' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 40 0 L 0 0 0 40' fill='none' stroke='white' stroke-opacity='0.1' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23grid)'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.contact-hero-content {
    position: relative;
    z-index: 10;
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
    color: white;
    padding: 0 1rem;
}

.contact-hero-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    color: white;
}

.contact-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .contact-hero-title {
        font-size: 3rem;
    }
}

.contact-hero-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 768px) {
    .contact-hero-text {
        font-size: 1.25rem;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.contact-form-card {
    padding: 2rem;
}

.contact-form-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-form-group {
    margin-bottom: 1.5rem;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .contact-form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.contact-form-input,
.contact-form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid hsl(var(--input));
    border-radius: calc(var(--radius) - 2px);
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form-input:focus,
.contact-form-textarea:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

.contact-form-textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-info-card {
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-icon {
    background: var(--gradient-primary);
    padding: 0.75rem;
    border-radius: 0.75rem;
    color: white;
    flex-shrink: 0;
}

.contact-info-title {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.contact-info-value {
    color: hsl(var(--muted-foreground));
}

.contact-info-value a {
    color: hsl(var(--primary));
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-value a:hover {
    color: hsl(var(--primary));
    text-decoration: underline;
}

.contact-hours-card {
    padding: 1.5rem;
}

.contact-hours-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.contact-hours-title {
    font-weight: 700;
    font-size: 1.125rem;
}

.contact-hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid hsl(var(--border));
}

.contact-hours-item:last-child {
    border-bottom: none;
}

.contact-hours-day {
    font-size: 0.875rem;
    font-weight: 500;
}

.contact-hours-time {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.contact-cta-card {
    padding: 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius);
}

.contact-cta-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.contact-cta-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.contact-map {
    aspect-ratio: 16 / 9;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: var(--radius);
    overflow: hidden;
}

.contact-map-content {
    text-align: center;
}

.contact-map-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
}

.contact-map-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-map-text {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: hsl(var(--primary));
    color: white;
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    line-height: 1.75;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: transparent;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.footer-social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.footer-section-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: hsl(var(--secondary));
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
}

.footer-contact-icon {
    color: hsl(var(--secondary));
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   Forms
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid hsl(var(--input));
    border-radius: calc(var(--radius) - 2px);
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 3px hsl(var(--ring) / 0.1);
}

.form-input.is-invalid,
.form-textarea.is-invalid {
    border-color: hsl(0, 84%, 60%);
}

.invalid-feedback {
    display: block;
    color: hsl(0, 84%, 60%);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.alert-success {
    background: hsl(142, 76%, 36% / 0.1);
    color: hsl(142, 76%, 36%);
    border: 1px solid hsl(142, 76%, 36% / 0.2);
}

.alert-danger {
    background: hsl(0, 84%, 60% / 0.1);
    color: hsl(0, 84%, 60%);
    border: 1px solid hsl(0, 84%, 60% / 0.2);
}

.alert ul {
    margin-top: 0.5rem;
    padding-right: 1.5rem;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* ============================================
   Utilities
   ============================================ */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 767px) {
    .hero-title {
        font-size: 1.875rem;
    }

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

    .pricing-card.popular {
        transform: scale(1);
    }
}

/* ============================================
   User Dropdown (Custom)
   ============================================ */

.user-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: hsl(var(--foreground));
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    top: 120%;
    right: 0;
    left: auto;
    z-index: 100;
    min-width: 220px;
    padding: 0.5rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

[dir='rtl'] .user-dropdown-menu {
    right: auto;
    left: 0;
}

.user-dropdown-menu.show {
    display: block;
    animation: fadeIn 0.15s ease-out;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: hsl(var(--foreground));
    text-decoration: none;
    border-radius: calc(var(--radius) - 4px);
    transition: all 0.2s;
    font-weight: 500;
}

.user-dropdown-item:hover {
    background: hsl(var(--muted));
    color: hsl(var(--primary));
}

.user-dropdown-item.text-danger {
    color: #ef4444;
}

.user-dropdown-item.text-danger:hover {
    background: #fef2f2;
    color: #ef4444;
}

.user-dropdown-divider {
    height: 1px;
    background: hsl(var(--border));
    margin: 0.5rem 0;
}


.navbar-nav {
    margin: 0 auto;
}