@media (max-width: 900px) {
    .project-details.grid > div {
        padding: 0 16px 16px 16px;
    }
}

/* Responsive features grid */
.responsive-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 32px 0;
}
.features-title {
    font-weight: 900;
    font-size: 28px;
}
@media (max-width: 900px) {
    .responsive-features {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .featuresimg {
        width: 100%;
        max-width: 350px;
        height: auto;
        margin: 0 auto;
        display: block;
    }
    .features {
        text-align: left;
        padding: 16px 8px;
    }
}
@media (max-width: 900px) {
    .project-intro {
        padding: 40px 10px;
        flex-direction: column;
        height: auto;
    }
    .project-details.grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px 10px;
    }
    .grid3 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .project-intro {
        padding: 20px 5px;
    }
    .project-summary h1 {
        font-size: 2rem;
    }
    .project-details {
        padding: 15px 5px;
    }
    .carousel-container {
        width: 98vw !important;
        min-width: unset !important;
        max-width: 100vw !important;
        padding: 10px 2vw 40px 2vw;
    }
    .carousel-section {
        margin: 10px 0 30px 0;
    }
    .portfolio-image, .featuresimg, .gallery-item {
        width: 100% !important;
        max-width: 100vw !important;
        height: auto !important;
    }
    footer {
        padding: 20px 5px;
        font-size: 0.95rem;
    }
}
:root {
    --primary-color: #2c3e50;
    --secondary-color: #1ABC9C;
    --tertiary-color: #ECF0F1;
    --text-color: #2c3e50;
    --text-color-light: #c1c4c5;
    --font-family: 'poppins', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.5;
    margin: 0;
    padding: 0;
}
p{
    text-align: justify;
}
nav {
    position: fixed;
    width: 100%;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    z-index: 3000;
    background: rgba(236, 240, 241, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    flex-wrap: wrap;
}

nav.nav-hidden {
    transform: translateY(-100%);
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

nav ul li {
    margin: 0 4px;
}

nav ul li a {
    font-size: 0.9rem;
    color: var(--text-color);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 6px 10px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

nav ul li a:hover {
    color: var(--secondary-color);
    background: rgba(26, 188, 156, 0.08);
}

.nav-resume-btn {
    background: var(--primary-color) !important;
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-size: 0.88rem !important;
    letter-spacing: 0.03em !important;
    transition: background 0.2s, transform 0.2s, color 0.2s !important;
}

.nav-resume-btn:hover {
    background: var(--secondary-color) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 3001;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

nav.nav-open .nav-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
nav.nav-open .nav-hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
nav.nav-open .nav-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

#header-text a {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2C3E50;
    text-decoration: none;
    transition: color 0.3s ease;
}

#header-text a:hover {
    color: #1ABC9C;
}

/* Links inside chat bubbles */
.bubble a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(26, 188, 156, 0.1);
    color: #0e9076;
    padding: 3px 10px 3px 8px;
    border-radius: 20px;
    font-size: 0.88em;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(26, 188, 156, 0.3);
    margin: 2px 2px;
    transition: background 0.18s, color 0.18s, transform 0.15s;
    white-space: nowrap;
}
.bubble a:hover {
    background: var(--secondary-color);
    color: #fff;
    border-color: transparent;
    transform: translateY(-1px);
}

/* Project Intro */
.project-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 120px;
    background-color: #EEE0C3;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    height: 100vh;
}
.project-intro-img{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 60px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    min-height: 100vh;
    background-image: url("images/Group 1.png");
    background-size: 100vb;
}



.project-summary {
    text-align: left;
    color: #c1c4c5;
}

.project-summary h1 {
    font-size: 3rem;
    color: #2C3E50;
    margin-bottom: 20px;
    border-left: 5px solid #304642;
    padding-left: 15px;
}

.project-summary .project-role,
.project-summary .project-duration {
    font-size: 1rem;
    color: #7F8C8D;
    margin-bottom: 10px;
    font-style: italic;
}

.project-summary .project-description {
    font-size: 1.2rem;
    margin-top: 20px;
    color: #34495E;
}

/* Details Section */
.project-details {
    padding: 60px;
    background-color: white;
    border-radius: 10px;
    margin: 40px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    
}
.grid{
    grid-template-columns: 35% 35%;
    display: grid;
    flex-wrap: wrap;
    gap: 75px;
    margin: 10px;
    width: 100%;
    align-items: center;
    justify-content: center;
}
.grid2{
    flex: 1;
    grid-template-columns: 49% 49%;
    gap: 20px;
    display: grid;
    flex-wrap: wrap;
    width: 100%;
    padding: 25px;
  	margin-bottom: 50px;
}
.grid2 h3{
    text-align: left;
    padding: 25px;
    font-weight: 800;
}

.grid3{
    display: grid;
    flex-wrap: wrap;
    grid-template-columns: 32% 32% 32%;
    gap: 10px;
    margin-top: 50px;
  	margin-bottom: 50px;
    align-items: center;
    justify-content: center;
}

.grid3 img{
    width: 80%;
    border-radius: 2px;
}
    
.grid3 .features{
    padding: 20px;
  	margin-bottom: 50px;
}

.grid3 .featuresimg{
    width: 100%;
    margin-top: 10px;
}
.grid3 p{
    font-size: 18px;
    margin-bottom: 15px;
    margin-top: 10px;
}


.grid2 p{
    padding: 5px;
    text-align: justify;
    font-size: 18px;
}

.grid2 h2{
    font-size: xx-large;
    padding: 29px;
    text-align: left;
    justify-content: left;
}
.grid2 img{
    width: 90%;
    justify-content: center;
    align-self: center;
    margin: 20px;
    border-radius: 20px;
}
.grid h2{
    margin-bottom: 5px;
    font-size: 26px;
}

.grid p{
    font-size: 18px;
    line-height: 180%;
    max-width: 700px;
}
.grid4{
    display: grid;
    flex-wrap: wrap;
    grid-template-columns: 31% 31% 31%;
    gap: 25px;
  	margin-bottom: 25px;
    align-items: center;
    justify-content: center;
}
.grid4 img{
    width: 100%;
    border-radius: 2px;
}
/* Gallery Section */
.project-gallery {
    padding: 60px;
    background-color: #ECF0F1;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.project-gallery h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: #2C3E50;
    border-bottom: 2px solid #1ABC9C;
    display: inline-block;
    padding-bottom: 5px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.gallery-item {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.portfolio-image{
    width: 100%;
}

.button {
    display: inline-block; /* Ensures button styling works correctly */
    margin: 0 auto; /* Center horizontally */
    color: white;
    padding: 16px 32px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    transition-duration: 0.4s;
    cursor: pointer;
    border-radius: 10px;
    background-color: white; /* Initial background color */
    color: #304642; /* Text color */
    border: 2px solid var(--primary-color); /* Border color */
}

/* Hover Effect */
.button:hover {
    background-color: #304642; /* Change background color */
    color: white; /* Change text color */
}

/* Centering Button in Parent Div */
.grid2 div {
    display: flex; /* Use flexbox for centering */
    flex-direction: column; /* Stack elements vertically */
    align-items: left; /* Center horizontally */
    justify-content: center; /* Center vertically */
    text-align: center; /* Align text in the center */
    gap: 10px; /* Add space between elements */
}



/* Footer */
footer {
    text-align: center;
    padding: 40px;
    background: linear-gradient(90deg, #D5DBDB, #ECF0F1);
    color: #2C3E50;
    font-size: 1rem;
}

.fa {
    padding: 15px;
    font-size: 24px;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    text-decoration: none;
    margin: 5px;
    border-radius: 50%;
    transition: transform 0.3s, background-color 0.3s;
}

.fa:hover {
    color: var(--secondary-color);
}

.fa-instagram {
    color: var(--primary-color)
}

.fa-linkedin {
    color: var(--primary-color);
}

/* Overlay styles */
.construction-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Semi-transparent black */
    display: flex;
    justify-content: center;
    align-items: center;    
    z-index: 2000; /* Make sure it sits above all other elements */
}

/* Message container */
.construction-message {
    text-align: center;
    color: #fff;
    background: #f39c12; /* Bright orange for visibility */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ── Mobile nav (must come AFTER base nav rules to win the cascade) ── */
@media (max-width: 900px) {
    nav {
        padding: 12px 20px;
    }

    .nav-hamburger {
        display: flex;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: #fff;
        flex-direction: column;
        width: auto;
        min-width: 200px;
        gap: 0;
        padding: 8px 0 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        border-radius: 0 0 12px 12px;
        border-top: 2px solid var(--secondary-color);
        z-index: 999;
    }

    nav.nav-open ul {
        display: flex;
    }

    nav ul li {
        margin: 0;
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 11px 20px;
        font-size: 0.95rem;
        border-radius: 0;
        white-space: nowrap;
        color: var(--text-color);
    }

    .nav-resume-btn {
        display: inline-block !important;
        margin: 6px 12px 0 12px !important;
        width: calc(100% - 24px) !important;
        text-align: center !important;
        border-radius: 8px !important;
    }
}
