/* Custom styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
}

/* Add background image to hero section */
#home {
    background-image: url('/images/home-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

#home>* {
    position: relative;
    z-index: 2;
}

/* Colorful squares styling */
.skill-block {
    background-color: #00BFFF;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
    /* Slightly smaller font size */
}

.skill-block:hover {
    background-color: #0099CC;
}

/* Center headings */
h2 {
    text-align: center;
}

/* Center contact form */
#contact {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contact form {
    width: 100%;
    max-width: 500px;
}

/* Responsive adjustments */
@media (max-width: 1023px) {
    aside {
        display: none;
        /* Hide the sidebar on smaller screens */
    }

    main {
        margin-left: 0 !important;
        /* Remove left margin on smaller screens */
        width: 100%;
        /* Ensure main content takes full width */
    }

    h1 {
        font-size: 2.5rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    /* Adjust hero section for mobile */
    #home .text-5xl {
        font-size: 3rem;
    }

    #home .text-3xl {
        font-size: 1.5rem;
    }

    /* Adjust services section for mobile */
    #services .grid {
        gap: 1rem;
    }

    /* Adjust portfolio section for mobile */
    #portfolio .grid {
        gap: 1rem;
    }

    /* Adjust contact section for mobile */
    #contact .max-w-2xl {
        width: 90%;
    }

    /* Adjust colorful squares for smaller screens */
    .skill-block {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    #home .relative.z-10.container.mx-auto.flex.flex-wrap {
        gap: 0.5rem;
        /* Reduce gap between squares */
    }

    #home .relative.z-10.container.mx-auto.flex.flex-wrap>div {
        width: calc(25% - 0.5rem);
        /* Make 4 squares per row */
        height: auto;
        /* Remove fixed height */
        aspect-ratio: 3 / 1;
        /* Maintain a rectangular shape */
    }
}

@media (max-width: 640px) {

    /* Further adjustments for very small screens */
    .skill-block {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }

    #home .relative.z-10.container.mx-auto.flex.flex-wrap>div {
        width: calc(33.333% - 0.5rem);
        /* Make 3 squares per row */
    }
}

/* Mobile menu styles */
#mobile-menu {
    position: fixed;
    top: 60px;
    /* Adjust based on your header height */
    left: 0;
    right: 0;
    z-index: 1000;
}

#mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    /* Reduced padding */
    border-bottom: 1px solid #4a5568;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
    /* Smaller font size */
}

#mobile-menu a:hover {
    background-color: rgba(45, 55, 72, 0.5);
}

/* Remove or comment out the following styles */
/*
.css-block {
    background-color: #f97316;
    color: white;
    width: 7rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.css-block:hover {
    background-color: #ea580c;
}
*/

/* Project tile styles */
.project-tile {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    /* This makes the div square */
    overflow: hidden;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
    /* Add transition for smooth border appearance */
}

.project-tile a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-tile img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.project-tile h3 {
    position: relative;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    font-size: 1.2rem;
    max-width: 80%;
    opacity: 0;
    /* Make h3 invisible by default */
    transition: opacity 0.3s ease;
    /* Add transition for smooth appearance */
}

.project-tile:hover img {
    transform: scale(1.1);
}

.project-tile:hover h3,
.project-tile:focus h3,
.project-tile:active h3 {
    opacity: 1;
    /* Make h3 visible on hover, focus, or active state */
}

.project-tile:hover,
.project-tile:focus,
.project-tile:active {
    box-shadow: 0 0 0 2px #D83F87;
    /* Add a 2px border using box-shadow */
}

main {
    height: auto;
    min-height: 100vh;
    overflow-y: visible;
}

/* Navigation styles */
.nav-item {
    display: block;
    padding: 0.5rem 1.5rem;
    border-bottom: 1px solid #4a5568;
    /* thin line border */
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    /* Add transparent left border */
}

.nav-item:hover {
    background-color: rgba(45, 55, 72, 0.5);
    /* Semi-transparent overlay */
}

.nav-item.active {
    border-left: 4px solid #D83F87;
    /* Pink left border for active item */
    background-color: rgba(45, 55, 72, 0.5);
    /* Semi-transparent overlay */
}

/* Adjust padding for active item to maintain alignment */
.nav-item.active {
    padding-left: calc(1.5rem - 4px);
}

/* Update the styles for the service blocks */
#services .p-6 {
    transition: box-shadow 0.3s ease;
}

#services .p-6:hover {
    box-shadow: 0 4px 6px -1px rgba(216, 63, 135, 0.1), 0 2px 4px -1px rgba(216, 63, 135, 0.06);
}

/* Styles for the new div in the services section */
#services .flex.flex-col.md\:flex-row {
    background-color: white;
    border: 2px solid #D83F87;
    border-radius: 0.5rem;
}

#services .flex.flex-col.md\:flex-row img {
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

/* Service block styles */
.service-block {
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.service-block:hover {
    box-shadow: 0 4px 6px -1px rgba(216, 63, 135, 0.1), 0 2px 4px -1px rgba(216, 63, 135, 0.06);
}

.service-block.active {
    background-color: #FDF2F8;
    border-left: 4px solid #D83F87;
}

/* Service content styles */
.service-content {
    display: none;
}

.service-content.active {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #D83F87;
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: white;
    width: 100%;
}

.service-content img {
    width: 100%;
    max-width: 100%; /* Ensure image takes full width */
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.service-content-text {
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
    flex-grow: 1;
    flex-basis: 0;
    min-width: 50%;
}

/* Media query for larger screens */
@media (min-width: 768px) {
    .service-content.active {
        flex-wrap: nowrap;
    }

    .service-content img {
        width: auto;
        max-width: 50%; /* Limit image width to 50% */
    }

    .service-content-text {
        padding: 1.5rem;
    }
}

@media (max-width: 1200px) {
    .service-content.active {
        flex-wrap: wrap;
    }

    .service-content img {
        width: 100%;
        max-width: 100%;
    }

    .service-content-text {
        width: 100%;
        min-width: 100%;
        padding: 1rem;
    }
}

/* Ensure full-width display on small devices */
@media (max-width: 767px) {
    .service-content img {
        width: 100%;
        max-width: 600px;
    }
}

/* Hero section button styles */
#home .flex.flex-col.sm\:flex-row {
    width: 100%;
    max-width: 100%;
    /* Changed from 300px to 100% */
    margin-left: auto;
    margin-right: auto;
}

#home .flex.flex-col.sm\:flex-row a {
    width: auto;
    /* Changed from 100% to auto */
    white-space: nowrap;
}

@media (max-width: 640px) {
    #home .flex.flex-col.sm\:flex-row {
        gap: 1rem;
        max-width: 300px;
        /* Set max-width for small screens */
    }

    #home .flex.flex-col.sm\:flex-row a {
        width: 100%;
        /* Full width on small screens */
    }
}

/* Update the "See What I Do" button style */
#home .bg-blue-600 {
    background-color: #2563eb;
    /* A bluer shade */
}

#home .bg-blue-600:hover {
    background-color: #1d4ed8;
    /* A slightly darker blue for hover state */
}

/* Service section styles */
#services {
    padding: 1rem;
}

@media (min-width: 640px) {
    #services {
        padding: 2rem;
    }
}

@media (min-width: 768px) {
    #services {
        padding: 4rem;
    }
}

/* Service block styles */
.service-block {
    padding: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .service-block {
        padding: 1.5rem;
        margin-bottom: 0;
    }
}

/* Service content styles */
.service-content-text {
    padding: 1rem;
}

@media (min-width: 640px) {
    .service-content-text {
        padding: 2rem;
    }
}

/* Adjust font sizes for mobile */
#services h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

#services h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

#services p {
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    #services h2 {
        font-size: 1.875rem;
        margin-bottom: 1.5rem;
    }

    #services h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    #services p {
        font-size: 1rem;
    }
}

/* Contact section styles */
#contact {
    padding: 1rem;
}

#contact h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

#contact p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

#contact .max-w-2xl {
    width: 100%;
    padding: 1rem;
}

#contact form .space-y-4>div {
    margin-bottom: 0.75rem;
}

#contact form label {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

#contact form input,
#contact form textarea {
    padding: 0.5rem;
    font-size: 0.875rem;
}

#contact form textarea {
    height: 6rem;
}

#contact form button {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

@media (min-width: 640px) {
    #contact {
        padding: 2rem;
    }

    #contact h2 {
        font-size: 1.875rem;
        margin-bottom: 1rem;
    }

    #contact p {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    #contact .max-w-2xl {
        padding: 2rem;
    }

    #contact form .space-y-6>div {
        margin-bottom: 1.5rem;
    }

    #contact form label {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    #contact form input,
    #contact form textarea {
        padding: 0.75rem;
        font-size: 1rem;
    }

    #contact form textarea {
        height: 8rem;
    }

    #contact form button {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}

/* Add these styles at the end of your style.css file */

/* Mobile footer styles */
@media (max-width: 1023px) {
    body {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    main {
        flex: 1 0 auto;
    }

    footer {
        flex-shrink: 0;
        position: static;
        /* Change to static positioning */
        width: 100%;
        bottom: 0;
    }
}

/* Remove any padding-bottom from main */
@media (max-width: 1023px) {
    main {
        padding-bottom: 0;
    }
}

/* Footer styles */
footer {
    background-color: #1a202c;
    /* Match the sidebar color */
}

footer a:hover {
    color: #D83F87;
    /* Use the pink color on hover */
}

/* Ensure the last section has some bottom margin */
section:last-of-type {
    margin-bottom: 2rem;
}

/* Update these styles in your style.css file */

/* Remove any fixed positioning for the footer */
footer {
    position: static;
    width: 100%;
}

/* Ensure the body takes up at least the full viewport height */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Make the main content area grow to push the footer down */
main {
    flex: 1 0 auto;
}

/* Footer styles */
footer {
    flex-shrink: 0;
    background-color: #1a202c;
    /* Match the sidebar color */
}

footer a:hover {
    color: #D83F87;
    /* Use the pink color on hover */
}

/* Ensure the last section has some bottom margin */
section:last-of-type {
    margin-bottom: 2rem;
}

/* Remove any padding-bottom from main */
@media (max-width: 1023px) {
    main {
        padding-bottom: 0;
    }
}

/* Ensure content sections take up at least the viewport height */
section {
    min-height: 100vh;
}

/* Adjust the layout for small screens */
@media (max-width: 1023px) {
    .flex.h-screen {
        flex-direction: column;
        height: auto;
    }

    aside {
        position: static;
        height: auto;
    }

    main {
        margin-left: 0 !important;
    }
}

/* Add or update these styles in your style.css file */

/* Reduce space between last section and footer on mobile */
@media (max-width: 1023px) {
    section:last-of-type {
        margin-bottom: 0px;
        /* Reduced from 2rem */
    }

    footer {
        padding-top: 1rem;
        /* Add some padding to the top of the footer */
        padding-bottom: 1rem;
        /* Add some padding to the bottom of the footer */
    }

    #contact {
        padding-bottom: 1rem;
        /* Reduce padding at the bottom of the contact section */
    }
}

/* Ensure the footer has some padding on larger screens as well */
footer {
    padding: 1.5rem 1rem;
}

/* Add these styles to your style.css file */

@media (max-width: 1023px) {
    /* Make header fixed at the top */
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000; /* Ensure it's above other content */
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    /* Add padding to the top of the main content to prevent it from being hidden behind the fixed header */
    main {
        padding-top: 60px; /* Adjust this value to match your header height */
    }

    /* Adjust mobile menu positioning */
    #mobile-menu {
        position: fixed;
        top: 60px; /* Should match your header height */
        left: 0;
        right: 0;
        z-index: 999; /* Just below the header */
    }

    /* Ensure the content starts below the fixed header */
    #home {
        padding-top: 60px; /* Adjust if needed */
    }
}

/* Existing styles... */

/* Add these styles to your style.css file */

/* Contact section styles */
#contact {
    padding-top: 3rem; /* Add padding to the top of the contact section */
}

#contact h2 {
    margin-top: 2rem; /* Add margin to the top of the heading */
}

/* Responsive adjustments */
@media (min-width: 640px) {
    #contact {
        padding-top: 5rem; /* Increase padding for larger screens */
    }

    #contact h2 {
        margin-top: 3rem; /* Increase margin for larger screens */
    }
}

/* Existing contact section styles... */

/* Add these styles at the end of your style.css file */

.image-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.popup-content {
    display: block;
    margin: 40px auto; /* Add some top margin for the close button */
    max-width: 90%;
    max-height: calc(100% - 80px); /* Adjust for top and bottom margins */
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: zoom-in;
    transform-origin: top center; /* Set transform origin to top center */
}

.popup-content.zoomed {
    transform: scale(2);
    cursor: zoom-out;
    max-width: 180%; /* Double the max-width */
    max-height: calc(360% - 160px); /* Double the max-height and adjust for margins */
}

.close-popup {
    position: fixed;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
}

.close-popup:hover,
.close-popup:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Update or add these styles in your style.css file */

.project-tile {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.project-tile .block {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-tile img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-tile h3 {
    position: relative;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    font-size: 1.2rem;
    max-width: 80%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-tile:hover img,
.project-tile:focus img,
.project-tile:active img {
    transform: scale(1.1);
}

.project-tile:hover h3,
.project-tile:focus h3,
.project-tile:active h3 {
    opacity: 1;
}

.project-tile:hover,
.project-tile:focus,
.project-tile:active {
    box-shadow: 0 0 0 2px #D83F87;
}

.cursor-pointer {
    cursor: pointer;
}

/* Add these styles to your style.css file */

/* Service content link styles */
.service-content-text a {
    color: #2563eb;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.service-content-text a:hover,
.service-content-text a:focus,
.service-content-text a:active {
    color: #D83F87;
}

