:root {
  --brand: #ff7626d7;
  --accent: #ff7626;
  --bg: #01050a;
  --panel: #0d1117;
  --text: #f2f5f8;
  --muted: #9ba3b0;
  --border: #30363d;
  --card: #161b22;
  --radius: 16px;
  --shadow: 0 0 16px rgba(33,56,122,0.25);
}

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

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

.container {
  width: min(1120px, 90vw);
  margin: 0 auto;
  background: var(--bg);
  padding: 0 1rem;
}

header {
  position: relative;
  top: 0;
  background: var(--bg);
  backdrop-filter: blur(12px);
  z-index: 10;
  box-shadow: none; 
}

.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0;
}

.brand {
  display: flex; align-items: center; gap: .75rem; font-weight: 700;
}
.brand-logo {
  height: 36px; width: auto;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.15));
}

nav a {
  margin-left: 22px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
nav a:hover, nav a.active { color: var(--accent); }

.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--brand); color: #fff;
  border: none; cursor: pointer;
  font-weight: 600; box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.button:hover { transform: translateY(-2px); }

.hero {

  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: var(--text);
  overflow: hidden;
  width: 100%;
  height: 80vh; /* height adjusts with screen size */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.99) 0%,      /* fade from top */
    rgba(0, 0, 0, 0.75) 25%,      /* visible middle */
    rgba(0, 0, 0, 0.85) 75%, 
    rgba(0, 0, 0, 0.98) 100%      /* fade bottom */
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 1rem;
  margin-top: 4rem;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  font-weight: 700;
  margin: 16px 0;
  /* background: linear-gradient(90deg, var(--accent), #ffb366);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; */
}

.hero p {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 28px;
}


.actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
@media (max-width: 900px) {
  .hero {
    height: 70vh;
    padding: 40px 0;
  }
  .hero h1 {
    font-size: 36px;
  }
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.about-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.4s ease;
  backdrop-filter: blur(6px);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
}

.about-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
  color: var(--text);
}

.about-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* .about-card .more {
  margin-top: 10px;
  opacity: 0;
  max-height: 0;
  transition: all 0.4s ease;
  overflow: hidden;
} */

.about-card:hover {
  transform: translateY(-4px);
  /* background: rgba(255, 118, 38, 0.08); light orange glow */
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(255, 118, 38, 0.15);
}

.project-card:hover .more {
  opacity: 1;
  max-height: 200px;
}

.about-card:hover .more {
  opacity: 1;
  max-height: 200px;
}


.status {
  margin-top: 18px;
  font-size: 13px;
  font-style: italic;
  opacity: 0.8;
}

.status.accent {
  color: var(--accent);
}

/* Optional: always visible border version */
/* .project-card.always-border {
  border-color: rgba(255, 255, 255, 0.05);
} */

.button.small {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.button.small:hover {
  background: var(--accent);
  color: #fff;
}

/* --- Unified Project Card (for all project pages) --- */
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02); /* subtle transparency */
  /* border: 1px solid var(--border); */
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.35s ease;
  backdrop-filter: blur(6px);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
}
.project-card {
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(255, 118, 38, 0.15);
  background: rgba(255, 118, 38, 0.05);
}

/* Prevent inner text push-down */
.project-card p,
.project-card .more {
  transition: opacity 0.3s ease;
}

.project-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
  color: var(--text);
}

.project-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

/* --- GitHub / External Links inside Project Cards --- */
.project-card a.link {
  position: relative;
  display: inline-block;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s ease;
  z-index: 5; /* ensures it sits above hover background */
}


/* Slight spacing for grid */
.projects-grid,
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}



/* Reviews carousel */
.reviews {
  padding: 80px 0;
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.reviews header {
  margin-bottom: 40px;
}

.reviews-slider {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  height: 180px;
}

.review {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.review.active {
  opacity: 1;
  transform: translateX(0);
}

.review-text {
  font-size: 18px;
  color: var(--text);
  max-width: 760px;
  margin: 0 auto 12px;
  line-height: 1.6;
}

.review-author {
  font-style: italic;
  color: var(--accent);
  font-size: 15px;
}

/* Responsive */
@media (max-width: 768px) {
  .reviews-slider {
    height: auto;
    min-height: 200px;
  }
  .review-text {
    font-size: 16px;
    padding: 0 1rem;
  }
}

.reviews-inner:hover { animation-play-state: paused; }


/* .art img {
  width: 100%; border-radius: var(--radius);
  box-shadow: 0 0 30px rgba(0,0,0,0.4);
  object-fit: cover;
} */

.section {
  padding: 80px 0 60px;
  background: var(--bg);
}
.section header h2 {
  font-size: 28px;
  margin-bottom: 10px;
  background: var(--bg);
}
.section header p { 
    color: var(--muted);
    background: var(--bg);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
/* .card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 25px;
  transition: all .25s ease;
} */
/* .card:hover {
  border-color: var(--accent);
  padding: 25px;
  box-shadow: 0 0 18px rgba(255,118,38,0.15);
} */
.card h3 { margin-bottom: 8px; font-size: 20px; }
.card p { color: var(--muted); font-size: 15px; }



footer {
  background: var(--bg);
  color: var(--muted);
  padding: 50px 0 40px;
  font-size: 14px;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

/* Left: logo + menu */
.footer-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 260px;
}

/* .footer-left .brand-logo {
  height: 42px;
  width: auto;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.1));
} */

.footer-left .brand-logo {
  align-self: flex-start;
  height: 40px;           /* fixed clean height */
  width: auto;            /* keep proportions */
  object-fit: contain;    /* ensures no distortion */
  flex-shrink: 0;         /* stops flexbox from resizing it */
  margin-bottom: 8px;
  filter: drop-shadow(0 0 3px rgba(255,255,255,0.1));
}

.footer-nav {
  align-self: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-nav a {
    
  color: var(--muted);
  font-size: 14px;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-left small {
  margin-top: 8px;
  font-size: 13px;
  opacity: 0.75;
}

/* Right: contact */
.footer-contact {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact h4 {
  color: var(--text);
  font-size: 15px;
  margin-bottom: 6px;
}

.contact-link {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--accent);
}

.socials {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}

.socials a {
  color: var(--muted);
  font-size: 18px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.socials a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .footer-flex {
    flex-direction: column;
    align-items: flex-start;
  }
}


@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  /* nav a.responsive-hide { display: none; } */
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
  }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    background: var(--bg);
    padding: 10px 0;
    border-top: 1px solid var(--border);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    margin: 8px 0;
    text-align: center;
  }
  .nav-toggle {
    display: block;
  }
}


.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
/* .card, .art img {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease, transform 0.6s ease;
} */

.fade-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
.hero-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.hero-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card a.link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.project-card a.link:hover {
  color: var(--accent);
}

.project-card a.link:hover::after {
  width: 100%;
}

.project-card:hover a.link {
  color: var(--accent);
}



/* .section {
  max-height: 80vh;
  overflow-y: auto;
} */


a.link {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s ease;
}

a.link:hover {
  color: var(--accent);
}

/* ========== HEADER & NAVIGATION ========== */
header {
  position: relative;
  width: 100%;
  background: var(--bg);
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* allows wrapping on smaller screens */
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 36px;
  width: auto;
}

/* Regular nav links */
nav a {
  margin-left: 22px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
nav a:hover,
nav a.active {
  color: var(--accent);
}

/* --- Responsive Menu --- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text);
  cursor: pointer;
}

/* Default (desktop): horizontal layout */
.nav-links {
  display: flex;
  align-items: center;
}

/* Tablet + Mobile view */
@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    right: 1rem;
    top: 1rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--bg);
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.75rem 0;
    margin: 0;
    text-align: center;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }
}

/* ========== HERO SECTION ========== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh; /* always full screen height */
  padding: 4rem 1rem; /* responsive vertical spacing */
  color: var(--text);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 0.9) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 2rem;
}

/* make sections always start below hero naturally */
.section {
  padding: clamp(60px, 8vw, 100px) 0;
}
