/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Reveal-on-scroll defaults */
[data-animate] {
  opacity: 0;
  transform: translateY(18px) scale(0.995);
  transition: opacity 560ms cubic-bezier(.2,.9,.2,1), transform 560ms cubic-bezier(.2,.9,.2,1);
  will-change: opacity, transform;
}

.in-view {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] { transition: none; transform: none; opacity: 1; }
}

body {
  background: #000;
  color: #eee;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(91, 159, 216, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(70, 140, 200, 0.06) 0%, transparent 50%),
              radial-gradient(circle at 50% 0%, rgba(91, 159, 216, 0.04) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 6%;
  background: rgba(2, 3, 5, 0.98);
  border-bottom: 1px solid rgba(91, 159, 216, 0.15);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 0 20px rgba(91, 159, 216, 0.12), inset 0 1px 0 rgba(111, 179, 234, 0.05);
}

.brand {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 2px;
  color: #4a7aaa;
  text-shadow: 0 0 12px rgba(91, 159, 216, 0.3), 0 0 20px rgba(91, 159, 216, 0.15);
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

.navbar a {
  text-decoration: none;
  color: #8a92a6;
  font-weight: 500;
  transition: .3s ease;
  position: relative;
}

.navbar a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4a7aaa, #5b9fd8);
  transition: width .3s ease;
}

.navbar a:hover::after,
.navbar .active::after {
  width: 100%;
}

.navbar a:hover,
.navbar .active {
  color: #5b9fd8;
  text-shadow: 0 0 10px rgba(91, 159, 216, 0.4), 0 0 15px rgba(91, 159, 216, 0.2);
}

/* HERO SECTION */
.hero {
  display: flex;
  justify-content: space-between;
  padding: 80px 6%;
  align-items: center;
  min-height: 60vh;
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 650px;
}

.small {
  color: #4a7aaa;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 5px;
  text-shadow: 0 0 10px rgba(91, 159, 216, 0.25), 0 0 15px rgba(91, 159, 216, 0.1);
}

h1 {
  font-size: 48px;
  color: #c8cdd6;
  text-shadow: 0 0 15px rgba(91, 159, 216, 0.1);
}

.accent {
  color: #5b9fd8;
  text-shadow: 0 0 12px rgba(91, 159, 216, 0.35), 0 0 18px rgba(91, 159, 216, 0.15);
}

h3 {
  margin-top: 6px;
  margin-bottom: 15px;
  font-size: 20px;
  color: #8a92a6;
}

.cta {
  margin-top: 15px;
}

.btn {
  padding: 12px 25px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 30px;
  display: inline-block;
  margin-right: 10px;
}

.btn-primary {
  background: #4a7aaa;
  color: #020305;
  box-shadow: 0 0 15px rgba(91, 159, 216, 0.25), 0 0 30px rgba(91, 159, 216, 0.1);
  transition: all .3s ease;
}

.btn-primary:hover {
  background: #5b9fd8;
  box-shadow: 0 0 20px rgba(91, 159, 216, 0.4), 0 0 40px rgba(91, 159, 216, 0.15);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid #4a7aaa;
  color: #4a7aaa;
  transition: all .3s ease;
  box-shadow: 0 0 8px rgba(91, 159, 216, 0.1);
}

.btn-outline:hover {
  background: rgba(91, 159, 216, 0.08);
  box-shadow: 0 0 15px rgba(91, 159, 216, 0.25);
  transform: translateY(-2px);
}

/* DECORATIVE RING */
.hero-decor {
  position: relative;
}

.hero-decor .ring {
  width: 220px;
  height: 230px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* ring decoration stays static; animation applied to inner image only */
  box-shadow: 0 0 35px rgba(91, 159, 216, 0.25), 0 0 60px rgba(91, 159, 216, 0.1), inset 0 0 25px rgba(91, 159, 216, 0.05);
  border: 2px solid rgba(91, 159, 216, 0.2);
}

.hero-decor .ring img {
  width: auto;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  /* apply blink only to the image */
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ABOUT */
.about {
  display: flex;
  justify-content: space-between;
  padding: 70px 6%;
  gap: 40px;
  font-size: 20px;
}

.about-left {
  flex: 1;
}

.about-right {
  background: rgba(91, 159, 216, 0.03);
  padding: 20px;
  border-radius: 10px;
  flex: 0.6;
  border: 1px solid rgba(91, 159, 216, 0.15);
  box-shadow: 0 0 12px rgba(91, 159, 216, 0.05), inset 0 1px 0 rgba(91, 159, 216, 0.05);
}

.details p {
  margin-bottom: 10px;
}

/* SKILLS */
.skills {
  padding: 70px 6%;
}

.skills h2 {
  margin-bottom: 15px;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.skill-card {
  padding: 15px;
  border-radius: 8px;
  background: rgba(91, 159, 216, 0.02);
  border: 1px solid rgba(91, 159, 216, 0.12);
  transition: all .3s ease;
  box-shadow: 0 0 10px rgba(91, 159, 216, 0.02);
}

.skill-card:hover {
  background: rgba(91, 159, 216, 0.08);
  border-color: rgba(91, 159, 216, 0.25);
  box-shadow: 0 0 18px rgba(91, 159, 216, 0.15);
  transform: translateY(-3px);
}

.skill-head {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 8px;
}

.bar {
  width: 100%;
  height: 10px;
  background: #222;
  border-radius: 5px;
  overflow: hidden;
}

.fill {
  height: 100%;
  background: linear-gradient(90deg, #4a7aaa, #5b9fd8);
  box-shadow: 0 0 12px rgba(91, 159, 216, 0.35), inset 0 0 8px rgba(91, 159, 216, 0.1);
}

/* PROJECT + CONTACT */
.projects, .contact {
  padding: 70px 6%;
}

.projects h2, .contact h2 {
  margin-bottom: 30px;
  font-size: 32px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.project-card {
  background: rgba(91, 159, 216, 0.03);
  border: 1px solid rgba(91, 159, 216, 0.15);
  border-radius: 8px;
  padding: 25px;
  transition: all .3s ease;
  box-shadow: 0 0 12px rgba(91, 159, 216, 0.05);
}

.project-card:hover {
  background: rgba(91, 159, 216, 0.08);
  border-color: rgba(91, 159, 216, 0.25);
  box-shadow: 0 0 20px rgba(91, 159, 216, 0.15);
  transform: translateY(-3px);
}

.project-card h3 {
  color: #5b9fd8;
  margin-bottom: 5px;
  font-size: 18px;
}

.project-card p {
  margin-bottom: 15px;
  color: #a8aeb8;
}

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

.project-tags span {
  display: inline-block;
  background: rgba(91, 159, 216, 0.1);
  color: #5b9fd8;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  border: 1px solid rgba(91, 159, 216, 0.2);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.contact-item {
  background: rgba(91, 159, 216, 0.03);
  border: 1px solid rgba(91, 159, 216, 0.15);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.contact-item h3 {
  color: #5b9fd8;
  margin-bottom: 10px;
}

.contact-item a {
  color: #5b9fd8;
  text-decoration: none;
  transition: all .3s ease;
}

.contact-item a:hover {
  text-shadow: 0 0 10px rgba(91, 159, 216, 0.4);
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  margin-top: 20px;
  color: #6a7080;
  border-top: 1px solid rgba(91, 159, 216, 0.12);
  box-shadow: inset 0 1px 0 rgba(91, 159, 216, 0.05);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-decor {
    display: none;
  }
  .about {
    flex-direction: column;
  }
}
