@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
}
html { scroll-behavior: smooth; }

:root, [data-theme="night"]{
  /* Dark Theme Colors */
  --bg-color: #1f242d;
  --second-bg-color: #323946;
  --text-color: #ffffffe2;
  --main-color: #00fbff;
  --transition: all 0.4s ease-in;
  --madilim: #00dce0;
  --pinakamadilim: #00c8cc;
  --masmadili: #5effff;
}

[data-theme="light"] {
    /* Light Theme Colors */
    --bg-color: #a3b3c9;
  --second-bg-color: #7a8496;
  --text-color: #000000e2;
  --main-color: #0044ff;
  --transition: all 0.4s ease-in;
  --madilim: #0052ff;
  --pinakamadilim: #0036cc;
  --masmadili: #5effff;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  min-height: 100%;
  max-width: 100%;
  /* font-family: 'Montserrat', sans-serif; */
}

body.darkmode {
  --bg-color: #1a1a1a;
  --text-color: #ffffff;
}





.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section { 
min-height: 100vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5rem 2rem; 
    margin-top: 0;

/* height: 760px;
max-height: 100%;
display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15rem; */
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.section p {
  font-family: 'Montserrat', sans-serif;
}



/* ==========================================
              Header
=========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5rem;
  /* height: auto; */
  padding: 1rem 5%;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.header.sticky {
  border-bottom: 0.1rem solid rgba(0, 0, 0, 0.2);
}

.logo {
  font-size: 2rem;
  color: var(--text-color);
  font-weight: 600; 
  cursor: default;

}


/* ==========================================
              Navbar
=========================================== */
.navbar a {
  cursor: pointer;         
  user-select: none;       
  position: relative;
  font-size: 1.1rem;
  color: var(--text-color);
  margin-left: 3.5rem;
  transition: 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
  color: var(--main-color);
}

.navbar a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: 	var(--main-color);
  border-radius: 5px;
  left: 0;
  bottom: -6px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s;
}

.navbar a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

#menu-icon {
  color: var(--text-color);
  font-size: 2rem;
  display: none;
}

.darkmode,.login-btn {
  width: 3.4rem;
  height: 3.4rem;
  background: transparent;
  border: 0.2rem solid var(--main-color);
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--main-color);
  transition: 0.3s ease;
}


/* ==========================================
              user
=========================================== */
.wrapper {
    position: fixed;
    z-index: 1002;
    top: 20%;
    left: 43%;
    width: 400px;
    height: 440px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 30px rgba(0, 0, 0 , .5);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden; 
    /* overflow para maitago yung lumampas (hidden */
    transition: transform .5s ease, height .2s ease;
    transform: scale(0);
}

.wrapper.active-pop {
    transform: scale(1);
}

.close {
    position: absolute;
    top: 0;
    right: 1px;
    background-color: var(--main-color);
    font-size: 2rem;
    padding: 10px;
    display: flex;
    border-radius: 10px 10px 0 50px;
}

.form-box{
    width: 100%;
    padding: 40px;
}

.form-box h2 {
    font-size: 2em;
    text-align: center;
}

.input-user {
    position: relative;
    width: 100%;
    height: 50px;
    border-bottom: 2px solid black;
    margin: 30px 0;
}

.input-user label {
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    font-size: 1em;
    color: black;
    font-weight: 500;
    pointer-events: none;
    transition: .5s;
}



/* dun sa sinasagutan */
.input-user input:focus~label,
.input-user input:not(:placeholder-shown)~label{
    top: -5px;
}

.input-user input{
   width: 100%; 
   height: 100%;
   background: transparent;
   border: none;
   outline: none;
   font-size: 1em;
   font-weight: 600;
   padding: 0 35px 0 5px;
   

}

.input-user .icon{
    position: absolute;
    right: 10px;
    font-size: 1.2em;
    color: black;
   line-height: 60px;
}

.remember {
    font-size: .9em;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    margin: -15px 0 15px;
}

.remember label input {
    accent-color: black;
    margin-right: 3px;
}

.remember a {
    color: black;
    text-decoration: none;
}

.remember a:hover {
    text-decoration: underline;
}

.btn_log {
    width: 100%;
    height: 45px;
    border: none;
    outline: none;
    color: white;
    background-color: var(--main-color);
    font-size: large;
    font-weight: 500;
    cursor: pointer;
}

.ask {
    text-align: center;
    font-size: .9em;
    margin: 25px 0 10px;
    font-weight: 500;
}

.register_click, .login_click {
    color: black;
    text-decoration: none;
    margin-left: 10px;
}

.register_click:hover, .login_click:hover {
    text-decoration: underline;
}


/* ==========================================
              Home
=========================================== */
.home {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  /* min-height: 100%; */
  padding-top: 5rem;
}

.home-img {
  margin-top: 10rem;
  margin-right: 10rem;
  z-index: 900;
}

.home-img img {
  border: solid var(--main-color);
  border-radius: 50%;
  min-height: 100%;
  /* width: 20vw;
  height: 25vw; */
  animation: floatImage 4s ease-in-out infinite;
  -webkit-animation: floatImage 4s ease-in-out infinite;
}

.home-img :hover{box-shadow: 0 0 1rem var(--main-color);}


/* profile picture moving */
@keyframes floatImage {
  0% {
    transform: translateY(0);
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
  }
  50% {
    transform: translateY(-2.4rem);
    -webkit-transform: translateY(-2.4rem);
    -moz-transform: translateY(-2.4rem);
    -ms-transform: translateY(-2.4rem);
    -o-transform: translateY(-2.4rem);
  }
  100% {
    transform: translateY(0);
  }
}

.home-content {
  margin-left: 15rem;
  margin-top: -5rem;
  width: 100%;
}
.home-content h3 {
  font-size: 40px;
  font-weight: 700;
}
.home-content h3:nth-child(1) {
  margin-top: 10rem;
}
span {
  color: var(--main-color);
}
.home-content h1 {
  color: var(--main-color);
  font-size: 60px;
  font-weight: 700;
  line-height: 1.5;
}

.social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 3.4rem;
  height: 3.4rem;
  background: transparent;
  border: 0.2rem solid var(--main-color);
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--main-color);
  margin: 3rem 1.5rem 2.5rem 0;
  transition: 0.3s ease;
}

.login-btn:hover, .darkmode:hover, .social-media a:hover {
  background: var(--main-color);
  color: var(--second-bg-color);
  box-shadow: 0 0 1rem var(--main-color);
}

.darkmode,.login-btn {border: none;cursor: pointer;}




/* ==========================================
              about
=========================================== */
.about {
  display: flex;
  flex-direction: column; 
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 5rem auto; 
  padding: 2rem;
}
.bio { max-width: 800px; margin: 0 auto 1.5rem; text-align: center; font-size: 1.1rem; }
.robot-3d {
  position: absolute;
  bottom: 500;
  /* para mag crop */
  right: -20rem; /* para pumunta sa left at di makita yung logo */
  width: 900px; /* para lumayo sa logo */
  /* scale: -1 1; */
}
.looking-robot{
  position: absolute;
  bottom: 500;
  right: -30%;
}

spline-viewer {
height: 200px;

}

.crop{
  width: 100%;
  height: 500px;
  overflow: hidden;
  position: relative;
  /* border: solid white; */
}

.crop-look{
  /* border: solid rgb(223, 0, 0); */
  width: 300px;
  height: 200px;
  overflow: hidden;
  position: relative;
  left: -30%;
  /* border: solid white; */
}

/* ==========================================
              Sercives
=========================================== */
.services {display: flex;justify-content: center;align-items: center;gap: 5rem;}
.tools{position: relative; display: flex;flex-direction: column;justify-content: center;align-items: center;;border-radius: 10px;width: 25rem;height: 250px;padding: 1rem;gap: 0.5rem;margin-bottom: 1rem;overflow: hidden;}
.tools:hover {
    box-shadow: 0 0 20px var(--main-color);
    transition: 0.3s ease;
}
.tools p{ text-align: center;z-index: 1; }
.pic{z-index: 1;}
.pic i {font-size: 50px;color: var(--main-color);}


.tools::before {
    content: "";
    position: absolute;
    width: 150%; 
    height: 150%;
    background: conic-gradient(#00fbff, #0044ff, transparent, transparent, #00fbff);
    animation: rotate 4s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    from{
        transform: rotate(0deg);
    }
    to{
        transform: rotate(360deg);
    }
}

.tools::after {
    content: "";
    position: absolute;
    inset: 3px; 
    background-color: var(--bg-color); 
    border-radius: 8px;
}


/* ==========================================
              Project
=========================================== */
.portfolio {
  background: var(--second-bg-color);
  min-height: 100vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
}


.portfolio h2 {
  /* margin-top: 15rem; */
  padding-top: 5rem;
  margin-bottom: 5rem;
}

.portfolio-container {
display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto;    
    justify-items: center;
  
}

.portfolio-container .portfolio-box {
  position: relative;
    width: 100%;     
    max-width: 400px; 
    aspect-ratio: 16 / 10; 
    border-radius: 2rem;
    box-shadow: 0 0 1rem var(--bg-color);
    overflow: hidden;
}

.portfolio-box img {
  
  width: 100%;
  height: 100%;
  transition: 0.5s ease;
}

.portfolio-box:hover img {
  transform: scale(1.1);
}

.portfolio-box .portfolio-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.1), var(--main-color));
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  padding: 0 4rem;
  transform: translateY(100%);
  transition: 0.5s ease
}

.portfolio-box:hover .portfolio-layer {
  transform: translateY(0);
}

.portfolio-layer h4 {
  font-size: 2.1rem;
}

.portfolio-layer p {
  font-size: 1.1rem;
  margin: 0.3rem 0 1rem;
}

.portfolio-layer a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--text-color);
  border-radius: 50%;
}
.portfolio-layer a i {
  font-size: 1.5rem;
  color: var(--second-bg-color);
}



 /* <!-- ==========================================
                   Contact
    =========================================== --> */

.input-box input {
  width: 100%;
  border-radius: 50px;
  /* color: var(--main-color);  */
  flex: 1;
  margin-right: 15px;
  padding: 5px 25px;
  border-radius: 10px 50px 1px;
  border: none;
  background-color: var(--main-color);
  box-shadow: inset 6px 6px 10px var(--madilim), 
              inset -6px -6px 10px var(--pinakamadilim);
}

.input-box label {
    position: relative;
    bottom: 35px;
    left: 15px;
    transform: translateY(-50%);
    font-size: 1em;
    color: black;
    font-weight: 500;
    pointer-events: none;
    transition: .5s;
}

/* PARA TUMAAS YUNG LABEL */
.input-box input:focus~label,
.input-box input:not(:placeholder-shown)~label{
    bottom: 70px;
}

.remember label input {
  margin-right: 5px;
    height: auto;
    width: auto;
}

.wrapper{color: var(--text-color);}
.input-user label,.input-user input,.icon{color: var(--text-color);}

.col {
  display: flex;
  justify-content: space-between;
  gap: 5rem;
}

.info {
  width: 50%;
}
.info p{font-size: 20px;margin-bottom: 2rem;}

.info h3{
  padding: .5rem;
  font-size: 30px;
}

.form{
  /* border: solid 1px var(--second-bg-color); */
  border-radius: 5px;
  /* background: linear-gradient(150deg, var(--main-color), var(--second-bg-color)); */
  padding: 1rem;
  padding-top: 2rem;
  background-color: var(--main-color);
}








.lagayan {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gilid {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
  background-color: var(--main-color);
  /* background: linear-gradient(150deg, var(--main-color), var(--second-bg-color)); */
  padding: 15px;
  gap: 1rem;
  border-radius: 100px;
  box-shadow: 5px 9px 10px var(--madilim), 
              -5px -9px 10px var(--pinakamadilim);


}

.form textarea {
  flex: 1;
  margin-right: 15px;
  padding: 5px 25px;
  border-radius: 10px 50px 1px;
  border: none;
  background-color: var(--main-color);
  box-shadow: inset 6px 6px 10px var(--madilim), 
              inset -6px -6px 10px var(--pinakamadilim);
}

/* para mawala yung border line pag pinindot yung textarea */
textarea:focus{
  outline: none; 
}

input {
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.1rem;
  /* color: var(--pinakamadilim); */
  /* color: #1a1a1a; */
  width: 300px;
  height: 50px;
}

.btn {
  padding: 15px 40px;
  border-radius: 50px;
  border: none;
  background-color: var(--main-color);
  font-size: 1.2rem;
  color: var(--pinakamadilim);
  cursor: pointer;
  width: 300px;
  box-shadow: 6px 6px 12px var(--madilim), 
              -6px -6px 12px var(--madilim);
  transition: all 0.2s ease;
}

.btn:active {
  box-shadow: inset 4px 4px 8px var(--madilim), 
              inset -4px -4px 8px var(--madilim);
  transform: scale(0.98);
}




 /* <!-- ==========================================
                   Footer
    =========================================== --> */
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-color: var(--second-bg-color);
  padding: 1rem;
  gap: 5px;
}


 /* <!-- ==========================================
                   scrolling animation
    =========================================== --> */
.fade-in {
  opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.fade-in.show{
  opacity: 1;
    transform: translateY(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.show {
    opacity: 1;
    transform: scale(1);
}
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left.show {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-right.show {
    opacity: 1;
    transform: translateX(0);
}

 /* ==========================================
             All
=========================================== */

main,header {
  opacity: 0;
  animation: content-fade-in 1s ease-out forwards 4s;
}
@keyframes content-fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


 /* ==========================================
             Intro
=========================================== */
.intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001;
  animation: fade-out-bg 0.8s ease-in-out forwards 3.5s;
}

@keyframes fade-out-bg {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; }
}

.preloading {
  perspective: 1000px;
}

.logo-intro {
  font-size: 8rem;
  font-weight: 900;
  color: white;
  letter-spacing: 5px;
  text-transform: uppercase;
  text-shadow: 
    0 0 10px rgba(0, 251, 255, 0.8),
    0 0 20px rgba(0, 251, 255, 0.5),
    0 0 40px rgba(0, 251, 255, 0.3);
  
  animation: netflix-intro 4s cubic-bezier(0.7, 0, 0.3, 1) forwards;
  transform-origin: center;
}

@keyframes netflix-intro {
  0% { transform: scale(1.2); opacity: 0; letter-spacing: 20px; filter: blur(10px); }
  20% { opacity: 1; filter: blur(0px); }
  70% { transform: scale(1); opacity: 1; }
  100% { transform: scale(15); opacity: 0; letter-spacing: 2px; }
}



 /* ==========================================
             Responsive Queries
=========================================== */

/* Tablet & Smaller Desktops (Max 1024px) */
@media (max-width: 1024px) {
    .home {
        flex-direction: column-reverse; 
        text-align: center;
    }

    .home-content {
        margin-left: 0;
        margin-top: 2rem;
    }

    .home-img {
        margin-right: 0;
        margin-top: 5rem;
    }
    .portfolio{height: 1200px;}
    .portfolio-container {
        grid-template-columns: repeat(2, 1fr);
    }
    textarea{width: 200px;}

.btn {width: 200px;}
.wrapper {
        /* width: 90%; */
        left: 35%; 
    }
}

 


/* Mobile Devices (Max 768px) */
@media (max-width: 768px) {
    #menu-icon {
        display: block; 
    }
    .side {display: flex;justify-content: center;align-items: center;}

    .navbar {
        display: none; 
    }
    .navbar.active {
      display: flex;
      justify-content: center;
      align-items: center;
      position: absolute;
      top: 100%;
      width: 100%;
      left: 0;
      background-color: var(--bg-color);
      padding: 0;
    }

    .home-content h1 {
        font-size: 40px;
    }

    .home-content h3 {
        font-size: 25px;
    }

    .about {
    flex-direction: column; 
    text-align: center;
    }

    .crop{
  min-width: 500px;
  height: 200px;
  overflow: hidden;
  position: relative;
  /* border: solid white; */
  }

    .services {
        flex-direction: column;
        gap: 2rem;
    }
    .portfolio{height: 2200px;}

    .portfolio-container {
        grid-template-columns: 1fr; 
    }

    .portfolio-container .portfolio-box {
        width: 100%; 
    }

    .col {
        flex-direction: column; 
        gap: 2rem;
    }

    .info, .form {
        width: 100%;
    }

    .wrapper {
        width: 90%;
        left: 5%; 
    }
    textarea{width: 400px;}

.btn {width: 300px;}
}

/* Small Phones (Max 480px) */
@media (max-width: 480px) {
    .home-img img {
        width: 250px;
        height: 250px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    textarea{width: 170px;}
.btn {width: 150px;}
  .info h3{font-size: 20px;}
  .navbar.active {
      display: flex;
      justify-content: center;
      align-items: center;
      position: absolute;
      top: 100%;
      width: 100%;
      left: 0;
      background-color: var(--bg-color);
      padding: 0;
    }
    .navbar a{
  font-size: 1rem;
  margin-left: 1rem;
    }
    .logo-intro {
      font-size: 3rem;
    }
}
