/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(145deg, #0a1a2f 0%, #0d2b3e 100%);
  font-family: "Inter", sans-serif;
  color: #e0e8f5;
  scroll-behavior: smooth;
  overflow-x: hidden;
  position: relative;
  padding-bottom: 100px;
}

/* BACKGROUND EFFECTS */
.star-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(2px 2px at 20px 30px, #fff, rgba(0, 0, 0, 0)),
    radial-gradient(1px 1px at 60px 120px, #f8f4e3, rgba(0, 0, 0, 0));
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.ambient-light {
  position: fixed;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(
    circle at 30% 40%,
    rgba(61, 105, 171, 0.25),
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  animation: slowDrift 24s infinite alternate;
}

@keyframes slowDrift {
  0% {
    transform: translate(0, 0);
    opacity: 0.6;
  }
  100% {
    transform: translate(3%, 2%);
    opacity: 1;
  }
}

/* CONTAINER */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 2;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  background: rgba(15, 35, 55, 0.85);
  backdrop-filter: blur(16px);
  border-radius: 80px;
  padding: 0.8rem 1.8rem;
  border: 1px solid rgba(100, 150, 200, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 20px;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.5rem 1.8rem;
  background: rgba(10, 30, 50, 0.95);
  top: 10px;
}

.logo {
  font-weight: 700;
  font-size: 1.8rem;
  background: linear-gradient(135deg, #bcd9ff, #6c9fdf);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

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

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: #cde3ff;
  transition: 0.2s;
  position: relative;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  color: #7cb9ff !important;
  text-shadow: 0 0 8px rgba(124, 185, 255, 0.6);
}

.nav-links a.active {
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  color: #7cb9ff !important;
  text-shadow: 0 0 8px rgba(255, 217, 102, 0.5);
}

/* HERO SECTION */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  margin-bottom: 5rem;
}

.hero-text {
  flex: 1.2;
}

.hero-badge {
  background: rgba(70, 130, 200, 0.25);
  display: inline-block;
  border-radius: 40px;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  color: #b8d8ff;
  margin-bottom: 1rem;
}

.hero-text h1 {
  font-size: 3.3rem;
  font-weight: 700;
  line-height: 1.2;
  background: linear-gradient(to right, #d4e8ff, #88b4e6);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.15rem;
  color: #cde3ff;
  max-width: 550px;
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* BUTTONS */
.btn-primary,
.btn-outline,
.btn-cv {
  padding: 0.8rem 2rem;
  border-radius: 48px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #1e4b6e;
  color: #f3f9ff;
  border: none;
}

.btn-primary:hover {
  background: #2d6c99;
  transform: scale(1.02);
}

.btn-outline,
.btn-cv {
  background: transparent;
  border: 1.5px solid rgba(100, 150, 200, 0.6);
  color: #cde3ff;
}

.btn-outline:hover,
.btn-cv:hover {
  background: rgba(108, 159, 223, 0.15);
  border-color: #ffd966;
  color: #ffd966;
  transform: translateY(-2px);
}

/* AVATAR */
.hero-avatar {
  flex: 0.9;
  display: flex;
  justify-content: center;
}

.avatar-frame {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.4);
  border: 3px solid #6c9fdf;
  animation: float 6s ease-in-out infinite;
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* SECTION TITLE */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  border-left: 6px solid #ffd966;
  padding-left: 1.2rem;
  color: #f0f4fa;
}

/* SKILLS SECTION */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

.skill-item {
  background: rgba(70, 130, 200, 0.2);
  font-size: 1rem;
  border-radius: 60px;
  padding: 0.7rem 1.6rem;
  color: #cde3ff;
  border: 0.5px solid rgba(100, 150, 200, 0.5);
  transition: all 0.2s ease;
}

.skill-item:hover {
  transform: translateY(-2px);
  background: #1e4b6e;
  border: 0.5px solid #ffd966;
}

.skill-item i {
  font-size: 1.2rem;
  margin-right: 6px;
  vertical-align: middle;
}

/* PROJECTS SECTION */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 2rem;
}

.project-card {
  background: rgba(25, 50, 70, 0.55);
  backdrop-filter: blur(10px);
  border-radius: 32px;
  padding: 1.6rem;
  transition: 0.25s;
  border: 1px solid rgba(100, 160, 210, 0.3);
}

.project-card:hover {
  background: rgba(40, 75, 105, 0.7);
  border-color: #ffd966;
  transform: translateY(-5px);
}

.project-icon {
  font-size: 2.5rem;
  color: #9dc8ff;
  margin-bottom: 1rem;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
  padding: 8px 0;
  border-top: 1px solid rgba(100, 150, 200, 0.2);
  border-bottom: 1px solid rgba(100, 150, 200, 0.2);
  font-size: 0.8rem;
  color: #b8d8ff;
}

.project-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.project-meta span i {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
}

.project-meta .links {
  display: flex;
  gap: 12px;
}

.project-link {
  color: #7cb9ff;
  text-decoration: none;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}

.project-link:hover {
  color: #a8d4ff;
  transform: translateY(-2px);
  text-shadow: 0 0 4px rgba(124, 185, 255, 0.4);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.project-tags span {
  background: rgba(59, 130, 246, 0.15);
  border-radius: 20px;
  padding: 0.2rem 0.9rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: #cde3ff;
  transition: 0.2s;
}

.project-tags span:hover {
  background: rgba(255, 217, 102, 0.2);
  color: #ffd966;
  transform: translateY(-1px);
}

/* CONTACT SECTION */
.contact-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-info,
.contact-form {
  flex: 1;
  background: rgba(20, 45, 65, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 32px;
  padding: 1.6rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  background: rgba(30, 70, 100, 0.7);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #cde3ff;
  font-size: 1.4rem;
  transition: 0.2s;
}

.social-links a:hover {
  background: #ffd966;
  color: #1e2f3b;
  transform: translateY(-3px);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  background: rgba(10, 30, 45, 0.8);
  border: 1px solid #3d6a8f;
  border-radius: 44px;
  color: #f0f4fa;
  font-family: inherit;
}

.contact-form textarea {
  border-radius: 24px;
  resize: vertical;
}

.contact-form button {
  width: 100%;
  background: #2b6c94;
  border: none;
  padding: 0.8rem;
  border-radius: 60px;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.contact-form button:hover {
  background: #408cbb;
}

.quote-bubble {
  margin-top: 1.5rem;
  font-style: italic;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  padding: 1rem;
}

/* FOOTER */
footer {
  text-align: center;
  margin-top: 4rem;
  padding: 2rem;
  border-top: 1px solid rgba(255, 210, 100, 0.2);
  color: #aac9e8;
}

/* ANIMATIONS */
@keyframes underlineGlow {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 30px;
    opacity: 1;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .btn-group {
    justify-content: center;
  }

  .navbar {
    justify-content: center;
    gap: 12px;
  }

  .nav-links {
    gap: 1rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .avatar-frame {
    width: 220px;
    height: 220px;
  }
}
