@import url('https://fonts.google.com/specimen/Poppins?family=P');

:root {
    --primary-color: #20B2AA;
    --primary-color-dark: #13bbb3;
    --secondary-color: #faf5ff;
    --text-dank: #1f2937;
    --text-light: #6b7280;
    --extra-light:#ADD8E6;
    --max-width: 1200px;
}
* {
    padding: 0; 
    margin: 0; 
    box-sizing: border-box;
}
a {
    text-decoration: none;
}
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh; /* Ensures the footer is pushed to the bottom */
}
nav {
    width: 100%;
    position: fixed;
    top: 0; 
    left: 0;
    height: 70px; /* Adjust height as needed */
    background-color: #AFEEEE;
    z-index: 99;
    /* display: flex;
    align-items: center; */
}
    
.nav__content {
    max-width: var(--max-width);
    margin: auto;
    padding: 1.5rem 1rem;
    display: flex; 
    align-items: center; 
    justify-content: space-between;
}

nav .logo a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: 0.3s;
}
    
nav .logo a:hover {
    color: var(--primary-color-dark);
}

nav .checkbox {
    display: none;
}

nav input{
    display: none;
}

nav .checkbox i {
    font-size: 2rem; 
    color: var(--primary-color);
    cursor: pointer;
}

ul {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: left 0.3s; 
    list-style: none;
}

ul li a {
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
    text-decoration: none; 
    font-weight: 600;
    color: var(--text-dark);
    transition: 0.3s;
}
    
ul li a:hover {
    border-top-color: var(--secondary-color); 
    border-bottom-color: var(--secondary-color);
    color: var(--secondary-color);
}

.section {
    background-color: var(--extra-light);
    min-height: calc(100vh - 70px); /* Adjust based on your navbar height */
    padding-top: 90px; /* Prevent content from being covered by navbar */
    padding-bottom: 80px; /* Prevent overlap with footer */
    /* margin-bottom: 0; */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1; /* Makes sure section takes up available space */
    /*height: 100%;  Ensures it takes the full height of the screen */
    /* padding: 20px;
    text-align: center; */
}
    
.section__container {
    /* min-height: 100vh;  */
    max-width: var(--max-width); 
    margin: auto;
    padding: 1rem; 
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center; /* Align content at the top */
    /* justify-content: center; Center the content horizontally */
    gap: 2rem;
}

.section__container2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 800px; /* Optional: to control width of the content */
    width: 100%;
}
   
.image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image img {
    width: 80%;
    max-width: 300px;
    border-radius: 50%;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}
.image img:hover {
    transform: scale(1.05);
}
    
.subtitle {
    letter-spacing: 2px; 
    color: var(--text-light); 
    font-weight: 600; 
    margin-bottom: 0.5rem;
}
    
.title {
    font-size: 2.5rem; 
    font-weight: 400; 
    line-height: 3rem; 
    color: var(--text-dark); 
    margin-bottom: 20px;
}   

.title span {
    font-weight: 600;
}
    
.description { 
    line-height: 1.5rem;
    color: var(--text-light); 
    margin-bottom: 20px;
    font-size: 1.2rem;
}

    
.action__btns {
    display:flexbox;
    gap: 1rem;
    align-items: center;
}

.action__btns button {
    font-size: 1rem; 
    font-weight: 600; 
    letter-spacing: 2px; 
    padding: 1rem 2rem; 
    outline: none;
    border: 2px solid var(--primary-color); 
    border-radius: 10px; 
    transition: 0.3s; 
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.action__btns button:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    background-color:#ffffff;
}
  
.gitHub{
    margin-right: 30px;
    background-color: var(--primary-color); 
}
.portfolio {
    color:#000000;
    margin-left: 0px;
}
    
.image {
    display: grid; 
    place-items: center;
}

.image img{
    width: min(25rem, 90%); 
    border-radius: 100%;
}

@media (width < 750px) {
    nav .checkbox{
        display: block;
    }
    ul{
        position: absolute;
        width: 100%;
        height: calc(100vh - 85px);
        left: -100%; 
        top: 85px;
        background-color: var(--extra-light);
        flex-direction: column; 
        justify-content: center;
        gap: 3rem;
    }
    nav #check:checked ~ ul {
        left: 0;
    }
    ul li a {
        font-size: 1.25rem;
    }
    .section__container{
        padding: 10rem 1rem 5rem 1rem; 
        text-align: center;
        grid-template-columns: repeat (1, 1fr);
    }
    .image{
        grid-area: 1/1/2/2;
    }
    .action__btns {
        margin: auto;
    } 
    .contact__details {
        font-family: 'Poppins', sans-serif;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }   
}

/* Footer Styling */
footer {
    width: 100%;
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    /* padding: 2rem 1rem; */
    padding: 1rem 0;
    margin-top: auto;/*  used to be 0 */
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    /* animation: fadeInUp 2.5s ease-out; */
}

footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

footer .social-icons a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s;
}

footer .social-icons a:hover {
    color: var(--secondary-color);
}

/* Responsive Adjustments */
@media (max-width: 750px) {
    .section__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .image img {
        width: 60%;
    }
    .contact__details {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}



/* Adding Animation for Smooth Fade-In */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated content in the Hero Section */
.hero-title {
    animation: fadeInUp 1.2s ease-out;
}

.hero-description {
    animation: fadeInUp 1.5s ease-out;
}

.hero-image {
    animation: fadeInUp 2s ease-out;
}


/* Navbar slide-in */
@keyframes slideIn {
    0% {
        left: -100%;
    }
    100% {
        left: 0;
    }
}

nav #check:checked ~ ul {
    animation: slideIn 0.5s ease-in-out;
}

/* Contact page */
.contact__info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact__details {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    margin-bottom: 20px;
}

.contact__details li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-dark);
    white-space: nowrap;
    margin-right: 10px;
}

.contact__details li i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact__details i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

.social__links {
    margin-top: 2rem;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social__icon {
    color: var(--primary-color);
    font-size: 2rem;
    color: #10657e;
    transition: color 0.3s;
    
}

.social__icon:hover {
    color: var(--primary-color-dark);
}

.contact__image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.contact__image img:hover {
    transform: scale(1.05);
}

/* Animation for the GETTING IN TOUCH TITLE, NEED TO EDIT */
.animate-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.animate-text.show {
    opacity: 1;
    transform: translateY(0);
}





    