:root {
  --primary-color: #2b6cb0;
  --secondary-color: #4299e1;
  --accent-color: #63b3ed;
  --text-color: #2d3748;
  --light-bg: #f7fafc;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

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

body {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
}

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

.navbar {
  background: var(--gradient);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 50px;
}

.logo {
  color: var(--white);
  font-size: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 5px;
}

.nav-links li a {
  color: var(--white);
  text-decoration: none;
  padding: 0.5rem 1rem;
  display: inline-block;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.nav-links a.active {
  color: var(--accent-color);
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient);
  opacity: 0.8;
  z-index: 1;
}

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

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.social-links {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.social-link {
  color: var(--white);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  display: inline-block;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 55px;
  width: 55px;
}

.social-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

section {
  padding: 5rem 0;
  position: relative;
}

section h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
  font-size: 2.5rem;
  position: relative;
}

section h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--gradient);
  margin: 1rem auto;
  border-radius: 3px;
}

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

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

.stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}

.stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.skill-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.skill-card i {
  font-size: 2.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

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

.project-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card h3 {
  color: var(--primary-color);
  margin: 1rem;
  font-size: 1.5rem;
}

.project-card p {
  color: var(--text-color);
  margin: 0 1rem;
  flex-grow: 1;
}

.project-link {
  display: inline-block;
  margin: 1rem;
  padding: 0.8rem 1.5rem;
  background: var(--gradient);
  color: var(--white);
  border-radius: 25px;
  transition: all 0.3s ease;
  text-align: center;
}

.project-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
}

.dis-btn {
  background: linear-gradient(135deg, #535353, #8f8f8f);
  cursor: no-drop;
}

.dis-btn:hover {
  box-shadow: 0 4px 15px rgba(83, 83, 83, 0.3);
}

.discord-servers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.discord-server-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.discord-server-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.discord-server-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.discord-server-card:hover img {
  transform: scale(1.05);
}

.discord-server-card h3 {
  color: var(--primary-color);
  margin: 1rem;
  font-size: 1.5rem;
}

.discord-server-card p {
  color: var(--text-color);
  margin: 0 1rem;
  flex-grow: 1;
}

.server-stats {
  display: flex;
  justify-content: space-around;
  padding: 1rem;
  background: #e3f2fc;
  margin: 1rem 1rem 0 1rem;
  border-radius: 10px;
}

.server-stats span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
}

.server-stats i {
  color: var(--secondary-color);
}

.discord-invite {
  display: inline-block;
  margin: 1rem;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, #5769ad, #7289da);
  color: var(--white);
  border-radius: 25px;
  transition: all 0.3s ease;
  text-align: center;
}

.discord-invite:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(87, 106, 173, 0.3)
}

footer {
  background: var(--gradient);
  color: var(--white);
  text-align: center;
  padding: 1.5rem 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 800px) {
  .hideMobile {
    display: none;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

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

.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.image-modal.active {
  display: flex;
}

.modal-content {
  max-width: 90%;
  max-height: 90vh;
  position: relative;
}

.modal-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-modal:hover {
  color: red;
}

.project-card img,
.discord-server-card img {
  cursor: pointer;
}