/*@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap%27');*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html{
    font-size: 62.5%;
}

body{
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: rgb(236, 226, 208);
    color: #25291C;
}

#intro{
    text-indent: 1cm;
    font-size: 18px;   /* Set the font size */
    color: #333;       /* Change the text color */
    line-height: 1.8;  /* Adjust the line height for better readability */
    margin-bottom: 20px; /* Add space below the paragraph */
    text-align: justify;  /* Align the text to justify */
}

header{
    position: sticky; 
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: rgb(236, 226, 208);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: 0.3s;
}


.logo{
    font-size: 3rem;
    color: #25291C;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover{
    transform: scale(1.1);
}

nav a{
    font-size: 1.8rem;
    color: #25291C;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
}

nav a:hover,
nav a.active{
    color: #4F359B;
    border-bottom: 3px solid #4F359B;
}

@media(max-width:995px){
    nav{
        position: absolute;
        display: none;
        top: 0;
        right: 0;
        width: 40%;
        border-left: 3px solid #b74b4b;
        border-bottom: 3px solid #b74b4b;
        border-bottom-left-radius: 2rem;
        padding: 1rem solid;
        background-color: #161616;
        border-top: 0.1rem solid rgba(0,0,0,0.1);
    }

    nav.active{
        display: block;
    }

    nav a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    nav a:hover,
    nav a.active{
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #b74b4b;
    }
}

section{
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}

.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: rgb(236, 226, 208);
}

.home .home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

span{
    color: #558564;
}

.home-content h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p{
    font-size: 1.6rem;
}

.home-img{
    border-radius: 50%;
}

.home-img img{
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px solid #b74b4b;
    cursor: pointer;
    transition: 0.2s linear;
}

.home-img img:hover{
    font-size: 1.8rem;
    font-weight: 500;
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;               /* smaller size */
    height: 3rem;
    font-size: 1.6rem;         /* icon smaller */
    border: 0.15rem solid #25291C;
    border-radius: 50%;
    margin: 1rem 0.5rem;       /* closer together */
    transition: 0.3s ease;
    color: #25291C;
}

.social-icons a:hover{
    color: black;
    transform: scale(1.15) translateY(-2px);
    background-color: #ECE2D0;
    box-shadow: 0 0 10px #ECE2D0;
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: #ECE2D0;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #25291C;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #25291C;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover{
    transform: scale(1.03);
    background-color: #ECE2D0;
    color: black;
    box-shadow: 0 0 25px #ECE2D0;
}

.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span{
    position: relative;
}

.typing-text span::before{
    content: "Cybersecurity";
    color: #558564;
    animation: words 20s infinite;
}

.typing-text span::after{
    content: "";
    background-color: rgb(236, 226, 208);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid rgb(236, 226, 208);
    right: -8;
    animation: cursor 0.6s infinite;
}

@keyframes cursor{
    to{
        border-left: 3px solid #25291C;
    }
}

@keyframes words{
    0%, 20%{
    content: "Cybersecurity Major";
    }
    21%, 40%{
    content: "Computer Science Minor";
    }
    41%, 60%{
        content: "working on new projects";
    }
    61%, 80%{
        content: "learning website design";
    }
    81%, 100%{
        content: "a big fan of turtles";
    }
}   

@media(max-width: 1000px){
    .home{
        gap: 4rem;
    }
}

@media(max-width:995px){
    .home{
        flex-direction: column;
        margin: 5rem 4rem;
    }

    .home .home-content h3{
        font-size: 2.5rem;
    }

    .home-content h1{
        font-size: 5rem;
    }

    .home-img img{
        width: 70vw;
        margin-top: 4rem;
    }
}

@media(max-width: 600px){
    .social-icons{
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
}

.heading{
    font-size: 8rem;
    text-align: center;
    margin: 5rem 0;
}

.education{
    padding: 100px 15px;
    background: var(--second-bg-color);
}

.education h2{
    margin-bottom: 5rem;
}

.timeline-items{
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.timeline-items::before{
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: #558564;
    left: calc(50% - 1px);
}

.timeline-item{
    margin-bottom: 40px;
    width: 100%;
    position: relative;
}

.timeline-item:last-child{
    margin-bottom: 0;
}

.timeline-item:nth-child(odd){
    padding-right: calc(50% + 30px); /* keeps box on the left */
    text-align: left;                /* change from right to left */
}

.timeline-item:nth-child(even){
    padding-left: calc(50% + 30px); /* keeps box on the right */
    text-align: left;               /* optional, default is left */
}

.timeline-dot{
    height: 21px;
    width: 21px;
    background-color: #558564;
    box-shadow: 0 0 0 6px #ECE2D0;
    position: absolute;
    left: calc(50% - 8px);
    border-radius: 50%;
    top: 10px;
}

.timeline-date{
    font-size: 20px;
    font-weight: 800;
    color: #558564;
    letter-spacing: 0.1rem;
    margin: 6px 0 15px;
}

.timeline-content{
    background-color: #f9dda8;
    border: 3px solid #25291C;
    padding: 30px 50px;
    border-radius: 4rem;
    box-shadow: 0 0 10px #ECE2D0;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    position: relative;
}

.timeline-content:hover{
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #558564;
}

.timeline-content h3{
    font-size: 20px;
    color: black;
    margin: 0 0 10px;
    font-weight: 500;
}

.timeline-content p{
    color: black;
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
}

::-webkit-scrollbar{
    width: 15px;
}

::-webkit-scrollbar-thumb{
    background-color: #25291C;
}

.services{
    background: #ECE2D0;
    color: black;
}

.services h2{
    margin-bottom: 5rem;
    color: black;
}

.services-container{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    align-items: center;
    gap: 2.5rem;
}

.service-box{
    background-color: #f9dda8;
    height: 300px;
    border-radius: 3rem;
    border: 5px solid transparent;
    cursor: pointer;
    transition: 0.4s ease-in-out;
}

.service-box:hover{
    background-color: #ECE2D0;
    color: black;
    border: 5px solid #4bb761;
    transform: scale(1.03);
}

.service-box .service-info{
    display: flex;
    flex-direction: column;
    text-align: left;
    max-height: 200px;
    justify-content: left;
    align-items: baseline;
    padding: 5rem 5rem;
}

.service-info h4{
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.25;   /* FIXED spacing for wrapped titles */
}

.service-info h4 a{
    color: inherit;        /* match h4 color */
    text-decoration: none; /* remove underline */
    display: inline;       /* keeps link from acting like a block */
    line-height: inherit;  /* matches the h4 line spacing */
}

.service-info h4 a {
    color: #558564;                 /* accent green */
    text-decoration: none;
    position: relative;
}

/* subtle underline on hover */
.service-info h4 a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 3px;
    background-color: #558564;
    transition: width 0.3s ease;
}

.service-info h4 a:hover::after {
    width: 100%;
}

.service-box a{
    color: inherit;
}

.service-info p{
    font-size: 1.6rem;
    font-weight: 600;
    max-height: 100px;
    line-height: 1.7;
    margin: auto;
}

.service-info p a {
    color: #558564;              /* accent green */
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.service-info p a:hover {
    color: #25291C;
}

.testimonials{
    background-color: #ECE2D0;
}

.testimonials-box{
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.testimonials .heading{
    margin-bottom: 5rem
}

.testimonials-box img{
    width: 15rem;
    border-radius: 50%;
    border: 3px solid black;
    box-shadow: 0 0 25px black;
}

.wrapper{
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 3rem;
}

.testimonial-item{
    min-height: 550px;
    max-width: 450px;
    background: white;
    border: 3px solid yellow;
    border-radius: 2rem;
    margin: 0 2rem;
    padding: 30px 60px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    color: aqua;
    transition: 0.4s ease-in-out;
}

.testimonial-item:hover{
    border: 3px solid black;
    transform: translateY(-10x)scale(1.03);
    box-shadow: 0 0 50px black;
}

.testimonial-item h2{
    font-size: 2.8rem;
}

.testimonial-item p{
    font-size: 1.3rem;
}

#star{
    color: rgb(0, 0, 0);
}

.contact{
    background-color: #ECE2D0;
}

.contact h2{
    margin-bottom: 3rem;
    color: white;
}

.contact form{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 5rem auto;
    text-align: center;
}

.contact form .input-box{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea{
    width: 100%;
    padding: 2.5rem;
    font-size: 1.8rem;
    color: black;
    background-color: aliceblue;
    border-radius: 2rem;
    border: 2px solid green;
    margin: 1.5rem 0;
    resize: none;
}

.contact form .btn{
    margin-top: 2rem;
}

.footer{
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: #ECE2D0;
}

.footer .social{
    text-align: center;
    padding-bottom: 25px;
    color: #25291C;
}

.footer .social a{
    font-size: 25px;
    color: #25291C;
    border: 2px solid gray;
    width: 42px;
    height: 42px;
    line-height: 42px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 10px;
    transition: 0.3s ease-in-out;
}

.footer .social a:hover{
    transform: scale(1.2)translateY(-10px);
    background-color: black;
    color: rgb(215, 210, 210);
    box-shadow: 0 0 25px black;
}

.footer ul{
    margin-top: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center;
}

.footer ul li a{
    color: rgb(0, 0, 0);
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}

.footer ul li a:hover{
    border-bottom: 3px solid black;
}

.footer ul li{
    display: inline-block;
    padding: 0 15px;
}

.footer .copyright{
    margin-top: 50px;
    text-align: center;
    font-size: 16px;
    color: rgb(0, 0, 0);
}

input[type="tel"]::-webkit-outer-spin-button,
input[type="tel"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}