* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #060b18;
  --accent: #7ab3e0;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, serif;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  z-index: 100;
  background: rgba(6, 11, 24, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid rgba(122, 179, 224, 0.15);
}

.nav-logo {
  font-size: 1.2rem;
  letter-spacing: 6px;
  color: var(--text);
  font-weight: 300;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent);
}

/* HERO */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 4rem 4rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 60% 50%, #1a3a6e44 0%, transparent 70%),
    var(--bg);
}

.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 40%,
    #ffffff 0%,
    #ffffff 60%,
    rgba(255, 255, 255, 0.16) 100%
  );
  box-shadow: 0 0 6px rgba(138, 183, 224, 0.35);
  transform-origin: center;
  will-change: opacity, transform;
  animation: twinkle var(--d) ease-in-out infinite alternate;
  animation-delay: var(--ad, 0s);
}

/* subtle glow + sparkle lines */
.star::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.05);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.6) 16%,
    rgba(138, 183, 224, 0.06) 40%,
    transparent 60%
  );
  filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  animation: glow var(--g, 4s) ease-in-out infinite;
  animation-delay: var(--ad, 0s);
}

.star::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scaleX(0.2);
  width: 14px;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0;
  pointer-events: none;
  border-radius: 2px;
  filter: blur(0.4px);
  animation: spark var(--s, 1.8s) ease-in-out infinite;
  animation-delay: var(--ad, 0s);
}

@keyframes twinkle {
  0% {
    opacity: 0.12;
    transform: translateY(-3px) scale(0.6) rotate(0deg);
  }
  50% {
    opacity: 0.95;
    transform: translateY(2px) scale(1.08) rotate(4deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes glow {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.04);
  }
  40% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
  }
}

@keyframes spark {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scaleX(0.15);
  }
  40% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(calc(var(--r, 0deg) + 10deg))
      scaleX(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(calc(var(--r, 0deg) + 20deg))
      scaleX(0.15);
  }
}

.hero-left {
  flex: 1;
  max-width: 55%;
  z-index: 1;
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.hero-label {
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.hero-sub {
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: 3rem;
  text-transform: uppercase;
}

.hero-boxes {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-box {
  border: 0.5px solid rgba(122, 179, 224, 0.3);
  padding: 1.25rem 1.5rem;
  max-width: 220px;
  background: rgba(122, 179, 224, 0.05);
}

.hero-box h3 {
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-family: Arial, sans-serif;
}

.hero-box p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.hero-logo {
  width: 650px;
  height: auto;
  margin-right: clamp(2rem, 15vw, 20rem);
  border-radius: 48px;
  opacity: 0.75;
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    black 60%,
    transparent 100%
  );
  mask-image: radial-gradient(ellipse at center, black 60%, transparent 100%);
}

/* SERVICES */
#services {
  padding: 6rem 4rem;
  background: var(--bg);
}

.section-label {
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 4px;
  margin-bottom: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  border: 0.5px solid rgba(122, 179, 224, 0.2);
  padding: 2rem;
  background: rgba(122, 179, 224, 0.03);
  transition:
    border-color 0.3s,
    background 0.3s;
}

.service-card:hover {
  border-color: rgba(122, 179, 224, 0.5);
  background: rgba(122, 179, 224, 0.07);
}

.service-icon {
  width: 4rem;
  height: 4rem;
  margin-bottom: 4rem;
  display: block;
  margin: 0 auto 1rem;
}

.service-card h3 {
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* PROJECTS */
#projects {
  padding: 6rem 4rem;
  background: rgba(122, 179, 224, 0.02);
}

.category-title {
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 500px));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.project-card {
  border: 0.5px solid rgba(122, 179, 224, 0.2);
  background: rgba(122, 179, 224, 0.03);
  transition: border-color 0.3s;
}

.project-card:hover {
  border-color: rgba(122, 179, 224, 0.5);
}

.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
  border-bottom: 0.5px solid rgba(122, 179, 224, 0.2);
  border: 0.5px solid rgba(122, 179, 224, 0.6);
}

.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
  border: 0.5px solid rgba(122, 179, 224, 0.4);
}

.mri-img {
  object-position: top;
  border: 2px solid rgba(122, 179, 224, 0.7);
}

.project-info {
  padding: 1.5rem;
}

.project-info h4 {
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.project-info p {
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-tags span {
  font-family: Arial, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  border: 0.5px solid rgba(122, 179, 224, 0.3);
  padding: 0.25rem 0.6rem;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-links a {
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 0.5px solid rgba(122, 179, 224, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.3s;
}

.project-links a:hover {
  border-color: var(--accent);
}

/* ABOUT */
#about {
  padding: 6rem 4rem;
  background: var(--bg);
}

.about-container {
  display: flex;
  gap: 4rem;
  align-items: center;
}

.about-left {
  flex: 1;
}

.about-right {
  flex: 1;
  display: flex;
  justify-content: center;
  margin-left: -20rem;
}

.about-text p {
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.9;
}

.about-img {
  width: auto;
  height: 420px;
  object-fit: contain;
  box-shadow: 6px 6px 20px rgba(122, 179, 224, 0.25);
}

/* CONTACT */
#contact {
  padding: 3rem 4rem;
  background: rgba(122, 179, 224, 0.02);
  text-align: center;
}

.contact-subtitle {
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.contact-email {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  transition: color 0.3s;
}

.contact-link img {
  width: 28px;
  height: 28px;
}

.contact-email:hover {
  color: var(--accent);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.contact-link {
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 0.5px solid rgba(122, 179, 224, 0.3);
  padding-bottom: 4px;
  transition:
    color 0.3s,
    border-color 0.3s;
}

.contact-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* FOOTER */
footer {
  padding: 2rem 4rem;
  border-top: 0.5px solid rgba(122, 179, 224, 0.15);
  text-align: center;
}

footer p {
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--text-muted);
}
