@import url("https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&family=Cairo:wght@200..1000&family=Noto+Kufi+Arabic&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

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

body {
  font-family: "Cairo", "Arial", sans-serif;
  background: linear-gradient(135deg, #1a1611 0%, #2a2520 100%);
  color: #f4f1e8;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

@keyframes goldShine {
  0%,
  100% {
    background-position: 0% 50%;
  }

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

.header nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.header nav a {
  color: #f4f1e8;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
}

.header nav a:hover {
  color: #daa520;
  transform: translateY(-2px);
}

.header nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #daa520, #b8860b, #daa520);
  transition: width 0.3s ease;
}

.header nav a:hover::after {
  width: 100%;
}

/* Main Layout - Fixed Profile */
.main-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  position: relative;
}

[dir="rtl"] .achievements-list,
[dir="rtl"] .projects-sub {
  text-align: right;
  padding-right: 20px;
  padding-left: 0;
}

.profile-section {
  width: 500px;
  min-width: 350px;
  position: sticky;
  top: 20px;
  height: fit-content;
  background: linear-gradient(
    135deg,
    rgba(42, 37, 32, 0.95) 0%,
    rgba(26, 22, 17, 0.95) 100%
  );
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(184, 134, 11, 0.3);
  box-shadow: 0 8px 32px rgba(184, 134, 11, 0.1);
  text-align: center;
  z-index: 10;
}

.scrollable-content {
  flex: 1;
  min-width: 0;
}

/* Profile Section Styles */
.profile-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(45deg, #daa520, #b8860b, #cd853f);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(184, 134, 11, 0.5);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(184, 134, 11, 0.2);
}

.profile-image img {
  position: relative;
  z-index: 2;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  display: block;
}

.profile-name {
  font-size: 1.5rem;
  color: #daa520;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(184, 134, 11, 0.3);
}

.profile-title {
  color: #f4f1e8;
  margin-bottom: 15px;
}

.status {
  display: inline-block;
  padding: 5px 15px;
  background: rgba(184, 134, 11, 0.1);
  border: 1px solid rgba(184, 134, 11, 0.4);
  border-radius: 20px;
  color: #daa520;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.contact-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(45deg, #daa520, #b8860b);
  color: #1a1611;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.2);
}

.btn-secondary {
  background: rgba(184, 134, 11, 0.1);
  color: #daa520;
  border: 1px solid rgba(184, 134, 11, 0.4);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(45deg, #b8860b, #daa520);
}

.btn-secondary:hover {
  background: rgba(184, 134, 11, 0.2);
}

/* Cards */
.card {
  background: linear-gradient(
    135deg,
    rgba(42, 37, 32, 0.8) 0%,
    rgba(26, 22, 17, 0.8) 100%
  );
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 25px;
  border: 1px solid rgba(184, 134, 11, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  margin-bottom: 25px;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #daa520, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(184, 134, 11, 0.4);
  box-shadow: 0 8px 24px rgba(184, 134, 11, 0.15);
}

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

/* Video Section */
.video-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(45deg, #2a2520, #1a1611);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
}

.play-button {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #daa520, #b8860b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

.play-button:hover {
  background: linear-gradient(135deg, #b8860b, #daa520);
  transform: scale(1.1);
}

.play-button::after {
  content: "▶";
  color: #1a1611;
  font-size: 20px;
  margin-right: -3px;
}

.video-title {
  font-size: 1.1rem;
  color: #daa520;
  margin-bottom: 10px;
}

/* Company Profiles */
.company-section {
  text-align: center;
}

.company-logo {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, #b8860b, #daa520 60%, #cd853f);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(184, 134, 11, 0.2);
}

.company-logo::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.8s ease;
}

.company-logo:hover::before {
  left: 100%;
}

.company-name {
  font-size: 2rem;
  font-weight: bold;
  color: #1a1611;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.company-subtitle {
  color: #daa520;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.company-description {
  line-height: 1.8;
  color: #f4f1e8;
}

/* News Section */
.news-section {
  margin-top: 40px;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.news-title {
  font-size: 2rem;
  color: #daa520;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.news-card {
  background: linear-gradient(
    135deg,
    rgba(42, 37, 32, 0.8) 0%,
    rgba(26, 22, 17, 0.8) 100%
  );
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(184, 134, 11, 0.2);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(184, 134, 11, 0.15);
}

.news-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(45deg, #daa520, #b8860b);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-content {
  padding: 20px;
}

.news-card-title {
  font-size: 1.2rem;
  color: #daa520;
  margin-bottom: 10px;
}

.news-description {
  color: #f4f1e8;
  line-height: 1.6;
}

/* -------------- PROJECT BOX ---------------- */
.project-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
}

.project-box {
  cursor: pointer;
  flex: 1 1 250px;
  min-width: 250px;
  max-width: 320px;
  background: #202020;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  margin: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
}

/* -------------- STUDY BOX ---------------- */
.study-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.study-box {
  background: #202020;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.study-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #daa520;
}

.study-subtitle {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #f4f1e8;
}

.study-description {
  color: #f4f1e8;
  line-height: 1.6;
}

/* Footer Styles */
footer {
  background: linear-gradient(90deg, #1a1611 0%, #2a2520 100%);
  color: #daa520;
  padding: 40px 0 0 0;
  margin-top: 60px;
  border-top: 1px solid rgba(184, 134, 11, 0.18);
  box-shadow: 0 -4px 32px rgba(184, 134, 11, 0.08);
}

.top-footer {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  color: #daa520;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.middle-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}

.footer-menu {
  list-style: none;
  display: flex;
  gap: 32px;
  padding: 0;
  margin: 0;
}

.footer_menu_list a {
  color: #f4f1e8;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.footer_menu_list a:hover {
  color: #daa520;
}

.footer-social-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
}

.footer-social-icons .icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #daa520 60%, #b8860b 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1611;
  font-size: 1.5rem;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.12);
  transition: background 0.3s, color 0.3s, transform 0.2s;
  cursor: pointer;
}

.footer-social-icons .icon:hover {
  background: linear-gradient(135deg, #b8860b 60%, #daa520 100%);
  color: #fff8dc;
  transform: scale(1.1);
}

.bottom-footer {
  text-align: center;
  color: #b8860b;
  font-size: 1rem;
  padding: 18px 0 0 0;
  border-top: 1px solid rgba(184, 134, 11, 0.12);
  margin-top: 18px;
}

.bottom-footer a {
  color: #daa520;
  text-decoration: none;
  font-weight: bold;
}

@media (max-width: 600px) {
  .footer-menu {
    flex-direction: column;
    gap: 12px;
  }
  .top-footer {
    font-size: 1.2rem;
  }
  .footer-social-icons .icon {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }
}

/* Hide section-nav on mobile */
@media (max-width: 768px) {
  .section-nav {
    display: none !important;
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .main-layout {
    flex-direction: column;
  }

  .profile-section {
    position: static;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 30px;
  }

  .scrollable-content {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .header h1 {
    font-size: 1.5rem;
  }

  .header nav {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .profile-section {
    padding: 20px;
  }

  .card {
    padding: 20px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .header h1 {
    font-size: 1.3rem;
  }

  .header nav a {
    font-size: 1rem;
  }

  .card {
    padding: 15px;
  }

  .company-name {
    font-size: 1.5rem;
  }

  .profile-image {
    width: 200px;
    height: 200px;
  }

  .profile-name {
    font-size: 1.3rem;
  }
}

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

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

.card {
  animation: fadeInUp 0.6s ease forwards;
}

.card:nth-child(2) {
  animation-delay: 0.2s;
}

.card:nth-child(3) {
  animation-delay: 0.4s;
}

.site-title {
  color: var(--first-color);
  background: linear-gradient(90deg, #000 0%, #ffd700 50%, #000 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
  font-size: 2rem;
  margin: 0;
  padding: 0;
}

@media (max-width: 600px) {
  .site-title {
    font-size: 1.1rem;
  }
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}