/* =========================
   ROOT VARIABLES
========================= */
:root {
  --bg-main: #0f172a;        /* charcoal navy */
  --bg-alt: #0b1220;
  --bg-card: #111827;
  --primary: #3b82f6;        /* professional blue */
  --primary-soft: #93c5fd;
  --text-main: #e5e7eb;
  --text-muted: #94a3b8;
  --border: #1f2937;
}

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

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: linear-gradient(135deg, #0b1220, #0f172a);
  color: var(--text-main);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--primary);
}

/* =========================
   NAVBAR
========================= */
.navbar {
  position: fixed;
  top: 18px;
  width: 100%;
  z-index: 100;
}

.nav-container {
  max-width: 1150px;
  margin: auto;
  padding: 14px 34px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(14px);
  border-radius: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 26px;
}

.nav-links a {
  color: var(--text-main);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-btn {
  padding: 6px 16px;
  border: 1px solid var(--primary);
  border-radius: 20px;
  color: var(--primary);
}

/* =========================
   HERO
========================= */
.hero {
  min-height: 100vh;
  padding-top: 140px;
  display: flex;
  align-items: center;
}

.portfolio-title {
  letter-spacing: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-soft);
  margin-bottom: 14px;
}

.hero-text h1 {
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1.15;
}

.hero-text h1 span {
  color: var(--primary);
}

.hero-text p {
  margin-top: 22px;
  color: var(--text-muted);
  max-width: 520px;
}

.hero-buttons {
  margin-top: 34px;
}

.btn-main {
  background: var(--primary);
  color: #fff;
  padding: 13px 28px;
  border-radius: 30px;
  font-weight: 600;
  margin-right: 14px;
  transition: all 0.3s ease;
}

.btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(59,130,246,0.4);
}

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 13px 28px;
  border-radius: 30px;
}

/* IMAGE */
.hero-visual {
  display: flex;
  justify-content: center;
}

.image-wrapper {
  width: 300px;
  height: 300px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   SECTIONS
========================= */
.section {
  padding: 110px 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 46px;
}

/* =========================
   ABOUT
========================= */
.about-text {
  max-width: 800px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* =========================
   PROJECTS
========================= */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  margin-bottom: 34px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 60px rgba(0,0,0,0.6);
}

.main-project {
  border-left: 5px solid var(--primary);
}

.project-card h3 {
  margin-bottom: 10px;
}

.tech {
  color: var(--primary-soft);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.project-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
}

/* =========================
   FEEDBACK
========================= */
.feedback-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 35px;
  max-width: 600px;
  margin: auto;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  color: var(--text-main);
  margin-bottom: 15px;
}

.feedback-form textarea {
  min-height: 120px;
}

.feedback-form button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 26px;
  border-radius: 24px;
  cursor: pointer;
  font-weight: 600;
}

#feedbackStatus {
  margin-top: 15px;
  color: var(--primary-soft);
}

/* =========================
   CONTACT
========================= */
.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 35px;
  max-width: 520px;
  margin: auto;
}

.contact-box p {
  margin-bottom: 10px;
  color: var(--text-muted);
}

.contact-box strong {
  color: var(--text-main);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .hero {
    padding-top: 160px;
  }

  .hero-text h1 {
    font-size: 2.4rem;
  }

  .image-wrapper {
    margin-top: 40px;
  }

  .nav-links {
    display: none;
  }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card.active {
  border-left: 5px solid var(--primary);
  box-shadow: 0 28px 70px rgba(0,0,0,0.7);
}
