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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #e0e6ed;
  line-height: 1.6;
  min-height: 100vh;
}

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

/* Navigation */
.navbar {
  background: rgba(20, 20, 30, 0.95);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-content {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0 auto;
  padding-right: 60px; /* Fixed distance from right edge */
  padding-left: 20px;
}

/* .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #64ffda;
} */

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #e0e6ed;
  font-weight: 500;
  font-size: 1.25rem;
  transition: color 0.3s;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: #64ffda;
}

/* Main content */
.main-content {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
}

.section {
  display: none;
  padding: 1rem 0;
}

.section.active {
  display: block;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 2rem 0;
  color: white;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero .subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #64ffda 0%, #00bcd4 100%);
  color: #1a1a2e;
  font-weight: 700;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4fd3b8 0%, #00acc1 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(100, 255, 218, 0.3);
}

.btn-secondary {
  background: rgba(100, 255, 218, 0.1);
  color: #64ffda;
  border: 2px solid rgba(100, 255, 218, 0.3);
}

.btn-secondary:hover {
  background: rgba(100, 255, 218, 0.2);
  border-color: #64ffda;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(100, 255, 218, 0.2);
}

/* About Section */
.about-content {
  background: rgba(30, 30, 45, 0.8);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(100, 255, 218, 0.1);
  border-radius: 16px;
  padding: 3rem;
  margin: 1rem 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: center;
}

.profile-image {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: linear-gradient(135deg, #64ffda, #00bcd4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a2e;
  font-size: 4rem;
  font-weight: bold;
  box-shadow: 0 15px 35px rgba(100, 255, 218, 0.3);
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #e0e6ed;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #b3b9c4;
}

/* Skills Section */
.skills-section {
  background: rgba(30, 30, 45, 0.8);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(100, 255, 218, 0.1);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.skills-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
  /* max-width: 800px; */
  margin: 0 auto;
}

.skill-card {
  background: rgba(20, 20, 30, 0.8);
  border: 2px solid rgba(100, 255, 218, 0.2);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(15px);
  cursor: pointer;
}

.skill-card:hover {
  border-color: #64ffda;
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(100, 255, 218, 0.2);
}

.skill-logo {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.skill-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.skill-name {
  color: #e0e6ed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Projects Grid */
.projects-header {
  text-align: center;
  color: white;
}

.projects-header h2 {
  font-size: 2.5rem;
}

.filter-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(100, 255, 218, 0.1);
  color: #64ffda;
  border: 2px solid rgba(100, 255, 218, 0.3);
  padding: 8px 16px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.filter-btn.active,
.filter-btn:hover {
  background: rgba(100, 255, 218, 0.2);
  border-color: #64ffda;
  box-shadow: 0 5px 15px rgba(100, 255, 218, 0.2);
}

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

.project-card {
  background: rgba(30, 30, 45, 0.8);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(100, 255, 218, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

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

.project-image {
  height: 400px;
  background: linear-gradient(135deg, #64ffda, #00bcd4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a2e;
  font-size: 3rem;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-content {
  padding: 2rem;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #e0e6ed;
}

.project-content p {
  color: #b3b9c4;
  margin-bottom: 1.5rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-tag {
  background: rgba(100, 255, 218, 0.1);
  color: #64ffda;
  border: 1px solid rgba(100, 255, 218, 0.3);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  backdrop-filter: blur(10px);
}

.project-links {
  display: flex;
  gap: 1rem;
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Contact Section */
.contact-content {
  background: rgba(30, 30, 45, 0.8);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(100, 255, 218, 0.1);
  border-radius: 16px;
  padding: 3rem;
  margin: 2rem 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #e0e6ed;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: #64ffda;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  background: rgba(20, 20, 30, 0.6);
  border: 2px solid rgba(100, 255, 218, 0.2);
  border-radius: 8px;
  font-size: 1rem;
  color: #e0e6ed;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #64ffda;
  box-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #7a8591;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #e0e6ed;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(100, 255, 218, 0.05);
  border: 1px solid rgba(100, 255, 218, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.contact-item:hover {
  background: rgba(100, 255, 218, 0.1);
  border-color: rgba(100, 255, 218, 0.3);
  transform: translateY(-2px);
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a2e;
  font-size: 1.2rem;
}

.contact-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-details {
  color: #b3b9c4;
}

.contact-details strong {
  color: #e0e6ed;
}

.contact-details a {
  color: #64ffda;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-details a:hover {
  color: #4fd3b8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .profile-image {
    margin: 0 auto;
  }
}
