/* style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0b0f14;
  --text: #e5edf5;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.15);
  --accent: #60a5fa;
  --accent-hover: #93c5fd;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.08), transparent 30%),
    radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.05), transparent 30%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 1rem 0;
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(11, 15, 20, 0.75);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.15));
}

.brand-text {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 500;
  transition: color 0.2s ease, opacity 0.2s ease;
  opacity: 0.9;
}

.nav-links li a:hover {
  color: var(--accent);
  opacity: 1;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 1.4rem;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.menu-toggle:hover {
  border-color: rgba(96, 165, 250, 0.4);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.03);
}

.main-content {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 4rem;
}

.hero {
  width: 100%;
}

.hero-content {
  max-width: 950px;
  margin: 0 auto;
  text-align: center;
}

.hero-kicker,
.section-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.hero-content h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 1.08;
  margin-bottom: 1.25rem;
  color: #ffffff;
  font-weight: 800;
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-description {
  max-width: 760px;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero-buttons,
.about-buttons,
.project-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-buttons {
  justify-content: center;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.95rem 1.35rem;
  border-radius: 14px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  min-width: 150px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.btn-primary {
  background: var(--accent);
  color: #08111d;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: rgba(96, 165, 250, 0.35);
  color: var(--accent);
}

.tech-stack,
.info-tags,
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tech-stack {
  justify-content: center;
  max-width: 760px;
  margin: 0 auto;
  gap: 0.75rem;
}

.tech-stack span,
.info-tags span,
.project-tags span {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #d2deea;
  font-size: 0.88rem;
}

.tech-stack span {
  padding: 0.6rem 0.95rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tech-stack span:hover {
  border-color: rgba(96, 165, 250, 0.35);
  color: var(--accent);
  transform: translateY(-2px);
}

.section-header {
  max-width: 900px;
  margin: 0 auto 2.5rem;
  text-align: center;
  padding: 0 1.5rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #ffffff;
  margin-bottom: 0.8rem;
}

.section-description {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto;
}

.projects-section,
.about-section,
.contact-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-card,
.about-main-card,
.info-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  box-shadow: var(--shadow);
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  padding: 1.6rem;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.3);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.project-top {
  margin-bottom: 1.5rem;
}

.project-type {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

.project-card h3,
.about-main-card h3,
.contact-main h3 {
  color: #ffffff;
}

.project-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
  line-height: 1.2;
}

.project-card p,
.about-main-card p,
.info-card p,
.contact-main p,
.project-details p {
  color: var(--muted);
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.project-link:hover {
  color: var(--accent-hover);
  transform: translateX(3px);
}

.details-toggle {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.details-toggle:hover {
  border-color: rgba(96, 165, 250, 0.35);
  color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.project-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: none;
  animation: fadeSlideDown 0.35s ease;
}

.project-details.open {
  display: block;
}

.project-details p {
  margin-bottom: 0.85rem;
}

.project-details strong {
  color: #ffffff;
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
}

.about-main-card {
  padding: 2rem;
}

.about-main-card h3 {
  font-size: 1.9rem;
  margin-bottom: 1rem;
}

.about-main-card p {
  margin-bottom: 1rem;
}

.about-buttons {
  margin-top: 1.5rem;
}

.about-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-card {
  padding: 1.4rem;
}

.info-card h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}

.info-card ul {
  list-style: none;
}

.info-card ul li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.65rem;
  color: var(--muted);
}

.info-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.contact-card {
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
}

.contact-main h3 {
  font-size: 1.8rem;
  margin-bottom: 0.9rem;
}

.contact-main p {
  max-width: 540px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-method {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.contact-method:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.32);
  background: rgba(255, 255, 255, 0.03);
}

.contact-label {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.35px;
}

.contact-value {
  color: #dbe7f3;
  word-break: break-word;
}

.site-footer {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(to top, rgba(255,255,255,0.02), transparent);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.footer-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.15));
}

.footer-brand h2 {
  color: #ffffff;
  font-size: 1.2rem;
}

.footer-brand p {
  color: var(--muted);
  max-width: 430px;
}

.footer-links h3,
.footer-social h3 {
  color: #ffffff;
  margin-bottom: 0.9rem;
  font-size: 1rem;
}

.footer-links ul,
.footer-social ul {
  list-style: none;
}

.footer-links li,
.footer-social li {
  margin-bottom: 0.6rem;
}

.footer-links a,
.footer-social a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
  word-break: break-word;
}

.footer-links a:hover,
.footer-social a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem 1.6rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-bottom p {
  color: #7b8a9d;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    width: min(240px, calc(100vw - 2rem));
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 1rem;
    background: rgba(11, 15, 20, 0.96);
    backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    width: 100%;
    padding: 0.7rem 0.75rem;
    border-radius: 10px;
  }

  .nav-links li a:hover {
    background: rgba(255, 255, 255, 0.03);
  }

  .main-content {
    min-height: 75vh;
    padding-top: 4rem;
  }

  .hero-description {
    font-size: 1.05rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: min(260px, 100%);
  }

  .projects-grid,
  .about-grid,
  .contact-card,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: unset;
  }

  .about-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .about-buttons .btn {
    width: min(260px, 100%);
  }
}