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

body{
background:#000;
color:white;
font-family:'Inter',sans-serif;
}

.projects-hero{
min-height:100vh; /* allows scroll animation */
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
text-align:center;
padding:120px 8%;
}

.projects-hero h1{
font-size:3rem;
margin-bottom:80px;
font-family:'Space Grotesk',sans-serif;
}

.project-showcase{
max-width:1200px;
margin:auto;
}

.project-image-container{
perspective:1200px;
}

.project-image{
width:500px;
transition:transform 0.4s ease;
}

/* Hover effect (desktop) */
.project-image:hover{
transform:scale(0.92);
}

/* Mobile disable scaling */
@media(max-width:768px){

.project-image{
width:90%;
transform:none !important;
}

.project-image:hover{
transform:none;
}

}
.project-container {
  position: relative;
  display: inline-block;
}

.project-text {
  transition: transform 0.2s ease;
  transform-origin: center;
  display: inline-block;
}

/* Only enable hover scaling on desktops */
@media (hover: hover) and (pointer: fine) {
  .project-container:hover .project-text {
    transform: scale(1.05); /* small default hover scale */
  }
}

body { background-color: #000; color: white; font-family: sans-serif; }

.thruster-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 50px;
  max-width: 1000px;
  margin: auto;
}

.image-wrapper img {
  width: 600px; /* Adjust size here */
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
}

.label-column {
  display: flex;
  flex-direction: column;
  gap: 80px; /* Space between the text boxes */
  width: 250px;
}

.label h3 {
  color: #00ccff; /* Modern tech blue */
  font-size: 1.1rem;
  margin-bottom: 5px;
  text-transform: uppercase;
  border-bottom: 1px solid #333;
}

.label p {
  font-size: 0.9rem;
  color: #bbb;
  line-height: 1.4;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
  .thruster-container { flex-direction: column; text-align: center; }
  .label-column { width: 100%; gap: 20px; }
}
body { background-color: #000; margin: 0; overflow-x: hidden; }

.scroll-section {
  height: 90vh; /* Makes the scroll area long */
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  background: #000;
}

.animation-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Prevents scrollbars on the individual wrapper */
}

#thruster {
  width: 300px;
  z-index: 2;
  transform: scale(0.5); /* Starts small like Apple's intro */
  opacity: 0;
}

.scroll-text {
  position: absolute;
  font-family: "Helvetica", sans-serif;
  font-weight: 800;
  font-size: 6vw;
  color: rgba(255, 255, 255, 0.1); /* Ghostly white text */
  white-space: nowrap;
  opacity: 0;
}

.left { left: 1%; }
.right { right: 1%; }

#thruster {
  width: 600px;
  z-index: 2;
  /* Force GPU Acceleration */
  transform: translateZ(0); 
  will-change: transform, opacity;
  opacity: 0;
  /* Prevent 'shaking' during scale */
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}
.scroll-text {
  position: absolute;
  z-index: 50;

  font-family: "Helvetica", sans-serif;
  font-weight: 800;
  font-size: 6vw;

  color: #ffffff;

  white-space: nowrap;

  opacity: 1;
  pointer-events: none;
}
#thruster {
  width: 500px;
  z-index: 2; /* Lower than the text */
  position: relative;
}

.info-card {
  position: absolute;
  width: 350px;
  background: rgba(255, 255, 255, 0.05); /* Glassmorphism look */
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0; /* Hidden at start */
  z-index: 20;
}

/* Positioning cards around the center */
#card-1 { top: 20%; left: 10%; }
#card-2 { top: 60%; right: 10%; }
#card-3 { bottom: 20%; left: 15%; }

.info-card h3 {
  color: #00ccff;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.info-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #ddd;
}
@media (max-width: 768px) {
  .scroll-section {
    height: auto; /* Remove the extra scroll height */
    padding: 50px 20px;
  }

  .animation-wrapper {
    position: relative; /* Stop it from sticking to the top */
    flex-direction: column;
    height: auto;
  }

  #thruster {
    width: 100%;
    max-width: 300px;
    margin-bottom: 30px;
    opacity: 1 !important; /* Ensure it's visible */
    transform: none !important;
  }

  .info-card {
    position: relative; /* Stack cards vertically */
    opacity: 1 !important;
    width: 100%;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    margin-bottom: 20px;
    transform: none !important;
  }

  .scroll-text {
    display: none; /* Hide the big background text on mobile to save space */
  }
}

body{
background:#000;
color:#fff;
font-family:'Inter',sans-serif;
overflow-x:hidden;
}

/* SECTION */

.apple-section{
height:100vh;
display:flex;
justify-content:center;
align-items:center;
text-align:center;
position:relative;
}

/* CONTENT */

.apple-wrapper{
max-width:900px;
margin:auto;
}

.apple-object{
width:420px;
display:block;
margin:auto;
will-change:transform;
}

/* TEXT */

.apple-title{
font-size:3rem;
margin-top:40px;
font-weight:600;
}

.apple-desc{
margin-top:15px;
font-size:1.1rem;
color:#aaa;
max-width:500px;
margin-left:auto;
margin-right:auto;
}
.carbon-body-section {
  background: #000;
  color: #fff;
  padding: 80px 10%;
}

.carbon-body-section .rov-wrapper {
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap; /* Stacks on mobile */
}

.carbon-body-section .rov-image-container {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
}

.carbon-body-section .rov-image {
  max-width: 150%;
  border-radius: 15px;
  filter: drop-shadow(0 0 15px rgba(255,255,255,0.2));
}

.carbon-body-section .rov-text {
  flex: 1 1 400px;
  max-width: 600px;
}

.carbon-body-section .rov-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.carbon-body-section .rov-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ccc;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .carbon-body-section .rov-wrapper {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }
}
/* MOBILE */

@media(max-width:768px){

.apple-object{
width:250px;
}

.apple-title{
font-size:2rem;
}

.apple-desc{
font-size:1rem;
}

}


/* hero section */
/* HERO SECTION */

.cinematic-hero{
  position:relative;
  height:100vh;
  overflow:hidden;
  background:#000;
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
  color:white;
  font-family: 'Inter', sans-serif;
}

/* subtle moving light */

.hero-light{
  position:absolute;
  width:1200px;
  height:1200px;
  background:radial-gradient(circle,#0a84ff40,transparent 60%);
  filter:blur(80px);
  animation:lightMove 12s infinite alternate ease-in-out;
}

@keyframes lightMove{
  0%{transform:translate(-20%, -10%) scale(1);}
  100%{transform:translate(20%, 10%) scale(1.2);}
}

/* content */

.hero-content{
  position:relative;
  z-index:3;
  max-width:900px;
  padding:20px;
}

.hero-title{
  font-size:clamp(3.5rem,8vw,7rem);
  font-weight:700;
  line-height:1.05;
  letter-spacing:-2px;
}

.hero-title span{
  color:#0a84ff;
}

.hero-sub{
  margin-top:25px;
  font-size:1.3rem;
  color:#bfbfbf;
  max-width:600px;
  margin-left:auto;
  margin-right:auto;
}
/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-object { width: 120px; opacity: 0.3; }
}






.hero-title{
will-change: transform;
transform-origin:center;
}

/* Add to projects.html CSS */
body {
    animation: fadeInPage 0.8s ease-in-out;
}

@keyframes fadeInPage {
    from { opacity: 0; }
    to { opacity: 1; }
}

.exit-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  z-index: 100;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.exit-btn:hover {
  background: #0a84ff;
  border-color: #0a84ff;
  transform: scale(1.1);
}


.spec-highlight{
text-align:center;
margin-top:120px;
opacity:0;
transform:translateY(40px);
transition:all .8s ease;
}

.spec-highlight.visible{
opacity:1;
transform:translateY(0);
}

.spec-number{
font-size:90px;
font-weight:700;
font-family:'Michroma',sans-serif;
line-height:1;
}

.spec-unit{
font-size:28px;
color:#aaa;
margin-bottom:10px;
}

.spec-label{
font-size:20px;
color:#fff;
margin-bottom:6px;
}

.spec-desc{
font-size:14px;
color:#777;
max-width:300px;
margin:auto;
}

.thruster-block{
display:flex;
flex-direction:column;
align-items:center;
gap:30px;
}

.spec-highlight{
text-align:center;
max-width:300px;
}

.spec-number{
font-family:'Michroma',sans-serif;
font-size:80px;
line-height:1;
}

.spec-unit{
font-size:22px;
color:#aaa;
margin-bottom:10px;
}

.spec-label{
font-size:18px;
color:#fff;
margin-bottom:6px;
}

.spec-desc{
font-size:14px;
color:#777;
}

/* MOBILE */
@media (max-width:768px){

#thruster{
width:70%;
}

.spec-number{
font-size:60px;
}

.spec-desc{
padding:0 20px;
}

}

.spec-highlight{
text-align:center;
margin-top:30px;
opacity:0;
transform:translateY(80px);
transition:all 1s cubic-bezier(.16,1,.3,1);
}

.spec-highlight.active{
opacity:1;
transform:translateY(0);
}

.spec-number{
font-family:'Michroma',sans-serif;
font-size:90px;
line-height:1;
}

.spec-unit{
font-size:24px;
color:#aaa;
margin-bottom:10px;
}

.spec-label{
font-size:20px;
margin-bottom:5px;
}

.spec-desc{
font-size:14px;
color:#777;
max-width:280px;
margin:auto;
}
@media (max-width:768px){

.spec-number{
font-size:60px;
}

}

.camera-section{
min-height:120vh;
background:#000;
display:flex;
align-items:center;
justify-content:center;
padding:120px 10%;
text-align:center;
}

.camera-wrapper{
max-width:1200px;
}

.camera-big-title{
font-family:'Michroma',sans-serif;
font-size:64px;
line-height:1.1;
margin-bottom:80px;
letter-spacing:-2px;
}

.camera-image{
width:420px;
margin:auto;
display:block;
margin-bottom:80px;
transition:transform 0.6s ease;
}

.camera-image:hover{
transform:scale(1.05);
}

.camera-specs{
display:flex;
justify-content:center;
gap:120px;
flex-wrap:wrap;
}

.camera-spec{
max-width:220px;
}

.spec-number{
font-size:72px;
font-family:'Michroma',sans-serif;
}

.spec-label{
font-size:18px;
margin-top:10px;
}

.spec-desc{
font-size:14px;
color:#777;
margin-top:5px;
}
.camera-spec{
opacity:0;
transform:translateY(40px);
transition:all .8s ease;
}

.camera-spec.visible{
opacity:1;
transform:translateY(0);
}





/* ===================== */
/* Animated Chrome-style Gripper Section */
/* ===================== */

.gripper-section {
  position: relative;
  width: 100%;
  min-height: 120vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px 5%;
  background: #000;
  color: #fff;
  overflow: hidden;
}

.gripper-container {
  display: flex;
  align-items: flex-start;
  gap: 80px;
  max-width: 1200px;
  width: 100%;
  flex-wrap: wrap;
}

/* Sticky Gripper Image */
.gripper-sticky {
  flex: 1;
  position: sticky;
  top: 10%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.gripper-sticky .gripper-img {
  width: 80%;
  max-width: 400px;
  filter: grayscale(80%) brightness(0.8);
  transform: scale(0.8) translateY(50px);
  opacity: 0;
  transition: transform 1s cubic-bezier(.16,1,.3,1), 
              filter 1s ease, 
              opacity 1s ease;
}

/* Hover effect */
.gripper-sticky:hover .gripper-img {
  transform: scale(1) translateY(0);
  filter: grayscale(0%) brightness(1);
}

/* Scrollable Text */
.gripper-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  transform: translateY(50px);
  opacity: 0;
  transition: transform 1s cubic-bezier(.16,1,.3,1), opacity 1s ease;
}

.gripper-text h2 {
  font-family: 'Michroma', sans-serif;
  font-size: 3rem;
  letter-spacing: -1px;
}

.gripper-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ccc;
}

/* ===================== */
/* ACTIVE SCROLL ANIMATIONS */
/* ===================== */
.gripper-section.active .gripper-sticky .gripper-img {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.gripper-section.active .gripper-text {
  transform: translateY(0);
  opacity: 1;
}

/* Subtle parallax while scrolling */
.gripper-section.active .gripper-sticky .gripper-img {
  transition: transform 1.2s cubic-bezier(.16,1,.3,1), opacity 1s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .gripper-container {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .gripper-sticky {
    position: relative;
    top: auto;
  }

  .gripper-sticky .gripper-img {
    width: 250px;
    max-width: 100%;
    transform: scale(1) translateY(0);
    opacity: 1;
  }

  .gripper-text h2 {
    font-size: 2rem;
  }

  .gripper-text p {
    font-size: 1rem;
  }
}
/* hidden state */
.reveal{
opacity:0;
transform:translateY(40px);
transition:all .6s ease;
}
/* visible */

.reveal.active{
opacity:1;
transform:translateY(0);
}
/* MAIN CAMERA */

.main-camera{
transform:translate(-120px,80px) scale(.9);
}

.main-camera.reveal.active{
transform:translate(0,0) scale(1);
}

/* INTEL CAMERA */

.intel-camera{
transform:translate(120px,80px) rotate(-8deg) scale(.8);
}

.intel-camera.reveal.active{
transform:translate(0,0) rotate(-8deg) scale(1);
}


/* CAMERA IMAGES CONTAINER */

.camera-images{
position:relative;
display:flex;
justify-content:center;
align-items:center;
gap:60px;
margin:60px 0;
}


/* CAMERA IMAGES */

.camera-image{
position:relative;
z-index:2;
}


/* DEPTH GRID (SCANNING EFFECT) */

.depth-grid{
position:absolute;
width:420px;
height:420px;

left:50%;
top:50%;
transform:translate(-50%,-50%) rotateX(60deg);

background:
linear-gradient(rgba(0,255,255,0.15) 1px, transparent 1px),
linear-gradient(90deg, rgba(0,255,255,0.15) 1px, transparent 1px);

background-size:40px 40px;

opacity:0.4;
pointer-events:none;
z-index:0;

animation:gridMove 6s linear infinite;
}


/* GRID ANIMATION */

@keyframes gridMove{
0%{background-position:0 0;}
100%{background-position:0 40px;}
}


.intel-spec{
max-width:600px;
margin:80px auto;
text-align:center;
}

.intel-spec-title{
font-size:28px;
font-weight:600;
margin-bottom:30px;
}

.intel-spec-bar{
display:flex;
flex-direction:column;
gap:18px;
}

.bar{
height:36px;
border-radius:8px;
display:flex;
align-items:center;
padding-left:12px;
color:white;
font-weight:500;
}

.rov-bar{
background:linear-gradient(90deg,#00e5ff,#00aaff);
}

.other-bar{
background:#555;
}

.intel-spec-desc{
margin-top:25px;
opacity:.8;
font-size:15px;
}

.intel-spec-bar{
display:flex;
flex-direction:column;
gap:18px;
margin-top:30px;
}

.bar{
height:36px;
border-radius:8px;
display:flex;
align-items:center;
padding-left:12px;
color:white;
font-weight:500;
width:0;
transition:width 1.2s ease;
}

.rov-bar{
background:linear-gradient(90deg,#00e5ff,#00aaff);
}

.other-bar{
background:#555;
}

/* animate when revealed */

.intel-spec.reveal.active .rov-bar{
width:92%;
}

.intel-spec.reveal.active .other-bar{
width:45%;
}

.camera-specs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.camera-spec {
  opacity: 1 !important;  /* always visible */
  transform: none !important; /* no translation */
}

.spec-number {
  font-size: 36px;
  font-weight: bold;
  color: #00e5ff;
}

.spec-label {
  font-size: 18px;
  font-weight: 600;
}

.spec-desc {
  font-size: 14px;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .camera-images {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .main-camera,
  .intel-camera {
    position: relative; /* remove absolute positioning */
    transform: none !important; /* cancel desktop transforms */
    width: 80%; /* scale to fit mobile */
  }

  .depth-grid {
    display: none; /* optional: hide scanning grid for mobile */
  }
}

@media (max-width: 768px) {
  .camera-specs {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .camera-spec .spec-number {
    font-size: 24px;
  }
}

/* Wrapper to align side by side on desktop */
.camera-specs-wrapper {
  display: flex;
  gap: 60px;
  justify-content: center;
  align-items: flex-start;
  margin-top: 40px;
  flex-wrap: wrap; /* allows wrapping on small screens */
}

/* Main specs */
.main-specs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Intel Depth comparison */
.intel-spec {
  max-width: 400px;
  text-align: left;
}

/* Bars */
.intel-spec-bar {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.bar {
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding-left: 12px;
  color: white;
  font-weight: 500;
  width: 0; /* will animate on reveal */
  transition: width 1.2s ease;
}

.rov-bar { background: linear-gradient(90deg,#00e5ff,#00aaff); }
.other-bar { background: #555; }

/* Animate bars when revealed */
.intel-spec.reveal.active .rov-bar { width: 92%; }
.intel-spec.reveal.active .other-bar { width: 45%; }

/* Mobile adjustments */
@media (max-width: 768px) {
  .camera-specs-wrapper {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .intel-spec {
    max-width: 80%;
    text-align: center;
  }

  .main-specs {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .gripper-sticky {
    position: relative;       /* stop sticky behavior */
    top: auto;
    display: flex;
    justify-content: center;  /* horizontal center */
    align-items: center;      /* vertical center within container */
    width: 100%;
  }

  .gripper-sticky .gripper-img {
    width: 250px;             /* adjust size */
    max-width: 100%;
    transform: none !important; 
    opacity: 1 !important;    /* make it visible immediately */
  }

  .gripper-text {
    transform: none !important; 
    opacity: 1 !important;    /* make text visible immediately */
    transition: none;         /* no staggered animation */
    gap: 20px;
  }

  .gripper-text p {
    opacity: 1 !important;    /* all paragraphs visible */
    transform: none !important;
  }
}
.gripper-section.active .gripper-text {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 768px) {
  .gripper-text {
    opacity: 1 !important;      /* fully visible */
    transform: none !important;  /* no vertical translation */
  }
}
@media (max-width: 768px) {
  /* 1. Stack the wrapper vertically */
  .animation-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto !important;
    padding-top: 40px;
  }

  /* 2. Move title to position 1 */
  .thruster-title-container {
    order: 1; 
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
  }

  .scroll-text {
    position: static !important; /* Resets absolute desktop positioning */
    display: block !important;
    font-size: 14vw !important; /* Bold, responsive text size */
    line-height: 1;
    color: white !important;
    opacity: 1 !important;
    transform: none !important;
    letter-spacing: -2px;
  }

  /* 3. Move the thruster image to position 2 */
  .thruster-block {
    order: 2;
    width: 85% !important;
    margin: 0 auto;
  }

  #thruster {
    width: 100%;
    opacity: 1 !important;
    transform: none !important;
  }

  /* 4. Push info cards to position 3 */
  .info-card {
    order: 3;
    position: static !important;
    width: 90% !important;
    margin: 15px 0 !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 768px) {
  /* ROV image container */
  .carbon-body-section .rov-image {
    width: auto;           /* Let width adjust automatically */
    max-width: 90%;        /* Keeps it within the screen */
    height: auto;          /* Maintains aspect ratio */
    object-fit: contain;   /* Prevents stretching */
  }

  .carbon-body-section .rov-image-container {
    display: flex;
    justify-content: center; /* Centers the image */
    align-items: center;
  }
}