/* Global Styles */
:root {
    --primary: #0d261f;
    --secondary: #c9b67a;
    --light: #f5f5f5;
    --dark: #1a3a30;
    --white: #ffffff;
    --black: #000000;
    --text-color: #333333;
    --text-light: #666666;
    --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
    direction: rtl;
}

body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: #f8f5f0; /* Light beige background from the image */
    overflow-x: hidden;
    padding-top: 80px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark);
}

a {
    text-decoration: none;
    transition: var(--transition);
    color: var(--primary);
}

a:hover {
    color: var(--secondary);
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: var(--secondary);
}

/* Navbar */
.navbar {
    background-color: var(--dark) !important;
    padding: 1rem 0;
    transition: var(--transition);
    border-bottom: 2px solid var(--secondary);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 40px;
    margin-left: 10px;
}

.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    margin: 0 0.25rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    right: auto;
    left: 0;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    background-color: #f8f5f0; /* Matching the background color */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('path/to/your/background-pattern.png') repeat;
    opacity: 0.05;
    z-index: 0;
}

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

.hero h1 {
    font-size: 3.5rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    min-height: 2.5rem;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    background: var(--white);
    margin-bottom: 30px;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 2px solid transparent;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--dark);
    border-color: var(--secondary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Flower Section */
.flower-section {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0d261f;
  padding: 100px 0;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(100%);
  transition: transform 0.5s ease-out;
  z-index: 1000;
}

.flower-section.visible {
  transform: translateY(0);
}

.flowers {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flower {
  position: relative;
  width: 100%;
  height: 100%;
}

.flower__leafs {
  position: absolute;
  width: 100px;
  height: 100px;
  margin: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: bloom 2s ease forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

.flower__leaf {
  position: absolute;
  width: 40px;
  height: 80px;
  background: #6bd5e1;
  border-radius: 50%;
  transform-origin: bottom center;
  opacity: 0;
  animation: fadeInScale 0.5s ease forwards;
}

.flower__leaf--1 { transform: rotate(0deg) translateY(-20px); animation-delay: 1s; }
.flower__leaf--2 { transform: rotate(90deg) translateY(-20px); animation-delay: 1.2s; }
.flower__leaf--3 { transform: rotate(180deg) translateY(-20px); animation-delay: 1.4s; }
.flower__leaf--4 { transform: rotate(270deg) translateY(-20px); animation-delay: 1.6s; }

.flower__white-circle {
  width: 30px;
  height: 30px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: scaleIn 0.5s ease forwards;
  animation-delay: 2s;
  opacity: 0;
}

@keyframes bloom {
  from { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes scaleIn {
  from { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .section {
        padding: 80px 0;
    }

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

    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .section {
        padding: 60px 0;
    }

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

    .hero {
        text-align: center;
        padding: 100px 0 60px;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .profile-image {
        max-width: 300px;
        margin: 0 auto 2rem;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    .navbar-brand img {
        height: 30px;
    }

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

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

    .card-body {
        padding: 1.5rem;
    }
}