* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  background-color: #040c1a; 
  position: relative;
  overflow-x: hidden;
}

/* Grid overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px; /* grid size */
  z-index: -1;
  pointer-events: none;
}

  .star {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #00ffcc;
    border-radius: 50%;
   
    animation: starTrail 3s linear forwards;
  }

  @keyframes starTrail {
    0% {
      transform: translate(0, 0) scale(1);
      opacity: 1;
    }
    100% {
      transform: translate(-200px, 200px) scale(0);
      opacity: 0;
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0px 40px;
    position: relative;
    margin-top: 10px;
}

.logo {
    z-index: 1;
    display: flex;
    align-items: center;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    box-shadow: 0 0 6px #00ffe7, 0 0 10px #00ffe7;
    transform: scale(1.1);
    transition: all 0.3s ease;
    margin-top: 20px;
}

.logo img:hover {
    transform: scale(1.2);
}

nav ul {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 60px;
    list-style: none;
}

nav ul li a {
    color: #00ffe7;
    cursor: pointer;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
}

nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background-color: #00ffe7;
    transition: width 0.3s ease-in-out;
}

nav ul li a:hover {
    color: #00ffe7;
    transform: scale(1.02);
}

nav ul li a:hover::after {
    width: 100%;
}

hr {
    margin-left: 30rem;
    margin-right: 30rem;
    background-color: #00ffe7;
    height: 2px;
    border: none;
}



.main-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 90px 70px;

}

.leftsection {
    width: 50%;
}

#typing-text {
    font-size: 50px;
    color: #00ffcc;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid #00ffcc;
    width: fit-content;
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.leftsection h3 {
    font-size: 1.5rem;
    color: #00ff5e;
    opacity: 0.9;
    margin-bottom: 15px;

}

.leftsection p {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.8;
    max-width: 90%;
    color: #ffffff;
}

.leftsection img {
    height: 30px;
    width: 30px;
    margin-top: 20px;
    gap: 0px;
    margin-left: 10px;
    filter: drop-shadow(0 0 8px #02ffe6);
    cursor: pointer;
}
.zoome.zoom-effect {
    transition: transform 0.3s ease;
  }
  
  .zoom-effect:hover {
    transform: scale(1.1);
  }
  

.leftsection button {
    margin-top: 30px;
    height: 40px;
    width: 6rem;
    border-radius: 20px;
    cursor: pointer;
    background-color: #11c29e;
    border: none;
    font-size: 15px;
font-family: 'Poppins', sans-serif;
 font-weight: 500;
  letter-spacing: 0.5px;
}

.rightsection {
    width: 40%;
    display: flex;
    justify-content: flex-end;
}

.rightsection img {
    width: 100%;
    max-width: 400px;
    animation: floatUpDown 3s ease-in-out infinite;
    filter: drop-shadow(0 0 15px #00ffff);
    transition: filter 0.3s ease-in-out;
}

.rightsection img:hover {
    filter: drop-shadow(0 0 30px #00ffff);
}


@keyframes floatUpDown {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}


@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}


.secondsection, .thirdsection, .fourthsection {
    height: 90vh;
      background-color: #abddf3;;
    margin: 10px 30px;
    border-radius: 90px;
    border: 4px solid rgb(11, 120, 113);
}
.secondsection h1,
.thirdsection h1
   {color: #00284e;
    font-size: 2.4rem;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 20px;
   }

   .projects {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}
.projects img {
    height: 200px;
    width: 400px;
    margin-top: 30px;
    border-radius: 10px;
    transition: transform 0.4s ease, filter 0.4s ease;
    border: 2px,solid rgb(43, 67, 71);
}
.projects img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.fourthsection h1{
    color: #00284e;
    font-size: 2.4rem;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 50px;

}
.SKILLS, .moreskills, .extraskill {
    display: flex;
    justify-content: center;
    gap: 70px;
    flex-wrap: wrap;
    padding-top: 40px;
}


@keyframes pulseAndRotate {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.SKILLS img,
.moreskills img,
.extraskill img {
    height: 90px;
    width: 90px;
    transition: transform 0.4s ease, filter 0.4s ease;
    border-radius: 20px;
}

.SKILLS img:hover,
.moreskills img:hover,
.extraskill img:hover {
    transform: scale(1.1) ;
    
    cursor: pointer;
}


.divider {
    height: .5px;
    margin: 20px 14rem;
    background-color: rgb(177, 157, 157);
}


.PLATFORM {
    display: flex;
    justify-content: center;
    gap: 110px;
    flex-wrap: wrap;
}

.PLATFORM img {
    height: 150px;
    width: 150px;
    border-radius: 30px;
    margin-left: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.PLATFORM img:hover {
    transform: scale(1.1) ;
    cursor: pointer;
}


.fifthsection {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 100px;
    background-color: rgb(160, 234, 239);
    margin: 20px 30px 0 30px;
    border-radius: 30px;
    border: 4px solid rgb(4, 84, 77);
}

.socialmedia {
    display: flex;
    gap: 10px;
    align-items: center;
}

.socialmedia img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.socialmedia img:hover {
    transform: scale(1.2) ;
    cursor: pointer;
}

.name-highlight {
    color: #0c6ade;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.name-highlight:hover {
    text-shadow: 0 0 5px #038f81, 0 0 10px #004f47, 0 0 20px #00ffe7;
    color: #00ffaa;
}
/* ===================== TABLETS ===================== */
@media (max-width: 1024px) {
    .main-section {
      flex-direction: column;
      padding: 60px 30px;
      text-align: center;
    }
  
    .leftsection h1 {
      font-size: 2.5rem;
    }
  
    .leftsection h3 {
      font-size: 1.2rem;
    }
  
    .leftsection p {
      font-size: 1rem;
      margin-top: 10px;
    }
  
    .rightsection img {
      max-width: 300px;
      height: auto;
    }
  
    .secondsection,
    .thirdsection,
    .fourthsection {
      height: auto;
      padding: 50px 20px;
      border-radius: 50px;
      margin: 10px 20px;
    }
  
    .secondsection h1,
    .thirdsection h1,
    .fourthsection h1 {
      font-size: 2.2rem;
    }
  
    .projects {
      flex-direction: column;
      gap: 25px;
    }
  
    .projectsection-box {
      width: 90%;
      margin: 20px auto;
    }
  
    .image img {
      width: 90%;
      height: auto;
      margin: 12px auto;
    }
  
    .SKILLS img,
    .moreskills img,
    .extraskill img {
      width: 90px;
      height: 90px;
    }
  
    .PLATFORM img {
      width: 140px;
      height: 140px;
    }
  
    .divider,
    .platformdivider {
      margin: 20px 6rem;
    }
  
    .fifthsection {
      flex-direction: column;
      padding: 30px 20px;
      gap: 15px;
      height: auto;
    }
  
    .socialmedia {
      justify-content: center;
      gap: 15px;
      flex-wrap: wrap;
    }
  }
  
  /* ===================== PHONES ===================== */
  @media (max-width: 480px) {
    nav {
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: auto;
      padding: 15px 10px;
      gap: 10px;
    }
  
    .logo {
      margin-bottom: 10px;
    }
  
    .logo img {
      width: 40px;
      height: 40px;
      margin-top: 0;
    }
  
    nav ul {
      position: static;
      transform: none;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      padding: 0;
    }
  
    nav ul li {
      width: 100%;
      text-align: center;
    }
  
    nav ul li a {
      display: inline-block;
      font-size: 1rem;
      color: #00ffe7;
      text-decoration: none;
      padding: 8px 0;
      width: 100%;
      transition: background 0.2s;
    }
  
    nav ul li a:hover {
      background-color: rgba(0, 255, 231, 0.1);
      border-radius: 10px;
    }
  
    .main-section {
      flex-direction: column;
      padding: 30px 20px;
      text-align: center;
      gap: 30px;
    }
  
    #typing-text {
      font-size: 1.8rem;
      border-right: 2px solid #00ffcc;
    }
  
    .leftsection, .rightsection {
      width: 100%;
    }
  
    .leftsection h3 {
      font-size: 1.2rem;
    }
  
    .leftsection p {
      font-size: 0.95rem;
      max-width: 100%;
    }
  
    .leftsection img {
      height: 25px;
      width: 25px;
      margin: 10px 5px 0 5px;
    }
  
    .leftsection button {
      width: 100%;
      height: 40px;
      font-size: 1rem;
    }
  
    .rightsection img {
      max-width: 100%;
      height: auto;
    }
  
    .secondsection,
    .thirdsection,
    .fourthsection {
      padding: 20px;
      margin: 10px;
      border-radius: 20px;
      height: auto;
    }
  
    .secondsection h1,
    .thirdsection h1,
    .fourthsection h1 {
      font-size: 1.8rem;
    }
  
    .projects {
      flex-direction: column;
      align-items: center;
      gap: 20px;
    }
  
    .projects img {
      width: 90%;
      height: auto;
    }
  
    .SKILLS,
    .moreskills,
    .extraskill,
    .PLATFORM {
      gap: 25px;
      padding-top: 20px;
    }
  
    .SKILLS img,
    .moreskills img,
    .extraskill img,
    .PLATFORM img {
      width: 65px;
      height: 65px;
    }
  
    .divider {
      margin: 10px 2rem;
    }
  
    .fifthsection {
      flex-direction: column;
      gap: 15px;
      padding: 20px;
      height: auto;
    }
  
    .socialmedia {
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
    }
  
    .socialmedia img {
      width: 25px;
      height: 25px;
    }
  }
/* ===================== TABLETS ===================== */
@media (min-width: 481px) and (max-width: 1024px) {
    nav {
      padding: 20px 30px;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
    }
  
    .logo img {
      width: 45px;
      height: 45px;
    }
  
    nav ul {
      flex-direction: row;
      gap: 16px;
      padding: 0;
      position: static;
      transform: none;
    }
  
    nav ul li a {
      font-size: 0.95rem;
      padding: 6px 10px;
    }
  
    .main-section {
      flex-direction: row;
      padding: 50px 30px;
      text-align: left;
    }
  
    .leftsection h1 {
      font-size: 2.2rem;
    }
  
    .leftsection h3 {
      font-size: 1.1rem;
    }
  
    .leftsection p {
      font-size: 0.95rem;
      margin-top: 12px;
    }
  
    .rightsection img {
      max-width: 320px;
      height: auto;
    }
  
    .secondsection,
    .thirdsection,
    .fourthsection {
      padding: 50px 25px;
      margin: 20px 30px;
      border-radius: 40px;
      height: auto;
    }
  
    .secondsection h1,
    .thirdsection h1,
    .fourthsection h1 {
      font-size: 2rem;
    }
  
    .projects {
      flex-direction: column;
      align-items: center;
      gap: 25px;
    }
  
    .projectsection-box {
      width: 85%;
      margin: 20px auto;
    }
  
    .image img {
      width: 90%;
      height: auto;
    }
  
    .SKILLS img,
    .moreskills img,
    .extraskill img {
      width: 75px;
      height: 75px;
    }
  
    .PLATFORM img {
      width: 110px;
      height: 110px;
    }
  
    .divider,
    .platformdivider {
      margin: 20px 4rem;
    }
  
    .fifthsection {
      flex-direction: column;
      padding: 35px 25px;
      gap: 18px;
      height: auto;
    }
  
    .socialmedia {
      justify-content: center;
      gap: 18px;
      flex-wrap: wrap;
    }
  
    .socialmedia img {
      width: 30px;
      height: 30px;
    }
  }
  







