/* ---------- RESET ---------- */
* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
}

/* ---------- GLOBAL ---------- */
body {
  font-family: "Roboto", sans-serif;
  background: #241f1f;
  color: #0c0101;
}
/* ---------- RESPONSIVE TYPOGRAPHY ---------- */
h1 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(3rem, 4vw, 3rem);
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}
/* ---------- HEADER ---------- */
header {
  background: #b30000;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  
}

nav a {
  color: #fff;
  margin-left: 1rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.5rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #b30000;
  padding: 1rem 2rem;
  color: white;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-left h1 {
  margin: 0;
  white-space: nowrap;
  font-size: 2.5rem;   /* 👈 smaller name */
  font-weight: 500;
}

.social-icons {
  display: flex;
  gap: 14px;
}

.social-icons a {
  color: white;
  font-size: 1.3rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.social-icons a:hover {
  color: #ffcccc;
  transform: translateY(-2px);
}

/* ---------- ABOUT ---------- */
#about {
  max-width: 1300px;
  max-height: 500px;
  margin: 2rem auto;
  padding: 2rem;

  background:
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
    url("images/qnc_panorama.avif") center / 190% 100% no-repeat;

  border-radius: 8px;
  border: 1px solid #ffcccc;
  color: white;
}

.about-card {
  background: rgba(20, 20, 20, 0.9);
  padding: 2rem;
  border-radius: 12px;
}

.about-layout {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.about-image {
  flex: 0 0 220px;
}

.about-image img {
  width: 90%;
  border-radius: 12px;
  border: 2px solid #ffcccc;
}

.about-text {
  flex: 1;
}

#about h2 {
  font-weight: 500;
  font-size: 2rem;
}

#about p {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ---------- PROJECTS & CONTACT ---------- */
.section-placeholder {
  width: 100%;
  min-height: 100vh;
  padding: 80px 10%;
  background: #0f0f0f;
  color: white;
}

.section-placeholder h2 {
  margin-bottom: 20px;
}

/* ---------- PROJECTS ---------- */
.project-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 40px;
}

.project-card {
  background: #141414;
  border: 1px solid #333;
  padding: 20px;
  border-radius: 12px;
}
.project-card h4 {
  margin-top: 1.6rem;
  margin-bottom: 0.4rem;
  color: #ffcccc;
  font-size: 1.2rem;
}

.project-card p {
  line-height: 1.7;
  font-size: 1rem;
  color: #eaeaea;
}

.project-card ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
}

.project-card li {
  margin-bottom: 0.8rem;
  line-height: 1.6;
}
.project-actions {
  margin-bottom: 40px;
  text-align: center;
}

.project-link {
  display: inline-block;
  background: linear-gradient(135deg, #b30000, #ff3333);
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.2s ease, background 0.2s ease;
}
.download-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #b30000, #ff3333);
  color: white;
  font-weight: 500;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
}

.download-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.project-link:hover {
  background: #ff3333;
  transform: translateY(-2px);
}
.project-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 40px;
}

.project-nav a {
  padding: 10px 16px;
  border-radius: 8px;
  background: #2f2a2a;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease;
}

.project-nav a:hover {
  background: #444;
  transform: translateY(-2px);
}



/* Project images */
.project-image {
  margin: 20px 0;
}

.project-image img {
  width: 100%;
  max-height: 350px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #333;
}
/* ---------- PROJECT TWO-COLUMN LAYOUT ---------- */
.project-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start; /* 👈 key fix */
}




/* LEFT TEXT COLUMN */
.project-text h4 {
  margin-top: 1.4rem;
  margin-bottom: 0.4rem;
  color: #ffcccc;
  font-size: 1.2rem;
}

.project-text p {
  line-height: 1.7;
  font-size: 1rem;
  color: #eaeaea;
}

.project-text ul {
  padding-left: 1.2rem;
}

.project-text li {
  margin-bottom: 0.7rem;
}

/* RIGHT IMAGE COLUMN */
/* RIGHT IMAGE COLUMN */
.project-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
}


.project-media img {
   width: 100%;
  max-height: 320px;   /* 👈 controls size consistently */
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #333;
  background: #0f0f0f;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-media img {
  flex: 1;
}



.project-media img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
/* ---------- PDF EMBED ---------- */
.pdf-container {
  margin-top: 24px;
  width: 100%;
  height: 520px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #333;
  background: #0f0f0f;
}

.pdf-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- FORMULA STYLING ---------- */
.formula-box {
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid #ffcccc;
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 6px;
}

.formula-box code {
  display: block;
  font-family: "Courier New", monospace;
  font-size: 0.95rem;
  color: #ffffff;
}


/* ---------- MOBILE ---------- */
@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-media img {
    max-height: 260px;
  }
}



/* ---------- CONTACT ---------- */
.contact-form {
  max-width: 500px;
  margin-top: 30px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  border-radius: 6px;
  border: 1px solid #ffcccc;
  font-size: 1rem;
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  padding: 1rem;
  background: #ffe5e5;
  color: #b30000;
}

/* ---------- ANIMATION ---------- */
.fade {
  opacity: 0;
  transform: translateY(20px);
  transition: 1s ease;
}

.fade.visible {
  opacity: 1;
  transform: translateY(0);
}
html {
  scroll-behavior: smooth;
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.6s ease;
}
.reveal.active {
  opacity: 1;
  transform: none;
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
  .about-layout {
    flex-direction: column;
    text-align: center;
  }
}

#cursor {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.15s, height 0.15s;
  z-index: 9999;
}
.trail {
  position: fixed;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.6;
  transform: translate(-50%, -50%);
  animation: fadeOut 0.6s ease forwards;
  z-index: 9998;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
}


/* Hide default cursor */
body {
  cursor: none;
}
/* Hide system cursor EVERYWHERE */
* {
  cursor: none !important;
}
/* ---------- HEADER ---------- */
.header {
  display: flex;
  justify-content: center; /* 👈 bring everything inward */
  align-items: center;
  gap: 3rem;               /* controls spacing between groups */
}


.social-icons {
  display: flex;
  gap: 20px;
}

.social-icons a {
  color: white;
  font-size: 2rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.social-icons a:hover {
  transform: translateY(-2px);
  color: #ffcccc;
}

