/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'League Gothic', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #141115;
}



html {
    scroll-behavior: smooth;
    scroll-padding-top: 4rem; /* Adjust based on your navbar height */
  }

/* -------------------------------NAV BAR------------------------------- */
nav {
    background: #fff;
    color: #141115;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0; /* Reset padding */
    margin: 0; /* Reset margin */
    height: 4rem; /* Set navbar height explicitly */
    display: flex; /* Flexbox for layout */
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center items horizontally */
    gap: 1rem; /* Space between links */
    border-bottom: solid 1px #F2E1E1;
}

.nav-links {
    display: flex; /* Aligns links in a row */
    align-items: center; /* Ensures all items are vertically aligned */
    gap: 1.5rem; /* Adjusts spacing between links */
}



.nav-links a {
    display: flex; /* Makes text links behave like flex items */
    align-items: center; /* Centers text */
    color: #630036;
    text-decoration: none;
    font-size: 1.5rem;
    padding: 0.5rem 1rem;
    transition: opacity 0.3s ease-in-out;

}

.nav-links a {
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.nav-links a:active {
    opacity: 0.5;
}

/* Hover Effect */
.nav-links a:hover {
    color: #F8BABB; /* Change color on hover (soft pink) */
    transform: scale(1.1); /* Slight zoom effect */
}

/* Home Icon Default Size */
.nav-links a img {
    width: 30px; /* Set a fixed size */
    height: auto;
    transition: filter 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Home Icon Hover Effect */
.nav-links a:hover img {
    filter: brightness(0) saturate(100%) invert(85%) sepia(20%) saturate(500%) hue-rotate(300deg) brightness(95%) contrast(90%);
    transform: scale(1.1); /* Slight zoom effect on hover */
}

#menu-toggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none; /* Prevents clicking */
}

/* -------------------------------MAIN CONTENT------------------------------- */
main {
    background: #fff;
    font-weight: 200;
    letter-spacing: 0.2rem;
    margin: auto; /* Center align main content */
}

/* -------------------------------HERO PAGE------------------------------- */
#heropage {
    display: flex;
    width: 100%;
    max-width: 100vw; /* Prevents horizontal overflow */
    height: calc(100vh - 4rem); /* Full screen minus the header */
    position: relative;
    overflow: hidden; /* Prevents anything from spilling out */
}

/* Right side with the image as the background */
.right-side {
    flex: 1;
    background: url('./My portrait.jpg') right center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
}

/* Left side with a pink overlay that blends into the image */
.left-side {
    width: 80%; /* Extends slightly over the right side */
    height: 100%;
    background: linear-gradient(to right, #F2E1E1 0%, #F2E1E1 50%, rgba(242, 225, 225, 0.5) 75%, rgba(242, 225, 225, 0) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: absolute;
    left: 0;
    top: 0;
}

.hero-text {
    position: relative;
    left: -100px;
    top: -5px;
    text-align: left;
    line-height: 1;
}

.hero-text h1 {
    color: #F4ACB7;
    font-size: 7rem;
    margin-bottom: 10px; 
    letter-spacing: 0.9px;
}

.hero-text h2 {
    color: #630036;
    font-size: 6rem; 
    text-align: right;
    letter-spacing: -0.5px;
    line-height: 0.8; /* Adjust line height to keep h2 compact */
}

.hero-text h4{
    color: #630036;
    text-align: left;
    font-family: 'Lexend Exa';
    font-weight: 200;
    font-size: 1.3rem;
    padding-top: 70px;
    letter-spacing: -1px; 
}

.btn {
    display: inline-block; /* Makes it behave like a button */
    background-color: #630036; /* Button background */
    color: #fff; /* White text */
    padding: 10px 16px; /* Adds space inside the button */
    font-size: 1.2rem; /* Adjust font size */
    text-decoration: none; /* Removes underline */
    border-radius: 6px; /* Rounds corners */
    font-weight: 600; /* Makes text bold */
    text-align: center; /* Centers text */
    margin-top: 50px; /* Space above the button */
    transition: background 0.3s ease, transform 0.2s ease; /* Smooth effect */
}

/* Button Hover Effect */
.btn:hover {
    background-color: #F8BABB; /* Darker shade on hover */
    transform: scale(1.05); /* Slight zoom effect */
}

/* Button Click (Active) Effect */
.btn:active {
    transform: scale(0.98); /* Pressing effect */
}

/* -------------------------------MY EXPERTISE------------------------------- */
#myexpertise {
    background-color: #fff;
    color: #630036;
    padding: 10px 0; /* Reduce section height */
}

/* Expertise Bar (Top Section) */
.expertise-bar {
    display: flex;
    justify-content: center; /* Centers everything */
    align-items: center; /* Align icons and text */
    background: #fff;
    padding: 10px 5%; /* Reduce padding to shrink height */
    border-bottom: solid 1px #F2E1E1;
    gap: 50px; /* Space between each expertise item */
    flex-wrap: nowrap; /* Prevents items from wrapping */
    white-space: nowrap; /* Ensures text stays on one line */
    overflow: hidden; /* In case of small screens */
}

/* Each Expertise Item */
.expertise-item {
    display: flex;
    align-items: center;
    gap: 5px; /* Keeps text and icon close */
    font-size: 1.5rem;
    flex-shrink: 0; /* Prevents items from shrinking */
}

/* Icons */
.expertise-item img {
    width: 30px; /* Standard size */
    height: auto;
    
}

/* Expertise Content (Bottom Section) */
.expertise-content {
    background-color: #630036;
    color: #fff;
    padding: 20px 250px 30px 0px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align everything to the right */
    position: relative;
}

/* MY EXPERTISE Heading */
/* Container for Image + Text */
.expertise-container {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Keeps space between text & image */
    gap: 50px;
    max-width: 1200px; /* Prevents section from getting too wide */
    margin: 0 auto; /* Center the section */
}

/* Big Image on Left */
.expertise-container img {
    width: 37%; /* Takes up almost half of the section */
    height: auto;
    max-width: 100%;
    object-fit: cover; /* Ensures nice fitting */
    margin: 45px 0px 15px 0px;
    border-radius: 250px;
}

/* Text Container (Keeps Everything Together) */
.expertise-text {
    flex: 1; /* Allows text to take up remaining space */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align text to the left */
    
}

.expertise-text h2,
.expertise-text h4 {
    text-align: right; /* Align only h2 and h4 to the right */
    align-self: flex-end; /* Ensures they stick to the right */
}

/* MY EXPERTISE Title */
.expertise-text h2 {
    font-size: 6rem;
    color: #F8BABB;
    text-align: left;
}

/* Description Text */
.expertise-text h4 {
    font-size: 1.3rem;
    letter-spacing: -1px;
    font-family: 'Lexend Exa';
    font-weight: 200;
    line-height: 1.4;
    max-width: 750px;
}

/* h4 - Expertise Description */
.expertise-content h4 {
    font-size: 1.3rem;
    letter-spacing: -1px;
    font-family: 'Lexend Exa';
    font-weight: 200;
    line-height: 1.4;
    max-width: 750px;
    padding-top: 70px;
}

.btn-circle {
    display: inline-flex; /* Keeps button as flex for styling */
    align-self: flex-end; /* Pushes it to the right */
    background-color: #F8BABB; 
    color: #630036;
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: 50px;
    border-radius: 6px;
    padding: 10px 16px;
}

/* Button Hover Effect */
.btn-circle:hover {
    background-color: #fff;
    transform: scale(1.05); /* Slight zoom effect */
}

/* Button Click (Active) Effect */
.btn-circle:active {
    transform: scale(0.98); /* Pressing effect */
}
/* -------------------------------EXPERTISE DETAILS------------------------------- */
#expertise-details {
    background-color: #630036; /* Same dark background */
    color: white; /* White text */
    padding: 100px 10%;
    text-align: left;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two columns */
    gap: 40px 80px; /* Row and column spacing */
}

.expertise-item {
    display: flex;
    align-items: flex-start;
    gap: 15px; /* Space between icon and text */
}

.expertise-text h3 {
    font-family: 'Lexend Exa';
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.expertise-text p {
    font-family: 'Lexend Exa';
    letter-spacing: 0.1px;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 100;
    max-width: 400px;
}

/* -------------------------------ABOUT------------------------------- */

/* About Me Section */
#about {
    background-color: #fff;
    color: #630036;
    padding: 60px 0;
}

.about-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-row {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 1200px; /* Ensuring it doesn’t go too wide */
    margin: 0 auto; /* Centers the whole section */
    gap: 100px; /* INCREASED SPACING HERE */
}

/* Ensuring correct spacing and alignment */
.about-text, .about-image {
    width: calc(50% - 25px); /* Exactly half the page, minus 25px for offset */
}

/* Text should be slightly to the left */
.about-text {
    text-align: right;
    padding-right: 50px; /* Push text away from image */
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.about-text h3 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.about-text p {
    font-family: 'Lexend Exa';
    letter-spacing: 0.1px;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* Image should be slightly to the right */
.about-image {
    display: flex;
    justify-content: left; /* Push the image slightly to the right */
}

/* Image Styling */
.about-image img {
    width: 100%; /* Ensures it fills the div */
    max-width: 250px; /* Adjust as needed */
    height: auto;

}

.about-row:nth-child(even) {
    flex-direction: row-reverse;
}

/* -------------------------------FOOTER------------------------------- */
footer {
  
    font-size: 2rem;
    text-align: center;
    padding: 5rem 2rem;
    background: #630036;
    color: #F2E1E1;
    height: 350px;
}
 
footer .copy{
    font-size: 1.5rem;
    color: #fff;
}

.social-icons {
    display: flex;
    justify-content: center; /* Centers icons */
    gap: 20px; /* Space between icons */
    margin-top: 20px; /* Space above the icons */
}

/* Style the Icons */
.social-icons img {
    width: 30px; /* Adjust icon size */
    height: auto;
    transition: transform 0.3s ease; /* Smooth hover effect */
}

/* Hover Effect */
.social-icons img:hover {
    transform: scale(1.1); /* Slight zoom effect */
}

/*-------------------------------MEDIA QUERY-------------------------------*/
@media (max-width: 768px) {
    /* Stack navbar items vertically */
    nav {
        flex-direction: column;
        align-items: center;
        height: auto;
        padding: 10px 0;
    }

    /* Adjust link sizes for better readability */
    nav a {
        font-size: 1.2rem;
        padding: 8px;
    }

    /* Reduce logo size */
    nav a img {
        width: 25px;
    }

    .about-row {
        flex-direction: column !important;
        text-align: center;
    }

    .about-text {
        text-align: center;
        padding-right: 0;
    }

    .about-image {
        justify-content: center;
    }
}

/* 📌 Mobile View (Hide Menu by Default) */
@media (max-width: 768px) {
    /* Hide default navigation links */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 4rem;
        left: 0;
        width: 100%;
        background: #fff;
        text-align: center;
        padding: 1rem 0;
        border-top: 1px solid #F2E1E1;
    }

    /* Show menu when checkbox is checked */
    #menu-toggle:checked ~ .nav-links {
        display: flex;
    }

    /* Hide default checkbox */
    #menu-toggle {
        display: none;
    }

    /* Hamburger Icon */
    .menu-icon {
        display: block;
        font-size: 2rem;
        cursor: pointer;
        color: #630036;
        padding: 10px;
    }
}

/* Hide Hamburger Menu on Desktop */
@media (min-width: 769px) {
    .menu-icon {
        display: none; /* Completely remove ☰ on larger screens */
    }
}

/* 📌 MOBILE RESPONSIVENESS (Below 768px) */
@media (max-width: 768px) {
    /* Stack content vertically */
    #heropage {
        flex-direction: column;
        height: auto;
        text-align: center;
    }

    /* Hide right-side image */
    .right-side {
        display: none;
    }

    /* Make pink background cover full width */
    .left-side {
        width: 100%;
        height: 100vh;
        background: #F2E1E1;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        position: relative;
        left: 0;
        top: 0;
    }

    /* Center text */
    .hero-text {
        position: static;
        text-align: center;
    }

    /* Adjust text sizes */
    .hero-text h1 {
        font-size: 4rem;
    }

    .hero-text h2 {
        font-size: 2.8rem;
        text-align: center;
    }

    .hero-text h4 {
        font-size: 1.2rem;
        padding-top: 20px;
        text-align: center;
    }

        /* Center the whole expertise section */
        .expertise-content {
            text-align: center;
            align-items: center; /* Center align content */
            padding: 20px; /* Adjust padding */
        }
    
        /* Center the button */
        .btn-circle {
            display: block;
            margin: 20px auto 0 auto; /* Center horizontally */
        }
    
        /* Adjust text size for smaller screens */
        .expertise-container {
            flex-direction: column; /* Stacks image on top */
            text-align: center;
            align-items: center;
        }
    
        /* Make Image Full Width on Mobile */
        .expertise-container img {
            width: 100%; /* Image takes full width on mobile */
            height: auto;
        }
    
        /* Center Text on Mobile */
        .expertise-text {
            align-items: center; /* Centers text */
        }
    
        /* Make MY EXPERTISE Smaller for Mobile */
        .expertise-text h2 {
            text-align: center;
            font-size: 3.5rem; /* Slightly smaller */
        }
    
        /* Make h4 Text More Readable on Mobile */
        .expertise-text h4 {
            text-align: center;
            font-size: 1.2rem;
            max-width: 90%; /* Prevents text from stretching too wide */
        }
    
        .expertise-content h4 {
            font-size: 1.2rem; /* Reduce text size */
            max-width: 90%; /* Ensure text doesn't stretch too wide */
            margin: 0 auto; /* Center block */
        }

        .expertise-grid {
            grid-template-columns: 1fr; /* One column instead of two */
            gap: 30px; /* Reduce gap between items */
        }
        
        /* Center align each expertise item */
        .expertise-item {
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
        
        /* Adjust icon size for smaller screens */
        .expertise-item img {
            width: 50px; /* Resize icons */
            height: auto;
            margin-bottom: 10px;
        }
        
        /* Reduce heading size */
        .expertise-text h3 {
            font-size: 1.2rem;
        }
        
        /* Reduce paragraph text size */
        .expertise-text p {
            font-size: 1rem;
            max-width: 90%; /* Prevent text from stretching */
            margin: 0 auto;
        }
        
        
}

/*------------------------------- 📌 Small Screens (Below 480px) -------------------------------*/
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }

    .hero-text h2 {
        font-size: 2.3rem;
    }

    .hero-text h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .expertise-bar {
        display: none;
    }
}