:root {
  --primary-color: #0056b3;
  --secondary-color: #00a8cc;
  --accent-color: #f39c12;
  --dark-color: #1a1a1a;
  --light-color: #f4f4f4;
  --text-color: #333;
  --white: #ffffff;
  --transition: all 0.3s ease;
}

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

html,
body {
  width: 100%;
  overflow-x: hidden;
}

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

body {
  font-family: "Tajawal", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

.section-padding {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--primary-color);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: bold;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-color);
  color: var(--white);
}

.btn-primary:hover {
  background: #e67e22;
  transform: translateY(-3px);
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  color: var(--dark-color);
  transition: var(--transition);
}

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

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: url("https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop")
    no-repeat center center/cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 86, 179, 0.8),
    rgba(0, 168, 204, 0.7)
  );
  z-index: 1;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero .subtitle {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 300;
  color: var(--accent-color);
}

.hero .description {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* Event Details */
.event-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 30px 0;
  padding: 25px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
  font-weight: 500;
}

.detail-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* Enhanced Registration Buttons */
.btn-register-visitor,
.btn-register-exhibitor {
  position: relative;
  overflow: hidden;
  padding: 16px 40px !important;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-register-visitor::before,
.btn-register-exhibitor::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.4s ease;
  z-index: -1;
}

.btn-register-visitor:hover::before,
.btn-register-exhibitor:hover::before {
  left: 100%;
}

.btn-register-visitor {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
}

.btn-register-visitor:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

.btn-register-visitor i {
  font-size: 1.3rem;
  animation: slideIn 0.4s ease;
}

.btn-register-exhibitor {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-register-exhibitor:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: white;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-register-exhibitor i {
  font-size: 1.3rem;
}

@keyframes slideIn {
  from {
    transform: translateX(-5px);
    opacity: 0.5;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Button pulse effect on load */
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 4px 25px rgba(243, 156, 18, 0.5);
  }
}

.btn-register-visitor {
  animation: pulse 2s ease-in-out infinite;
}

/* Intro Section */
.intro .row {
  display: flex;
  align-items: center;
  gap: 40px;
}

.intro .col-md-6 {
  flex: 1;
}

.intro h2 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 2rem;
}

.intro p {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #555;
}

.placeholder-img {
  width: 100%;
  height: 300px;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 5rem;
  color: var(--secondary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Vision & Mission */
.bg-light {
  background-color: #f9f9f9;
}

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

.card {
  background: var(--white);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: var(--transition);
  border-bottom: 5px solid transparent;
}

.card:hover {
  transform: translateY(-10px);
  border-bottom-color: var(--accent-color);
}

.card .icon {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.card h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Objectives */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.obj-item {
  text-align: center;
  padding: 30px;
  border: 1px solid #eee;
  border-radius: 10px;
  transition: var(--transition);
}

.obj-item:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.obj-item .icon,
.obj-item i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.obj-item h4 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

/* Forum Banner */
.forum-banner {
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
}

.forum-banner h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.forum-banner p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Topics */
.topic-row {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-right: 5px solid var(--secondary-color);
}

.topic-row.reverse {
  flex-direction: row-reverse;
}

.topic-row:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.topic-image {
  flex: 1;
  height: 300px; /* Fixed height for consistency */
  overflow: hidden;
}

.topic-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.topic-row:hover .topic-image img {
  transform: scale(1.1);
}

.topic-content {
  flex: 1;
  padding: 30px;
}

.topic-content h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.topic-content ul {
  list-style: disc;
  padding-right: 20px;
}

.topic-content ul li {
  margin-bottom: 8px;
  color: #666;
}

/* Sectors & Audience */
.bg-dark {
  background-color: var(--dark-color);
  color: var(--white);
}

.sectors h3 {
  color: var(--accent-color);
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
  display: inline-block;
}

.check-list li {
  margin-bottom: 10px;
  position: relative;
  padding-right: 25px;
}

.check-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 0;
  color: var(--secondary-color);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags span {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.tags span:hover {
  background: var(--secondary-color);
  color: var(--white);
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  color: #ccc;
  padding: 60px 0 20px;
  margin-top: 80px;
  border-top: 2px solid var(--primary-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-section p {
  color: #aaa;
  line-height: 1.8;
  font-size: 0.95rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #aaa;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.contact-item i {
  color: var(--secondary-color);
  font-size: 1.2rem;
  min-width: 20px;
}

.contact-item:hover {
  color: var(--secondary-color);
  transform: translateX(-5px);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-right: 10px;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3rem;
  }

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

  .grid-2,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    right: -100%;
    top: 70px;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    width: 100%;
    text-align: center;
    padding-top: 50px;
    transition: 0.3s;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: block;
  }

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

  .hero .subtitle {
    font-size: 1.4rem;
  }

  .intro .row {
    flex-direction: column;
  }

  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .topic-row {
    flex-direction: column;
  }

  .topic-row.reverse {
    flex-direction: column;
  }

  .topic-content {
    padding: 20px;
  }

  .sectors .row {
    flex-direction: column;
    gap: 40px;
  }

  .section-padding {
    padding: 50px 0;
  }
}

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

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

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .card {
    padding: 25px;
  }
}

/* Exhibitor Profile, Who Should Visit, Visitor Profile */
#exhibitor-profile,
#who-should-visit,
#visitor-profile {
  padding: 80px 0;
}

#who-should-visit {
  background: var(--light-color);
}

.section-content {
  width: 100%;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.title-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.title-icon {
  font-size: 2.2rem;
  color: var(--primary-color);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  margin-bottom: 60px;
}

.info-card {
  background: var(--white);
  padding: 35px 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: translateX(-100%);
  transition: var(--transition);
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.info-card:hover::before {
  transform: translateX(0);
}

.card-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    rgba(0, 86, 179, 0.1),
    rgba(0, 168, 204, 0.1)
  );
  border-radius: 50%;
  transition: var(--transition);
}

.info-card:hover .card-icon {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  transform: scale(1.1) rotate(10deg);
}

.info-card h3 {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-top: 15px;
  line-height: 1.4;
  font-weight: 600;
}

.lang-ar,
.lang-en {
  display: block;
  margin: 5px 0;
}

.lang-ar {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-color);
}

.lang-en {
  font-size: 0.95rem;
  color: #888;
  font-weight: 400;
}

/* Alternating background for cards */
.info-card:nth-child(3n) {
  background: linear-gradient(
    135deg,
    rgba(245, 247, 250, 1),
    rgba(240, 245, 250, 1)
  );
}

.info-card:nth-child(3n):hover {
  background: linear-gradient(
    135deg,
    rgba(245, 247, 250, 1),
    rgba(240, 245, 250, 1)
  );
}

/* Responsive Design */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
  }

  .info-card {
    padding: 30px 20px;
  }

  .card-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
  }

  .info-card h3 {
    font-size: 1.1rem;
  }
}

/* Responsive Hero */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .event-details {
    padding: 20px;
    margin: 20px 0;
  }

  .detail-item {
    font-size: 1rem;
  }

  .hero-buttons {
    gap: 15px;
  }
}

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

  .hero .subtitle {
    font-size: 1.3rem;
  }

  .hero .description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .event-details {
    flex-direction: column;
    padding: 15px;
    margin: 20px 0;
  }

  .detail-item {
    font-size: 0.95rem;
    gap: 10px;
  }

  .detail-item i {
    font-size: 1.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    padding: 12px 25px;
    font-size: 0.95rem;
  }

  .btn-register-visitor,
  .btn-register-exhibitor {
    padding: 14px 30px !important;
    font-size: 1rem;
  }
}

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

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

  .event-details {
    padding: 12px;
    margin: 15px 0;
  }

  .detail-item {
    font-size: 0.85rem;
    gap: 8px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  #exhibitor-profile,
  #who-should-visit,
  #visitor-profile {
    padding: 60px 0;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 18px;
    margin-bottom: 40px;
  }

  .info-card {
    padding: 25px 15px;
  }

  .card-icon {
    font-size: 2.2rem;
    width: 55px;
    height: 55px;
  }

  .info-card h3 {
    font-size: 1rem;
  }

  .lang-ar {
    font-size: 1rem;
  }

  .lang-en {
    font-size: 0.85rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 40px;
  }

  .title-icon {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .card-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
  }

  .info-card {
    padding: 20px 12px;
  }

  .card-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
  }

  .info-card h3 {
    font-size: 0.9rem;
  }

  .lang-ar {
    font-size: 0.9rem;
  }

  .lang-en {
    font-size: 0.75rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .title-icon {
    font-size: 1.5rem;
  }
}

/* Sponsors & Partners Section */
#sponsors {
  padding: 80px 0;
}

.sponsor-category {
  margin-bottom: 60px;
}

.sponsor-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-color);
  font-weight: 700;
  position: relative;
  padding-bottom: 20px;
}

.sponsor-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 2px;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  justify-items: center;
}

.sponsor-card {
  background: var(--white);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  min-width: 150px;
}

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

.sponsor-card img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

@media (max-width: 768px) {
  #sponsors {
    padding: 60px 0;
  }

  .sponsor-category {
    margin-bottom: 40px;
  }

  .sponsor-title {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .sponsors-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }

  .sponsor-card {
    height: 140px;
    min-width: 130px;
    padding: 15px;
  }

  /* Footer responsive */
  footer {
    padding: 40px 0 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-section h4 {
    font-size: 1.1rem;
  }

  .footer-links a:hover {
    padding-right: 0;
  }

  .contact-item:hover {
    transform: translateX(0);
  }
}
