/* === BASIC STYLE === */
html {
  scroll-behavior: smooth;
}


body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  padding-top: 70px; /* adjust based on your nav height */
  background-color: #fff;
  color: #111;
  background-image: linear-gradient(to right, rgba(0,0,0,0.04) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 40px 40px; /* subtle grid */
  background-position: 0 0;
  animation: gridmove 18s linear infinite;
}

html, body{
	max-width: 100%;
	overflow-x: hidden;
}

*{
	box-sizing: border-box;
}

@keyframes gridmove {
  0% { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}
/* === NAVIGATION === */

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  display: flex;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55); /* transparent black */
  backdrop-filter: blur(10px);      /* frosted glass effect */
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
  padding: 18px 0;
}



nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

nav li {
  margin: 0 5px;
}

nav a {
  text-decoration: none;
  color: #fff;
  padding: 8px 15px;
  border: 2px solid transparent;
	transition: all 0.5s ease;
}

nav a:hover,
nav a.active {
  background-color: #fff;
  color: #000;
  border-color: #000;
}



/* === INTRO SECTION === */
.intro-section {
  text-align: center;
  padding: 100px 20px 60px;
}

.intro-section .hello {
  font-style: italic;
  font-size: 25px;
	font-weight: 200;
  color: #333;
}

.intro-section h1 {
  font-size: 2.5rem;
  font-weight: 400;
  margin: 10px 0;
}

.intro-section .role {
  display: inline-block;
  background-color: #f5f5f5;
  padding: 15px 20px;
  font-size: 19px;
  font-weight: 600;
}

/* === ABOUT SECTION === */
.about {
  max-width: 1000px;
  margin: 80px auto;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 50px;
}

.about h2 {
  font-size: 2.5rem;
  font-weight: 700;
  flex: 0 0 30%;
  margin: 0;
}

.about-content {
  flex: 1;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: #222;
  margin-bottom: 40px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px 40px;
  margin-bottom: 40px;
}

.info-grid h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  color: #000;
}

.info-grid p {
  margin: 0;
  color: #444;
}

.cv-buttons {
  display: flex;
  gap: 20px;
}

.cv-btn {
  background-color: #000;
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.cv-btn:hover {
  background-color: #fff;
  color: #000;
  border: 1px solid #000;
}

/* === PROJECTS SECTION === */

.projects {
  max-width: 1200px;
  margin: 60px auto;
  padding: 20px;
}

.projects h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
}

/* Use a grid to fit 2 cards per row */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 30px;
}

/* Keep your existing project-card styles, but adjust sizing */
.project-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(255, 92, 141, 0.3);
}

.project-video {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.project-video video {
  width: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(40%);
  transition: filter 0.6s ease;
}

.project-card:hover video {
  filter: saturate(100%);
}

.project-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.85rem;
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  padding: 8px 15px;
}

.project-info {
  padding: 20px 25px 25px;
  color: #eee;
}

.project-info h3 {
  color: #ff5c8d; /* pink-ish title */
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.project-info .role {
  font-size: 1rem;
  font-weight: 500;
  color: #ccc;
  margin-bottom: 15px;
}

.project-info .desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #aaa;
}

/* === CONTACT SECTION === */
.contact {
  background-color: #111;
  color: #fff;
  text-align: center;
  padding: 80px 20px 60px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.contact p {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 40px;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 50px;
}


.contact-btn {
  border: 2px solid #fff;
  color: #fff;
  padding: 14px 30px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background-color: #fff;
  color: #000;
}

/* Social icons */
.social-links p {
  font-weight: 600;
  margin-bottom: 10px;
  color: #ddd;
}

.social-links .icons a {
  font-size: 1.8rem;
  color: #fff;
  margin: 0 10px;
  transition: transform 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.social-links .icons a:hover {
  color: #ff5c8d;
  transform: scale(1.15);
}

/* Back to top button */
.back-to-top {
  display: inline-block;
  margin-top: 40px;
  padding: 10px 25px;
  background-color: #222;
  color: #fff;
  border: none;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.back-to-top:hover {
  background-color: #ff5c8d;
}

/* === Spaceship Setup === */

.ship-zone {
  background-color: #111;
  position: relative;      /* crucial: container for absolute children */
  height: 80px;           /* visible height (adjust as needed) */
  /*overflow: hidden;  */      /* hide bullets/ship when outside vertical range */
}

#bullet-container {
  position: fixed;
  top: 0;
  left: 0;
  inset 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.spaceship-container {
  position: absolute;
  bottom: 0px;               /* distance above footer — adjust as needed */
  left: 0;                    /* container's left is 0;: none;       /* do not block clicks */
  z-index: 9999;
  will-change: transform;
  transform: translateX(0);   /* initial translation stored in transform */
}

.spaceship {
  width: 80px;
  height: auto;
  display: block;
  transform-origin: 80% 80%;  /* pivot point for rotation (tweak if needed) */
  transition: transform 120ms cubic-bezier(.2,.9,.2,1); /* smooth micro transitions */
}

#bullet-container .bullet {
  position: absolute;
  width: 6px;
  height: 14px;
  background-color: #00ff00;
  border-radius: 0;
  box-shadow: 0 0 8px #00ff00, 0 0 12px #00ff00;
  z-index: -100;
  pointer-events: none;
  transition: transform 0.1s ease;
}

/* === FOOTER === */
.footer {
  background-color: #1a1a1a;
  color: #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 10%;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-left h4 {
  margin: 0;
  color: #fff;
  font-weight: 600;
}

.footer-left p {
  margin: 0;
  font-size: 0.9rem;
  color: #aaa;
}

.footer-pic {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-right {
  text-align: right;
}

.footer-right h5 {
  margin-bottom: 8px;
  color: #fff;
}

.footer-right .icons a {
  text-decoration: none;
  border: none;
}

.footer-right .icons img {
  width: 40px; /* adjust size as needed */
  height: 40px;
  filter: grayscale(100%) brightness(70%);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.footer-right .icons img:hover {
  filter: grayscale(0%) brightness(100%);
  opacity: 1;
  transform: scale(1.1); /* small zoom on hover */
}

/* === PROJECT SPECIFIC WEB PAGES === */

/* === PROJECT PAGE: VIDEO HERO === */
.project-page-video-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.project-page-video-section video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-page-video-overlay {
  position: absolute;
  bottom: 0%;
  left: 0%;
  width: 100%;	
  background-color: rgba(0, 0, 0, 0.6);
  padding: 0.1rem 2rem;
  
}

.project-page-video-overlay h1 {
  font-size: 1.5rem;
  color: #8ef3ff;
}

.project-details-container {
  display: grid; /* FIXED: Use Grid for reliable two-column layout */
  grid-template-columns: 1fr 1fr; /* Two equal columns */
  gap: 1.5rem;
  margin: -5rem auto 3rem auto; /* Adjusted margin to move it up slightly */
  width: 90%;
  max-width: 1200px;
}

.project-details-container .project-page-card {
  background-color: #1b1b1b;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.project-info-list {
  list-style: none; /* Remove default bullet points */
  padding: 0;
  margin: 0;
}

.project-info-list li {
  display: flex; /* Use flex for icon and text alignment */
  align-items: center;
  margin-bottom: 0.8rem;
  color: #ccc;
  line-height: 1.4;
}

.project-info-list li span {
  font-size: 1.2rem;
  margin-right: 0.7rem;
  color: #8ef3ff; /* Use your highlight color for the icons/symbols */
}

.details-about-card p {
  color: #fff; /* Changed from #ccc to white for better contrast */
  line-height: 1.6;
}

/* === PROJECT PAGE: INFO CARDS === */
.project-page-info-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem auto;
  width: 90%;
}

.project-page-card {
  background-color: #1b1b1b;
  border-radius: 12px;
  padding: 1.5rem;
  flex: 1 1 400px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.project-page-card h2 {
  margin-bottom: 1rem;
  color: #fff;
}

/* === PROJECT PAGE: INTRO SECTION === */
.project-page-intro-section {
  width: 90%;
  max-width: 1200px;
  margin: 3rem auto;
}

.project-page-intro-section h2 {
  color: #8ef3ff;
  margin-bottom: 1rem;
}

.project-page-intro-section p {
  line-height: 1.6;
  color: #ddd;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .project-page-info-section,
  .project-details-container {
    /* Changed from flex-direction: column to simply removing the grid template */
    grid-template-columns: 1fr; /* Stacks the two cards vertically */
    align-items: center;
    width: 95%;
  }
}