/* General reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/*Prevents svg zoom out lines*/
svg {
    display: block;
}



.navbar {
    position: fixed;
    height: 50px;
    top: 0;
    width: 100%;
    background: #4f759b; /* Navbar background color */
    display: flex;
    align-items: center;
    justify-content: center; /* Center the entire <ul> */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add a shadow for effect */
    user-select: none;
    z-index: 10;
}

.navbar ul {
    list-style: none;
    display: flex; /* Flexbox for spacing <li> */
    justify-content: space-evenly; /* Even spacing between <li> */
    padding: 0;
    width: 100%; /* Ensures full width for space distribution */
    max-width: 1200px; /* Optional: Limit the navbar width */
}

.navbar ul li {
    margin: 0; /* Reset margins since spacing is handled by flexbox */
    text-align: center;
}

.navbar ul li a {
    text-decoration: none;
    font-size: 1.4em;
    color: #ffffff;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #ff6347; /* Adjust hover color */
}


/* Section Styling */
.section {
    height: 100vh; /* Full viewport height */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
}

/*Fonts*/

/* <weight>: Use a value from 200 to 800*/

.dosis-text {
  font-family: "Dosis", sans-serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
}

/*text styles*/


body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}


.bsection1 {
  width: 100%;
  min-height: 100%;

  background: url("imgs/main.jpg");

  background-repeat: no-repeat;
  background-position: 50% -10%;
  background-size: cover;

  position: relative;
}

/* overlay */
.bsection1::before {
  content: "";
  position: absolute;
  inset: 0;
}

/* content above overlay */
.bsection1 > * {
  position: relative;
  z-index: 1;
}

/* 📱 MOBILE: FIT INSIDE SCREEN */
@media (max-width: 800px) {
  .bsection1 {
    background:
      url("imgs/main-m.jpg");
    background-repeat: no-repeat;
    background-position: 50% 10%;
    background-size: auto;
    

    /* 🔴 THIS IS WHAT FIXES THE BLACK BLOCK */
    height: auto;
    width: auto;

    background-color: rgb(245, 224, 213);
  }

  .bsection1::before {
    display: none;
  }
}

.mobilesection2 {
    font-size: 3rem;
}

@media (max-width: 800px){
    .mobilesection2 {
    font-size: 2rem;
    }
}

/*
.bsection1 {
    background: linear-gradient(to bottom, #56f1dc, #dc7293);
    background-image: url(imgs/main.jpg);   
}
*/

.bsection2 {
    background: linear-gradient(to bottom, #898ed6, #e4a57e);
}

.bsection3 {
    background: linear-gradient(to bottom, #e6dd9d, #8e92d3);
}

.bsection4 {
    background: linear-gradient(to bottom right, #56f1dc, #dc7293);
}


section {
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}



/** For mobile devices **/
@media (max-width: 767px) {
    
    #section2 {
        padding-top: 60px;
    }
}




/* Parent container */
.split-layout {
    display: flex;
    height: 100vh;
}

/* Text section styling */
.text-section {
    flex: 1; /* 40% width */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.text-section h1 {
    margin: 0;
    font-size: 3.5em;
    color: #333;
}

.text-section h2 {
    margin: 10px 0;
    font-size: 3em;
    color: #555;
}

.text-section p {
    font-size: 2em;
    color: #666;
}

/* Image section styling */
.image-section {
    position: relative;
    flex: 1; /* Occupy remaining space */
    display: flex; /* Flexbox for alignment */
    justify-content: center; /* Center the content horizontally */
    align-items: center; /* Center the content vertically */
    padding: 0; /* Remove any default padding */
    margin: 0; /* Remove default margin */
    box-sizing: border-box; /* Ensure border is part of the box size */
}
/* Box container for the image */
.image-box {
    position: relative;
    padding: 0; /* Remove extra padding */
    background-color: #fff; /* Box background */
    display: flex; /* Make the box flexible */
    justify-content: center; /* Center the image horizontally */
    align-items: center; /* Center the image vertically */
    max-width: 85%; /* Prevent the box from exceeding the viewport width */
    max-height: 85%; /* Prevent the box from exceeding the viewport height */
    box-sizing: border-box; /* Include border and padding in size calculations */
    border-radius: 3em;
    overflow: visible;
}

/* Image styling */
.image-box img {
    width: auto; /* Maintain aspect ratio */
    height: auto; /* Maintain aspect ratio */
    max-width: 100%; /* Prevent the image from exceeding the box */
    max-height: 100%; /* Prevent the image from exceeding the box */
    border-radius: 3em;
}



@media (min-width: 768px) and (max-width: 1024px) {
    .split-layout {
        flex-direction: column; 
    }

    .text-section {
        flex: 0.5; /* Equal width for text and image */
    }

    .image-section {
        flex: 0.5; /* Equal width for text and image */
    }

    .text-section h1 {
        font-size: 3em; /* Slightly smaller font for iPads */
    }

    .text-section h2 {
        font-size: 2.6em;
    }

    .text-section p {
        font-size: 2em;
    }

    .image-section img {
        object-fit: contain; /* Ensure the image fits nicely on iPads */
    }
}


@media (max-width: 768px) { /* For tablets and smaller screens */

    #section1 {
        padding-top: 30px;
    }

    .split-layout {
        flex-direction: column; /* Stack elements vertically */
    }

    .text-section, 
    .image-section {
        flex: 1; /* Each takes up full width */
        height: 50%; /* Each takes half of the viewport height */
    }

    .text-section {
        padding: 15px;
    }

    .image-section img {
        max-height: 100%; /* Make sure the image doesn't overflow */
    }
}

@media (max-width: 480px) { /* For smartphones */
    .text-section h1 {
        font-size: 2.5em;
    }

    .text-section h2 {
        font-size: 1.8em;
    }

    .text-section p {
        font-size: 1.6em;
    }
}

/* Bio Section */
.bio-section {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 50px 0; /* Add spacing above and below the bio section */
    padding: 0 5%; /* Add horizontal padding for dynamic space */
    gap: 20px; /* Ensure some space between text and image */
}

.bio-text-section {
    flex: 1; /* Text section takes available space */
    padding: 20px; /* Add some inner spacing for the text */
    text-align: justify;
}

.bio-text-section p {
    font-size: 1.2em;
    color: #444;
    line-height: 1.5;
}

.bio-image-section {
    position: relative;
    flex: 0 1 auto; /* Let the image section size itself naturally */
    display: flex;
    justify-content: flex-start; /* Align image to the left */
    align-items: center;
    margin-right: 5%; /* Dynamic space to the right of the image */
    order: -1; /* Move image section to the left */
}

.bio-image-section img {
    max-width: 100%; /* Ensure the image doesn't overflow */
    height: auto; /* Maintain aspect ratio */
    border-radius: 2em;
    height: 750px;
    width: 600px;
    user-select: none;
}



/* Tablet responsiveness (768px to 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .bio-section {
        flex-direction: column; /* Keep the side-by-side layout */
        align-items: center;
        padding: 0 5%; /* Adjust padding for smaller screen space */
        gap: 10px; /* Reduce the gap slightly for compactness */
    }

    .bio-text-section {
        flex: 1;
        padding: 15px; /* Reduce padding */
        text-align: justify; /* Maintain readability */
    }

    .bio-image-section {
        flex: 0 1 auto;
        margin-right: 0; /* Ensure the image is aligned properly */
        margin-left: 5%; /* Add dynamic spacing from the text */
    }

    .bio-image-section img {
        max-width: 100%; /* Slightly smaller image for tablets */
        height: 600px;
    }

    .bio-image-section::after, .bio-image-section::before {
        max-width: 100%;
    }

}


@media (max-width: 768px) {
    .bio-section {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center align in column layout */
    }

    .bio-text-section {
        text-align: center; /* Center-align text for smaller screens */
        padding: 10px;
    }

    .bio-image-section {
        margin-right: 0; /* Remove the horizontal margin */
        margin-top: 20px; /* Add vertical spacing between text and image */
        display: flex;
        justify-content: center; /* Ensure the image is centered */
        width: 100%; /* Make the container span full width */
    }

    .bio-image-section img {
        max-width: 80%; /* Reduce image size for smaller screens */
        height: 350px;
        margin: 0 auto; /* Ensure the image is centered within its container */
    }

    .bio-image-section::after, .bio-image-section::before {
        max-width: 80%;
    }

}

.wavecut {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wavecut svg {
    position: relative;
    display: block;
    width: calc(300% + 1.3px);
    height: 154px;
}

.wavecut .shape-fill {
    fill: #e4a57e;
}


.skills-section {
    text-align: center; /* Center heading */
    padding: 20px; /* Add some spacing */
}

.skills-container {
    display: flex; /* Flexbox layout */
    justify-content: space-evenly; /* Space items evenly across the screen */
    align-items: center; /* Align items vertically */
    gap: 50px; /* Add space between items */
    flex-wrap: wrap; /* Allow wrapping for responsiveness */
}

.skill-item {
    display: flex;
    flex-direction: column; /* Stack icon and text vertically */
    align-items: center; /* Align the icon and text horizontally */
    text-align: center; /* Center the text */
    text-align: center; /* Center-align text and images */
    max-width: 25%; /* Optional: constrain the width */
}

.skill-item i {
    font-size: 10em; /* Scales relative to the font size of the parent */
    margin-bottom: 30px;
    color: #ffffff;
}

.skill-item h1 {
    font-size: 2rem;
    color: #ffffff;
}

/* Add responsiveness for smaller screens */
@media (max-width: 1000px) { /* Tablets or smaller */
    .skills-container {
        flex-direction: column; /* Stack items vertically */
        gap: 30px; /* Smaller gap for stacked items */
    }

    .skill-item {
        max-width: none; /* Allow items to take full width if needed */
        padding-bottom: 100px;
    }
}

@media (max-width: 480px) { /* Phones or smaller */
    .skills-section h1 {
        font-size: 2em; /* Slightly smaller heading for phones */
    }
}

.contact-form {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 10px;
    background-color: #e8e8cd; /*#f7e4cf*/
    font-family: Arial, sans-serif;
    overflow: hidden; /* Prevent any child element from overflowing */
    margin-bottom: 0; /* Ensure no extra space below */
    margin-top: 0;
}

.contact-form h2 {
    text-align: center;
    color: #333;
}

.contact-form label {
    display: block;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: calc(100% - 20px); /* Ensure the input fields fit inside padding */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    background-color: #f1ede8;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box; /* Include padding and border in width */
}

.contact-form button {
    display: block;
    width: calc(100% - 20px); /* Ensure the button fits inside padding */
    padding: 10px 15px;
    font-size: 16px;
    color: rgb(0, 0, 0);
    background-color: #a1f1e6;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box; /* Include padding and border in width */
}

.contact-form button:hover {
    background-color: #dc7293;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.contact-form textarea {
    width: calc(100% - 20px); /* Ensure it stays within the container */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box; /* Include padding and border in width */
    resize: none; /* Disable the resizing feature */
}

.contact-form textarea:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

/* Mobile and Tablet responsiveness */
@media (max-width: 768px) {
    .contact-form {
        padding: 15px;
        margin: 20px auto;
        max-width: 90%;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form button {
        font-size: 14px;
        padding: 12px;
    }

    .contact-form h2 {
        font-size: 1.4em;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 10px;
        margin: 10px;
        max-width: 95%;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form button {
        font-size: 14px;
        padding: 10px;
    }

    .contact-form h2 {
        font-size: 1.2em;
    }
}


.waves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.waves svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 213px;
}

.waves .shape-fill {
    fill: #8e92d3;
}

/** For mobile devices **/
@media (max-width: 900px) {
    .waves svg {
        width: calc(100% + 1.3px);
        height: 80px;
    }
}

/* Footer container */
footer {
    background-color: #4f759b;
    color: white;
    padding: 10px 20px;
    font-size: 1rem;
    bottom: 0;
    width: 100%;
}

/* Footer content */
.footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between; /* Space between items */
    align-items: center; /* Vertically center items */
    flex-wrap: wrap; /* Allow items to wrap on small screens */
}

/* Footer items */
footer p {
    margin: 5px;
    display: flex;
    align-items: center; /* Align icon and text vertically */
    font-size: 1.5em;
    font-weight: bold;
}

/* Icon spacing */
footer i {
    margin-right: 8px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .footer-container {
        flex-direction: column; /* Stack items vertically */
        text-align: center; /* Center text for smaller screens */
    }
}

/* Base link styles */
.email-link {
    color: #ffffff; /* Initial color */
    text-decoration: none; /* Remove underline */
    transition: color 0.3s; /* Smooth color transition */
    position: relative;
    font-weight: bold;
}



/*Animation stuff*/

.scale-effect {
    transition: transform 0.5s ease;
}

/* Scale up on hover */
.scale-effect:hover {
    transform: scale(1.1); 
}


/* Initial state of elements... sir get down! get down! 🗣️🔥 */
.animate-on-scroll-d {
    opacity: 0;
}

.animate-on-scroll-l {
    opacity: 0;
}

.animate-on-scroll-r {
    opacity: 0;
}

.animate-on-scroll-u {
    opacity: 0;
}

.animate-on-scroll-in {
    opacity: 0;
}
