/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background-color: #0a0f24;
  color: #e0e6f0;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-headline {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.05em;
}

.hero-intro {
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 300;
  max-width: 640px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  text-align: center;
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #00d4ff 0%, #0099cc 100%);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: #8a93a7;
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

/* ===== Layout ===== */
.container {
  width: min(1100px, 90%);
  margin: 0 auto;
  padding: 4rem 0;
}

.section {
  padding: 5rem 0;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 15, 36, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  z-index: 1000;
  transition: background 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 15, 36, 0.95);
  border-bottom-color: rgba(0, 212, 255, 0.2);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  width: 90%;
  margin: 0 auto;
  height: 4rem;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, #00d4ff 0%, #0099cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: #b0b8c8;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #00d4ff;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00d4ff 0%, #0099cc 100%);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ===== Mobile Nav Toggle ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.bar {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #00d4ff;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 4rem;
  background: radial-gradient(circle at top right, rgba(0, 212, 255, 0.08) 0%, transparent 40%),
              linear-gradient(180deg, #0a0f24 0%, #0f1429 100%);
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1000px;
  width: 90%;
  margin: 0 auto;
}

.hero-text {
  flex: 1;
  text-align: left;
}

.hero-image {
  flex: 0 0 280px;
  display: flex;
  justify-content: center;
}

.profile-pic {
  width: 180px;
  height: 180px;
  max-width: 100%;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 50%;
  border: 3px solid #00d4ff;
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3);
}

.hero-name {
  color: #fff;
  margin-bottom: 1rem;
}

.hero-headline {
  color: #00d4ff;
  margin-bottom: 1.5rem;
}

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

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  letter-spacing: 0.03em;
}

.btn-primary {
  background: linear-gradient(90deg, #00d4ff 0%, #0099cc 100%);
  color: #0a0f24;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #00d4ff;
  border: 1px solid #00d4ff;
}

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.2);
}

/* ===== About ===== */
.about-content {
  display: flex;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.focus-list {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.focus-list li {
  padding-left: 1.5rem;
  position: relative;
}

.focus-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #00d4ff;
}

/* ===== Projects ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 10px;
  padding: 1.75rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.3);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.project-title {
  font-size: 1.25rem;
  color: #fff;
  margin: 0;
}

.project-badge {
  background: rgba(0, 212, 255, 0.1);
  color: #00d4ff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  white-space: nowrap;
}

.project-description {
  color: #8a93a7;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-link {
  color: #00d4ff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.project-link:hover {
  color: #0099cc;
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.3);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.service-description {
  color: #8a93a7;
  font-size: 0.875rem;
  flex-grow: 1;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  justify-items: center;
}

.contact-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  width: 100%;
  max-width: 300px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.3);
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-item h3 {
  color: #fff;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.contact-link {
  color: #00d4ff;
  text-decoration: none;
  font-size: 0.875rem;
  word-break: break-all;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: #0099cc;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
  color: #8a93a7;
  font-size: 0.875rem;
}

.footer-note {
  color: #5a6478;
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(10, 15, 36, 0.5);
}

::-webkit-scrollbar-thumb {
  background: #00d4ff;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0099cc;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0a0f24;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    clip-path: inset(100% 0 0 0);
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
  }

  .nav-menu.active {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    opacity: 1;
  }

  .nav-menu li {
    padding: 0.75rem 1.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-image {
    flex: 0 0 auto;
    margin-top: 1.5rem;
  }

   .profile-pic {
    width: 150px;
    height: 150px;
    max-width: 100%;
    object-fit: cover;
    flex-shrink: 0;
  }

  .btn {
    width: 100%;
    max-width: 240px;
  }

  .section {
    padding: 3rem 0;
  }

  .container {
    width: 90%;
    padding: 2rem 0;
  }

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

@media (max-width: 480px) {
  .hero-name {
    font-size: 2rem;
  }

  .hero-headline {
    font-size: 1.1rem;
  }

  .hero-intro {
    font-size: 0.95rem;
  }

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

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
