@font-face {
    font-family: 'poppins';
    src: url('./fonts/Poppins-Regular.ttf');
    font-weight: 400;
    font-style: normal;
}

html{
    scroll-behavior: smooth;
}

*{
    margin: 0%;
    padding: 0%;
    font-family: 'Poppins', 'sans-serif';
    box-sizing: border-box;
}

body{
    background-color: #000000;
    color: #fff;
}

#header {
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: url(images/mouse.jpg);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

#header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%; /* Adjust gradient height */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.986), rgba(0, 0, 0, 0));
    pointer-events: none; /* Prevent blocking clicks */
}


.container{
    padding: 10px 10%;
}

nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    width: 100px;        /* Smaller size */
    height: 100px;       /* Ensure it's a square for a perfect circle */
    border-radius: 50%;  /* Makes it circular */
    object-fit: cover;   /* Ensures the image fits inside the circle */
}


nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after{
    content: '';
    width: 0;
    height: 3PX;
    background: #39FF14;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after{
    width: 100%;
}

.header-text{
    margin-top: 10%;
    font-size: 30px;
}

.header-text h1{
    font-size: 50px;
    margin-top: 40px;
}

.header-text h1 span{
    font-size: 30px;
    color: #39FF14;
    margin-bottom: 30px;
}

/* ------------About section------------ */
#about{
    padding: 80px 0;
    color: #ababab;
}

.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1{
    flex-basis: 35%;
}

.about-col-1 img{
    width: 100%;
    border-radius: 15px;
}

.about-col-1 img:hover{
    box-shadow: 0 0 10px #39FF14, 0 0 20px #39FF14; /* Neon glow */
}

.about-col-2{
    flex-basis: 60%;
}

.sub-title{
    font-size: 40px;
    font-weight: 600;
    color: #fff;
}

.tab-titles{
    display: flex;
    margin: 20px 0 40px;
}

.tab-links{
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tab-links::after{
    content: '';
    width: 0;
    height: 3px;
    background: #39FF14;
    position: absolute;
    left: 0;
    bottom: -8;
    transition: 0.5s;
}

.tab-links.active-link::after{
    width: 50%;
}

.tab-contents ul li{
    list-style: none;
    margin: 10px 0;
}

.tab-contents ul li span{
    color: #39FF14;
    font-size: 14px;
}

.tab-contents{
    display: none;
}

.tab-contents.active-tab{
    display: block;
}

/*----------- Sevices ----------*/
#services{
    padding: 30px 0;
}

.services-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.services-list div{
    background: #262626;
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 10px;
    transition: background 0.5s, transform 0.5s;
}

.services-list div i{
    font-size: 50px;
    margin-bottom: 30px;
}

.services-list div h2{
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}

.services-list div a{
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
}

.services-list div:hover{
    background: #39FF14;
    transform: translateY(-10px);
}

.services-list div:hover * {
    color: #000000;
}

/*--------Portfolio--------*/
#portfolio{
    padding: 50px 0;
}

.work-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 10px;
    margin-top: 50px;
}

.work{
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.work img{
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}

.layer{
    width: 100%;
    height: 0%;
    background: linear-gradient(rgba(0,0,0,0.6), #39FF14);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 0 50px;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;
}

.layer h3{
    font-weight: 500;
    margin-bottom: 20px;
}

.layer .icon-btn{
    margin-top: 45px;
    background: #fff;
    color: #39FF14;
    text-decoration: none;
    font-size: 18px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.layer .icon-btn:hover {
    background: #39FF14;
    color: #000000;
    border: 1px solid #39FF14;
}

.work:hover img{
    transform: scale(1.1);
}

.work:hover .layer{
    height: 100%;
}

.btn{
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #39FF14;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
}

.btn:hover{
    background: #39FF14;
}

/*------------Contact-------------*/
.contact-left{
    flex-basis: 35%;
}

.contact-right{
    flex-basis: 60%;
}

.contact-left p{
    margin-top: 30px;
}

.contact-left p i{
    color: #39FF14;
    margin-right: 15px;
    font-size: 25px;
}

.social-icons{
    margin-top: 30px;
}

.social-icons a{
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: #ababab;
    display: inline-block;
    transition: transform 0.5s;
}

.social-icons a:hover{
    color: #39FF14;
    transform: translateY(-5px);
}

.btn{
    display: inline-block;
}

.contact-right form{
    width: 100%;
}

form input, form textarea{
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    font-size: 18px;
    border-radius: 6px;
}

form .btn{
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
}

.btn {
    display: inline-block;
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
    background: #000;                /* Black background */
    color: #fff;                     /* White text */
    border: 2px solid #39FF14;       /* Neon border */
    border-radius: 6px;              /* Rounded edges */
    transition: all 0.3s ease;
}

.btn:hover {
    background: #39FF14;             /* Neon green on hover */
    color: #000;                     /* Black text */
    box-shadow: 0 0 10px #39FF14, 0 0 20px #39FF14; /* Neon glow */
}


.copywrite{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #262626;
    font-weight: 500;
    margin-top: 20px;
}

/*-------------Modal style------------*/
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6); /* Black background with transparency */
}

.modal-content {
  background-color: #39FF14;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 600px;
  position: relative;
  text-align: center;
}

.modal-content img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
}


.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: block;
  opacity: 1;
}


/*-------------Header binary rain--------------*/

/* Position header relative for absolute children */
#header {
    position: relative;
   /* background: #000; /* black background */
    color: #fff;
    overflow: hidden;
    min-height: 100vh; /* or adjust height as needed */
}

/* Binary rain effect container */
.binary-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    pointer-events: none; /* so it doesn't interfere with clicks */
    z-index: 0; /* behind nav and header text */
}

/* Each binary column */
.binary-rain span {
    color: rgba(57, 255, 20, 0.45);
    font-family: monospace;
    font-size: 20px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    animation: binary-fall 5s linear infinite;
    white-space: pre;
    line-height: 1.5;
    text-shadow: 0 0 5px #39FF14, 0 0 10px #39FF14;
}

/* Different animation delays & opacity for randomness */
.binary-rain span:nth-child(2) { animation-delay: 1s; }
.binary-rain span:nth-child(3) { animation-delay: 2.5s; opacity: 0.6; }
.binary-rain span:nth-child(4) { animation-delay: 0.8s; opacity: 0.8; }
.binary-rain span:nth-child(5) { animation-delay: 1.5s; opacity: 0.5; }
.binary-rain span:nth-child(6) { animation-delay: 3s; opacity: 0.7; }
.binary-rain span:nth-child(7) { animation-delay: 2s; opacity: 0.9; }

@keyframes binary-fall {
    0% { transform: translateY(-100%); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

/* Make sure nav and header-text stay above the binary rain */
nav, .header-text {
    position: relative;
    z-index: 1;
}

/* Optional: style for .header-text so text is visible */
.header-text p, .header-text h1 {
    position: relative;
    z-index: 2;
}




/*-------------CSS for Small creen--------------*/
nav .fas, nav .fa-solid{
    display: none;
}
  
@media only screen and (max-width:600px){
    #header{
        background-image: url(images/mouse mobile.jpg);
    }

      .logo {
    content: url('./images/I.A\ Logo.jpg'); /* Smaller logo for small screens */
    width: 80px; /* Adjust size */
    height: auto;
  }

    /* Bold */
    @font-face {
        font-family: 'Poppins';
        src: url('./fonts/Poppins-ExtraBold.ttf') format('truetype');
        font-weight: 700;
        font-style: normal;
    }

    .header-text{
        margin-top: 100%;
        font-size: 30px;
    }

    .header-text h1{
        font-size: 35px;
    }

    .header-text h1 span{
        color: #39FF14;
        margin-top: 40px;
}

    nav .fas, nav .fa-solid{
        display: block;
        font-size: 25px;
    }

nav ul {
    background: rgba(57, 255, 20, 0.1);  /* Neon green with transparency */
    backdrop-filter: blur(10px);         /* Glass blur */
    border: 1px solid rgba(57, 255, 20, 0.4); /* Subtle neon border */
    position: fixed;
    top: 0;
    right: -200px;
    width: 200px;
    height: 100vh;
    padding-top: 50px;
    z-index: 2;
    transition: right 0.5s;
}

    nav ul li{
        display: block;
        margin: 25px;
    }

    nav ul .fas, nav .fa{
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }

    .about-col-1, .about-col-2{
        flex-basis: 100%;
    }

    .about-col-1{
        margin-bottom: 20px;
    }

    .about-col-2{
        font-size: 14px;
    }

    .tab-links{
        font-size: 16px;
    }

    .contact-left, .contact-right{
        flex-basis: 100%;
    }

    .copywrite{
        font-size: 14px;
    }
}
