/* CSS Variables */
:root {
    --primary-color: black;
    --text-color: #000000;
    --secondary-color: #555;
    --body-font: 'Space Grotesk', sans-serif;
    --accent-blue: #3498db;
}

/* Global Styles */
html {
    font-family: 'Space Grotesk', sans-serif;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    background-color: #E0DFDE;
    color: #333;
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
    overflow-y: auto; /* Allow html to scroll to accommodate content outside wrapper */
    overflow-x: hidden;
    width: 100%; /* Ensure html takes full width */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

body {
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    background-color: #E0DFDE;
    color: #000000;
    overflow: visible;
    width: 100%; /* Ensure body takes full width */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    touch-action: pan-y; /* Allow vertical scrolling */
}

body.no-scroll {
    overflow: hidden; /* Prevent scrolling on the body when sidebar is open */
    position: fixed;
    width: 100%;
    height: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.section {
    min-height: calc(100vh - 60px); /* Adjusted height to account for navbar */
    padding: 50px 0 150px 0; /* Reduced top padding, increased bottom padding for scroll */
    position: relative;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem;
    font-weight: 700;
    color: black;
}

/* Navigation */
.navbar {
    background-color: #E0DFDE;
    padding: 0;
    color: black;
    position: fixed; /* Changed from sticky to fixed */
    top: 0;
    width: 100%; /* Ensure it spans the full width */
    z-index: 9999; /* Ensure navbar stays on top of other content */
    transform: translateZ(0); /* Force hardware acceleration for the entire navbar */
}

.navbar:not(.sidebar-open) {
    border-bottom: 1px solid black; /* Add black line when sidebar is closed */
}

.navbar .nav-content {
    display: flex;
    justify-content: space-between; /* Logo left, nav-links right */
    align-items: stretch; /* Stretch children to fill height */
    height: 60px;
    border-top: 1px solid black; /* Thin black line at the top */
    border-right: none; /* Removed thin black line at the very right edge of content */
    border-left: none; /* Removed thin black line at the very left edge of content */
    padding: 0; /* Remove horizontal padding to eliminate white space */
    transition: padding-bottom 0.3s ease;
}

.navbar:has(.nav-dropdown:hover) .nav-content {
    padding-bottom: 0;
}

.logo {
    font-weight: 600;
    font-size: 1.1rem;
    color: black;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-right: none; /* Removed vertical line to the right of the logo */
    cursor: pointer; /* Add pointer cursor on hover */
    position: relative;
    height: 60px; /* Match navbar height */
}

.logo a {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100%;
}

.logo-text {
    display: inline-block;
    position: relative;
    z-index: 2;
    transform-origin: center;
    will-change: transform, opacity, filter;
}

.logo-image {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%) scale(0.4) translateX(-15px);
    opacity: 0;
    height: 40px; /* Scale appropriately - adjust as needed */
    width: auto;
    z-index: 1;
    transform-origin: center;
    clip-path: circle(0% at 50% 50%);
    will-change: transform, opacity, filter, clip-path;
    filter: blur(3px);
}

.logo:hover .logo-text {
    animation: inkDissolve 0.2s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.logo:hover .logo-image {
    animation: inkFlow 0.25s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

@keyframes inkDissolve {
    0% {
        transform: scale(1) translateY(0);
        filter: blur(0px);
        opacity: 1;
    }
    100% {
        transform: scale(0.75) translateY(-2px);
        filter: blur(2px);
        opacity: 0;
    }
}

@keyframes inkFlow {
    0% {
        transform: translateY(-50%) scale(0.5) translateX(-12px);
        clip-path: circle(0% at 50% 50%);
        filter: blur(3px);
        opacity: 0;
    }
    100% {
        transform: translateY(-50%) scale(1) translateX(0);
        clip-path: circle(100% at 50% 50%);
        filter: blur(0px);
        opacity: 1;
    }
}

/* Desktop Navigation Links */
.nav-links {
    display: flex; /* Show for desktop */
    flex-direction: row; /* Horizontal for desktop */
    align-items: center; /* Center vertically in the navbar */
    gap: 0; /* No gap; spacing managed by link padding */
    width: auto;
    text-align: left;
    background-color: transparent;
    border: none;
    padding: 0;
    order: auto;
    margin-left: auto; /* Push nav-links to the right */
    flex-grow: 0;
    height: 100%; /* Take full height of nav-content */
    outline: none;
}

.nav-links a {
    color: black; /* Desktop link text color */
    font-weight: 500; /* Desktop font weight */
    text-decoration: none; /* No underline */
    padding: 0 15px; /* Padding for click area */
    height: 100%; /* Make links stretch vertically */
    display: flex;
    justify-content: center; /* Center text horizontally */
    align-items: center; /* Center text vertically */
    border-left: 1px solid black; /* Vertical line between links */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
    position: relative; /* For pseudo-elements if needed for desktop */
    line-height: 1; /* Normalize line height */
    font-size: 1rem;
}

.nav-links a:first-child,
.nav-links > .nav-dropdown:first-child .dropdown-trigger {
    border-left: none; /* No line before the first item */
}

/* Make dropdown trigger look like normal nav link on desktop */
@media (min-width: 651px) {
    .nav-dropdown .dropdown-trigger {
        display: flex;
        align-items: center;
        justify-content: center;
        color: black;
        font-weight: 500;
        text-decoration: none;
        padding: 0 15px;
        height: 100%;
        border-left: 1px solid black;
        transition: background-color 0.3s ease, color 0.3s ease;
        position: relative;
        line-height: 1;
        font-size: 1rem;
    }
    
    .nav-dropdown .dropdown-trigger:hover {
        background-color: black;
        color: #E0DFDE;
    }
    
    .nav-dropdown .dropdown-trigger i {
        display: none; /* Hide chevron on desktop */
    }
    
    .nav-dropdown .dropdown-menu {
        display: none; /* Hide dropdown menu on desktop */
    }
}

.nav-links a:hover {
    background-color: black; /* Hover background color */
    color: #E0DFDE; /* Hover text color */
}

.nav-links a.active-link {
    background-color: black; /* Active background color */
    color: #E0DFDE; /* Active text color */
}


/* Hamburger Menu (hidden by default on desktop) */
.hamburger {
    display: none; /* Hide on desktop */
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 100%;
    cursor: pointer;
    z-index: 1001;
    font-weight: 500;
    font-size: 0.9rem;
    color: black; /* Default color for Menu text */
    background-color: #E0DFDE; /* Changed to match navbar background to cover line */
    transition: all 0.3s ease; /* Broadened transition to cover all properties */
    box-sizing: border-box; /* Ensure padding and border are included in width/height */
    border-left: 1px solid black; /* Vertical line for hamburger on desktop/mobile (Menu state) */
    border-right: none; /* Ensure no right border */
    border-bottom: 1px solid transparent; /* Reverted to transparent bottom border for consistency */
    outline: none; /* Remove default outline to prevent visual glitches */
    will-change: background-color, color, border; /* Hint to browser for smoother animation */
    text-align: center; /* Ensure text is always centered */
    line-height: 60px; /* Ensure text takes full height, preventing vertical shifts */
    transform: translateZ(0); /* Force hardware acceleration for smoother rendering */
    backface-visibility: hidden; /* Prevent flickering during transitions */
}

.hamburger:hover {
    background-color: black; /* Hover background color */
    color: #E0DFDE; /* Hover text color */
}

/* Active hamburger styles - moved outside media query for higher specificity */
.hamburger.active {
    background-color: #DC143C !important; /* Active background color (red) */
    color: #E0DFDE !important; /* Active text color */
    border-top: none !important;
    border-right: none !important;
    border-left: 1px solid transparent !important; /* Ensure a transparent left border to maintain width */
    border-bottom: 1px solid #E0DFDE !important; /* Added 1px light grey border for clean separation */
    z-index: 10000; /* Ensure hamburger is above sidebar */
    transform: translateZ(0); /* Force hardware acceleration for smoother rendering */
}

/* Mobile Styles (consolidated and simplified) */
@media (max-width: 650px) {
    .nav-content {
        flex-wrap: nowrap;
        border-top: none;
        border-right: none;
        padding: 0;
        width: 100%;
    }

    .logo {
        border-right: none;
    }

    .hamburger {
        display: flex;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: black;
        border: none;
        padding: 0;
        order: 100;
        margin: 0;
        flex-grow: 0;
        height: auto;
        outline: none;
        gap: 0;
        box-sizing: border-box;
        align-items: stretch;
    }

    .nav-links.active {
        display: flex;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100vw;
        z-index: 10001;
        padding: 0;
        margin: 0;
        height: calc(100vh - 60px);
        border-top: none !important;
        overflow-y: auto;
        flex-direction: column;
    }

    .nav-links a {
        background-color: black;
        color: #E0DFDE;
        padding: 0;
        height: 25%;
        display: flex;
        justify-content: center;
        align-items: center;
        border: none;
        outline: none;
        box-sizing: border-box;
        font-size: 2.5rem; /* Increased font size for prominence */
        font-weight: 700;
        position: relative;
        text-decoration: none;
        line-height: 1;
        width: 100%;
        margin: 0;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .nav-links a:hover,
    .nav-links a.active-link {
        background-color: #E0DFDE;
        color: black;
    }

    .nav-links > a:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background-color: #E0DFDE;
        z-index: 2;
    }

    .nav-links > .nav-dropdown:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background-color: #E0DFDE;
        z-index: 2;
    }

    .nav-dropdown.active::after {
        display: none;
    }

    /* Mobile Dropdown Styles - Only for sidebar */
    .nav-dropdown {
        position: relative;
        height: auto;
        display: flex;
        flex-direction: column;
        width: 100%;
        flex-shrink: 0;
    }

    .nav-dropdown .dropdown-trigger {
        width: 100%;
        justify-content: center;
        background-color: black;
        color: #E0DFDE;
        padding: 0;
        height: 25%;
        min-height: calc((100vh - 60px) / 4);
        border: none;
        font-size: 2.5rem;
        font-weight: 700;
        position: relative;
        flex-shrink: 0;
    }

    .nav-dropdown .dropdown-trigger i {
        margin-left: 10px;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        font-size: 1.5rem;
        vertical-align: middle;
    }

    .nav-dropdown.active .dropdown-trigger i {
        transform: rotate(180deg);
    }

    .nav-dropdown .dropdown-trigger::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background-color: #E0DFDE;
        z-index: 2;
    }

    .nav-dropdown.active .dropdown-trigger::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transform: none;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, visibility 0.4s ease;
        background-color: #1a1a1a;
        border-top: none;
        box-shadow: none;
        min-width: auto;
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 1000px;
    }

    .dropdown-menu a {
        padding: 18px 20px;
        font-size: 1.3rem;
        border-bottom: 1px solid #333;
        height: auto;
        text-align: center;
        background-color: #1a1a1a;
        color: #E0DFDE;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .dropdown-menu a:hover {
        background-color: #E0DFDE;
        color: black;
    }

    .dropdown-menu a:last-child {
        border-bottom: 1px solid #E0DFDE;
    }

    .nav-dropdown .dropdown-trigger:hover {
        background-color: #E0DFDE;
        color: black;
    }

    /* When dropdown is active, allow sidebar to scroll to show all items */
    .nav-links:has(.nav-dropdown.active) {
        overflow-y: auto;
        height: calc(100vh - 60px);
    }

    /* Keep other nav items at their original size */
    .nav-links:has(.nav-dropdown.active) > a {
        height: 25%;
        min-height: calc((100vh - 60px) / 4);
        flex-shrink: 0;
    }
}

/* Base styles for all screen sizes */
.hero {
    min-height: calc(100vh - 60px);
    background-color: #E0DFDE;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px 100px;
    position: relative;
    overflow: hidden; /* Ensure particles don't overflow */
}



section#projects.section {
    border-bottom: 1px solid black;
    background-color: #BEBAB8;
    padding: 50px 0 90px 0 !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

#about {
    border-bottom: 1px solid black;
    padding-bottom: 50px !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.about-content {
    padding-bottom: 50px;
    margin-bottom: 0;
    position: relative;
}

.about-content p {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
    margin-bottom: 20px;
    line-height: 1.6;
}

.about-image-square {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1;
    border: 1px solid black;
    border-radius: 10px;
    margin: 0 auto 50px auto;
    background-color: #E0DFDE;
    overflow: hidden;
    position: relative;
    touch-action: pan-y; /* Allow vertical scrolling on mobile */
    -webkit-overflow-scrolling: touch;
}

/* Responsive sizing for larger screens */
@media (min-width: 1200px) {
    .about-image-square {
        max-width: 500px;
    }
}

@media (min-width: 1600px) {
    .about-image-square {
        max-width: 450px;
    }
}

.about-images-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    will-change: transform;
    /* No CSS transition - JavaScript handles animation */
}

.image-slide {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    min-height: 100%;
}

.about-image-square .about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    margin: 0;
    padding: 0;
    vertical-align: top;
    position: absolute;
    top: 0;
    left: 0;
}

.image-divider {
    width: 100%;
    height: 1px;
    background-color: black;
}

#about .container h2:nth-of-type(2) {
    margin-top: 50px;
    margin-bottom: 50px;
    padding-top: 25px;
}

.timeline {
    margin-top: 50px;
    border-bottom: 1px solid black;
    padding-bottom: 50px;
    margin-bottom: 50px;
}

#about .container h2:nth-of-type(3) {
    margin-top: 50px;
    margin-bottom: 50px;
    padding-top: 25px;
}

.skills-grid {
    margin-top: 50px;
}

#contact {
    background-color: #BEBAB8; /* Replace with your desired color */
    padding-bottom: 0 !important; /* Remove bottom padding */
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Special case for line above projects on larger screens */
@media (min-width: 736px) {
    .hero {
        border-bottom: 1px solid black;
    }

    .hero-content {
        margin-top: 125px;
    }

    .resume-btn {
        padding-bottom: 50px;
        margin-bottom: 50px;
    }
}

/* Mobile styles */
@media (max-width: 735px) {
    .hero {
        flex-direction: column;
        justify-content: flex-start;
        border-bottom: 1px solid black;
    }

    .hero-content {
        margin-top: 125px;
    }
    

    section#projects.section {
        border-bottom: 1px solid black;
        padding: 50px 0 90px 0 !important;
    }

    #about {
        border-bottom: 1px solid black;
        padding-bottom: 50px !important;
    }

    .about-content {
        padding-bottom: 50px;
        margin-bottom: 0;
    }

    .about-image-square {
        width: 100%;
        aspect-ratio: 1;
        border: 1px solid black;
        border-radius: 10px;
        margin-bottom: 50px;
        margin-top: 0;
        background-color: #E0DFDE;
        overflow: hidden;
        position: relative;
    }

    .about-images-slider {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        will-change: transform;
        /* No CSS transition - JavaScript handles animation */
    }

    .image-slide {
        width: 100%;
        aspect-ratio: 1;
        position: relative;
        overflow: hidden;
    }

    .about-image-square .about-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        display: block;
        margin: 0;
        padding: 0;
        vertical-align: top;
        position: absolute;
        top: 0;
        left: 0;
    }

    .image-divider {
        width: 100%;
        height: 1px;
        background-color: black;
    }

    #about .container h2:nth-of-type(2) {
        margin-top: 50px;
        margin-bottom: 50px;
        padding-top: 25px;
    }

    .timeline {
        margin-top: 50px;
        border-bottom: 1px solid black;
        padding-bottom: 50px;
        margin-bottom: 50px;
    }

    #about .container h2:nth-of-type(3) {
        margin-top: 50px;
        margin-bottom: 50px;
        padding-top: 25px;
    }

    .skills-grid {
        margin-top: 50px;
    }
}


#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0; /* Ensure particles are behind hero content */
}

.hero-content {
    text-align: left;
    max-width: 1200px;
    width: 100%;
    padding: 0;
    margin: 0 auto;
    margin-top: 125px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    box-sizing: border-box;
    z-index: 1; /* Ensure content is above particles */
}

.roles-container {
    height: auto;
    overflow: visible;
    font-size: 4rem; /* Increased from 3.5rem */
    font-weight: 700;
    color: black;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    line-height: 1.4;
    margin-bottom: 20px;
    position: relative;
    right: auto;
    cursor: pointer;
}

.role-item {
    position: static;
    opacity: 0; /* Start with opacity 0 for reveal animation */
    margin-bottom: 30px;
    transform: translateY(20px); /* Start slightly below final position for reveal */
    animation: revealText 0.8s ease forwards;
    white-space: nowrap; /* Prevent text from wrapping */
}

/* Add animation delay for each role item */
.role-item:nth-child(1) { animation-delay: 0.2s; }
.role-item:nth-child(2) { animation-delay: 0.4s; }
.role-item:nth-child(3) { animation-delay: 0.6s; }
.role-item:nth-child(4) { animation-delay: 0.8s; }

@keyframes revealText {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add a subtle hover effect for role items */
.role-item:hover {
    transform: translateX(10px);
    transition: transform 0.3s ease;
}

/* Media queries for responsive hero text font size */
@media (max-width: 1000px) {
    .roles-container {
        font-size: 5rem; /* Keep consistent font size */
    }
    
    .hero-content {
        margin-top: 125px; /* Reduced from 60px for smaller screens */

    }
    
}




@media (max-width: 768px) {
    .roles-container {
        font-size: 4rem; /* Keep consistent font size */
    }
    .hero-content {
        width: 100%; /* Kept at 100% for mobile */
        margin-top: 125px; /* Reduced from 60px for smaller screens */
    }

    .hero {
        min-height: calc(100vh - 200px);
}
}

@media (max-width: 500px) {
    .roles-container {
        font-size: 3.5rem; /* Smaller font size for mobile screens */
    }
    .hero {
        padding: 0 40px 100px;
        min-height: calc(100vh - 300px);
    }
    .hero-content {
        margin-top: 125px; /* Reduced from 60px for smaller screens */
    }
}

@media (max-width: 480px) {
    .roles-container {
        font-size: 3rem; /* Keep consistent font size */
    }
    .hero {
        padding: 0 40px 100px;
    }
    .hero-content {
        margin-top: 125px; /* Reduced from 60px for smaller screens */
    }
}

@media (max-width: 400px) {
    .roles-container {
        font-size: 2.5rem; /* Keep consistent font size */
    }
    
}

/* Ensure resume button remains responsive and centered */
.resume-btn {
    background-color: black;
    color: #E0DFDE;
    padding: 10px 20px; /* Reduced padding */
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: static;
    width: calc(100% - 60px); /* Reduced from 70px to 60px */
    max-width: none;
    margin: 0 30px; /* Reduced from 35px to 30px */
    transform: none;
    opacity: 1 !important;
    animation: none !important;
    align-self: center;
    cursor: pointer;
    padding-right: 0%;
}

.resume-btn:hover {
    background-color: #DC143C;
}

.resume-btn i {
    font-size: 0.8em; 
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-item {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #E0DFDE;
    border-radius: 5px;
    border: 1px solid #000000;
    padding-bottom: 40px;
}

.project-item h3 {
    color: black;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.project-item p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
}

.project-link {
    background-color: black;
    color: #E0DFDE;
    padding: 15px 30px; /* Changed from 10px 20px for uniformity */
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease; /* Added color transition */
    display: inline-flex; /* Changed to inline-flex to enable gap */
    align-items: center;
    justify-content: center;
    gap: 12px; /* Increased gap for spacing */
    cursor: pointer; /* Added for consistency */
}

.project-link:hover {
    background-color: #DC143C; /* Changed background color to DC143C on hover */
    color: #E0DFDE; /* Ensured text color is #E0DFDE on hover */
}

.project-link i {
    font-size: 0.8em; 
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 1px;
    background-color: black;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -0.5px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #BEBAB8;
    border-radius: 5px;
    border: 1px solid #000000;
}

.timeline-content h3 {
    font-size: 1.4rem;
    color: black;
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 10px;
}

.timeline-content .date {
    font-style: italic;
    color: #555;
    margin-bottom: 10px;
    text-align: left;
}

.timeline-content ul {
    list-style-type: disc;
    padding-left: 20px;
    color: #555;
}

.timeline-content ul li {
    margin-bottom: 5px;
    text-align: left;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.skill-category {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #BEBAB8;
    border-radius: 5px;
    border: 1px solid #000000;
    text-align: center;
}

.skill-category h3 {
    color: black;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tags span {
    display: inline-block;
    background-color: transparent;
    color: black;
    padding: 5px 12px;
    border-radius: 5px;
    border: 1px solid black;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
}

.education-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: transparent;
    border-radius: 5px;
    border: 1px solid #000000;
}

.education-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.education-item p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.education-item .date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.education-item ul {
    list-style-type: disc;
    margin-left: 1.5rem;
}

.education-item ul li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
    line-height: 1.6;
}

.certifications-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
}

.certification-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: transparent;
    border-radius: 5px;
    border: 1px solid #000000;
}

.certification-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.certification-item ul {
    list-style-type: none;
    margin-left: 0;
}

.certification-item ul li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
    line-height: 1.6;
}

.certification-item ul li:before {
    content: "•";
    color: var(--primary-color);
}

.certification-link {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.certification-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .education-item,
    .certification-item {
        padding: 1rem;
    }
}



/* Footer */
footer {
    background-color: black;
    color: #E0DFDE;
    min-height: 100vh; /* Changed from min-height: 100vh; to remove black space under contact in sidebar */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    border: none;
    padding: 0; /* Remove padding to allow full height */
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: left;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.contact-info {
    text-align: center;
    width: 100%;
}

.contact-info p {
    margin: 15px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-info i {
    color: #E0DFDE;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.social-links a {
    color: #E0DFDE;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #DC143C;
    scale: 2;
}

.copyright {
    margin-top: 40px;
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: center;
}

/* Contact Form Styling */
.contact-form-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #E0DFDE;
    padding: 3rem;
    border-radius: 5px;
    border: #000000 1px solid; /* Green border */
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #000000; /* Lighter text color for labels */
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    border: #000000 1px solid; /* Green border */
    background-color: #E0DFDE; /* Light background color from screenshot */
    color: #3a3531; /* Dark text color */
    font-family: var(--body-font);
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
}

.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form textarea::placeholder {
    color: #000000; /* Lighter placeholder text color */
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-blue); /* Highlight on focus */
}

.contact-form textarea {
    resize: vertical;
}

.contact-form .send-button {
    background-color: black;
    color: #E0DFDE;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-flex; /* Use flex to align text and icon */
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.contact-form .send-button:hover {
    background-color: #DC143C;
    color: #E0DFDE; /* Ensure text color remains light grey on hover */
}

.contact-form .send-button i {
    font-size: 0.8em; /* Make icon slightly smaller relative to parent font size */
}

.contact-form .form-actions {
    display: flex;
    align-items: center; /* Align items vertically */
    gap: 20px; /* Space between button and message */
    margin-top: 20px; /* Space from textarea */
}

.success-message {
    color: #28a745; /* Green color for success message */
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    text-align: left; /* Align text to the left */
    flex-grow: 1; /* Allow message to take remaining space */
}

.success-message.show {
    opacity: 1;
}

.error-message {
    color: #dc3545; /* Red color for error message */
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    text-align: left;
    flex-grow: 1;
}

.error-message.show {
    opacity: 1;
}

#back-to-top {
    display: inline-block;
    padding: 10px;
    border-radius: 5px;
    transition: transform 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
    position: relative;
    top: 90px;
}

#back-to-top:hover {
    border: 1px solid #000000;

}



.role-banner {
    background: linear-gradient(90deg, #2c3e50, #3498db);
    color: #E0DFDE;
    padding: 15px 0;
    text-align: center;
    position: relative;
    height: 40px;
}

.role {
    position: absolute;
    width: 100%;
    left: 0;
    font-size: 1.5rem;
    font-weight: 600;
    opacity: 0;
    animation: fadeInOut 8s infinite;
}

.role:nth-child(1) { animation-delay: 0s; }
.role:nth-child(2) { animation-delay: 2s; }
.role:nth-child(3) { animation-delay: 4s; }
.role:nth-child(4) { animation-delay: 6s; }

@keyframes fadeInOut {
    0%, 20% { opacity: 0; }
    25%, 45% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Resume Page Styles */
.resume-section {
    min-height: calc(100vh - 60px);
    padding: 101px 0 50px;
    position: relative;
    padding-bottom: 0px;
    background-color: #E0DFDE;
    margin: 0;
}

.resume-header {
    text-align: left;
    margin: 0 0 40px 0;
    font-family: 'Space Grotesk', sans-serif;
}

.resume-header h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: black;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    text-align: left;
}

.resume-section h2,
.education-section h2 {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.resume-header .contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.resume-header .contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

.experience-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: transparent;
    border-radius: 5px;
    border: 1px solid #000000;
}

.experience-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.experience-item h4 {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.experience-item .date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.experience-item ul {
    list-style-type: disc;
    margin-left: 1.5rem;
}

.experience-item ul li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
    line-height: 1.6;
}

.resume-actions {
    text-align: center;
    margin-top: 3rem;
}

.resume-actions .resume-btn {
    background-color: black;
    color: #E0DFDE;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
}

.resume-header .resume-btn,
.resume-section > div:last-of-type .resume-btn,
div[style*="display: flex"] .resume-btn {
    width: auto !important;
    margin: 0 !important;
    max-width: none !important;
    padding: 12px 25px !important;
    font-size: 0.9rem !important;
    border: none !important;
    background-color: black !important;
    color: #E0DFDE !important;
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
}

.resume-header .resume-btn:hover,
.resume-section > div:last-of-type .resume-btn:hover,
div[style*="display: flex"] .resume-btn:hover {
    background-color: #DC143C !important;
    color: #E0DFDE !important;
}

.resume-actions .resume-btn:hover {
    background-color: #DC143C;
    color: #E0DFDE;
}

@media (max-width: 768px) {
    .resume-header .contact-info {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .experience-item {
        padding: 1rem;
    }
}

.container-border {
    border-bottom: 1px solid black;
    
}

/* Work Page Styles */
.work-section {
    min-height: calc(100vh - 60px);
    padding: 120px 0 50px;
    background-color: #E0DFDE;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.work-item {
    background: #BEBAB8;
    border: 1px solid black;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.work-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.work-image img,
.work-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 3s ease;
    filter: grayscale(100%);
}

.registration-program-project .work-image img {
    object-fit: cover;
    object-position: center;
    transform: scale(1.15);
    background-color: #E0DFDE;
}

.skipper-and-sons-project .work-image img {
    object-position: center 30%;
    transform: scale(1.1);
}

.nut-bar-project .work-image {
    padding: 0;
    background-color: #E0DFDE;
    display: block;
    overflow: hidden;
}

.nut-bar-project .work-image img {
    object-fit: contain;
    object-position: center;
    width: 100%;
    height: 100%;
    display: block;
    padding: 30px;
    box-sizing: border-box;
}

.logos-project .work-image {
    background-color: #E0DFDE;
}

.clothing-project .work-image {
    background-color: #E0DFDE;
}

.clothing-project .work-image img {
    object-position: center 20%;
}

.work-item:hover .work-image img,
.work-item:hover .work-image video {
    transform: scale(1.1);
    filter: grayscale(0%);
    transition: transform 0.3s ease, filter 3s ease;
}

.skipper-and-sons-project:hover .work-image img {
    transform: scale(1.21);
}

.work-item:not(:hover) .work-image img,
.work-item:not(:hover) .work-image video {
    transition: transform 0.3s ease, filter 0.5s ease;
}

.work-content {
    position: relative;
    min-height: 340px;
    padding: 32px 25px 70px 25px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
}

.work-content .work-link {
    position: absolute;
    left: 25px;
    right: 25px;
    bottom: 25px;
    width: auto;
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.work-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: black;
}

.work-content p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.work-tags span {
    background-color: transparent;
    color: black;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid black;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
}

.work-link {
    background-color: black;
    color: #E0DFDE;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease;
}

.work-link:hover {
    background-color: #DC143C;
}

.work-link i {
}

@media (max-width: 768px) {
    .work-section {
        padding: 100px 20px 50px;
    }

    .work-grid {
        gap: 30px;
    }

    .work-image {
        height: 200px;
    }

    .work-content {
        min-height: 280px;
        padding: 20px 15px 60px 15px;
        gap: 12px;
    }
    .work-content .work-link {
        left: 15px;
        right: 15px;
        bottom: 15px;
    }
}

/* Project Detail Styles */
.project-detail {
    min-height: calc(100vh - 60px);
    padding: 120px 0 0px;
    padding-bottom: 0px;
    background-color: #E0DFDE;
}

.project-header {
    margin-bottom: 40px;
}

.project-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: black;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-tags span {
    background-color: transparent;
    color: black;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid black;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
}

.project-hero {
    margin-bottom: 40px;
}

.project-hero a {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.project-hero img,
.project-hero video {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid black;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block;
}

.project-hero img[src*="Stem tech full logo dark green"] {
    object-fit: contain;
    padding: 40px;
    box-sizing: border-box;
}

.project-hero img[src*="logo.png"] {
    object-fit: contain;
    padding: 40px;
    box-sizing: border-box;
    border: 1px solid black;
}

.project-hero a:hover img {
    transform: scale(1.02);
    opacity: 0.9;
}


.project-content {
    max-width: 800px;
    margin: 0 auto;
}

.project-section {
    margin-top: 0;
    margin-bottom: 0;
}

.project-section:first-of-type {
    margin-top: 0;
}

.project-section:last-of-type {
    margin-bottom: 200px;
}

.project-content > .project-section:not(:first-of-type) {
    margin-top: 60px;
}

.project-section h2 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 40px;
    text-align: left;
}

.project-section:has(.rollin-rich-grid) h2 {
    margin-bottom: 50px;
}

.project-section:has(.child-of-god-grid) h2 {
    margin-bottom: 50px;
}

.project-section:has(.le-mon-grid) h2 {
    margin-bottom: 50px;
}

.project-section:has(.kulminated-grid) h2 {
    margin-bottom: 50px;
}

.project-section:has(.dark-grid) h2 {
    margin-bottom: 50px;
}

.project-section:has(.delete-grid) h2 {
    margin-bottom: 50px;
}

.project-section p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
}

.project-section ul,
.project-section ol {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-left: 20px;
}

.project-section li {
    margin-bottom: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
}

.product-varieties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 2rem;
}

.product-varieties-grid img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.profit-sports-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 2rem;
    align-items: start;
}

.profit-sports-grid img:first-child {
    align-self: start;
}

.profit-sports-grid .profit-sports-image-container:first-of-type {
    align-self: end;
    margin-top: 0;
    height: 400px;
}

.profit-sports-grid img:nth-child(2),
.profit-sports-grid .profit-sports-image-container:last-of-type {
    align-self: end;
}

.profit-sports-grid > * {
    margin: 0;
}

.profit-sports-side-by-side {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 2rem;
}

.profit-sports-side-by-side img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.stemtech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 2rem;
}

.stemtech-grid img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 20px;
}

.child-of-god-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 0;
    align-items: start;
    align-content: start;
}


.child-of-god-grid img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    align-self: start;
}

.child-of-god-grid img:first-child {
    height: 120px;
    object-fit: contain;
}

.child-of-god-grid img:last-child {
    height: 120px;
    object-fit: contain;
}

.rollin-rich-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
    align-items: center;
}

.rollin-rich-grid img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.rollin-rich-grid video {
    width: 100%;
    height: auto;
    border-radius: 5px;
    border: 1px solid black;
    display: block;
    object-fit: contain;
    box-sizing: border-box;
    border-top: 2px solid black;
}

.le-mon-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
    align-items: center;
}

.le-mon-grid img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.le-mon-grid img:last-child {
    border: 1px solid black;
}

.le-mon-grid img:first-child {
    height: 250px;
    object-fit: contain;
}

.kulminated-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
    align-items: center;
}

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

.kulminated-grid img:last-child {
    border: 1px solid black;
}

.dark-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 0;
    align-items: center;
}

.dark-grid img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-radius: 5px;
}

.delete-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 0;
    align-items: center;
}

.delete-grid img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    border-radius: 5px;
}

.u-pod-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 0;
    align-items: center;
}

.u-pod-grid img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    border-radius: 5px;
}

.u-pod-grid img:last-child {
    height: 150px;
}

.french-prints-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
    align-items: center;
}

.french-prints-grid img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 5px;
}

.french-prints-grid img:first-child {
    height: 200px;
}

.more-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 0;
    align-items: center;
}

.more-grid img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 5px;
}

.nostalji-hoodies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 2rem;
}

.nostalji-hoodies-grid img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.nostalji-tshirts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 2rem;
}

.nostalji-tshirts-grid img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.nostalji-shorts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 2rem;
}

.nostalji-shorts-grid img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.nostalji-sweatpants-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 2rem;
}

.nostalji-sweatpants-grid img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.nostalji-more-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 2rem;
}

.nostalji-more-grid img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.kulminated-grid img:first-child {
    height: 200px;
    object-fit: contain;
}

.rollin-rich-grid img {
    height: 400px;
    object-fit: contain;
}

.profit-sports-grid img:first-child {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.profit-sports-grid img:nth-child(2) {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 5px;
    align-self: end;
}

.profit-sports-image-container {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    background-color: #E0DFDE;
    position: relative;
}

.profit-sports-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    pointer-events: none;
    z-index: 1;
}

.profit-sports-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    border-radius: 20px;
    clip-path: inset(0 round 20px);
}

.project-navigation {
    margin-top: 20px !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: black;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    vertical-align: middle;
}

.back-link:hover {
    color: #DC143C;
}

.back-link i {
    transition: transform 0.3s ease;
}

.back-link:hover i {
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .project-detail {
        padding: 100px 0 30px;
    }

    .project-header h1 {
        font-size: 2rem;
    }

    .project-section h2 {
        font-size: 1.5rem;
    }
}
