@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary-blue: #0066ff;
  --secondary-blue: #00a3ff;
  --dark-blue: #0a1628;
  --darker-blue: #050d1a;
  --card-bg: #0d1f3c;
  --text-light: #e0e8ff;
  --text-muted: #8ba3cc;
  --accent-glow: rgba(0, 102, 255, 0.5);
}

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

html {
  height: 100%;
  width: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: var(--darker-blue);
  color: var(--text-muted);
  min-height: 100vh;
  overflow-x: hidden;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 var(--accent-glow);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 20px 5px var(--accent-glow);
  }
}

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px var(--primary-blue), 0 0 10px var(--primary-blue);
  }
  50% {
    box-shadow: 0 0 20px var(--primary-blue), 0 0 40px var(--secondary-blue);
  }
}

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

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes borderGlow {
  0%, 100% {
    border-color: var(--primary-blue);
  }
  50% {
    border-color: var(--secondary-blue);
  }
}

@keyframes textGlow {
  0%, 100% {
    text-shadow: 0 0 10px var(--primary-blue);
  }
  50% {
    text-shadow: 0 0 20px var(--secondary-blue), 0 0 30px var(--primary-blue);
  }
}

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

header {
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--card-bg) 100%);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(0, 102, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  animation: fadeInDown 0.8s ease-out;
  backdrop-filter: blur(10px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: fadeInLeft 0.8s ease-out;
}

.logo img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--primary-blue);
  animation: glow 2s ease-in-out infinite, float 3s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.1) rotate(5deg);
}

header h1 {
  color: var(--text-light);
  margin: 0;
  font-size: 1.5rem;
  background: linear-gradient(90deg, var(--text-light), var(--secondary-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav {
  display: flex;
  gap: 0.5rem;
  animation: fadeInRight 0.8s ease-out;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 0.7rem 1.3rem;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
}

nav a i {
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

nav a::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

nav a:hover::after {
  width: 300px;
  height: 300px;
}

nav a:hover {
  color: var(--text-light);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 25px var(--accent-glow), 0 0 40px rgba(0, 163, 255, 0.2);
  border-color: rgba(0, 163, 255, 0.3);
}

nav a:hover::before {
  opacity: 1;
}

nav a:hover i {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 8px var(--secondary-blue));
}

nav a.active {
  color: var(--text-light);
  border-color: rgba(0, 163, 255, 0.5);
  box-shadow: 0 5px 20px var(--accent-glow), inset 0 0 20px rgba(0, 163, 255, 0.1);
}

nav a.active::before {
  opacity: 1;
}

nav a.active i {
  animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3px) scale(1.1);
  }
}

.hero {
  text-align: center;
  padding: 6rem 2rem;
  background: radial-gradient(ellipse at center, var(--dark-blue) 0%, var(--darker-blue) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(0, 163, 255, 0.1) 0%, transparent 50%);
  animation: backgroundMove 10s ease infinite;
  background-size: 200% 200%;
}

.hero h2 {
  font-size: 3.5rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out, textGlow 3s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 1.3rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 1s ease-out 0.2s backwards;
  position: relative;
  z-index: 1;
  color: var(--text-muted);
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.4s backwards;
  position: relative;
  z-index: 1;
}

.btn {
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: white;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 20px var(--accent-glow);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn i {
  transition: all 0.4s ease;
}

.btn:hover i {
  transform: translateX(5px);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

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

.btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 40px var(--accent-glow);
}

.btn:active {
  transform: translateY(-2px) scale(1.02);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 2rem;
  animation: fadeInUp 0.8s ease-out;
}

.container h2 {
  color: var(--text-light);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out, textGlow 3s ease-in-out infinite;
}

.about-content {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--dark-blue) 100%);
  padding: 3rem;
  border-radius: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 102, 255, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: scaleIn 0.8s ease-out;
  transition: all 0.4s ease;
}

.about-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 102, 255, 0.2);
  border-color: var(--primary-blue);
}

.about-content h2 {
  color: var(--text-light);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.about-content p {
  line-height: 1.9;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  animation: fadeInUp 0.6s ease-out backwards;
}

.about-content p:nth-child(2) { animation-delay: 0.1s; }
.about-content p:nth-child(3) { animation-delay: 0.2s; }
.about-content p:nth-child(4) { animation-delay: 0.3s; }
.about-content p:nth-child(5) { animation-delay: 0.4s; }
.about-content p:nth-child(6) { animation-delay: 0.5s; }

.highlight {
  color: var(--secondary-blue);
  font-weight: 600;
  position: relative;
}

.highlight a {
  color: var(--secondary-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

.highlight a:hover {
  color: var(--text-light);
  text-shadow: 0 0 10px var(--secondary-blue);
}

.page-hero {
  background: linear-gradient(rgba(5, 13, 26, 0.8), rgba(5, 13, 26, 0.9)), url('Banner.png');
  background-size: cover;
  background-position: center;
  min-height: 30vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(transparent, var(--darker-blue));
}

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

.skill-card {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--dark-blue) 100%);
  padding: 2.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  border: 1px solid rgba(0, 102, 255, 0.1);
  animation: slideInFromBottom 0.8s ease-out backwards;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }

.skill-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 102, 255, 0.3);
  border-color: var(--primary-blue);
}

.skill-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: float 3s ease-in-out infinite;
  color: var(--secondary-blue);
  filter: drop-shadow(0 0 15px var(--accent-glow));
}

.skill-icon i {
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skill-card:hover .skill-icon i {
  transform: scale(1.3) rotate(10deg);
  filter: drop-shadow(0 0 20px var(--secondary-blue));
}

.skill-card h3 {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.skill-card p {
  line-height: 1.7;
  color: var(--text-muted);
}

.skill-level {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  border-radius: 50px;
  padding: 0.6rem 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: white;
  display: inline-block;
  font-weight: 500;
  animation: pulse 2s ease-in-out infinite;
}

.projects-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-bottom: 3rem;
}

.project-card {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--dark-blue) 100%);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 102, 255, 0.1);
  animation: slideInFromBottom 0.8s ease-out backwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }

.project-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 70px rgba(0, 102, 255, 0.3);
  border-color: var(--primary-blue);
}

.project-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--dark-blue);
  transition: all 0.5s ease;
}

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

.project-content {
  padding: 2rem;
}

.project-content h3 {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.project-card:hover .project-content h3 {
  color: var(--secondary-blue);
}

.project-content p {
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  color: white;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.project-link i {
  transition: all 0.3s ease;
}

.project-link:hover i {
  transform: translateX(3px) translateY(-3px);
}

.project-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.project-link:hover::before {
  left: 100%;
}

.project-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--accent-glow);
}

.contact-methods {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--dark-blue) 100%);
  padding: 2.5rem;
  border-radius: 1.5rem;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 102, 255, 0.1);
  animation: fadeInUp 0.8s ease-out backwards;
}

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

.contact-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 102, 255, 0.3);
  border-color: var(--primary-blue);
}

.contact-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  animation: float 3s ease-in-out infinite;
  color: var(--secondary-blue);
  filter: drop-shadow(0 0 15px var(--accent-glow));
}

.contact-icon i {
  display: inline-block;
  transition: all 0.4s ease;
}

.contact-card:hover .contact-icon i {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 0 20px var(--secondary-blue));
}

.contact-icon-small {
  font-size: 1.3rem;
  color: var(--secondary-blue);
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon-small {
  color: white;
  transform: scale(1.2);
}

.contact-card h3 {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.contact-card p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.contact-value {
  background: var(--dark-blue);
  padding: 1.2rem;
  border-radius: 1rem;
  font-family: 'Courier New', monospace;
  color: var(--secondary-blue);
  border: 1px solid rgba(0, 102, 255, 0.2);
  transition: all 0.3s ease;
}

.contact-value:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 0 20px var(--accent-glow);
}

.contact-value a {
  color: var(--secondary-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-value a:hover {
  color: var(--text-light);
  text-shadow: 0 0 10px var(--secondary-blue);
}

.contact-intro {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.1rem;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease-out;
}

.contact-embed {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--dark-blue) 100%);
  padding: 2.5rem;
  border-radius: 1.5rem;
  margin: 2rem auto;
  max-width: 500px;
  text-align: center;
  border: 1px solid rgba(0, 102, 255, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.6s backwards;
  transition: all 0.4s ease;
}

.contact-embed:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 102, 255, 0.2);
  border-color: var(--primary-blue);
}

.contact-embed h3 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1.2rem;
  background: var(--dark-blue);
  border-radius: 1rem;
  transition: all 0.4s ease;
  border: 1px solid transparent;
}

.contact-item:hover {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  transform: translateX(10px);
  border-color: var(--secondary-blue);
}

.contact-item span {
  font-size: 1.2rem;
}

.contact-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-item:hover a,
.contact-item:hover span {
  color: white;
}

footer {
  text-align: center;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--card-bg) 100%);
  margin-top: 3rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(0, 102, 255, 0.2);
  animation: fadeInUp 0.8s ease-out;
}

footer p {
  animation: pulse 3s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

footer i {
  color: var(--secondary-blue);
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.2);
  }
  50% {
    transform: scale(1);
  }
  75% {
    transform: scale(1.2);
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  
  nav a {
    margin-left: 0;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .hero h2 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 250px;
  }
  
  .container {
    padding: 2rem 1rem;
  }
  
  .container h2 {
    font-size: 2rem;
  }
  
  .about-content {
    padding: 2rem;
  }
  
  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--darker-blue);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-blue);
}

::selection {
  background: var(--primary-blue);
  color: white;
}
