*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    scroll-behavior: smooth;
    font-family: Arial, sans-serif;
}
:root{
    --bg-color: #080808;
    --second-bg-color: #101010;
    --text-color: white;
    --main-color: rgb(0, 187, 255);
}
html{
    font-size:  60%;
    overflow-x: hidden;
}
#menu-icon{
    font-size: 3rem;
    transition: 0.3s ease;
}

::-webkit-scrollbar{
    width: 10px;
}
::-webkit-scrollbar-thumb{
    background: var(--main-color);
}
::-webkit-scrollbar-track{
    background-color: var(--bg-color);
}



/* navigation bar */
body{
    background-color: var(--bg-color);
    color: var(--text-color);
}
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 4rem 15%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}
#menu-icon{
    font-size: 3.5rem;
    color: var(--main-color);
    display: none;
}
.logo{
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3 ease-in-out;
}
.logo.hover{
    transform: scale(1.1);
}
.header .logo span{
    background: linear-gradient(270deg,rgb(0, 187, 255),rgb(2, 49, 66));
    background-clip: text;
    color: transparent;
}
.navbar a{
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease-in-out;
    border-bottom: 3px solid transparent;
}
.gradient-btn{
    font-size: 1.8rem;
    padding: 1rem 2rem;
    border-radius: 3rem;
    background: linear-gradient(270deg,rgb(0, 187, 255),rgb(2, 49, 66));
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    color: white;
    border: none;
    text-wrap: nowrap;
}
.navbar a:hover{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}
.gradient-btn:hover{
    transform: scale(1.05);
}



/* Home Section */
section{
    min-height:100vh;
    padding: 10rem 15%;
}
.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15rem;
}
.home-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.home-content h2{
    font-size: 8rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}
.home-content h3{
    margin: 1rem 0;
    font-size: 4rem;
}
.home-content p{
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
}
.home .home-content span{
    background: linear-gradient(270deg,rgb(0, 187, 255),rgb(2, 49, 66));
    background-clip: text;
    color: transparent;
}


.profile-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 20px var(--main-color);
    transition: 0.3s ease;
    opacity: 0;
    transform: translateY(-40px);
    animation: fadeDown 1.3s forwards;
}
.profile-img:hover {
    transform: scale(1.07);
    box-shadow: 0 0 35px var(--main-color);
}
.typing {
  font-size: clamp(2rem, 6vw, 5rem);
  color: var(--text-color);
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid var(--main-color);
  width: 0;
  max-width: 90vw;
  animation: typing 3s steps(30) forwards, blink 0.7s infinite;
  margin: 2rem auto;
}
.h2typing{
    font-size: 2rem;
}
.home-img{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.home-content p {
    font-size: 1.5rem;
    color: #ccc;
}
.btn-group{
    display: flex;
    gap: 1.5rem;
}
.btn{
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 3rem;
    font-size: 1.8rem;
    color: black;
    font-weight: 600;
    transition: 0.3s ease-in-out;
}
.btn:hover{
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color), 0 0 50px var(--main-color);
}
.btn-group a:nth-of-type(2){
    background-color: black;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px transparent;
}
.btn-group a:nth-of-type(2):hover{
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
    color: black;
}
@keyframes fadeDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}
@keyframes blink {
    50% { border-color: transparent }
}




/* timeline section */
.timelinesection{
    background-color: var(--second-bg-color);
    min-height: 100vh;
    padding: 10rem 15%;
    display: flex;
    flex-direction: column;
    justify-content: center; 
}
.timelinesection h1{
    font-size: 6rem;
    text-align: center;
}
.timelinesection h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.timelinesection hr {
    width: 90%; 
    max-width: 1080px; 
    height: 3px;
    background: var(--main-color);
    border: none;
    margin: 1rem auto 2rem; 
}
.timelinesection p {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #ddd;
}

.timeline {
  border-left: 2px solid var(--main-color);
  margin-left: 20px;
  padding-left: 20px;
}
.timeline-item {
  margin: 20px 0;
  position: relative;
}
.timeline-item h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}
.timeline-item::before {
  content: "";
  width: 15px;
  height: 15px;
  background: var(--main-color);
  border-radius: 50%;
  position: absolute;
  left: -29px;
  top: 5px;
  box-shadow: 0 0 10px var(--main-color);
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  color: #fff;
  margin-left: 10px;
  text-transform: uppercase;
  font-weight: bold;
}
.exp-badge {
  background-color: #ff6b6b;
  box-shadow: 0 0 10px #ff6b6b, 0 0 20px #ff6b6b, 0 0 30px #ff6b6b;
}
.edu-badge {
  background-color: #1e90ff;
  box-shadow: 0 0 10px #1e90ff, 0 0 20px #1e90ff, 0 0 30px #1e90ff;
}



/* Skills Section */
.heading{
    font-size: 6rem;
    text-align: center;
    margin: 3rem 0;
}
.skills h2{
    color: var(--text-color);
}
.skills-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
    gap: 2.5rem;
}
.skill-box{
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    height: 500px;
    border-radius: 3rem;
    cursor: pointer;
    border: 5px solid transparent;
    transition: 0.4s ease-in-out;
}
.skill-box:hover{
    background: var(--second-bg-color);
    color: var(--main-color);
    border: 5px solid var(--main-color);
    transform: scale(1.03);
}
.skill-info{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5rem;
    text-align: center;
    justify-content: center;
}
.skill-info h4{
    font-size: 4rem;
    margin: 2rem 0;
    font-weight: 800;
}
.skill-info p{
    font-size: 1.4rem;
    line-height: 1.7;
    font-weight: 600;
}
.skill-info i{
    font-size: 8rem;
}
.skills hr {
    width: 90%; 
    max-width: 1080px; 
    height: 3px;
    background: var(--main-color);
    border: none;
    margin: 1rem auto 2rem;
}
.icons{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.icons i{
    font-size: 5rem;
    transition: 0.3s ease;
}

.icons i:hover{
    transform: scale(1.2);
}
.icons{
    max-width: 300px;
}
/* MODAL */
.modal {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}
.modal-content {
    background-color: var(--bg-color);
    margin: 10% auto;
    padding: 3rem;
    border-radius: 2rem;
    width: 80%;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 0 25px var(--main-color);
    position: relative;
    animation: fadeIn 0.5s ease;
}
.modal-content img {
    width: 80%;
    max-height: 300px;
    object-fit: cover;
    margin-bottom: 2rem;
    border-radius: 1rem;
}
.modal-content h3 {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.modal-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #ccc;
}
.modal-content .btn {
    font-size: 1.6rem;
    padding: 1rem 2rem;
}
.close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    color: var(--main-color);
    font-size: 4rem;
    font-weight: bold;
    cursor: pointer;
}
@keyframes fadeIn {
    from {opacity: 0; transform: scale(0.9);}
    to {opacity: 1; transform: scale(1);}
}



/* project Section */
.projects{
    background-color: var(--second-bg-color);
}
.project-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    align-items: stretch; 
}
.project-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-color);
    text-align: center;
    border-radius: 3rem;
    gap: 2rem;
    padding: 5rem 2rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0 5px var(--main-color);
    transition: 0.3s ease-in-out;
    height: 100%;
    justify-content: space-between;  
    width: 100%;
}

.project-card a {
    margin-top: auto;
}
.project-card:hover{
    transform: scale(1.02);
    box-shadow: 0 0 25px var(--main-color),0 0 50px var(--main-color);
}
.project-card h3{
    font-size: 3rem;
}
.project-card p {
    font-size: 1.4rem;
    overflow: hidden;
}
.project-card img {
    width: 100%;
    height: 40%;
    object-fit: cover;
}
.projects hr {
    width: 90%; 
    max-width: 1080px; 
    height: 3px;
    background: var(--main-color);
    border: none;
    margin: 1rem auto 2rem;
}

/* contact Section */
.contact{
    background-color: var(--bg-color);
}
.contact h2{
    margin-bottom: 3rem;
    color: var(--text-color);
}
.contact form{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 5rem 0;
    text-align: center;
}
.contact form .input-box input, .contact form textarea{
    width: 100%;
    padding: 2.5rem;
    border-radius: 2rem;
    font-size: 1.8rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    border: 2px solid var(--main-color);
    margin: 1.5rem 0;
    resize: none;
}
.contact hr {
    width: 90%; 
    max-width: 1080px; 
    height: 3px;
    background: var(--main-color);
    border: none;
    margin: 1rem auto 2rem;
}
.contact .heading span{
    background: linear-gradient(270deg,rgb(0, 187, 255),rgb(2, 49, 66));
    background-clip: text;
    color: transparent;
}





/* certificates Section */
.certificates {
    background-color: var(--second-bg-color);
}
.cert-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}
.cert-card {
    background: var(--bg-color);
    padding: 3rem 2rem;
    border-radius: 2rem;
    text-align: center;
    box-shadow: 0 0 10px var(--main-color);
    transition: 0.3s ease-in-out;
}
.cert-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px var(--main-color);
}
.cert-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}
.cert-card h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}
.cert-card p {
    font-size: 1.4rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}
.certificates hr {
    width: 90%;
    max-width: 1080px;
    height: 3px;
    background: var(--main-color);
    border: none;
    margin: 1rem auto 2rem;
}
.cert-card .btn {
    background: transparent;
    color: var(--main-color);
    border: 1px solid var(--main-color);
    padding: 0.5rem 1.2rem;
    font-size: 1.2rem;
}
.cert-card .btn:hover {
    background: var(--main-color);
    color: black;
}
.view-more {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}



/* footer */
.footer{
    background-color: var(--second-bg-color);
    padding: 50px 0;
}
.footer .social-icons{
    text-align: center;
}
.footer ul{
    text-align: center;
    font-size: 1.8rem;
}
.footer ul li{
    display: inline-block;
    margin-left: 20px;
}
.footer ul li a{
    color: white;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}
.footer ul li a:hover{
    border-bottom: 3px  solid var(--main-color);
}
.footer .copyright{
    text-align: center;
    margin-top: 40px;
    font-size: 16px;
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    color: var(--main-color);
    transition: 0.3s ease-in-out;
    margin: 3rem 0.5rem;
}
.social-icons a:hover{
    background: var(--main-color);
    color: var(--text-color);
    transform: scale(1.2)translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
}



/* mobile responsive */
@media (max-width: 768px) {
    .typing {
            font-size: 2.5rem; 
            border-right: 2px solid var(--main-color);
            animation: typing 2s steps(20) forwards, blink 0.7s infinite;
    }
    .navbar {
            width: 90%;
    }
    .timelinesection hr,
    .skills hr,
    .projects hr,
    .contact hr {
        width: 95%;
        height: 2px;
        margin: 1rem auto 1.5rem;
    }
    .project-box {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }
    .project-card {
        width: 100%;
        padding: 2rem 1rem;
        img {
            width: 80%;
            height: auto;
        }
    }
    .skills-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 0 1rem;
    }
    .skill-box {
        width: 100%;
        height: auto; 
        padding: 2rem;
    }
    .skill-info {
        padding: 2rem 1rem;
    }
    ::-webkit-scrollbar {
        width: 6px; 
        height: 6px;
    }
    ::-webkit-scrollbar-thumb {
        background-color: var(--main-color);
        border-radius: 3px;
    }
    ::-webkit-scrollbar-track {
        background-color: rgba(0,0,0,0.2);
        border-radius: 3px;
    }
    * {
        scrollbar-width: thin;
        scrollbar-color: var(--main-color) rgba(0,0,0,0.2);
    }
    .cert-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
  }
}

/* tablet responsive */
@media (max-width: 1285px) {
  #menu-icon {
    display: block;
    cursor: pointer;
  }
  .navbar {
    position: absolute;
    top: 100%;
    right: 0;
    width: 80%;   
    max-width: 300px;  
    padding: 2rem;
    background: rgba(0, 0, 0, 0.8);
    border-bottom-left-radius: 2rem;
    border-left: 2px solid var(--main-color);
    border-bottom: 2px solid var(--main-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(100%); 
    transition: transform 0.3s ease-in-out;
  }
  .navbar.active {
    transform: translateX(0); 
  }
  .navbar a {
    margin: 1.5rem 0;
    font-size: clamp(1rem, 4vw, 2rem); 
    color: var(--text-color);
    text-decoration: none;
  }
  .gradient-btn {
    display: none;
  }
  .home {
    flex-direction: column-reverse;
    margin: 3rem 0;
    gap: 3rem;
  }
  .home-content {
    align-items: center;
    text-align: center;
    padding: 0 1rem;
  }
  .about {
    display: flex;
    flex-direction: column-reverse;
    text-align: center;
    padding: 0 1rem;
  }
  .about h1,
  .about h2 {
    margin: 1.5rem 0;
  }
  .timeline {
        margin-left: 10px;
        padding-left: 10px;
    }
    .timeline-item::before {
        left: -20px;
    }
}














