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

body {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0a0a0a;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 150, 199, 0.4), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(105, 179, 231, 0.4), transparent 50%),
    radial-gradient(circle at 40% 90%, rgba(0, 119, 182, 0.3), transparent 50%),
    linear-gradient(180deg, #0a1929 0%, #0d2137 100%);
  z-index: -1;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 15, 25, 0.7);
  backdrop-filter: blur(30px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.2rem 3rem;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 150, 199, 0.6), transparent);
}

nav .nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: -1px;
  transition: all 0.3s ease;
  text-shadow: 0 2px 10px rgba(0, 150, 199, 0.5);
}

nav .logo:hover {
  transform: scale(1.05);
  text-shadow: 0 4px 20px rgba(0, 150, 199, 0.8);
}

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

nav .nav-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

nav .nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 150, 199, 0.3), rgba(105, 179, 231, 0.3));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

nav .nav-links a:hover::before {
  opacity: 1;
}

nav .nav-links a:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 150, 199, 0.4);
}

nav .nav-links a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0096c7, #69b3e7);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
  border-radius: 2px;
}

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

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  transition: all 0.3s ease;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 150, 199, 0.3);
}

.mobile-menu-toggle:hover span {
  background: #0096c7;
  box-shadow: 0 0 15px rgba(0, 150, 199, 0.6);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

header {
  padding: 140px 20px 80px;
  text-align: center;
  margin-top: 60px;
  position: relative;
}

header::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 150, 199, 0.2), transparent 70%);
  filter: blur(60px);
  z-index: -1;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

header img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid transparent;
  background: linear-gradient(#0a1929, #0a1929) padding-box,
              linear-gradient(135deg, #0096c7, #69b3e7, #0077b6) border-box;
  box-shadow: 
    0 0 60px rgba(0, 150, 199, 0.5),
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 0 20px rgba(255, 255, 255, 0.05);
  margin-bottom: 40px;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

header img:hover {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 
    0 0 80px rgba(0, 150, 199, 0.7),
    0 30px 80px rgba(0, 0, 0, 0.6);
}

header h1 {
  font-size: 3.5rem;
  font-weight: 900;
  margin: 30px 0;
  background: linear-gradient(135deg, #fff 0%, #0096c7 50%, #69b3e7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px;
  text-shadow: 0 0 80px rgba(0, 150, 199, 0.5);
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.2); }
}

header p {
  font-size: 1.15rem;
  max-width: 750px;
  margin: 0 auto 40px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  letter-spacing: 0.3px;
}

section {
  padding: 80px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.box {
  background: rgba(20, 20, 35, 0.6);
  backdrop-filter: blur(40px) saturate(180%);
  border-radius: 24px;
  padding: 50px;
  margin: 40px auto;
  max-width: 1100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 150, 199, 0.15), transparent);
  transition: left 0.8s ease;
}

.box:hover::before {
  left: 100%;
}

.box:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 30px 80px rgba(0, 150, 199, 0.4),
    0 0 60px rgba(0, 150, 199, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(0, 150, 199, 0.4);
}

.box h2 {
  font-size: 2.5rem;
  margin-bottom: 35px;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(135deg, #fff, #0096c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.box h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.box p {
  font-size: 1.1rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

.skills-category {
  margin: 40px 0;
}

.skills-category h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  font-weight: 700;
  color: #fff;
  text-align: left;
  padding-left: 10px;
  border-left: 4px solid;
  border-image: linear-gradient(135deg, #0096c7, #69b3e7) 1;
}

.skills-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 25px;
}

.skill,
.project {
  background: rgba(30, 30, 50, 0.5);
  backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.skill::before,
.project::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0096c7, #69b3e7);
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

.skill:hover::before,
.project:hover::before {
  transform: scaleX(1);
}

.skill:hover,
.project:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 
    0 25px 60px rgba(0, 150, 199, 0.5),
    0 0 40px rgba(0, 150, 199, 0.3);
  background: rgba(40, 40, 60, 0.7);
  border-color: rgba(0, 150, 199, 0.5);
}

.skill i,
.project i {
  font-size: 3.5rem;
  margin-bottom: 20px;
  display: block;
  transition: all 0.5s ease;
  filter: drop-shadow(0 0 20px currentColor);
}

.skill:hover i,
.project:hover i {
  transform: scale(1.1) rotateY(360deg);
}

.skill p,
.project p {
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.web i { 
  color: #ffd700;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}
.education i {
  color: #fbbf24;
  text-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
}

.football i {
  color: #4ade80;
  text-shadow: 0 0 30px rgba(74, 222, 128, 0.5);
}
.portfolio i { 
  color: #60a5fa;
  text-shadow: 0 0 30px rgba(96, 165, 250, 0.5);
}
.blog i { 
  color: #f87171;
  text-shadow: 0 0 30px rgba(248, 113, 113, 0.5);
}
.tracker i { 
  color: #34d399;
  text-shadow: 0 0 30px rgba(52, 211, 153, 0.5);
}

.view-details {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: rgba(0, 150, 199, 0.2);
  border: 1px solid rgba(0, 150, 199, 0.4);
  border-radius: 8px;
  color: #0096c7;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.project:hover .view-details {
  background: rgba(0, 150, 199, 0.4);
  border-color: #0096c7;
  color: #fff;
  transform: translateX(5px);
}

.slideshow-container {
  max-width: 900px;
  position: relative;
  margin: 50px auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(0, 150, 199, 0.3);
}

.mySlides {
  display: none;
  position: relative;
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mySlides img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  border-radius: 24px;
  filter: brightness(0.95);
  transition: filter 0.5s ease;
}

.mySlides:hover img {
  filter: brightness(1);
}

.caption {
  color: #fff;
  font-size: 1.15rem;
  padding: 18px 30px;
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 16px;
  max-width: 85%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.caption.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 18px 22px;
  color: white;
  font-weight: bold;
  font-size: 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  border-radius: 50%;
  background: rgba(20, 20, 35, 0.7);
  backdrop-filter: blur(20px);
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.prev { left: 30px; }
.next { right: 30px; }

.prev:hover,
.next:hover {
  background: rgba(0, 150, 199, 0.9);
  transform: translateY(-50%) scale(1.15);
  box-shadow: 
    0 12px 32px rgba(0, 150, 199, 0.6),
    0 0 30px rgba(0, 150, 199, 0.4);
}

.dots-container {
  text-align: center;
  margin-top: 30px;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 8px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.active {
  background: linear-gradient(135deg, #0096c7, #69b3e7);
  transform: scale(1.3);
  box-shadow: 0 0 20px rgba(0, 150, 199, 0.7);
}

.dot:hover {
  background-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
  border-color: rgba(0, 150, 199, 0.6);
}

.contact {
  text-align: center;
}

.contact h2 {
  margin-bottom: 50px;
}

.contact p {
  margin: 20px auto;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px 30px;
  border-radius: 16px;
  max-width: 500px;
  background: rgba(30, 30, 50, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.contact p::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 150, 199, 0.2), transparent);
  transition: left 0.6s ease;
}

.contact p:hover::before {
  left: 100%;
}

.contact p:hover {
  background: rgba(40, 40, 60, 0.6);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 
    0 20px 50px rgba(0, 150, 199, 0.4),
    0 0 40px rgba(0, 150, 199, 0.2);
  border-color: rgba(0, 150, 199, 0.4);
}

.contact img {
  width: 44px;
  height: 44px;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 4px 16px rgba(0, 150, 199, 0.5));
  flex-shrink: 0;
}

.contact p:hover img {
  transform: scale(1.25) rotate(360deg);
  filter: drop-shadow(0 8px 24px rgba(0, 150, 199, 0.8));
}

.contact a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 8px 16px;
  border-radius: 10px;
  position: relative;
  letter-spacing: 0.3px;
}

.contact a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0096c7, #69b3e7);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.contact p:hover a::after {
  width: 100%;
}

.contact p:hover a {
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 150, 199, 0.6);
}

footer {
  margin-top: 80px;
  padding: 40px;
  font-size: 1.05rem;
  background: rgba(10, 10, 20, 0.8);
  backdrop-filter: blur(30px);
  border-top: 1px solid rgba(0, 150, 199, 0.4);
  text-align: center;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0096c7, #69b3e7, transparent);
}

footer::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 150, 199, 0.15), transparent 70%);
  filter: blur(40px);
  z-index: -1;
}

@media (max-width: 1024px) {
  nav .nav-container {
    padding: 0 20px;
  }
  
  header {
    padding: 120px 30px 60px;
  }
  
  .box {
    padding: 40px 30px;
    margin: 30px 20px;
  }
  
  .skills-grid,
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
  }
  
  nav .logo {
    font-size: 1.5rem;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  nav .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background: rgba(10, 10, 20, 0.98);
    backdrop-filter: blur(30px);
    flex-direction: column;
    padding: 100px 30px 30px;
    gap: 0;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid rgba(0, 150, 199, 0.3);
    z-index: 1000;
  }
  
  nav .nav-links.active {
    right: 0;
  }
  
  nav .nav-links li {
    width: 100%;
    margin: 0;
  }
  
  nav .nav-links a {
    display: block;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
  }
  
  nav .nav-links a:hover {
    background: rgba(0, 150, 199, 0.1);
    padding-left: 2rem;
  }
  
  nav .nav-links a::after {
    display: none;
  }
  
  header {
    padding: 100px 15px 50px;
  }
  
  header h1 {
    font-size: 2.2rem;
    letter-spacing: -1px;
  }
  
  header img {
    width: 150px;
    height: 150px;
  }
  
  header p {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  section {
    padding: 50px 15px;
  }
  
  .box {
    padding: 30px 20px;
    margin: 25px auto;
  }
  
  .box h2 {
    font-size: 2rem;
  }
  
  .box h3 {
    font-size: 1.5rem;
  }
  
  .skills-category h3 {
    font-size: 1.5rem;
  }
  
  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .skill,
  .project {
    padding: 30px 25px;
  }
  
  .slideshow-container {
    margin: 30px auto;
  }
  
  .mySlides img {
    height: 300px;
  }
  
  .caption {
    font-size: 0.95rem;
    padding: 12px 20px;
    bottom: 20px;
  }
  
  .prev, .next {
    padding: 12px 14px;
    font-size: 22px;
  }
  
  .prev { left: 15px; }
  .next { right: 15px; }
  
  .contact p {
    flex-direction: row;
    padding: 18px 20px;
    margin: 15px auto;
    max-width: 100%;
    font-size: 1rem;
    gap: 12px;
  }
  
  .contact img {
    width: 36px;
    height: 36px;
  }
  
  .contact a {
    font-size: 0.95rem;
  }
  
  footer {
    padding: 30px 20px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 0.8rem 1rem;
  }
  
  nav .logo {
    font-size: 1.3rem;
  }
  
  nav .nav-links {
    gap: 0.3rem;
    font-size: 0.75rem;
  }
  
  nav .nav-links a {
    padding: 0.5rem 0.7rem;
  }
  
  header {
    padding: 90px 15px 40px;
  }
  
  header h1 {
    font-size: 1.8rem;
  }
  
  header img {
    width: 130px;
    height: 130px;
  }
  
  header p {
    font-size: 0.9rem;
  }
  
  .box {
    padding: 25px 15px;
    margin: 20px 10px;
  }
  
  .box h2 {
    font-size: 1.7rem;
  }
  
  .box h3 {
    font-size: 1.3rem;
  }
  
  .mySlides img {
    height: 250px;
  }
  
  .contact p {
    padding: 15px;
    gap: 10px;
    flex-direction: column;
    text-align: center;
  }
  
  .contact img {
    width: 32px;
    height: 32px;
  }
  
  footer {
    padding: 25px 15px;
  }
}

@media (max-width: 360px) {
  nav .logo {
    font-size: 1.2rem;
  }
  
  nav .nav-links {
    font-size: 0.7rem;
  }
  
  nav .nav-links a {
    padding: 0.4rem 0.6rem;
  }
  
  header h1 {
    font-size: 1.6rem;
  }
  
  header img {
    width: 110px;
    height: 110px;
  }
  
  .box h2 {
    font-size: 1.5rem;
  }
  
  .mySlides img {
    height: 220px;
  }
  
  .prev, .next {
    padding: 10px 12px;
    font-size: 18px;
  }
}
