/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
  font-family: 'Grannys-Handwriting';
    src:  url('../fonts/Grannys-Handwriting.ttf.woff') format('woff'),
    url('../fonts/Grannys-Handwriting.ttf.svg#Grannys-Handwriting') format('svg'),
    url('../fonts/Grannys-Handwriting.ttf.eot'),
    url('../fonts/Grannys-Handwriting.eot?#iefix') format('embedded-opentype'); 
    font-weight: normal;
    font-style: normal;
}

body {
    /* Helevetica font */
    font-family: 'Helvetica', sans-serif;
    background-color: #F7F6E8;
    color: #333;
}

.container {
    width: 85vw;
    margin: 0 auto;
}

.mb-4{
    margin-bottom: 120px;
}
.mb-2{
    margin-bottom: 80px;
}


.card {
    background-color: #F7F6E8;
    border-radius: 5px;
    /* padding: 25px; */
    width: 100%;
}

.spacing-top {
    margin-top: 20px;
}
/* Navbar */
.nav-bar {
    background-color: #F7F6E8;
    padding: 1em 0;
    margin-top: 35px;
}

/* Navbar Links */
.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* No wrapping on desktop */
    width: 100%;
    margin: 0 auto;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 1em;
    margin: 0 10px;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
    font-family: 'Helvetica', sans-serif; 
    font-weight: 400;
    line-height: 2;
    text-align: center;
}

/* Hover effect */
.nav-links a:hover {
    color: #333;
    transform: scale(1.05);
    text-decoration: underline;
}


.hamburger{
    display: none;
}

/* Responsive layout for mobile */
@media (max-width: 768px) {
    .nav-links {
        display: grid; /* Use grid layout for 2x2 grid */
        grid-template-columns: repeat(2, 1fr); /* 2 equal-width columns */
        gap: 15px; /* Add spacing between items */
        justify-content: center; /* Center the grid */
        text-align: center; /* Ensure text is centered */
        width: 100%; /* Full-width container */
    }

    .nav-links a {
        margin: 0; /* Remove unnecessary margins */
        padding: 10px 0; /* Add padding for clickable area */
        width: auto; /* Allow the items to fit naturally */
    }

.hamburger{
    display: block;
}
}

/* Ensure no parent container restricts width */
.nav-bar {
    width: 100%;
    padding: 0; /* Remove extra padding */
}

/* Portfolio Logo */
.portfolio-logo {
    font-family: "Roslindale Display Condensed";
    font-weight: 900;
    font-size: 6em;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 100%;
    margin-top: 10vw;
    margin-bottom: 50px;
    color: black;
}

.portfolio-logo img {
    width: 30vw;
    margin-left: 25px;
}

.content-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Floating Images */
.floating-images {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 7vw;
    margin-top: 110px;
    margin-bottom: 50px;
}

.floating-images img {
    width: 25%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

/* Floating Animation Effect */
.floating-images img:hover {
    transform: translateY(-10px) scale(1.05); /* Slight lift effect on hover */
}

.floating-images img:nth-child(1) {
    animation: float 3s ease-in-out infinite;
}

.floating-images img:nth-child(2) {
    animation: float 3s ease-in-out infinite 0.5s;
}

.floating-images img:nth-child(3) {
    animation: float 3s ease-in-out infinite 1s;
}

.details-sam {
   font-family: 'Grannys-Handwriting' !important;
    font-weight: 400; /* Adjust to 700 if you want a bolder look */
    font-size: 1.5em; /* Adjust font size as necessary */
    line-height: 1.4; /* For better readability */
    color: #333; /* Adjust color if needed */
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */

@media (max-width: 1358px) {
    .portfolio-logo {
        font-size: 3em;
    }
}

/* Tablet View */
@media (max-width: 768px) {
    .portfolio-logo {
        font-size: 2.5em;
    }

    .portfolio-logo img {
        width: 35vw;
    }

    .floating-images img {
        width: 40%;
    }

    .nav-links {
        font-size: 0.9em;
    }

    .details-sam {
    font-size: 1.3em !important; /* Adjust font size as necessary */
}
}

/* Mobile View */
@media (max-width: 480px) {
    .portfolio-logo {
        font-size: 2.5em;
        flex-direction: column;
        text-align: center;
    }

    .portfolio-logo img {
        width: 50vw;
        margin: 0;
    }

    .floating-images img {
        width: 50%;
    }
}

.text-allign-center{
    text-align: center;
}

.padding-quote{
    font-size: 1.5em;
    margin: 0 10vw;
    border-radius: 5px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.details-sam {
   font-family: 'Grannys-Handwriting' !important;
    font-weight: 400;
    font-size: 1.3em;
    line-height: 1.6;
    color: #333;
}

/* General About Section Styling */
.about-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background-color: #E1DFC4;
    border-radius: 10px;
}

/* Default Layout for Larger Screens */
.about-section {
    flex-direction: row; /* Text on the left, image on the right */
}

/* About Text Styling */
.about-text {
    width: 60%; /* Takes 60% of the width */
}

.about-image {
    width: 40%; /* Takes 40% of the width */
    text-align: center;
}

.image-wrapper img {
    max-width: 100%;
    border-radius: 10px; /* Optional rounded corners for the image */
}

.logo-text img {
    max-width: 50%; /* Adjust logo size */
    height: auto; /* Maintain aspect ratio */
    margin-top: 10px;
}

.details-sam {
   font-family: 'Grannys-Handwriting' !important;
    font-weight: 400;
    font-size: 1.3em;
    line-height: 1.6;
    color: #333;
}

/* Default Layout for Larger Screens */
.about-section {
    flex-direction: row; /* Text on the left, image on the right */
}

.about-section.reverse {
    flex-direction: row-reverse; /* Swap order: Text on the right, image on the left */
}

.about-image {
    width: 40%;
}

.about-text {
    width: 60%;
}

/* Mobile Layout */
@media (max-width: 768px) {
    .about-section.reverse {
        flex-direction:column; /* Swap order: Text on the right, image on the left */
    }
    .about-section {
        flex-direction: column; /* Stack text and image vertically */
        align-items: center; /* Center-align content */
        text-align: center; /* Optional: Center-align text for consistency */
        gap: 10px; /* Adjust gap for better spacing */
    }

    .about-text {
        width: 90%; /* Use most of the width on mobile */
        margin-bottom: 20px; /* Add spacing below text */
    }

    .about-image {
        width: 90%; /* Use most of the width on mobile */
        margin: 0 auto; /* Center the image section */
        margin-top: 20px; /* Add space between text and image */
    }

    .image-wrapper img {
        width: 100%; /* Ensure image scales fully within parent */
        height: auto; /* Maintain aspect ratio */
        border-radius: 10px;
    }
}

.details-sam {
   font-family: 'Grannys-Handwriting' !important;
    font-weight: 400;
    font-size: 1.3em;
    line-height: 1.6;
    color: #333;
}
/* About Image Section */
.about-image {
    display: flex;
    flex-direction: column; /* Stack the image and logo vertically */
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically */
    background-color: #B1AC7E; /* Background color for the image section */
    border-radius: 15px;
    padding: 20px;
    box-sizing: border-box; /* Ensure proper box model */
    text-align: center;
    position: relative; /* Enable absolute positioning for children if needed */
}

/* Image Wrapper */
.image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically */
    width: 100%; /* Ensure it spans full parent width */
    height: 100%; /* Match the height of .about-image */
    position: relative;
}

.image-wrapper img {
    width: 80%; /* Ensure image scales within parent */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px;
    margin-bottom: 20px; /* Space between the image and the logo */
}

/* Logo Text */
.logo-text {
    display: flex;
    justify-content: center; /* Horizontal centering */
    align-items: center; /* Vertical centering */
    width: 100%; /* Full width for centering */
    text-align: center;
}

.logo-text img {
    max-width: 50%; /* Adjust logo size */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Prevent inline spacing */
    margin: 0 auto; /* Ensures logo is centered inside its container */
    margin-top: 10px;
}

/* Footer Styling */
footer {
    font-family: 'Helvetica', sans-serif; 
    font-size: 0.85em;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.footer-text p {
    margin: 5px 0;
}

.footer-text p a {
    color: white;
    text-decoration: none;
}

.footer-text p a:hover {
    text-decoration: underline;
}

.footer-socials a {
    color: #B1AC7E;
    font-size: 2.25em;
    margin-left: 15px;
    transition: color 0.3s;
}

.footer-text a{
    color: black !important;
}

.footer-socials a:hover {
    color: #E1DFC4; /* Hover color for icons */
}

.icon-mail {
    color: #333; /* Default text and icon color */
    text-decoration: none; /* Optional, to remove underline */
}

.icon-mail i {
    color: inherit; /* Ensures the icon inherits the color from the link */
}

.icon-mail:hover {
    color: #E1DFC4; /* Changes both text and icon color on hover */
}

.icon-mail:hover i {
    color: inherit; /* Ensures the icon changes with the text */
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-socials {
        margin-top: 10px;
    }
}

/* Initial state */
.animate {
    opacity: 0; /* Element is invisible initially */
    transform: translateY(50px); /* Start slightly below its final position */
    transition: all 0.6s ease-out; /* Smooth animation */
}

/* Animated state (when in view) */
.animate.show {
    opacity: 1; /* Make the element visible */
    transform: translateY(0); /* Move to its final position */
}

/* General Container */
.project_showcase_container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #f9f9f5;
}

/* Individual Card Styling */
.project_showcase_card {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    width: 400px;
}

.project_showcase_header-grid p {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
}

/* Desktop Layout (Default) */
.project_showcase_shape {
    display: flex;
    position: relative;
    width: 80%;
    max-width: 1200px;
    height: 550px;
    margin: 0 auto;
    margin-top: 35px;
}

.project_showcase_square {
    position: absolute;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease, box-shadow 0.6s ease, z-index 0.2s ease;
    border-radius: 30px;
    z-index: 1; /* Default z-index */
}

.project_showcase_square:hover {
    transform: scale(1.05); /* Slight enlargement on hover */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Enhance shadow */
    z-index: 1000; /* Bring to the foreground */
}

/* Specific positions for overlapping layout */
.project_showcase_square1 {
    background-image: url('../images/projects/portfolio_sampoels_project_1.jpg');
    top: 0;
    left: 0px;
    width: 250px;
    height: 250px;
    z-index: 1;
}

.project_showcase_square2 {
    background-image: url('../images/projects/portfolio_sampoels_project_2.png');
    bottom: 0;
    left:19%;
    z-index: 2;
    width: 250px;
    height: 325px;
}

.project_showcase_square3 {
    background-image: url('../images/projects/portfolio_sampoels_project_3.png');
    top: 80px;
    left: 40%;
    z-index: 3;
    width: 415px;
    height: 270px;
}

.project_showcase_square4 {
    background-image: url('../images/projects/portfolio_sampoels_project_4.png');
    top: 0;
    right: 0px;
    z-index: 4;
    width: 250px;
    height: 250px;
}

.project_showcase_square5 {
    background-image: url('../images/projects/portfolio_sampoels_project_5.png');
    bottom: 10px;
    right: 0;
    z-index: 5;
    width: 250px;
    height: 250px;
}

/* Desktop Version: Default */
.desktop-version {
    display: flex; /* Display flex for desktop */
}

.mobile-version {
    display: none; /* Hide mobile version by default */
}

/* Mobile Version */
@media (max-width: 900px) {
    .desktop-version {
        display: none; /* Hide desktop layout */
    }

    .mobile-version {
        display: block; /* Show mobile layout */
        padding: 20px;
    }

    .grid-container {
        display: flex;
        flex-direction: column; /* Stack images vertically */
        gap: 30px; /* Add spacing between items */
        align-items: center; /* Center the items */
        width: 100%; /* Full width of container */
    }

    .grid-item {
        width: 100%; /* Make images take up full container width */
        max-width: 600px; /* Optional: Limit maximum width for larger devices */
        height: auto; /* Maintain aspect ratio */
        border-radius: 12px; /* Rounded corners for consistency */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Add shadow for better visuals */
    }
}

.w-100{
    width: 100%;
}

.details-sam{
    font-family: 'Grannys-Handwriting';
    font-size: 40px;
}

.smaller{
    font-size: 25px;
    margin-right: 15px;
}

.texttest { 
   font-family: 'Grannys-Handwriting' !important;
}  

.logo-text {
    position: relative; /* Required for proper styling */
    display: inline-block; /* Keeps image inline */
}

.hover-logo {
    transition: opacity 0.8s ease;
}

.hover-logo:hover {
    content: url("../images/logo_sam_portfolio_light.png"); /* Swaps the image */
}

.smaller{
    font-size: 25px;
    margin-right: 15px;
}
.granny {
    font-family: 'Grannys-Handwriting';
    font-size: 22px;
    color: #000;
    text-decoration: none;
    line-height: 1.4;
}

.granny a {
    color: #000;
    text-decoration: none;
} 

.granny a:hover {
    color: #B1AC7E;
    text-decoration: underline;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on desktop */
    gap: 10px; /* Spacing between items */
    justify-content: center; /* Center grid content */
    align-items: start; /* Align items at the top */
    padding: 0 10%;
}

.item-container {
    width: 100%; /* Take full width of the grid cell */
    aspect-ratio: 1; /* Maintain square aspect ratio */
    overflow: hidden; /* Prevent scaling content from spilling */
    position: relative;
    border-radius: 15px; /* Rounded corners */
    max-height: 350px;
}

.item {
    width: 100%; /* Fully occupy container */
    height: 100%; /* Fully occupy container */
    object-fit: cover; /* Crop images to show the center */
    transition: transform 0.3s ease, filter 0.3s ease; /* Smooth hover effect */
}

.item-container:hover .item {
    transform: scale(1.05); /* Slight scale-up on hover */
    filter: brightness(0.8); /* Darken slightly */
    cursor: pointer;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr; /* 1 column layout */
    }
}

.project-grid {
    display: flex;
    flex-direction: column; /* Stack the first image on top of the grid */
    gap: 20px; /* Space between the full-width image and the grid below */
}

.project-item-container {
    width: 100%; /* Full width for the first image */
    overflow: hidden; /* Ensure no overflow from scaling effects */
}

.project-item-container img {
    width: 100%; /* Stretch the image to fill the container */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove whitespace below the image */
}

.project-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Create a 2x2 grid */
    gap: 15px; /* Add spacing between grid items */
    padding: 0 5%; /* Add padding to make the grid smaller */
}

.project-images img {
    width: 100%; /* Ensure grid images fill their cells */
    height: auto; /* Maintain aspect ratio */
    border-radius: 8px; /* Optional: add rounded corners for a polished look */
    transition: transform 0.3s ease, filter 0.3s ease; /* Add smooth hover effects */
}

.mb-1{
    margin-bottom: 15px;
}

.mb-1_5{
    margin-bottom: 30px;
}

.subtitle{
    font-size: 1.5em;
    font-weight: 500;
    margin-bottom: 20px;
}

.body-title {
    font-size: 1.5em; /* Larger font size for the title */
    font-weight: 500; /* Medium weight for emphasis */
    margin-bottom: 20px;
}

.body-text {
    font-size: 1.1em; /* Standard size for body text */
    font-weight: 400; /* Normal weight for readability */
    line-height: 1.6; /* Improve spacing for readability */
    font-family: 'Helvetica', sans-serif;
}

.project{
    width: 100%;
}

.spacing-sides{
    padding: 0 10%;
}

.grid-container-projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Default: 3 equal-width columns */
    gap: 0; /* No gap between images */
    width: 100%; /* Stretch to full width */
    margin: 0 auto; /* Center grid horizontally */
}

.grid-item-project-link {
    display: block; /* Make links block-level to cover the full grid cell */
    width: 100%; /* Ensure the link covers the image */
    height: 100%; /* Match image height */
    text-decoration: none; /* Remove underline */
    overflow: hidden; /* Prevent the image from overflowing its container */
}

.grid-item-project {
    width: 100%; /* Ensures images fit their container */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Ensures images cover their cells if necessary */
}

/* Hover Effect */
.grid-item-project-link:hover .grid-item-project {
    opacity: 0.95; /* Lower opacity slightly */
    cursor: pointer; /* Show pointer on hover */
}

/* Mobile Layout: Stack images vertically */
@media (max-width: 768px) {
    .grid-container-projects {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 10px; /* Add some spacing between images */
    }
}

.subtitle{
    font-size: 1.6em;
    font-weight: 500;
    margin-bottom: 20px;
}

.about-text-main{
    font-size: 1.4em;
    font-weight: 100;
    line-height: 1.6;
    font-family: 'Helvetica', sans-serif;
}

.about-text-title{
    font-size:3em;
    font-weight: 400;
    line-height: 1.6;
    font-family: 'Helvetica', sans-serif;
}

.btn{
    background-color: #F7F6E8 !important;
    color: black;
    border: none; /* Optional: remove border for a cleaner look */
    padding: 10px 20px; /* Adjust padding to your preference */
    border-radius: 12px; /* Optional: add rounded corners */
    cursor: pointer; /* Change cursor to pointer on hover */
    border: 1px solid black; /* Adds a 1px black border */
}

button.granny {
    color: black;
    background-color: #F7F6E8;
    border: none; /* Optional: remove border for a cleaner look */
    padding: 10px 20px; /* Adjust padding to your preference */
    border-radius: 12px; /* Optional: add rounded corners */
    cursor: pointer; /* Change cursor to pointer on hover */
    border: 1px solid black; /* Adds a 1px black border */
}

button.granny:hover {
    background-color: black !important;
    color: #F7F6E8;
}

button.granny:active {
    transform: scale(0.95); /* Slightly scale down on click */
}

@media (min-width: 1268px) {
.compact{
    max-width: 80%;
}
}