:root {
  --background-color: #000000; /* base 60%*/
  --overlay-color: rgba(0, 0, 0, 0.6);

  --primary-text-color: #ffffff; /* secondary 30%*/
  --secondary-text-color: #c0c0c0;
  --highlight-text-color: #ff3503;
  --link-text-color: #f0f0f0;

  --accent-color-1: #ff3503; /* primary accent 10%*/
  --accent-color-2: #00bcd4;
  --accent-color-3: #8e44ad;

  --button-bg-color: #ff3503; 
  --button-text-color: #ffffff;
  --button-hover-color: #ff3503;

  --border-color: #ff3503;
  --shadow-color: rgba(255, 107, 0, 0.3);
}



body {
  background-color: var(--background-color);
  color: var(--primary-text-color);
   font-family: 'Orbitron', sans-serif !important;
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Smooth scroll wrapper */
.scroll-content {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  will-change: transform;
  transform: translateY(0);
}


.hero-content.animate .fade-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp .8s ease-out forwards;
}

/* Fade in: GLENELL (after 10s) */
.hero-content.animate .fade-item:nth-child(1) {
  animation-delay: 1s;
}

/* Subtitle: after 11s */
.hero-content.animate .fade-item:nth-child(2) {
  animation-delay: 2s;
}

/* Paragraph: after 12s */
.hero-content.animate .fade-item:nth-child(3) {
  animation-delay: 3s;
}

/* Button 1: after 13s */
.hero-content.animate .fade-item:nth-child(4) {
  animation-delay: 8s;
}

/* Button 2: after 13.5s */
.hero-content.animate .fade-item:nth-child(5) {
  animation-delay: 9.5s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scrollbar styling (for WebKit browsers) */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--background-color); /* or #1e1e1e */
}

::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 10px;
  border: 2px solid var(--background-color); /* creates padding effect */
}

/* Firefox scrollbar */
body {
  scrollbar-width: thin;
  scrollbar-color: #000000 var(--background-color);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Orbitron', sans-serif !important;
}

body {
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
}

/* Navigation */
nav {
  position: sticky; /* or fixed */
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
  background-color: rgba(0,0,0,0.2);
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 12px;
  transition: color 0.3s ease;
  margin-right: 50px;
}

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

.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 5px;
  transition: all 0.3s ease;
}

/* Navigation for tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  nav {
    padding: 1rem 1.8rem;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    display: none;
  }

  /* ✅ Use the same class from JavaScript: .nav-active */
  .nav-links.nav-active {
    display: flex;
  }

  .nav-links a {
    margin-right: 0;
    font-size: 1.2rem;
    letter-spacing: 5px;
  }

  .burger {
    display: block;
  }
}

/* Navigation for mobile */

@media (max-width: 768px) {
  nav {
    flex-direction: row;
    justify-content: space-between;
    padding: 1rem 1.2rem;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    display: none;
    z-index: 999;
  }

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

  .nav-links a {
    margin-right: 0;
    font-size: 1.1rem;
    letter-spacing: 4px;
  }

  .burger {
    display: block;
  }

  .burger div {
    background-color: #fff;
  }
}

@media screen and (max-width: 768px) {
  .nav-links {
    position: absolute;
    right: 0px;
    height: 100vh;
    top: 0;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50%;
    transform: translateX(100%);
    transition: transform 0.5s ease-in;
    z-index: 1000;
  }

  .nav-links a {
    opacity: 0;
  }

  .burger {
    display: block;
    z-index: 1001;
  }

  .nav-active {
    transform: translateX(0%);
  }

  .toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .toggle .line2 {
    opacity: 0;
  }

  .toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .main-heading {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }
}

@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0px);
  }
}

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

body {
    font-family: 'Orbitron', sans-serif !important;
  background-color: var(--background-color); 
  color: #ffffff;
  min-height: 100vh;
}

/* Video background container */
.video-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.content-wrapper,
.h2 {
  text-transform: uppercase;
  letter-spacing: 1px;
}

.content-wrapper {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  margin: 0;
}

.left-content,
.right-content {
  padding: 0;
  margin: 0;
}

.main-heading,
.h1 {
  color: var(--highlight-text-color);
}
.left-content1,
.right-content {
  width: 60%;
  padding-right: 100px;
}

/* animation for  year selection*/
/* Experience items - start hidden */
.experience-item {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 2s ease, transform 2s ease;
  /* Remove transition-delay dito para controlled ng JS */
}

.experience-item.animate {
  opacity: 1;
  transform: translateX(0);
}

/* Fade-in-up (left content) */
.fade-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 2s ease, transform 2s ease;
  /* Remove transition-delay dito para controlled ng JS */
}

.fade-item.animate {
  opacity: 1;
  transform: translateY(0);
}



.main-heading {
  font-size: 3.875rem;
  margin-bottom: 1rem;
  margin-left: 0;          
  padding-left: 0;    
}

.subtitle {
  font-size: 2.375rem;
  margin-bottom: 1rem;
  margin-left: 0;          
  padding-left: 0;    
}

.intro-text {
  font-size: 1.45rem;      
  font-weight: 300;        
  line-height: 1.618;     
  color: var(--secondary-text-color);
  
  max-width: 50ch;         
  margin-bottom: 2.5rem;  
  
  /* Imbes na padding-left, gumamit ng margin para itugma sa alignment ng Name */

  margin-left: 0;          
  padding-left: 0;         
}

.buttons {
  margin-left: 0;
  padding-left: 0;
}

.buttons a {
  letter-spacing: 5px;
  margin-right: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.about-text .btn-primary {
  position: relative;
  top: 20px;
}

.btn-primary {
  margin-top: 2rem;
  background-color: var(--button-bg-color);
  color: #F8F8FF;
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
}

.btn-secondary {
     background: #111;
    color: #F8F8FF;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 5px 5px 12px #000, -5px -5px 12px #1c1c1c;
    transition: 0.3s;
}

.experience-list {
  list-style: none;
  padding: 0;
}

.experience-item {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.profile-image {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 150px;
  border-radius: 10px;
  z-index: 1;
}

.btn-primary:hover {
  background-color: #6c757d;
}
.btn-secondary:hover {
  background-color: var(--button-hover-color);
}




/*MOBILE LANDSCAPE samsung galaxy s20 ultra landing page and about*/
@media screen and (max-width: 915px) and (orientation: landscape) {
  .video-container {
  position: relative;
  width: 100vw;
  height: 250vh;
  overflow: hidden;
  padding: 0;
  margin: 0;
}
  .btn-secondary{
    position: relative;
    top: 2rem;
    height: 2.5rem;
    width: 12rem;
    white-space: nowrap;
    
  }

  .about-me-section1{
   height: 90rem
  }
  .left-content1{
    position: relative;
    right: 12rem;
    height: 60rem !important;
    width: 50rem !important;
  }


  .bio-text1{
    font-size: 12px !important;
  }

 
.signature1{
  position: absolute;
  top: 30rem !important;
  z-index: 9999 !important;
}

}


/* Mobile (up to 768px) */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
    scroll-behavior: smooth;
  }

  .video-container {
    height: auto;
    min-height: 100vh;
  }

  .content-wrapper {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem 2rem;
    text-align: center;
    gap: 1.5rem;
  }

  .left-content,
  .right-content {
    width: 100%;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
  }

  .main-heading {
    font-size: 2.5rem;
    padding-left: 0;
    transition: all 0.3s ease;
  }

  .section-title1{
    margin-top: 5rem;
    margin-bottom: 5rem;
  }
  .subtitle {
    font-size: 1.2rem;
    padding-left: 0;
    transition: all 0.3s ease;
  }

  .intro-text {
    font-size: 0.95rem;
    padding-left: 0;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
  }

  .buttons {
    padding-left: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    transition: all 0.3s ease;
  }

  .buttons a {
    margin-right: 0;
    font-size: 0.9rem;
    transition: all 0.3s ease;
  }

  .profile-image {
    position: static;
    margin: 2rem auto 0;
    display: block;
    width: 120px;
    transition: all 0.3s ease;
  }
  .btn-primary{
    position: relative;
    bottom: 0.2rem;
    right: 1.5rem;
   margin-left: 3.5rem;
    height: 3rem;
   white-space: nowrap;
  }

  /*my services*/
    .section-question2{
    position: absolute;
    top: 30% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    font-size: 1.1rem !important;
  }
 
}

/* Universal Tablet: 768px–1180px */
@media (min-width: 768px) and (max-width: 1180px) {
  .content-wrapper {
    flex-direction: column;
    justify-content: center;
    padding: 0 4rem;
    text-align: center;
  }

  html,
  body {
    overflow-x: hidden;
    scroll-behavior: smooth;
  }

  .left-content,
  .right-content {
    width: 100%;
    padding: 0;
    margin: 1rem 0;
  }

  .main-heading {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    padding-left: 0;
  }

  .subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    padding-left: 0;
  }

  .intro-text {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    padding-left: 0;
    margin-bottom: 2rem;
  }

  .buttons {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-left: 0;
  }

  .buttons a {
    font-size: 1rem;
    margin-right: 0;
  }

  .profile-image {
    position: static;
    margin: 2rem auto 0;
    display: block;
    width: clamp(110px, 15vw, 140px);
  }

  .btn-secondary {
    position: relative;
    top: 1.5rem;
    height: 3rem;
  }

  /* About section */
  .section-heading1 {
    position: relative;
    margin-top: 1rem !important;
  }

  /* Tools section */
  .section-title2 {
    position: relative;
    top: 10rem !important;
    font-size: 1.7rem !important;
    text-align: center;
  }

  .section-question {
    position: relative;
    top: 11rem !important;
    font-size: clamp(1.6rem, 2vw, 2rem);
    text-align: center;
  }

  .section-question2 {
    position: relative;
    top: 10.5rem !important;
    text-align: center;
    font-size: clamp(1.6rem, 2vw, 2rem);
  }

  .tools-grid {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 5rem;
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  /* Services section */
  .services-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    padding: 0 5% !important;
  }

  .service-card {
    flex: 1 1 40%;
    max-width: 45%;
    min-width: 300px;
    height: auto;
    padding: 25px;
    margin: 0 auto;
  }

  .service-title {
  
    margin-bottom: 1rem;
  }

  .service-icon {
    font-size: 3rem;
  }

  .service-description {
    color: #ffffff;
    font-size: 0.95rem;
  }

  /* Section title */
  .section-title3 {
    position: absolute!important;
    top: 4%;
    text-align: center !important;
    font-size: 2rem !important;
   

  }

  .section-title3::after {
    content: "";
    display: block;
    height: 2px;
    background-color: #ff3300;
    width: 17rem !important;
    bottom: -8px;
  }

  /* Contact section */
  .section-title1 {
          position: absolute !important;
        top: 74% !important;
        left: 15rem !important;
        font-size: 2rem !important;
  
        text-align: center !important;
        margin-bottom: 5rem !important;
        white-space: normal;
    
  }

  .section-title1::after {
    content: "";
    display: block;
    height: 2px !important;
    background-color: #ff3300;
    width: 17rem !important;
    bottom: -8px;
  }


  .contact-container1 {
   margin-left: 2rem !important;
   margin-right: 2rem !important;
    justify-content: center !important;
    align-items: center;
    padding: 3rem 0;
  }
}





/* ====== Tablet Landscape (≤1024px, landscape) ====== */
@media (max-width: 1024px) and (orientation: landscape) {
  .gallery-container {
    gap: var(--g-gap-md);
    align-items: stretch;
  }
  /* Keep two strong columns: video + grid */
  .video-preview {
    position: relative; /* turn off sticky for cleaner flow */
    top: 0;
    max-width: 44%;
    margin: 0 auto 1.25rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: var(--g-gap-md);
  }
  .gallery-item img { height: clamp(9rem, 20vw, 14rem); }
}

/* ====== Tablet Portrait (≤820px) ====== */
@media (max-width: 820px) {
  .gallery-container {
    flex-direction: column;     /* stack vertically */
    align-items: center;
    gap: var(--g-gap-md);
  }
  .profile-image {
    width: 120px; height: 120px;
    margin-bottom: .5rem;
  }
  .video-preview {
    max-width: 92%;
    position: relative;
    top: 0;
    margin-bottom: 1.25rem;
  }
  .gallery-grid {
    width: 100%;
    grid-template-columns: repeat(1, minmax(160px, 1fr)); /* 2-up grid */
    gap: var(--g-gap-md);
  }
  .gallery-item { border-radius: var(--card-radius); }
  .gallery-item img { height: clamp(9rem, 24vw, 12rem); }
}

/* ====== Mobile Landscape (≤736px, landscape) ====== */
@media (max-width: 736px) and (orientation: landscape) {
  .video-preview { 
    max-width: 100%;
    margin: 0 0 .75rem 0;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr)); /* 2 columns fits */
    gap: var(--g-gap-sm);
  }
  .gallery-item img { height: clamp(8rem, 22vw, 10rem); }
}

/* ====== Mobile Portrait (≤600px) ====== */
@media (max-width: 650px) {
  .gallery-container {
    padding: 0 .5rem;
    gap: var(--g-gap-sm);
  }
  .profile-image {
    width: 108px; height: 108px;
  }
  .video-preview { 
    max-width: 100%;
    margin-bottom: .75rem;
  }
  .video-preview video {
    border-radius: 12px;
  }
    .gallery-grid {
    grid-template-columns: repeat(1, 1fr);
    grid-column: span 2;
  }

  .gallery-item img { height: clamp(8.5rem, 38vw, 10.5rem); }
  .gallery-item.text-item {
    padding: .75rem;
  }
}

/* ====== Small Phones (≤400px) ====== */
@media (max-width: 400px) {
  .gallery-container { gap: .5rem; }
  .gallery-item img { height: clamp(7.5rem, 40vw, 9rem); }
}

/* ===== Micro-UI polish ===== */
.gallery-item:hover {
  border-color: rgba(255, 120, 0, .9);
  box-shadow:
    0 0 18px rgba(255, 80, 0, .6),
    0 0 36px rgba(255, 40, 0, .35);
  transform: translateY(-2px) scale(1.03);
}

.video-preview video:hover {
  transform: translateY(-2px) scale(1.015);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .gallery-item, .video-preview video { transition: none; }
}









/* Right content work experience*/

/* Container */
.right-content {
  flex: 1;
  margin-top: 1.4rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 2%;
}

.experience-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.experience-item {
  margin-bottom: 1.5rem;
  position: relative;
  cursor: pointer;
  padding: 10px; /* i add ko para hindi dikit ang scanning line */
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Mas bouncy na paglaki */
  overflow: hidden; /* Important para sa scanning line! */
}

.exp-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Duration Text */
.duration {
  font-size: 12px;
  color: var(--highlight-text-color);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 4px;
}

/* Title Text */
.title {
  font-size: 18px;
  font-weight: 500;
  color: #ffffff;
  font-family: 'Arial', sans-serif;
  transition: all 0.3s ease;
}

/* --- Hover States --- */

.experience-item:hover {
  transform: scale(1.1);
  z-index: 10;
}

/* Pinagsamang Title Hover Effect */
.experience-item:hover .title {
  color: var(--highlight-text-color);
  text-shadow: 0 0 15px rgba(255, 77, 0, 0.6); /* Mas glowing */
}

/* --- Scanning Line Effect --- */
.experience-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px; /* Ginawang 2px para mas kita ang glow */
  background: linear-gradient(90deg, 
    transparent, 
    var(--highlight-text-color), 
    transparent
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.experience-item:hover::after {
  opacity: 1;
  animation: scanLine 1.5s infinite linear; /* Pinabilis nang kaunti para mas dynamic */
}

@keyframes scanLine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Media Query */
@media screen and (min-width: 1200px) {
  .profile-image {
    display: block;
  }
}




/* Responsive styles */
@media screen and (max-width: 992px) {
  .content-wrapper {
    flex-direction: column;
  }

  .left-content {
    padding-right: 0;
    margin-bottom: 3rem;
  }

  .right-content {
    align-items: flex-start;
  }

  .experience-item {
    text-align: left;
    border-left: 3px solid transparent;
    border-right: none;
  }

  .main-heading {
    font-size: 2.8rem;
  }

  .subtitle {
    font-size: 1.5rem;
  }
}


/* Profile image container */
.profile-image {
  position: relative;
  bottom: 0%;
  max-width: 150px; /* Adjust size as needed */
  height: auto;
  margin-top: 10px;
  margin-left: 10px;

  align-self: flex-start; /* Aligns the image to the start */
}




/* Experience detail section */
.experience-detail {
  display: none;
  padding: 3rem 2rem;
  min-height: 50vh;
}

.experience-detail.active {
  display: block;
}

/* Experience detail styling in image bento*/
.experience-header {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  border-left: 3px solid var(--border-color);
  padding-left: 1rem;
}
.experience-header img {
  height: 200px;
  width: 150px;
}

.experience-content h3 {
  color: var(--accent-color-1);
  margin-bottom: 1rem;
}

.experience-content ul {
  list-style-type: none;
  margin-left: 1rem;
}

.experience-content li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.5rem;
}

.experience-content li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  background-color: var(--button-bg-color);
  border-radius: 50%;
}

/* Core gallery container image bento */
.gallery-container {
  max-width: 1020px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Grid layout - 5 columns on desktop */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr) !important;
  grid-auto-rows: minmax(150px, auto);
  gap: 0.5rem;
}

/* Base item */
.gallery-item {
  position: relative;
  background-color: #111;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.gallery-item:hover {
  transform: scale(0.98);
  box-shadow: 0 0 10px var(--highlight-text-color);
}

/* Images */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  display: block;
}

/* Text items */
.gallery-item.text-item {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  background-color: #000;
  padding: 1rem;
  text-align: center;
}

/* Specific grid layout like Bento */
.gallery-item:nth-child(1) {
  grid-column: 1 / 4; /* wider hero image */
  grid-row: span 1;   /* mas mataas para standout */
  height: 300px;
 

}

.gallery-item:nth-child(1) img {   /* mas mataas para standout */
  height: 310px;
 

}

.gallery-item:nth-child(2) {
  grid-column: 4 / 5;
  grid-row: span 1;
}

.gallery-item:nth-child(3) {
  grid-column: 5 / 6;
  grid-row: span 1;  /* tall image */
}

.gallery-item:nth-child(4) {
  grid-column: 1 / 2;
  grid-row: span 1;
}

.gallery-item:nth-child(5) {
  grid-column: 2 / 4;
  grid-row: span 1;
}

.gallery-item:nth-child(6) {
  grid-column: 4 / 5;
  grid-row: span 1;
}

.gallery-item:nth-child(7) {
  grid-column: 5 / 6;
  grid-row: span 1;
}

.gallery-item:nth-child(8) {
  grid-column: 1 / 3; 
  grid-row: span 1; /* big wide image */
}

.gallery-item:nth-child(9) {
  grid-column: 3 / 6;
  grid-row: span 1;
}

/* Para lahat pantay crop kahit anong size */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Fullscreen overlay */
.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.fullscreen-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

/* Fullscreen image - always fit */
.fullscreen-content img {
  position: relative;
 bottom: 120rem;
  max-width: 95vw;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;   /* ensures fit */
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
  animation: zoomFadeIn 0.3s ease;
}


/* Close button */
.close-button {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 53, 3, 0.3);
  color: white;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-button::before {
  content: "×";
}

.close-button:hover {
  background: rgba(255, 51, 0, 0.9);
}

/* Animations */
@keyframes zoomFadeIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

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

/* Responsive */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item.text-item {
    font-size: 1.5rem;
  }
  .close-button {
    top: 10px;
    right: 10px;
  }
}


/* ===== Cyberpunk Bento Gallery ===== */
.gallery-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 2048px;
  margin: 3rem auto;
  padding: 0 1rem;
  align-items: flex-start;
}

/* Profile image: clean, modern, always fits as a profile pic */
.profile-image {
  display: block;
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 1%;
  box-shadow: 0 4px 24px rgba(255, 53, 3, 0.18);
  border: 2px solid var(--accent-color-1);
  background: #181818;
  transition: box-shadow 0.3s;
}

.profile-image:hover {
  box-shadow: 0 8px 32px rgba(255, 53, 3, 0.28);
}
/* ===== Bento Grid ===== */
.gallery-grid {
  flex: 1 1 68%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item {
  object-fit: cover;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(20, 20, 20, 0.6); /* glassy dark */
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 90, 0, 0.4); /* neon orange border */
  box-shadow: 0 0 15px rgba(255, 80, 0, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border 0.4s ease;
}

.gallery-item img {
  width: 100%;
  height: 18rem;
  display: block;
}

.gallery-item.text-item {
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  font-weight: bold;
  color: #ff4500; /* neon orange text */
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
  letter-spacing: 1px;
}

/* Hover glow */
.gallery-item:hover {
  transform: scale(1.05);
  border: 1px solid rgba(255, 100, 0, 0.9);
  box-shadow: 0 0 25px rgba(255, 80, 0, 0.8), 
              0 0 50px rgba(255, 40, 0, 0.6);
}

/* ===== Video Preview ===== */
.video-preview {
  flex: 1 1 30%;
  max-width: 512px;
  max-height: 420px;
  align-self: flex-start;
  position: sticky;
  top: 80px;
}

.video-preview video {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  border-radius: 16px;
  border: 1px solid rgba(255, 80, 0, 0.5);
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(255, 80, 0, 0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border 0.4s ease;
}

.video-preview video:hover {
  transform: scale(1.02);
  box-shadow: 0 0 40px rgba(255, 100, 0, 0.8);
  border: 1px solid rgba(255, 120, 0, 1);
}

/* ===== Responsive Profile Image ===== *

/* ===== Global polish (safe + smooth) ===== */
:root {
  --g-gap-lg: 2rem;
  --g-gap-md: 1rem;
  --g-gap-sm: .75rem;
  --card-radius: 14px;
}

/* Better scaling for text + tiles */
.gallery-item img { 
  height: clamp(10rem, 24vw, 18rem); /* auto-scale per width */
  object-fit: cover;
}

.gallery-item.text-item {
  font-size: clamp(.95rem, 1.8vw, 1.2rem);
}

/* Touch-friendly hover substitute */
@media (hover: none) {
  .gallery-item:active { transform: scale(1.02); }
}

/* Reduce heavy blur on small devices (perf) */
@media (max-width: 900px) {
  .gallery-item { backdrop-filter: blur(6px); }
  .video-preview video { backdrop-filter: blur(6px); }
}

/* ====== Large Tablet / Small Desktop (≤1280px) ====== */
@media (max-width: 1280px) {
  .gallery-container {
    gap: var(--g-gap-md);
    padding: 0 .75rem;
    max-width: 1200px;
  }
  .video-preview {
    max-width: 46%;
    top: 64px;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--g-gap-md);
  }
}


/* Timeline */
.experience-timeline {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 30px;
  padding-right: 40px;
}

.timeline-item {
  text-align: right;
  max-width: 250px;
  opacity: 0;
  transform: translateX(30px);
  animation: fadeIn 0.5s ease forwards;
}

.timeline-item:nth-child(1) {
  animation-delay: 0.3s;
}
.timeline-item:nth-child(2) {
  animation-delay: 0.6s;
}
.timeline-item:nth-child(3) {
  animation-delay: 0.9s;
}
.timeline-item:nth-child(4) {
  animation-delay: 1.2s;
}
.timeline-item:nth-child(5) {
  animation-delay: 1.5s;
}

.timeline-duration {
  color: var(--accent-color-1);
  font-weight: 600;
  margin-bottom: 5px;
}

.timeline-title {
  color: white;
  font-weight: 500;
}




/* Sections about*/

.about-me-section1 {
  position: relative;
  background-color: #000;
  display: flex;
  align-items: center;
  padding: 5vh 5vw;
  overflow: hidden; /* ✅ Para hindi sumobra ang animated background or glow */
}
.container1 {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
  gap: 2rem;
}

/* Splash container */
.splash-container1 {
  position: relative;
  width: 100%;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  top: -10rem;
}

.left-splash1 {
  max-width: 100vh;
  max-height: 100vh;
  z-index: 2; /* ✅ Add this so it sits above the background blur */
  position: relative; /* ✅ Ensure z-index applies */
}

.left-splash1 .left-content1 {
  position: relative;
  z-index: 2;
  padding: 2rem;
  width: 100%;
  max-width: none;
  height: 95vh;
}

.section-heading1 {
  margin-top: -1rem;
  color: white;
  font-size: 3rem;
  font-style: italic;
  margin-bottom: 1rem;
  text-align: left;
}



/* Name title */
.name-title1 {
  position: relative;
  padding-top: 0.2rem;
  padding-bottom: 1.2rem;
  font-size: 6rem;
  font-weight: 900;
  color: #ff3503;
  line-height: 1;
  margin: 1rem 0;
  text-align: left;
}

.name-line2 {
  white-space: nowrap;  /* Prevents PATRICIO DIEL from wrapping */
  
}

/* Bio text */
.bio-text1 {
  position: relative;      /* Make 'top' work */
  top: -0.5rem;              /* Move it upwards */
  font-size: 12px !important;
  color: #eee;
  text-align: justify;
  margin-bottom: 3.5rem;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: transform;
}

/* Fade-in + Typewriter Combo */
.typewriter {
  overflow: hidden;
  border-right: 0.15em solid #fff;
  white-space: pre-wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* When in viewport */
.typewriter span {
  display: inline-block;
}

.visible.typewriter {
  opacity: 1;
  transform: translateY(0);
  animation: typing 0.1s steps(70, end), blink-caret 0.75s step-end infinite;
}

/* Typing animation */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

/* Cursor blink effect */
@keyframes blink-caret {
  from, to { border-color: transparent; }
  10% { border-color: #c6020200; }
}





/* Signature and button */
.signature1 {
  width: 700px;
  margin-top: -7rem;
}
.greeting-title{
  position: relative;
  top: -20rem;
  left: 35rem;
  font-size: 1.5rem;

}

.btn-primary1 {
  position: relative;
  top: -20rem;
  left: 35rem;
  display: flex;
  flex-direction: column; /* 🔹 gawing column para mag-stack pababa */
  margin-top: 1rem;
  padding: 0.65rem 2rem;
  background-color: #ff3503;
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  text-decoration: none;
  border-radius: 5px;
  width: 17rem;
  
}

.indent {
  margin-left: 4rem; /* indent ng second line */
}
/* Right splash */
.right-splash1 .orange-splash1 {
  position: absolute;
  top: 5rem;
  right:  -650px;
  width: 320%;
  height: auto;
  z-index: 1; /* BACKGROUND */
  opacity: 0.8;
}

/* Profile on top */
.profile-overlay1 {
   filter: drop-shadow(0 0 15px rgba(246, 3, 3, 0.3));
  top: 17rem;
  right: 5rem;
  position: relative;
  width: 110%;
  z-index: 2; /* FOREGROUND */
}

/* Right Side Splash */
.right-splash1 {
  position: relative;
  width: 900%;
  max-width: 600px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}



/*.about-content {
  min-height: 100vh;
  padding: 10px 20%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  box-sizing: border-box;
}*/




/*who i am*/


/* Fade & Move Up */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1s ease, transform 1.2s ease;
  will-change: opacity, transform;
}

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

/* Smooth font transition (like futuristic UI) */
.name-title1, .section-heading1 {
  transition: letter-spacing 0.8s ease, color 0.8s ease, transform 1s ease;
  will-change: letter-spacing, transform;
}

.name-title1:hover {
  letter-spacing: 0.2rem;
  transform: scale(1.05) rotateX(2deg);
}

.name-title1:hover, .section-heading1:hover {
  text-shadow: 0 0 10px #ff3503, 0 0 20px #ff3503, 0 0 30px #fd0202;
  color: #000;
}

/* Modern Parallax */
.parallax-layer {
  will-change: transform;
  transition: transform 0.2s ease-out;
  transform-style: preserve-3d;
}

.parallax-3d {
  will-change: transform;
  transition: transform 0.3s ease-out;
}

.reveal-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}

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


.parallax-trigger:hover {
  transform: scale(1.03) rotateX(2deg) !important;
}

.parallax-trigger {
  will-change: transform;
  transition: transform 0.3s ease-out;
}





/* ===== GLASS EFFECT (Modern look) ===== */
.about-me-section1::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: #000; /* Dark overlay */
  opacity: .9; /* Adjust for desired darkness */

  backdrop-filter: blur(10px);
  z-index: 0;
}

/* Add glass to text container */
.left-splash1 .left-content1 {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 1;
  top: 10rem;
  
}


.left-splash1 .left-content1::before {
  content: "";
  position: absolute;
  top: 0.1%;      /* Itaas natin para bumaba ang effect */
  left: -0.1%;
  width: 100%;
  height: 100%;  /* Taasan height para may space pababa */
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
      rgba(255, 53, 3, 0.3) 0%, 
      transparent 25%),
    radial-gradient(circle at calc(var(--mouse-x, 50%) + 20%) calc(var(--mouse-y, 50%) + 20%), 
      rgba(0, 191, 255, 0.25) 0%, 
      transparent 20%),
    radial-gradient(circle at calc(var(--mouse-x, 50%) - 20%) calc(var(--mouse-y, 50%) - 20%), 
      rgba(255, 255, 255, 0.15) 0%, 
      transparent 30%);
  transition: background-position 0.1s ease;
  z-index: 0;
  mix-blend-mode: screen;
  border-radius: 20px;
}

/* ===== NEON BUTTON HOVER ===== */
.btn-primary1 {
  transition: all 0.4s ease;
  box-shadow: 0 0 10px #ff3503;
}

.btn-primary1:hover {
  background-color: #000;
  color: #ff3503;
   box-shadow: 0 0 15px #ff3503, 0 0 25px #ff3503;
  transform: scale(1.05);
  transition: 0.3s ease;
}

/* ===== ANIMATED GRADIENT BACKGROUND ===== */
.about-me-section1 {
  position: relative;
  background: linear-gradient(120deg, #0f0f0f, #1a1a1a, #0f0f0f);
  background-size: 400% 400%;
  animation: gradientBackground 20s ease infinite;
  overflow: hidden;
}

@keyframes gradientBackground {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== FLOATING GLOW BELOW PROFILE (optional) ===== */
.profile-overlay1::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255,53,3,0.2) 0%, transparent 80%);
  filter: blur(40px);
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}



/* ============================
  about RESPONSIVE: TABLET DEVICES
   ============================ */
@media (max-width: 1024px) {
  .section-heading1 {
    font-size: 2rem;
    text-align: center;
  }


  .section-heading1 {
  margin-top: -2rem;
  color: white;
  font-size: 3rem;
  font-style: italic;
  margin-bottom: 1rem;
  text-align: left;
}

  .name-title1 {
    font-size: 2rem !important;
    text-align: center;
    top: -10px;
  }

  .bio-text1 {
    font-size: 1.10rem;
    top: -10px;
    padding: 0 1rem;
  }

.signature1 {
    width: 500px;
  display: block;
  position: relative;
  top: 2rem;             /* moves the signature upward */
  margin: 0 auto;  
  right: 8rem;
  }

.greeting-title{
  position: relative;
  top: -17rem;
  left: 20rem;
  font-size: 16px;

}

.btn-primary1 {
  position: relative;
  top: -17rem;
  left: 20rem;
  display: flex;
  flex-direction: column; /* 🔹 gawing column para mag-stack pababa */
  margin-top: 1rem;
  padding: 0.65rem 2rem;
  background-color: #ff3503;
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  text-decoration: none;
  border-radius: 5px;
  width: 17rem;
  
}

.right-splash1 {
  top: -160px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

  .profile-overlay1 {
    width: 80%;
    top: -2rem;
    right: 1px;
    
  }

  .right-splash1 .orange-splash1 {
    width: 230%;
   margin-right: 14.5rem !important;
   top: -10rem;
  }

  .container1 {
    flex-direction: column;
    align-items: center;
  }
}


/* ============================
   about RESPONSIVE: MOBILE DEVICES
   ============================ */
@media (max-width: 768px) {
  .section-heading1 {
    font-size: 3rem;
    text-align: center;
    margin-top: 1rem;
  }

.name-title1 {
  position: relative;
  top: -1rem;  /* move upward */
  font-size: 26px !important;
  color: #ff3503;
  line-height: 1;
  margin: 1rem 0;
  text-align: left;
}

  .bio-text1 {
    font-size: 0.71rem;
    top: -12px;
    padding: 0 1rem;
  }

  .signature1 {
    width: 300px;
  display: block;
  position: relative;
  top: 25rem;             /* moves the signature upward */
  margin: 0 auto;  
  right: 3rem;
  }


  .greeting-title{
  position: absolute;
  top: 62%;
  left: 5rem;
  font-size: 16px;

}

.btn-primary1 {
  position: relative;
  top: -11rem;
  left: -0.09rem;
  display: flex;
  flex-direction: column; /* 🔹 gawing column para mag-stack pababa */
  margin-top: 1rem;
  padding: 0.65rem 2rem;
  background-color: #ff3503;
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  text-decoration: none;
  border-radius: 5px;
  width: 17rem;
  
}


.left-splash1 .left-content1 {
    padding: 1rem;
    height: auto;
    top: 13rem;
  }

  .left-splash1 .orange-splash1 {
    width: 90%;
    margin: 0 auto 1rem;
  }

 
  .container1 {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .splash-container1,
  .left-splash1,
  .right-splash1 {
    width: 100%;
    max-width: 100%;
  }

  .left-content1 {
    padding: 1rem;
  }
}

/* about mobile 740 kung maliit ang mobile mo*/
@media (max-width: 740px) {
  /* Headings */
  .section-heading1 {
    font-size: 2.4rem; 
    text-align: center;
    margin-top: 0.8rem;
  }

  .name-title1 {
    position: relative;
    top: -0.7rem;
    font-size: 22px !important;
    color: #ff3503;
    line-height: 1;
    margin: 0.8rem 0;
    text-align: left;
  }

  .bio-text1 {
    font-size: 0.65rem;
    top: -10px;
    padding: 0 0.8rem;
  }

  .signature1 {
    width: 290px; 
    display: block;
    position: relative;
    top: 13rem;
    margin: 0 auto;
    right: 2rem;
    z-index: 1 !important;
  }

  

  /* Button */
  .btn-primary1 {
    position: relative;
    top: -9rem;
    left: 4rem;
    display: flex;
    flex-direction: column;
    margin-top: 0.8rem;
    padding: 0.6rem 1.5rem;
    background-color: #ff3503;
    color: #fff;
    font-weight: bold;
    font-size: 11px;
    text-decoration: none;
    border-radius: 5px;
    width: 14rem; 
  }

  /* Left splash adjustments */
  .left-splash1 .left-content1 {
    padding: 0.8rem;
    height: auto;
    top: 10.1rem;
  }

  .left-splash1 .orange-splash1 {
    width: 85%;
    margin: 0 auto 0.8rem;
  }

  /* Overlay adjustments */
  .profile-overlay1 {
    width: 65%;
    top: 5rem;
    left: -1rem;
    z-index: 0;
  }

  .right-splash1 .orange-splash1 {
    top: 1rem;
    width: 190%;
   margin-right: 29.5rem !important;
    z-index: 0 !important;
  }

  /* Container flex adjustments */
  .container1 {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .splash-container1,
  .left-splash1,
  .right-splash1 {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    height: 100%;
  }

  .left-content1 {
    padding: 0.8rem;
  }

  .section-question{

    position: absolute;
    top: 31.2% !important;
  }

}

/* about section mobile landscape*/
@media screen and (max-width: 815px) and (orientation: landscape) {
.section-heading1 {
    font-size: 3rem;
    text-align: center;
    margin-top: 1rem;
  }

.name-title1 {
  position: relative;
  top: -1rem;  /* move upward */
  font-size: 26px !important;
  color: #ff3503;
  line-height: 1;
  margin: 1rem 0;
 left: 12rem;
 font-size: 2rem !important;

}


  .bio-text1 {
    font-size: 0.71rem;
    top: -12px;
    padding: 0 1rem;
  }

  .signature1 {
     position: relative;
    width: 350px;
  display: block;
  top: 37rem;             /* moves the signature upward */
  margin: 0 auto;  
  right: 10rem !important;
  }


  .greeting-title{
  position: relative;
  top: -11rem;
  left: 25rem;
  font-size: 16px;


}

.btn-primary1 {
  position: relative;
  top: -11rem;
   left: 22rem;
  display: flex;
  flex-direction: column; /* 🔹 gawing column para mag-stack pababa */
  margin-top: 1rem;
  padding: 0.65rem 2rem;
  background-color: #ff3503;
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  text-decoration: none;
  border-radius: 5px;
  width: 17rem;
  z-index: 99999;
  
}

.orange-splash1{
  position: relative;
 left: -15rem;
top: -7rem !important;
}


.left-splash1 .left-content1 {
  position: relative;
    padding: 1rem;
    width: 41.5rem !important;
    height: auto;
    left: 0.1rem;
    top: 13rem;
  }

  .left-splash1 .orange-splash1 {
    width: 90%;
    margin: 0 auto 1rem;
  }

 
  .container1 {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }


}



/* Tools part modifications */
.tool-card {
  background-color: #1e1e1e;
  padding: 2rem;
  width: 240px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(255, 53, 3, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease,
    background-color 0.4s ease;
  opacity: 0;
  transform: translateY(40px) scale(1);
  cursor: pointer;
}

.tool-card.animate {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.tool-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 53, 3, 0.3);
  background-color: #252525;
}

.tool-card img {
  max-width: 60px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.tool-card:hover img {
  transform: scale(1.1);
}

/* Services modifications */
.services-grid {
  min-height: 50vh;
  padding: 10px 20%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  background-color: var(--background-color);
  color: var(--primary-text-color);
  box-sizing: border-box;
}





/* ============================
TOOLS & SERVICES and contact SECTION
   ============================ */

/* Tools Section*/
@media (min-width: 390px) and (max-width: 3840px) {
.section-title2 {
  position: relative;
margin-top: 10rem;
  left: 5rem;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: #222;

  text-align: left!important;
}

.section-question{
 position: relative;

 font-size: 1.8rem;
 font-weight: 600;
  line-height: 1.2;
  color: #ffffff;
  text-align: center;
 

}

.section-title2::after {
  content: "";
  display: block;
  height: 2px;
  background-color: #ff3300;
  width: 15rem;
  margin-top: 8px;
  position: relative;
  left: 0;
  bottom: -8px;
}

.tools-section {
  min-height: 100vh;
  padding: 50px 10%;
  background-color: var(--background-color);
  color: var(--primary-text-color);
  box-sizing: border-box;
}

.tools-section .section-title2 {
  text-align: left;
  margin-bottom: 3rem;
 
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 cards per row */
  gap: 1.5rem; /* tighter spacing */
  justify-items: center;
  align-items: stretch;
  margin-top: 4rem;
  box-sizing: border-box;
  padding: 0 2rem; /* optional: inner spacing for cleaner sides */
}

.tool-card {
  box-sizing: border-box;
  width: 100%;
  height: 220px; /* same height for all cards */
  padding: 1.5rem;
  background: #ff3503; /* dark brownish tone like in image */
  color: #fff;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  transition: all 0.4s ease;
  opacity: 0;
  font-size: 14px;
  transform: translateY(40px);
}

.section-question2 {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
}


/* Animation when visible */
.tool-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover effect (optional, clean and modern) */
.tool-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

}


/* Responsive adjustments */
@media (max-width: 1200px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 cards per row */
  }
}


@media (max-width: 480px) {
  .tools-grid {
    grid-template-columns: 1fr; /* 1 per row */
  }
}



/* Mobile: up to 768px */
@media (max-width: 768px) {
 
  .tools-section .section-title2 {
    font-size: 1rem;
    position: relative;
    top: -1rem;
    margin-bottom: 2rem;
    text-align: center;
  }

  .tools-grid {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 10rem;
     grid-template-columns: repeat(1, 1fr); /* 2 per row */
  }
   /* Section title */
 .section-title2 {
  position: relative;  
  top: 4.5rem !important;
  text-align: center !important;
  font-size: 2rem !important;
   left: -0.1rem !important; 
  margin-bottom: 5rem !important; 
}
.section-question{
 position: absolute;
 top: 32.2%;
 left: 50%;
  transform: translate(-50%, -50%);
 font-size: 1.1rem;

 

}

  .section-title2::after {
    left: 2.7rem;
    content: "";
    display: block;
    height: 2px;
    background-color: #ff3300;
    width: 15rem !important;
    bottom: -8px;
  }

 /* Tool cards */
.tool-card {
  padding: 1rem;
  width: 200px; /* smaller card */
  font-size: 14px;
  padding-bottom: 40px;
}

/* h3 inside .tool-card only */
.tool-card h3 {
  font-size: 20px;
  margin-bottom: 0.5rem; /* optional: adds spacing under the title */
}

  .tool-card img {
    max-width: 50px; /* smaller image */
    margin-bottom: 0.8rem;
  }

}

@media screen and (max-width: 815px) and (orientation: landscape){

  .section-title2::after{
   position: relative;
  left: 13.5rem;
  width: 15rem !important;

  }

.section-title2{
   position: relative;
  left: -0.1rem !important;

  }

 .tools-grid {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 5rem;
     grid-template-columns: repeat(2, 1fr); /* 2 per row */
  }



}

/* ===========================
   💻 Tablet (769px–1024px)
=========================== */
@media (min-width: 768px) and (max-width: 1024px) {
  .tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 per row on tablet */
    justify-items: center;
    align-items: stretch;
    gap: 2rem;
    margin-top: 30rem;
  }

  .tool-card {
    width: 90%;
    max-width: 300px;
    padding: 1.5rem;
    font-size: 15px;
  }

  .tool-card h3 {
    font-size: 20px;
  }

  .section-title2 {
     position: absolute;
     left: 18rem;
    font-size: 2rem !important;
    top: 38% !important;
  }
 .section-question{
         position: absolute;
        left: 25%;
        margin-right: 13rem;
        top: 41% !important;
        font-size: 1.7rem;
        line-height: 1.2;
        color: #ffffff;
     
    }
  .section-title2::after {
    content: "";
    display: block;
    height: 2px;
    background-color: #ff3300;
    width: 15rem;
    margin: 0.5rem auto 0;
  }
}

/* ===========================
   🌐 Landscape Tablet (≤815px)
=========================== */
@media screen and (max-width: 815px) and (orientation: landscape) {
  .tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
    justify-items: center;
    gap: 1.5rem;
    margin-top: 4rem;
  }

  .section-title2 {
    text-align: center;
    font-size: 2rem;
    left: 0;
  }

  .section-title2::after {
    position: relative;
    left: 0;
    margin: 0.5rem auto 0;
    width: 15rem !important;
  }
}

/* Services Section */

.services-section {
position: relative;
  min-height: 100vh;
  padding-top: 15rem;
}
.section-title3 {
  position: absolute;
  margin-bottom: 5rem;
  left: 17rem;
  font-size: 2.5rem;
  position: relative;
  font-weight: 600;
  line-height: 1.2;
  color: #222;
 
  text-align: left!important;
}

.section-title3::after {
  content: "";
  display: block;
  height: 2px;
  background-color: #ff3503;
  width: 20rem;
  margin-top: 8px;
  position: relative;
  left: 0;
  bottom: -8px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  cursor: pointer;
  height: 350px;
  background-color: #ff3503;
  border-radius: 10px;
  padding: 30px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease; /* This covers opacity, transform, and background-color */
}

.service-icon {
  width: 80px;
  height: 80px;
}
.service-icon video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

 .section-question2{
    position: absolute;
   left: 50%;
   transform: translate(-50%, -50%);
   font-size: 1.8rem;
  }
  




/* When in view */
.service-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-10px);
  background-color:  #2c2c2c;
}

.service-icon {
  font-size: 3.5rem;
  color: var(--accent-color-1);
  margin-bottom: 20px;
  transition: transform 0.3s ease, color 0.3s ease; /* Smooth transitions for both transform and color */
}

.service-title {

  margin-bottom: 15px;
}

.service-description {
  text-align: left;   
  color: #cccccc;
  margin-top: 10px;
  font-size: 0.95rem;
  min-height: 120px;

}




/* Mobile: up to 768px */
@media (max-width: 768px) {
  .services-grid {
    margin-top: 20rem;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 8rem;
    
  }

  .service-card {
  display: flex;
  flex-direction: column;   /* stack: icon → title → description */
  align-items: center;      /* center horizontally */
  text-align: center;       /* para yung text naka-center din */
  padding: 20px;
  height: auto;
  width: 240px !important;
  
}


  .section-title3 {
    position: absolute;
    top: 25% !important;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-align: center;
  }

  .section-title3::after{ 
    position: relative;
    left: -0.3rem;
    width: 15rem !important;
  }
  .service-title {

    margin-bottom: 0.5rem;
  }

  .service-icon {
    height: 35%;
    width: 35%;
    font-size: 3rem;           
    display: flex;             
    margin-bottom: 0.5rem;
  }

  .service-description {
    font-size: 0.95rem;
  }

}


/* Landscape (height maliit, width malaki) */
/* Common styles for service cards in landscape */
@media screen and (max-width: 915px) and (orientation: landscape) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* dalawang column side by side */
    gap: 30px;
    padding: 0 8%;
    margin-bottom: 4rem;
  }

  .service-card {
    align-items: center;
    text-align: left;
    padding: 15px 20px;
    height: auto;
    width: 20rem !important;
  }

  .service-icon {
    font-size: 2.5rem;
    margin-right: 1rem;
    margin-bottom: 0; /* tanggalin yung bottom space */
  }

  .service-title {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
  }

  .service-description {
    font-size: 0.9rem;
  }

  .section-title3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    top: -2rem;
  }
}

/* Specific adjustments for very small landscape screens */
@media screen and (max-width: 740px) and (orientation: landscape) {
  .section-title3::after {
    position: relative;
    left: 14.5rem !important;
  }
}

/* Specific adjustments for mid-size landscape screens */
@media screen and (max-width: 915px) and (orientation: landscape) {
  #contact {
    height: 90rem;
  }

  .section-title1 {
    position: absolute;
    left: 1rem;
    top: -35rem !important;
    white-space: nowrap;
  }

  .section-title3::after {
    position: absolute;
    left: 20.5rem;
  }

  .contact-container1 {
    position: absolute;
    width: 42rem !important;
    margin-left: 10rem;
  }
}




/* Contact Section */
.section-title1 {
  position: absolute;
  top: -24rem;
  right: 3rem;
  font-size: 2.5rem;
  position: relative;
  font-weight: 600;
  line-height: 1.2;
  color: #222;
  margin-bottom: 10rem !important;
  text-align: left!important;
}

.section-title1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 300px;
  height: 4px;
  background-color: var(--border-color);
  border-radius: 2px;
}






/* Cyberpunk Contact Heading */
.section-subtitle {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 900;
  color: rgba(204, 204, 204, 0.8); /* semi-stone look */
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 8px;
  text-shadow: 
    1px 1px 2px rgba(0, 0, 0, 0.6),   /* shadow bottom-right */
    -1px -1px 2px rgba(255, 255, 255, 0.3); /* highlight top-left */
}


.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255, 53, 3, 0.85); /* translucent main color */
  margin: 0 0 16px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 
    0 0 6px rgba(255, 53, 3, 0.5),
    0 0 14px rgba(255, 53, 3, 0.3),
    0 0 24px rgba(255, 53, 3, 0.2); /* glowing depth */
  position: relative;
  display: inline-block;
}

/* Accent underline */
.section-title::after {
  content: "";
  display: block;
  margin-top: 6px;
  width: 80px;
  height: 3px;
  background: #ff3503;
  border-radius: 2px;
  box-shadow: 
    0 0 8px rgba(255, 53, 3, 0.6), 
    0 0 14px rgba(255, 53, 3, 0.4);
}




/* Contact Container */
#contact {
  min-height: 100vh;              /* buong taas ng screen */
  display: flex;
  justify-content: center;        /* center horizontally */
  align-items: center;            /* center vertically */
  background: #000;               /* bg section */
}

.contact-container1 {
  max-width: 1000px; 
  margin-right: 10rem;            /* limit width para di sobrang lapad */
  width: 100%;
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;            /* para balanced */
  padding: 50px;
  background: #11111188;          /* semi-transparent dark */
  border-radius: 20px;
}


/* Contact Info */
.contact-info {
  flex: 1;
  min-width: 250px;
}

.contact-item {
  margin-bottom: 25px;
  padding: 20px;
  border-radius: 15px;
  background: #111;
  box-shadow:
    inset 3px 3px 6px #000,
    inset -3px -3px 6px #1c1c1c;
  transition: 0.3s ease;
}

.contact-item:hover {
  box-shadow:
    3px 3px 10px rgba(255, 51, 0, 0.3),
    -3px -3px 10px rgba(255, 100, 50, 0.3);
}

.contact-title {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #ff3300; /* red-orange accent */
  font-weight: bold;
}

.contact-detail {
  font-size: 0.95rem;
  color: #ddd;
}

/* Contact Form */
.contact-form {
  flex: 1;
  min-width: 300px;
}

/* Neumorphic Inputs */
.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: #111;
  border: none;
  border-radius: 50px;
  color: #eee;
  font-size: 0.95rem;
  box-shadow:
    inset 3px 3px 6px #000,
    inset -3px -3px 6px #1c1c1c;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  color: #fff;
  box-shadow:
    inset 4px 4px 8px #000,
    inset -4px -4px 8px #1c1c1c,
    0 0 8px rgba(255, 51, 0, 0.6);
}

textarea.form-control {
  border-radius: 20px;
  min-height: 150px;
  resize: vertical;
}

/* Neumorphic Button */
.btn-primary {
  background: #111;
  color: #ff3300;
  padding: 14px 30px;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: bold;
  box-shadow:
    5px 5px 12px #000,
    -5px -5px 12px #1c1c1c;
  transition: 0.3s;
}

.btn-primary:hover {
  color: #fff;
  background: #ff3300;
  box-shadow:
    0 0 15px rgba(255, 51, 0, 0.7),
    0 0 25px rgba(255, 70, 20, 0.5);
}

/* ========================
   TABLET PORTRAIT (768px – 1024px height > width)
======================== */
@media screen and (min-width: 968px) and (max-width: 1024px) and (orientation: portrait) {
  .contact-container1 {
    flex-direction: column;
    margin: 0 auto;
    padding: 30px;
    gap: 40px;
  }

 .section-title1 {
  position: relative;  
  top: 200px !important;
  text-align: center !important;
  font-size: 2rem !important;
  left: 10px !important;  
  margin-bottom: 5rem !important; 
}

  .section-title1::after {
    left: 2.7rem;
    content: "";
    display: block;
    height: 2px;
    background-color: #ff3300;
    width: 17rem !important;
    bottom: -8px;
  }

  .section-title {
    font-size: 2rem;
    text-align: center;
  }
}

/* ========================
   TABLET LANDSCAPE (768px – 1024px width > height)
======================== */
@media screen and (min-width: 968px) and (max-width: 1124px) and (orientation: landscape) {
  .contact-container1 {
    flex-direction: row;
    margin: 0 auto;
    padding: 40px;
    gap: 50px;
  }

 .section-title1 {
  position: relative;  
  top: 20px !important;
  text-align: center !important;
  font-size: 2rem !important;
  left: 10px !important;  
  margin-bottom: 5rem !important; 
}

  .section-title1::after {
    left: 2.7rem;
    content: "";
    display: block;
    height: 2px;
    background-color: #ff3300;
    width: 17rem !important;
    bottom: -8px;
  }
}

/* ========================
   MOBILE PORTRAIT (max 767px height > width)
======================== */
@media screen and (max-width: 715px) and (orientation: portrait) {
  .contact-container1 {
    position: relative;
    flex-direction: column;
    padding: 20px;
    right: 1.6rem;
    gap: 25px;
  }

 .section-title1 {
    position: relative;
    display: inline-block; /* para maayos ang spacing at hindi mag-wrap */
    font-size: 1.6rem;
    top: -32rem;   /* adjust lang depende sa layout */
    left: 15.2rem;      /* center na kung container ay centered */
    text-align: center; 
    white-space: nowrap; /* hindi mahahati ang text sa dalawang linya */
}

 .section-title1::after{
  margin-left: -4px;
    width: 14rem !important;
     
}

.section-title{
  font-size: 1.7rem;
}
  .btn-primary {
    width: 65%;
  }
  
}

/* ========================
   MOBILE LANDSCAPE (max 767px width > height)
======================== */
@media screen and (max-width: 815px) and (orientation: landscape) {
  .contact-container1 {
    flex-direction: row;
    margin: 0 auto;
    padding: 15px;
    gap: 20px;
  }

  .section-title1 {
    position: absolute;
    display: inline-block; 
    font-size: 1.6rem;
    top: -32rem;  
    left: 15.2rem !important;     
    text-align: center; 
    white-space: nowrap;
  }

  .section-title {
    font-size: 1.5rem;
    text-align: left;
  }

  .btn-primary {
    position: relative;
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  .btn-secondary{
    position: relative;
    top: 1.7rem;
     height: 3rem;
  }
}



/** Slider Section Styles */
.slider {
  width: 100%;
  overflow: hidden;
  color: #ff3503;     /* red-orange text */
  white-space: nowrap;
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
  padding: 15px 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
border-top: 1px solid #ff350327;
border-bottom: 1px solid #ff350327;
 margin-bottom: 10rem;
}

.slider-track {
  display: inline-block;
  padding-left: 100%; /* para may spacing sa umpisa */
  animation: slide 70s linear infinite;
}

.slider-track span {
  display: inline-block;
  margin-right: 6rem; /* space between words */
  text-transform: uppercase;
  letter-spacing: 0.7rem;

}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}


/* ============================
   Custom Cursor with Smoke Effect
   ============================ */

/* Hide default cursor */
body {
  cursor: none;
}

/* Particle element */
.smoke-particle {
  position: fixed;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 53, 3, 0.5) 0%,
    rgba(255, 53, 3, 0) 80%
  );
  animation: smokeFade 1.5s ease-out forwards, glowShift 1.5s linear forwards;
  pointer-events: none;
  filter: blur(1px);
  z-index: 10000;
}

/* Smoke rising effect */
@keyframes smokeFade {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(5) translateY(-20px);
    opacity: 0;
  }
}

/* Glow color shifting */
@keyframes glowShift {
  0% {
    background: radial-gradient(circle, rgba(255, 53, 3, 0.6) 0%, rgba(255, 53, 3, 0) 80%);
    filter: drop-shadow(0 0 6px rgba(255, 80, 3, 0.8));
  }
  50% {
    background: radial-gradient(circle, rgba(155, 125, 125, 0.6) 0%, rgba(255, 200, 0, 0) 80%);
    filter: drop-shadow(0 0 10px rgba(48, 81, 87, 0.8));
  }
  100% {
    background: radial-gradient(circle, rgba(255, 53, 3, 0.6) 0%, rgba(255, 53, 3, 0) 80%);
    filter: drop-shadow(0 0 6px rgba(255, 53, 3, 0.8));
  }
}


/* Cinematic Cyberpunk Footer */
.cyber-footer {
  background: linear-gradient(135deg, #020202, #050505);
  color: #f1f1f1;
  padding: 4rem 8% 2rem;
  font-family: "Orbitron", sans-serif;
  position: relative;
  overflow: hidden;
}

/* Glow effect */
.cyber-footer::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255, 53, 3, 0.15);
  filter: blur(100px);
  border-radius: 50%;
  z-index: 0;
}

/* Layout */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(255, 53, 3, 0.2);
  padding-bottom: 2rem;
}

/* Logo + Social */
.footer-brand {
  flex: 1;
  min-width: 220px;
}

.footer-logo {
  width: 120px;
  margin-bottom: 1rem;
}

.footer-social img {
  display: inline-block;
  width: 32px !important;   
  height: 32px !important;
  margin-right: 1rem;
  transition: transform 0.3s ease, filter 0.3s ease;
}


.footer-social a {
  text-decoration: none;
  display: inline-block;
}
.footer-social a:hover img {
  transform: translateY(-3px);
  filter: brightness(1.2);
}

/* Center Message Blocks */
.footer-center {
  display: flex;
  flex: 3;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-center p{
text-shadow: var(--link-text-color) 0 0 2px;
font-family: 'Orbitron', sans-serif !important;
}

.footer-block {
  max-width: 250px;
}

.footer-block h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #ff3503;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-block p {
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.6;
}

/* Right Message */
.footer-message {
  flex: 1;
  min-width: 220px;
  font-size: 0.95rem;
  color: #ddd;
  text-align: right;
}

.footer-message strong {
  color: #ff3503;
}

/* Bottom copyright */
.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #888;
  position: relative;
  z-index: 1;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-message {
    text-align: center;
    margin-top: 1rem;
  }
  .footer-center {
    justify-content: center;
  }
}

/*message box style*/ 

.top-alert-container {
  position: absolute;
  width: 100px;
  top: 10rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}
.top-alert {
  padding: 15px 20px;
  background-color: #4CAF50; /* green for success */
  color: white;
  margin-bottom: 10px;
  border-radius: 5px;
  min-width: 300px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  animation: slideDown 0.5s ease-out;
  position: relative;
}
.top-alert.error {
  background-color: #f44336; /* red for errors */
}
.closebtn {
  position: absolute;
  top: 5px;
  right: 10px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  font-size: 18px;
}
@keyframes slideDown {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}