*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
    font-family: 'Poppins';
}
:root{
    --background: rgba(16, 40, 70, 0.984);
    --second-background: rgb(2, 12, 39);

}
body{
    min-height: 100vh;
    background-color: var(--background);

}
nav{
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2em 15%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background-color: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    z-index:1000;


}
ul{
    display: flex;
    align-items: center;
    gap: 3em;

}
nav ul a{
    color: white;
    opacity: 0.7;
    transition: 0.2s ease-in-out;


}
nav ul a:hover{
    opacity: 1;
    color: blue;
    font-size: 1.5em;
   text-decoration: underline;
}
.logo{
    font-size: 2em;
    color: white;
    font-weight: 800;
    opacity: 0.8;
    transition: 0.2s ease-in-out;
}
.logo:hover{
    opacity: 2;
}
.btn{
    padding: 0.5em 1em;
    color:black;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 1.5em;
    font-size: 1.1em;
    border: 2px solid white;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    background-color: white;
    
}
.btn:hover{
    background: linear-gradient(135deg, #45e9a2, #3b82f6);
    transform: scale(1.05);
    
}
span{
    background: linear-gradient(to right, #6cff52,#3ec5ff);
    background-clip: text;
    color: transparent;

}
#menu{
    color: white;
    font-size: 3em;
    display: none;

}
/* theme */
.darkmode {
    --background: #121212;
    --second-background: #1e1e1e;
    background-color: var(--background);
    color: #ffffff;
}

#theme-switch {
    height: 50px;
    width: 50px;
    padding: 0;
    border-radius: 50%;
    background-color: var(--second-background);
    display: flex;
    position: fixed;
    top: 20px;
    right: 20px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#theme-switch:hover {
    transform: scale(1.1);
}

#theme-switch svg {
    fill: white;
    transition: fill 0.3s ease;
}

#theme-switch svg:last-child {
    display: none;
}

.darkmode #theme-switch svg:first-child {
    display: none;
}

.darkmode #theme-switch svg:last-child {
    display: block;
}

@media screen and (max-width: 768px) {
    #theme-switch {
        height: 40px;
        width: 40px;
        top: 15px;
        right: 15px;
    }
}

@media screen and (max-width: 480px) {
    #theme-switch {
        height: 35px;
        width: 35px;
        top: 10px;
        right: 10px;
    }

    #theme-switch svg {
        width: 20px;
        height: 20px;
    }
}
section{
    min-height: 100vh;
    padding: 5% 15%;
    
}
#home{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2em;
    color: white;
}
#home img{
    width: 18vw;
    border-radius: 50%;
    margin-top: 3em;
    
}
.info-box{
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 0.5em;
    max-width: 600px;
}
.info-box h1{
    font-size: 5em;
    font-weight: 500;

}
.info-box h3{
    font-size: 3em;
    font-weight: 400;

}

.info-box{
    opacity: 0.7;
    gap: 1em;
}
#element {
    font-size: 4em;
    color: rgb(166, 62, 245);
    
}
.btn-box{
    display: flex;
    gap: 1em;

}
.btn-box .btn1{
    padding: 0.5em 1em;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 1.5em;
    font-size: 1.1em;
    background-color: white;
    border: 2px solid rgb(5, 0, 0);
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.btn-box .btn1:hover{
    background-color: blanchedalmond;
}
.btn-box .btn:nth-of-type(2){
    background-color: white;
    color: var(--background);
}
.btn-box .btn:nth-of-type(2):hover{
    background-color: var(--background);
    color: white;
}

::-webkit-scrollbar-thumb{
    background: linear-gradient(to bottom, #6cff52, #3ec5ff);
}

#about{
    background-color: var(--background);
    display: flex;
    align-items: center;
    justify-items: center;
    gap: 5em;

}
#about img{
    width: 30vw;
    border-radius: 1em;

}
.about-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2em;
    margin: 0 auto;
    max-width: 1200px;
    box-sizing: border-box;
}

.about-info {
    text-align: center; /* Align text for smaller screens */
    background: linear-gradient(135deg, #374151, #4b5563);
    color: #f9fafb;
    padding: 2em;
    border-radius: 1em;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    width: 100%; /* Ensures full width on mobile */
}

.about-info h1 {
    font-size: 1.5em;
    color: #e2e8f0;
    margin-bottom: 1em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about-info p {
    font-size: 1.2em;
    line-height: 1.6em;
    color: #f3f4f6;
}


@media (max-width: 768px) {
    .about-box {
        padding: 1em;
    }

    .about-info {
        padding: 1.5em;
        text-align: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .about-info h1 {
        font-size: 1.8em;
    }

    .about-info p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .about-info {
        padding: 1em;
    }

    .about-info h1 {
        font-size: 1.5em;
    }

    .about-info p {
        font-size: 0.9em;
    }
}


.Skills {
    text-align: center;
    padding: 2em;
    background: linear-gradient(135deg, #1e293b, #4b5563);
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    color: white;
    margin: 2em auto;
    margin-left: 3em;
    max-width: 900px;
}

.skills-header {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 1.5em;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}


.skills-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5em;
    justify-items: center;
}


.skill-item {
    background: #374151;
    padding: 1.5em;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease-in-out;
    cursor: pointer;
    width: 100%;
    max-width: 220px;
    text-align: center;
}

.skill-item:hover {
    transform: scale(1.1);
    background: #4b5563;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.skill-item span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
    font-size: 1.2em;
    color: #f3f4f6;
    transition: color 0.3s ease-in-out;
}

.skill-item span:hover {
    color: #60a5fa;
}

.skill-item i {
    font-size: 2.5em;
    color: #60a5fa;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

.skill-item:hover i {
    transform: rotate(360deg);
    color: #38bdf8;
}
/* Responsive Design */
@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .skills-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

.about-box h2{
    font-size: 2.5em;
}

#projects {
  padding: 60px 20px;
  background: #082745;
  text-align: center;
}

.header span {
  font-size: 2.5rem;
  border-bottom: 3px solid #007bff;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.project-box {
  background: linear-gradient(to right, #ebf3f3,#f7eded);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.project-box:hover {
  transform: scale(1.05); /* expands the card */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* adds stronger shadow */
  z-index: 10;
}

.project-box img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.project-box h2 {
  color: #333;
  margin-bottom: 10px;
}

.project-box p {
  color: #666;
  font-size: 0.95rem;
}

.badges {
  margin: 15px 0;
}

.badges span {
  display: inline-block;
  background: #007bff;
  color: #fff;
  font-size: 0.8rem;
  padding: 5px 10px;
  margin: 5px 5px;
  border-radius: 20px;
}

.buttons a {
  text-decoration: none;
  display: inline-block;
  margin: 10px 10px 0;
  background: linear-gradient(to right, #6cff52,#3ec5ff);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.3s;
}

.buttons a:hover {
  background: #218838;
}

.animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Media Queries for Mobile */
@media (max-width: 480px) {
  .header span {
    font-size: 1.8rem;
  }

  .project-box {
    padding: 15px;
  }

  .project-box h2 {
    font-size: 1.1rem;
  }

  .project-box p {
    font-size: 0.9rem;
  }

  .buttons a {
    font-size: 0.8rem;
    padding: 7px 12px;
  }

  .badges span {
    font-size: 0.7rem;
    padding: 4px 8px;
  }
}

#contact {
    background: linear-gradient(135deg, #010b1c64, #323b487c);
    color: #f9fafb;
    padding: 4em 10%;
    text-align: center;
}

#contact .header {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 2em;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2em;
    max-width: 600px;
    margin: 0 auto;
    padding: 2em;
    background: linear-gradient(135deg, #374151, #4b5563);
    border-radius: 1em;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease-in-out;
}

form:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

form .input-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0.5em;
}

.input-box span {
    font-size: 1.2em;
    font-weight: 500;
    color: #f9fafb;
}

form input,
form textarea {
    width: 100%;
    font-size: 1.1em;
    padding: 0.8em;
    border-radius: 0.5em;
    border: none;
    outline: none;
    background: rgba(2, 45, 78, 0.1);
    color: #f9fafb;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);

}

form input:focus,
form textarea:focus {
    background: linear-gradient(135deg, #2274f8, #b45ef6);
    transform: scale(1.02);
    color: #fff;
}

form button {
    background: linear-gradient(135deg, #3b82f6, #030650a6);
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    padding: 0.8em 2em;
    border: none;
    border-radius: 0.5em;
    cursor: pointer;
    border-radius: 1em;
    transition: background 0.3s ease-in-out, transform 0.3s ease-in-out;
}

form button:hover {
    background: linear-gradient(135deg, #45e9a2, #3b82f6);
    transform: scale(1.05);
}

footer{
    display: flex ;
    align-items: center;
    justify-content: center;
    gap: 10em;
    bottom: 0;
    background-color: var(--background);
    width: 100%;
    padding: 5em 15%;
}
.col-left{
    display: flex;
    flex-direction: column;
    gap: 1em;
}
.col-box{
    display: flex;
    align-items: center;
    gap: 1em;

}
.col-box i{
    font-size: 2em;
}
.col-box span{
    font-size: 1.2em;
}

.col-right{
    display: flex;
    flex-direction: column;
    gap:1em;
    color: white;
    max-width: 500px;
}
.col-right span{
    font-size: 1.3em;
}
.col-right .social-icons{
    display: flex;
    align-items: baseline;
    justify-content: left;
    gap: 1em,
}
.col-right .social-icons i{
    font-size: 2em;
    transition: 0.2s ease-in-out;
    cursor: pointer;
}
.social-icons span i:hover{
    color: white;


}

.Copy {
    text-align: center;
    background-color: #222;
    color: #fff; 
    padding: 1em;
    font-size: 0.9em; 
    font-family: 'Arial', sans-serif;
    letter-spacing: 0.5px; 
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); 
}

@media (max-width: 768px) {
    .Copy {
        font-size: 0.8em; 
        padding: 0.8em;
    }
}

@media (max-width: 480px) {
    .Copy {
        font-size: 0.75em;
        padding: 0.6em;
    }
}


@media(max-width:968px){
    section{
        padding: 8em 15%;

    }
    nav .btn {
        display: none;
    }

    nav .links {
        position: absolute;
        top: 100%;
        right: 0;
        flex-direction: column;
        background: black;
        padding: 1em 0;
        display: none;
        width: 100%;
    }

    nav .links a {
        margin: 1em 0;
        font-size: 1.2em;
    }

    nav #menu {
        display: block;
        font-size: 1.5em;
        cursor: pointer;
    }

    nav .links.active {
        display: flex;
    }
    #home h1{
        font-size: 4em;

    }
    #home h3{
        font-size: 2em;

    }
    #home img{
        width: 24vw;
    }
    #about{
        flex-direction: column;
    }
    #about img{
       width: 32vw; 
    }
    #about h1{
        font-size: 3em;
    }
    #about ul{
        font-size: 1em;
    }
}
@media(max-width:760px){
    section {
        padding: 4em 5%;
    }
    #home h1{
        font-size: 2.5em;

    }
    #home h3{
        font-size: 1.5em;

    }
    #home img{
        width: 32vw;
    }
    #about .skills{
        gap:3em;

    }

    #servives .header{
        font-size: 3em;
    }
    #contact .header{
        font-size: 3em;
    }
    #contact .input-box span{
        font-size: 1.2em;

    }
    .input-box input{
        padding:0.5em 1em;
    }


    footer{
        flex-direction: column;
        gap: 5em;
        align-items: baseline;
    }

}