/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #000000;
    --white: #ffffff;
    --green: #2e9826;
    --gray: #666666;
    --light-gray: #f5f5f5;
    --dark-gray: #1a1a1a;
    --font-primary: 'Bebas Neue', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-secondary);
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 0;
    background-color: rgba(89, 89, 89, 0.24);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 90vw;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 300px;
    width: auto;
    transition: var(--transition);
}

.navbar.scrolled .logo {
    height: 100px;
    filter: brightness(0) invert(1);
}

/* Menu Toggle */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    position: relative;
    z-index: 1003;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition);
    transform-origin: center;
}

.navbar.scrolled .menu-toggle span {
    background-color: var(--black);
}

.menu-toggle span:last-child {
    width: 20px;
}

.menu-toggle:hover span:last-child {
    width: 30px;
}

.menu-toggle.active span {
    background-color: var(--black);
}

.menu-toggle.active span:first-child {
    transform: translateY(3px) rotate(45deg);
}

.menu-toggle.active span:last-child {
    width: 30px;
    transform: translateY(-3px) rotate(-45deg);
}

/* Sidebar Menu */
.sidebar-menu {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background-color: var(--white);
    z-index: 1002;
    transition: right 0.6s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.sidebar-menu.active {
    right: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Close Button */
.menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--black);
    font-size: 2.5rem;
    font-weight: 200;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1004;
    line-height: 1;
}

.menu-close:hover {
    transform: rotate(90deg);
    color: var(--green);
}

.menu-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    height: 100%;
    padding: 3rem 2.5rem;
}

.sidebar-image {
    width: 100%;
    height: auto;
    max-width: 200px;
    object-fit: contain;
    margin: 4rem auto 2rem;
    display: block;
}

.sidebar-description {
    color: var(--gray);
    font-family: var(--font-secondary);
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.sidebar-description p {
    margin-bottom: 1em;
}

.menu-nav ul {
    list-style: none;
    text-align: left;
}

.menu-nav li {
    margin: 1.5rem 0;

}

.menu-nav a {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--black);
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: var(--transition);
    letter-spacing: 0.05em;
}

/* Enhanced hover effect */
.menu-nav a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--green);
    transition: width 0.3s ease;
}

.menu-nav a:hover {
    color: var(--green);
    transform: translateX(5px);
}

.menu-nav a:hover::before {
    width: 100%;
}

/* Strike-through animation when clicked */
.menu-nav a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--black);
    transform: translateY(-50%);
    transition: width 0.3s ease;
}

.menu-nav a.clicked::after {
    width: 100%;
    animation: strikethrough 0.6s ease forwards;
}

@keyframes strikethrough {
    0% {
        width: 0;
        opacity: 1;
    }
    50% {
        width: 100%;
        opacity: 1;
    }
    100% {
        width: 100%;
        opacity: 0;
    }
}

/* Menu Contact */
.menu-contact {
    text-align: left;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
}

.menu-contact p {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0.3rem 0;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background-color: var(--black);
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Modified hero image styling for better aspect ratio */
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background-color: var(--black);
}

/* For wider screens, allow some cropping but less aggressive */
@media (min-width: 1200px) {
    .hero-image {
        object-fit: cover;
        object-position: center 40%;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.2) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(0, 0, 0, 0.5) 100%);
}

.slide-content {
    position: absolute;
    bottom: 15%;
    left: 5%;
    z-index: 2;
    color: var(--white);
    max-width: 600px;
}

.slide-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    animation: slideInUp 1s ease-out;
}

.slide-subtitle {
    font-family: var(--font-secondary);
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 300;
    opacity: 0.8;
    animation: slideInUp 1.2s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0.5;
    pointer-events: none;
}

.hero-logo {
    width: clamp(300px, 40vw, 500px);
    height: auto;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
}

.scroll-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--green);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% {
        height: 0;
        top: 0;
    }
    50% {
        height: 100%;
        top: 0;
    }
    51% {
        height: 0;
        top: 100%;
    }
}

/* Footer */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 4rem 0 2rem 0;
}

.footer-container {
    max-width: 90vw;
    margin: 0 auto;
}

/* Specific padding for the home page footer to create space below the hero */
body.home-page .footer-container {
    padding-top: 30px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img {
    height: 200px;
    width: auto;
    opacity: 0.9;
    filter: brightness(1) invert(0);
}

.footer-info {
    text-align: right;
}

.contact-info {
    margin-bottom: 1rem;
}

.contact-info a {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    margin-bottom: 0.3rem;
    transition: var(--transition);
    opacity: 0.8;
}

.contact-info a:hover {
    opacity: 1;
    color: var(--green);
}

.social-links {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
}

.social-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    transition: var(--transition);
    position: relative;
    opacity: 0.8;
}

.social-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--green);
    transition: width 0.3s ease;
}

.social-links a:hover {
    opacity: 1;
}

.social-links a:hover::after {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    opacity: 0.5;
    font-weight: 300;
}

.footer-powered-by {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.footer-powered-by a {
    text-decoration: none;
    color: var(--white);
    opacity: 0.6;
    transition: var(--transition);
}

.footer-powered-by a:hover {
    opacity: 1;
}

.footer-powered-by-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-powered-by-group p {
    font-size: 0.8rem;
    font-weight: 300;
    margin: 0;
}

.footer-powered-by-group img {
    height: 12px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.6;
}


/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        max-width: 85vw;
    }
    
    .logo {
        height: 60px;
    }
    
    .navbar.scrolled .logo {
        height: 45px;
    }

    .sidebar-menu {
        right: -100%;
        max-width: 100%;
    }
    
    .slide-content {
        bottom: 10%;
        max-width: 85%;
    }
    
    .slide-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }
    
    /* Better mobile hero image handling */
    .hero-image {
        object-fit: cover;
        object-position: center center;
    }
    
    .footer-main {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }

    .footer-powered-by {
        gap: 1.5rem;
        flex-direction: column;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Page Loader */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 10000;
    animation: pageLoad 0.8s ease-out forwards;
    animation-delay: 0.5s;
    pointer-events: none;
}

@keyframes pageLoad {
    to {
        transform: translateY(-100%);
    }
}

/* --- About Page Styles --- */

.page-header {
    position: relative;
    height: 50vh;
    min-height: 350px;
    background-image: url('images/about.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 0;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.header-content {
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.header-content h1 {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 6vw, 4rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    animation: slideInUp 1s ease-out;
}

.header-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    opacity: 0.9;
    animation: slideInUp 1.2s ease-out;
}

.main-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.about-section {
    margin-bottom: 5rem;
}

.about-section h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.about-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

/* Text & Image Section */
.text-image-section .grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

.text-image-section.reverse .grid-item.text-content {
    order: 2;
}

.text-image-section.reverse .grid-item.image-content {
    order: 1;
}


.image-content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.text-content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 2rem;
}

.text-content ul li {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.text-content ul li i {
    color: var(--green);
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 25px; /* for alignment */
    text-align: center;
}

/* Testimonial Section */
.testimonial-section {
    background-color: var(--light-gray);
    padding: 4rem;
    border-radius: 8px;
    text-align: center;
}

.testimonial-section h3 {
    font-family: var(--font-primary);
    font-size: 2rem;
    letter-spacing: 0.05em;
    margin-bottom: 2.5rem;
    color: var(--dark-gray);
}

.testimonial-block {
    max-width: 700px;
    margin: 0 auto 2rem auto;
    position: relative;
    padding-left: 3.5rem;
    text-align: left;
}

.testimonial-block:last-child {
    margin-bottom: 0;
}

.testimonial-block i.fa-quote-left {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 2.5rem;
    color: var(--green);
    opacity: 0.3;
}

.testimonial-block p {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--gray);
    margin: 0;
}


/* Director Section */
.director-section {
    margin-top: 6rem;
}

.profile-card {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    background-color: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 5px solid var(--white);
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.profile-details h3 {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    color: var(--dark-gray);
}

.profile-title {
    font-weight: 600;
    color: var(--green);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-bio {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray);
    margin-bottom: 2rem;
}

.profile-contact {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
}

.profile-contact a {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
}

.profile-contact a:hover {
    color: var(--green);
}

.profile-contact a i {
    font-size: 1.2rem;
}


/* Responsive for About Page */
@media (max-width: 992px) {
    .text-image-section .grid-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .text-image-section.reverse .grid-item.text-content {
        order: 0; /* Reset order for stacking */
    }
    .text-image-section.reverse .grid-item.image-content {
        order: 0;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 3rem 1.5rem;
    }
    
    .about-section {
        margin-bottom: 3rem;
    }

    .about-section h2 {
        font-size: 2rem;
    }

    .testimonial-section {
        padding: 2.5rem 1.5rem;
    }

    .testimonial-block {
        padding-left: 0;
        padding-top: 2rem;
        text-align: center;
    }
    
    .testimonial-block i.fa-quote-left {
        left: 50%;
        transform: translateX(-50%);
        top: -10px;
    }
    
    .profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem;
    }
    
    .profile-contact {
        align-items: center;
    }
}
/* --- Contact Page Styles --- */

.contact-header {
    background-image: url('https://scontent.fwlg2-1.fna.fbcdn.net/v/t39.30808-6/482033280_1511291596475932_5833218414786934410_n.jpg?_nc_cat=110&ccb=1-7&_nc_sid=127cfc&_nc_ohc=xA20CEgxFXMQ7kNvwHMyUwE&_nc_oc=Adm08MNjN4RDSPgDRZ2lY0Z8obVPHzCysgznjD79CtHwXAkf-BaNjq7Ue2eMjAxk7aM&_nc_zt=23&_nc_ht=scontent.fwlg2-1.fna&_nc_gid=yh9YXaZNVYDOQyovnzQUFg&oh=00_AfTXKIQWomkPzNsH1mzckIRROD1wHSwnqOn53mt1aN1qOQ&oe=6883AC68');
    background-position: center 60%;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-details h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.contact-details p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--green);
    width: 25px;
    text-align: center;
}

.contact-item a,
.contact-item span {
    font-size: 1rem;
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--green);
}

.contact-form-container {
    background-color: var(--light-gray);
    padding: 3rem;
    border-radius: 8px;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--gray);
    background-color: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(46, 152, 38, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

textarea {
    resize: vertical;
}

.btn-submit {
    display: inline-block;
    width: 100%;
    padding: 1rem 2rem;
    background-color: var(--green);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: #257d1e; /* A slightly darker green */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.menu-nav a.active-page {
    color: var(--green);
}

/* Responsive for Contact Page */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .contact-form-container {
        padding: 2rem;
    }
}

/* --- Projects Page Styles --- */

/* Use a different background for the project page header */
.projects-header {
    background-image: url('images/welly.avif');
    background-position: center 70%;
}

.project-grid {
    display: grid;
    /* This creates a responsive grid that shows as many columns as can fit with a minimum width of 350px */
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: var(--white);
    aspect-ratio: 4 / 3; /* Maintain a consistent aspect ratio for all cards */
    opacity: 0; /* Hidden by default for reveal animation */
    transform: translateY(30px); /* Positioned down for reveal animation */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.4s ease;
}

/* This class will be added by JavaScript when the item is scrolled into view */
.project-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.project-item:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* The overlay that darkens the image and enhances text readability */
.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
    z-index: 1;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* A smooth transition for the zoom-on-hover effect */
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-item:hover img {
    transform: scale(1.08); /* Zoom effect on hover */
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
}

.project-info h3 {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
    transform: translateY(2.5rem); /* Initially hidden below the 'View Project' text */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-item:hover .project-info h3 {
    transform: translateY(0);
}

.project-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.project-item:hover .project-info span {
    opacity: 1;
    transform: translateY(0);
}

.project-info span i {
    transition: transform 0.3s ease;
}

.project-item:hover .project-info span i {
    transform: translateX(5px);
}

/* Responsive adjustments for the Project Grid */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr; /* Stack to a single column on smaller tablets */
        gap: 2rem;
    }
    .project-item {
        aspect-ratio: 3 / 2;
    }
}

@media (max-width: 480px) {
    .project-grid {
        grid-template-columns: 1fr; /* Ensure single column on mobile */
    }
     .project-info h3 {
        font-size: 1.5rem;
    }
}

/* General style for the active page link in the sidebar */
.menu-nav a.active-page {
    color: var(--green);
}