* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

.background {
  min-height: 100vh;
  background: #fff;
  position: relative;
}

/* Gradient patches */
.gradient-patch {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 108, 192, 0.4), transparent 70%);
  transform: translate(-40%, -40%);
  z-index: 0;
}

.gradient-patch2 {
  position: absolute;
  width: 570px;
  height: 570px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 124, 241, 0.4), transparent 70%);
  transform: translate(-40%, -40%);
  z-index: 0;
}

/* Navigation - Aligned to right */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #f46cc0;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
}

.profile-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  background: linear-gradient(45deg, #f46cc0, #3d7cf1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: float 3s ease-in-out infinite;
  overflow: hidden;
  padding: 5px;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #2c3e50;
  font-weight: bold;
}

.hero p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Content Sections */
.content {
  position: relative;
  z-index: 1;
  padding: 4rem 2rem 0;
}

.section {
  max-width: 1200px;
  margin: 0 auto 4rem;
}

.section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.section-emoji {
  font-size: 3rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Cards */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border-color: #FFD700;
}

.card h3 {
  color: #f46cc0;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.card p {
  color: #666;
  margin-bottom: 0.5rem;
}

/* Skills Section */
/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  text-align: center;
}

.skill-item {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 2rem 1rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.skill-item i {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

/* Float animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Original brand colors for each technology */
.skill-item .fa-html5 {
  color: #E34F26; /* HTML5 orange */
}

.skill-item .fa-css3-alt {
  color: #1572B6; /* CSS3 blue */
}

.skill-item .fa-js {
  color: #F7DF1E; /* JavaScript yellow */
}

.skill-item .fa-php {
  color: #777BB4; /* PHP purple */
}

.skill-item .fa-python {
  color: #3776AB; /* Python blue */
}

.skill-item .fa-java {
  color: #ED8B00; /* Java orange */
}

.skill-item .fa-database {
  color: #4479A1; /* MySQL blue */
}

.skill-item .fa-react {
  color: #61DAFB; /* React cyan */
}

.skill-item .fa-node-js {
  color: #339933; /* Node.js green */
}

.skill-item .fa-git-alt {
  color: #F05032; /* Git orange-red */
}

.skill-item .fa-code {
  color: #007ACC; /* VS Code blue */
}

.skill-item .fa-bootstrap {
  color: #7952B3; /* Bootstrap purple */
}

.skill-item .fa-angular {
  color: #852E32; /* Bootstrap purple */
}

.skill-item h4 {
  color: #333;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

/* Contact Section */
.contact-section {
  text-align: center;
  padding: 4rem 2rem;
}

.contact-btn {
  display: inline-block;
  background: linear-gradient(45deg, #f46cc0, #3d7cf1);
  color: white;
  padding: 1rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(244, 108, 192, 0.3);
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(244, 108, 192, 0.4);
}

/* Footer - Fixed to remove extra space */
footer {
  text-align: center;
  padding: 3rem 2rem 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
  background-color: #274C77;
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.social-icons a {
  color: #333;
  font-size: 2rem;
  padding: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icons a:hover {
  color: white;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.social-icons a[title="GitHub"]:hover {
  background: linear-gradient(45deg, #333, #666);
}

.social-icons a[title="LinkedIn"]:hover {
  background: linear-gradient(45deg, #0077B5, #00a0dc);
}

.social-icons a[title="Linktree"]:hover {
  background: linear-gradient(45deg, #339933, #7dc97d);
}

.social-icons a[title="Instagram"]:hover {
  background: linear-gradient(45deg, #E4405F, #F77737, #FCAF45);
}

footer p {
  margin: 0;
  color: white;
  font-size: 0.9rem;
}

/* Remove any extra spacing and fix layout */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    justify-content: center;
  }

  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .profile-photo {
    width: 150px;
    height: 150px;
  }

  .section h2 {
    font-size: 2rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .section-emoji {
    font-size: 2.5rem;
  }

  .cards-container {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
  }

  .social-icons {
    gap: 1.5rem;
  }

  .social-icons a {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 1rem;
  }

  .nav-links {
    gap: 0.5rem;
    font-size: 0.9rem;
  }

  .hero {
    padding: 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .content {
    padding: 2rem 1rem 0;
  }

  .section h2 {
    font-size: 1.8rem;
  }

  .social-icons {
    gap: 1rem;
  }

  .social-icons a {
    font-size: 1.3rem;
    width: 45px;
    height: 45px;
  }
}
