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

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  color: #e0e0e0;
  min-height: 100vh;
}

header {
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.2);
  backdrop-filter: blur(35px) saturate(200%);
  -webkit-backdrop-filter: blur(35px) saturate(200%);
  z-index: 100;
  box-shadow: 0 8px 40px rgba(0, 255, 255, 0.2);
  border-bottom: 1px solid rgba(0, 255, 255, 0.4);
  border-radius: 0 0 25px 25px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-weight: 600;
  font-size: 1.5rem;
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links li a {
  text-decoration: none;
  color: #e0e0e0;
  font-weight: 500;
  transition: 0.3s;
  position: relative;
  padding: 5px 10px;
}

.nav-links li a:hover {
  color: #00ffff;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00ffff, #ff00ff);
  transition: width 0.3s ease;
}

.nav-links li a:hover::after {
  width: 100%;
}

.section {
  padding: 0 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.full-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.container {
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

/* Home */
.home-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.home-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.home-img {
  flex-shrink: 0;
  position: relative;
}

.home-img::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg, #00ffff, #ff00ff, #00ff00, #00ffff);
  border-radius: 50%;
  z-index: -1;
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.home-img img {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 8px 25px rgba(0, 255, 255, 0.3);
  border: 4px solid #1a1a2e;
  position: relative;
  z-index: 1;
}

.home-text {
  flex: 1;
  text-align: left;
}

.home-text h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #00ffff;
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.home-text p {
  font-size: 1.1rem;
  color: #b0b0b0;
  line-height: 1.8;
  margin-bottom: 15px;
}

/* About */
.profiles {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
}

.profiles img {
  width: 60px;
  height: 60px;
  transition: transform 0.3s;
  filter: brightness(0.8) contrast(1.2);
  border-radius: 10px;
}

.profiles img:hover {
  transform: scale(1.1);
  filter: brightness(1) contrast(1.2) drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
}

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

.skills img {
  width: 70px;
  height: 70px;
  transition: transform 0.3s;
  filter: brightness(0.8) contrast(1.2);
  border-radius: 10px;
}

.skills img:hover {
  transform: scale(1.1);
  filter: brightness(1) contrast(1.2) drop-shadow(0 0 15px rgba(0, 255, 255, 0.6));
}

/* Projects */
.grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: rgba(26, 26, 46, 0.8);
  border-radius: 15px;
  overflow: hidden;
  width: 300px;
  text-decoration: none;
  color: #e0e0e0;
  box-shadow: 0 4px 20px rgba(0, 255, 255, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 255, 255, 0.3);
  border-color: rgba(0, 255, 255, 0.5);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: rgba(10, 10, 10, 0.9);
  filter: brightness(0.8) contrast(1.1);
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #00ffff;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.card-body p {
  color: #b0b0b0;
  line-height: 1.6;
}

/* Certifications */
.cert-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
}

.cert-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.cert-item {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid rgba(0, 255, 255, 0.2);
  background: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(10px);
}

.cert-item:hover {
  transform: scale(1.05);
  border-color: rgba(0, 255, 255, 0.6);
  box-shadow: 0 8px 30px rgba(0, 255, 255, 0.3);
}

.cert-item img {
  width: 300px;
  height: 200px;
  object-fit: contain;
  background: rgba(10, 10, 10, 0.9);
  display: block;
  transition: all 0.3s ease;
}

.cert-name {
  padding: 15px;
  text-align: center;
  color: #00ffff;
  font-weight: 600;
  font-size: 1rem;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
  background: rgba(26, 26, 46, 0.9);
  border-top: 1px solid rgba(0, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.cert-item:hover .cert-name {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
  background: rgba(26, 26, 46, 1);
  border-top-color: rgba(0, 255, 255, 0.5);
}

.cert-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cert-item:hover .cert-overlay {
  opacity: 1;
}

.cert-overlay span {
  color: #00ffff;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
  font-size: 1.1rem;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  margin: 5% auto;
  padding: 20px;
  width: 90%;
  max-width: 800px;
  text-align: center;
  background: rgba(26, 26, 46, 0.95);
  border-radius: 20px;
  border: 2px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 50px rgba(0, 255, 255, 0.2);
}

.close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #00ffff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 1001;
}

.close:hover {
  color: #ff00ff;
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

#modalImage {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 15px;
}

#modalTitle {
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
  margin: 0;
}

/* Section Headers */
.section h2 {
  color: #00ffff;
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
  margin-bottom: 30px;
  font-size: 2.5rem;
  position: relative;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #00ffff, #ff00ff);
  border-radius: 2px;
}

.section h3 {
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
  margin-bottom: 20px;
}

/* Footer */
footer {
  background: rgba(10, 10, 10, 0.2);
  backdrop-filter: blur(35px) saturate(200%);
  -webkit-backdrop-filter: blur(35px) saturate(200%);
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid rgba(0, 255, 255, 0.4);
  border-radius: 25px 25px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 255, 255, 0.2);
}

footer h2 {
  color: #00ffff;
  text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
  margin-bottom: 20px;
}

footer a {
  color: #00ffff;
  text-decoration: none;
  transition: 0.3s;
}

footer a:hover {
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
  .home-content {
    flex-direction: column;
    text-align: center;
  }

  .home-img img {
    width: 300px;
    height: 300px;
  }

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

  .navbar {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cert-row {
    flex-direction: column;
    align-items: center;
  }

  .cert-item img {
    width: 280px;
    height: 180px;
  }

  .modal-content {
    width: 95%;
    margin: 10% auto;
  }
}