:root {
    --main-color: white;
    --secondary-color: #2ecc71;
    --text-color: #5f6368;
    --btn-color: rgb(26, 115, 232);

    --font-size: 16px;
    --glass-bg: rgba(246, 241, 241, 0.844);
    --glass-border: rgba(255, 255, 255, 0.769);
    --glass-shadow: rgba(206, 198, 198, 0.656);
  }
 *{
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: Poppins, sans-serif;
     scroll-behavior: smooth;
     font-weight: 300;
  font-style: normal;
 }
 section{
     padding: 100px 100px;

 }
 .main{
     position: relative;
     width: 100%;
     min-height: 100vh;
     display: flex;
     align-items: center;
     background-color: var(--main-color);
     background: url(assets/icon.jpeg)no-repeat;
     background-size: contain;
     background-position: right;  /* Changed from 'contain' to 'right' */
     background-attachment: fixed;
     /* mask-image: url(/assets/ink_lv2.gif); */
     mask-size: cover;
     mask-position: center;
     mask-repeat: no-repeat;

 }
 .main .content{
     max-width: 800px;

 }
 .main .content h2{
     color: var(--text-color);
     font-size: 2em;
     font-weight: 500;
 }
 .main .content h2 span{
     font-size: 2.8em;
     font-weight: 600;
     
 }

 .animated-text{
     position: relative;
     height: 70px;
     overflow: hidden;
 }
 .animated-text h3{
     color: var(--text-color);
     font-size: 3em;
     font-weight: 700;
     line-height: 70px;
     letter-spacing: 1px;
 }
 .animated-text h3:nth-child(1){
     animation: text-move 10s infinite;
 }
 @keyframes text-move {
     0%{
         margin-top: 0;
     }
     25%{
        margin-top: -70px;
    }
    50%{
        margin-top: -140px;
    }
    75%{
        margin-top: -70px;
    }
    100%{
        margin-top: 0;
    }
 }
 .btn{
     color: #fff;
     background: var(--btn-color);
     backdrop-filter: blur(4px);
     -webkit-backdrop-filter: blur(4px);
     border: 1px solid var(--glass-border);
     box-shadow: 0 8px 32px 0 var(--glass-shadow);
     font-size: 1em;
     font-weight: 600;
     display: inline-block;
     padding: 10px 20px;
     text-transform: uppercase;
     text-decoration: none;
     letter-spacing: 1px;
     border-radius: 2px;
     transition: all 0.3s ease;
     transform-style: preserve-3d;
 }
 .btn-black{
    color: #3b3737;
    background: var(--main-color);
    border: 1px solid var(--main-color);
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
    font-size: 1em;
    font-weight: 600;
    display: inline-block;
    padding: 10px 20px;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}
.btn:hover, .btn-black:hover{
    background: var(--main-color);
    border-color: transparent;
    transform: translateZ(15px) translateY(-2px);
}
.media-icons{
    margin-top: 50px;
}
.media-icons a{
    color: rgb(244, 244, 250);
    font-size: 25px;
    margin-right: 30px;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}
.media-icons a:hover{
    transform: translateZ(15px) scale(1.1);
}
header{
    z-index: 999;
    position: fixed;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.5s ease;
}
header.sticky{
    background: var(--main-color);
    padding: 10px 200px;
}
header .brand{
    color: var(--text-color);
    font-size: 1.8em;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    
}
header .navigation{
    position: relative;
    
}

header .navigation a{
    color: var(--text-color);
    font-size: 1em;
    font-weight: 500;
    text-decoration: none;
    margin-left: 30px;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}
header .navigation a:hover{
    color: #637ac5;
    transform: translateZ(10px);
}

header.sticky .navigation a:hover{
color: #000;
}

body{
    min-height: 110vh;
    font-family: 'Montserrat', sans-serif;

}
.title{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.section-title{
    position: relative;
    color: var(--text-color);
    font-size: 2.2em;
    font-weight: 800;
    margin-bottom: 60px;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}
.section-title:hover{
    transform: translateZ(20px);
}
.section-title::before{
    content: '';
    position: absolute;
    top: 56px;
    left: 50%;
    width: 180px;
    height: 4px;
    background: var(--main-color);
    transform: translateX(-50%);
}
.section-title::after{
    content: '';
    position: absolute;
    top: 50px;
    left: 70px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--main-color);
    transform: translateX(-50%);

}



.about .content{
    position: relative;
    width: 100%;
    display: flex;
    justify-content:space-between;
    margin-top: 20px;
}

.about .content .col-left{
    position: relative;
    width:  45%;

}
.about .content .col-right{
    position: relative;
    width: 50%;
}
.about .content .col-left .img-card{
    position: relative;
    width: 100%;
    min-height: 450px;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}
.about .content .col-left .img-card:hover{
    transform: translateZ(30px) rotateY(-5deg);
}
.about .content .col-left .img-card img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.about .content .col-right .content-title{
    font-size: 2em;
    font-weight: 800;
    margin-bottom: 20px;

}
 .paragraph-text{
    font-size: 1.1em;
    line-height: 2;
    margin-bottom: 20px;
}

.skills{
    /* background: #000016; */
}

.skills .content{
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    color: var(--text-color);
    margin-top: 20px;
}
.skills .content h2{
    color: black;
}
.skills .content .col-left{
    position: relative;
    width: 46%;

}
.skills .content .col-right{
    position: relative;
    width: 46%;

}
.skills .content .col-right .bar{
    margin-bottom: 15px;
    padding: 10px;

}
.skills .content .col-right .bar .info{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;

}

.skills .content .col-right .bar .info span{
    font-size:  18px;
    font-weight: 500;

}
.skills .content .col-right .bar .line{
    position: relative;
    width: 100%;
    height: 15px;
    background: #ccc;
    border-radius: 2px;
}
.skills .content .col-right .bar .line::before{
    content: '';
    position: absolute;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 2px;
}
.skills .content .col-right .bar .html:before{
    width: 95%;
    background: #e45126;

}
.skills .content .col-right .bar .css:before{
    width: 85%;
    background: #0c73b8;
}
.skills .content .col-right .bar .javascript:before{
    width: 80%;
    background: #e3a324;
}
.skills .content .col-right .bar .flutter:before{
    width: 70%;
    background: #30dd6d;
}
.skills .content .col-right .bar .python:before{
    width: 95%;
    background: #6d7eb8;
}

.services .content{
    display: flex;
    justify-content: center;
    flex-direction: row;
    margin-top: 20px;
    perspective: 1000px;
}
.title p{
    font-size: 1em;
    width: 80%;
}

.services .content .card{
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
    width:  300px;
    margin: 10px;
    padding: 25px;
    justify-content: center;
    align-items: center;
    flex-direction: columnn;
    box-shadow: 0 5px 25px rgba(1 1 1 / 15%);
    border-radius:10px ;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}
.services .content .card .services-icon{
    color:  var(--btn-color);
    font-size: 8em;
    text-align: center;
    transition: transform 0.5s ease;
}
.services .content .card:hover .services-icon{
transform: translateY(-10px);
}

.services .content .card:hover {
    transform: translateZ(20px) rotateX(5deg);
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.services .content .card .info{
    text-align: center;
}

.services .content .card .info h3{
    color: var(--text-color);
    font-size: 1.2em;
    font-weight: 700;
    margin: 10px;
}

.work{
    background: #e7e7ed;
}
.work .content{
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 20px;
    perspective: 1000px;
}
.work .content .card{
    width:  340px;
    margin: 15px;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}
.work .content .card:hover {
    transform: translateZ(30px) rotateY(5deg);
}
.work .content .card .card-img{
    position: relative;
    width: 100%;
    height: 260px;
    overflow:  hidden;
    border-radius: 10px;
    background-color: #ffff;
}
.work .content .card .card-img img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: 0.5s ease;
}
.work .content .card .card-img img:hover{
    transform: scale(1.2);
}

.contact .content{
display: flex;
justify-content: center;
flex-wrap: wrap;
flex-direction: column;
margin-top: 20px;

}
.contact .content .row{
    display: flex;
    justify-content: center;
    flex-direction: row;
    perspective: 1000px;
}
.contact .content .row .card{
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
    width: 240px;
    margin: 20px;
    padding: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: 0 5px 25px rgba( 1 1 1 / 15%);
    border-radius: 10px;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.contact .content .row .card:hover {
    transform: translateZ(25px) rotateX(-5deg);
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact .content .row .card .contact-icon{
    color:  var(--btn-color);
    font-size: 4em;
    text-align: center;
    transition: transform 0.5s ease;
}

.contact .content .row .card:hover .contact-icon{
    transform: translateY(-10px);
}
.contact .content .row .card .info{
 text-align: center;   
}
.contact .content .row .card .info h3{
color: #111;
font-size: 1.2em;
font-weight: 700;
margin: 10px;
}
.contact .content .row .card span{
    color: #666;
    font-weight: 500;
} 

.contact-form{
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
    max-width: 600px;
    margin: auto;
    margin-top: 3rem;
    padding: 50px;
    border: radius 10px; 
    box-shadow: 0 5px 25px rgba(1 1 1 /15%);
}

.contact-form h3{
    color: #111;
    font-size: 1.6em;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
}
.contact-form .input-box{
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}
.contact-form .input-box input, 
.contact-form .input-box textarea{
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    width: 100%;
    padding: 10px;
    font-size: 1em;
    font-weight: 400;
    outline: none;
    border: 1px solid #111;
    border-radius: 10px;
    resize: none;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}
.contact-form .input-box input:focus, 
.contact-form .input-box textarea:focus{
    transform: translateZ(5px);
}
.contact-form .input-box .send-btn{
    color: #fff;
    background: var(--main-color);
    display: inline-block;
    font-size: 1.1em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    width: 100%;
    border: none;
    cursor: pointer;
    transition: 0.5s ease;
}
.contact-form .input-box .send-btn:hover{
    background: #235bf6;
}

.footer{
    background: var(--glass-bg);
    color: var(--text-color);
    text-align: center;
    padding: 2em;
}
.footer .footer-title{
    font-size: 20px;
    font-weight: 600;
}
.footer p{
    font-size: 16px;
    margin-top: 10px;
}
.footer p a{
    color: var(--main-color);
    font-weight: 600;
    text-decoration: none;
}
@media (max-width: 1040px){
    header {
       padding: 12px 20px;
    }
    header.sticky{
        padding: 10 20px;
    }
    header .navigation{
        display: none;
    }
    header .navigation.active{
        z-index: 888;
        position: fixed;
        background: #fff;
        top: 0;
        right: 0;
        width: 380;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        box-shadow: 0 5px 25px rgba( 1 1 1 / 15%);
        transition: 0.3s ease;
    }

    header .navigation a{
        color: #000;
        font-size: 1.2em;
        margin: 10px;
        padding: 0 20px;
        border-radius: 20px;
    }

    header .navigation a:hover{
        background: var(--main-color);
        color: #fff;
        transition: 0.3s ease;
    }
    .menu-btn{
        position: absolute;
        background: url(assets/menu.png)no-repeat;
        background-size: 30px;
        background-position: center;
        width: 40px;
        height: 40px;
        right: 0;
        margin: 0 20px;
        cursor: pointer;
        transition: 0.3s ease;
    }
    .menu-btn.active{
        z-index: 999;
        background: url(assets/cancel.png)no-repeat;
        color: #000;
        background-size: 25px;
        background-position: center;
        transition: 0.3s ease;
        filter: invert(0);
    }
    section{
        padding:  80px 20px;
    }
    .main .content h2 {
        font-size: 1em;
    }
    .main .content h3{
        font-size:  2.2em;
    }
    .section-title{
        font-size: 1.8em;
    }
    .about .content{
        flex-direction: column;
    }
    .about .content .column{
        position: relative;
        width: 100%;
    }
    .about .content .col-right{
        margin-top: 40px;
    }
    .skills .content{
        flex-direction: column;
    }
    .skills .content .column{
        position: relative;
        width: 100%;
    }
    .skills .content .col-left{
        width: 100%;
    }

    .skills .content .col-right{
        margin-top: 40px;
    }
    .contact-form{
        padding: 35px 40px;
    }
    .contact .content .row{
        flex-wrap: wrap;
    }
    .services .content{
        flex-wrap: wrap;
    }

}

/* Update form input and textarea styles */
input[type=text], select, textarea {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    margin-bottom: 16px;
    resize: vertical;
    border-radius: 20px;
    outline: none;
    font-size: 1em;
    /* Update background and text colors for better visibility */
    background: rgba(255, 255, 255, 0.1);
    color: #333; /* Dark text color */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        rgba(0, 0, 0, 0.15) 0px 3px 3px 0px inset,
        0 8px 32px 0 rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

/* Style placeholder text */
input[type=text]::placeholder, 
textarea::placeholder {
    color: #666;
    opacity: 1;
}

/* Style focused state */
input[type=text]:focus, 
textarea:focus {
    background: rgba(255, 255, 255, 0.15);
    color: #333;
    transform: translateZ(5px);
    border-color: var(--main-color);
}

/* Style label text */
label {
    color: #333;
    font-weight: 500;
    margin-left: 10px;
    display: block;
    margin-bottom: 5px;
}

input[type=submit] {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    border-radius: 10px ;
    transition: background-color 0.3s ease;
  }
  
  input[type=submit]:hover {
    background-color: var(--btn-color);
  }
  
  /* Style the container/contact section */
  .container {
    border-radius: 5px;
    background-color: #f2f2f2;
    padding: 10px;
  }
  
  /* Create two columns that float next to eachother */
  .column {
    float: left;
     
    margin-top: 6px;
    padding: 20px;
  }
  
  /* Clear floats after the columns */
  .row:after {
    content: "";
    display: table;
    clear: both;
  }
  
  /* Responsive layout - when the screen is less than 600px wide, make the two columns stack on top of each other instead of next to each other */
  @media screen and (max-width: 600px) {
    .column, input[type=submit] {
      width: 100%;
      margin-top: 0;
    }
  }

  /* skill animation */
  
  .app {
    
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
  
  
  
  .tag-list {
    width: 30rem;
    max-width: 90vw;
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    gap: 1rem 0;
    position: relative;
    padding: 1.5rem 0;
    overflow: hidden;
  }
  
  .loop-slider {
    .inner {
      display: flex;
      width: fit-content;
      animation-name: loop;
      animation-timing-function: linear;
      animation-iteration-count: infinite;
      animation-direction: var(--direction);
      animation-duration: var(--duration);
    }
  }
  
  .tag {
    display: flex;
    align-items: center;
    gap: 0 0.2rem;
    color: var(--text-color);
    font-size: 0.9rem;
    background-color: var(--glass-bg);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
    border-radius: 0.4rem;
    padding: 0.7rem 1rem;
    margin-right: 1rem; 
    /* // Must used margin-right instead of gap for the loop to be smooth */
    box-shadow: 
      0 0.1rem 0.2rem rgb(0 0 0 / 20%),
      0 0.1rem 0.5rem rgb(0 0 0 / 30%),
      0 0.2rem 1.5rem rgb(0 0 0 / 40%);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
  }
  
  .tag:hover {
    transform: translateZ(10px) rotateX(10deg);
  }
  
  .fade {
    pointer-events: none;
    background: linear-gradient(90deg, transparent, transparent 30%, transparent 70%, transparent);
    position: absolute;
    inset: 0;
  }
  
  @keyframes loop {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  /* blink */
  .logo b{
    font: 400 "Vibur";
    font-size: 2.8em;
    color: #fee;
    text-shadow: 0 -40px 100px, 0 0 2px, 0 0 1em #ff4444, 0 0 0.5em #ff4444, 0 0 0.1em #ff4444, 0 10px 3px #000;
  }
  .logo b span{
    animation: blink linear infinite 2s;
  }
  .logo b span:nth-of-type(2){
    animation: blink linear infinite 3s;
  }
  @keyframes blink {
    78% {
      color: inherit;
      text-shadow: inherit;
    }
    79%{
       color: #333;
    }
    80% {
      
      text-shadow: none;
    }
    81% {
      color: inherit;
      text-shadow: inherit;
    }
    82% {
      color: #333;
      text-shadow: none;
    }
    83% {
      color: inherit;
      text-shadow: inherit;
    }
    92% {
      color: #333;
      text-shadow: none;
    }
    92.5% {
      color: inherit;
      text-shadow: inherit;
    }
  }
  
  /*  */
  label{
    margin-left: 10px;
  }

/* Add perspective to container elements */
.services .content,
.work .content,
.contact .row {
  perspective: 1000px;
}

/* 3D card transforms */
.card {
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

/* Hover effects for service cards */
.services .card:hover {
  transform: translateZ(20px) rotateX(5deg);
}

/* Work cards 3D effect */
.work .card:hover {
  transform: translateZ(30px) rotateY(5deg);
}

/* Contact cards 3D transform */
.contact .row .card:hover {
  transform: translateZ(25px) rotateX(-5deg);
}

/* Skill tags 3D effect */
.tag {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.tag:hover {
  transform: translateZ(10px) rotateX(10deg);
}

/* Button 3D effects */
.btn, .btn-black {
  transform-style: preserve-3d;
  transition: all 0.3s ease;
}

.btn:hover, .btn-black:hover {
  transform: translateZ(15px) translateY(-2px);
}

/* Section titles 3D effect */
.section-title {
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.section-title:hover {
  transform: translateZ(20px);
}

/* Profile image 3D effect */
.img-card {
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.img-card:hover {
  transform: translateZ(30px) rotateY(-5deg);
}

/* Social media icons 3D */
.media-icons a {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.media-icons a:hover {
  transform: translateZ(15px) scale(1.1);
}

/* Navigation links 3D */
.navigation a {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.navigation a:hover {
  transform: translateZ(10px);
}

/* Form inputs 3D effect */
input[type=text], textarea {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

input[type=text]:focus, textarea:focus {
  transform: translateZ(5px);
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px; 
}

.social-icons a {
    margin: 0 10px;
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-5px);
}
.social-icons i {
    font-size: 24px;
    /* color: var(--text-color); */
}