/* 
  CREATIVE PORTFOLIO STYLE - FINAL VERSION
*/

/* --1. Theme & Variable Setup -- */
:root {
    --primary-color: #008080;
    --primary-hover-color: #006666;
    --accent-color: #c5a47e;
    --dark-color: #2c3e50;
    --light-color: #fdfdfd;
    --text-color: #34495e;
    --border-radius: 8px;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.3s ease;
}

/* --2. General & Body Styles -- */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: var(--light-color);
    color: var(--text-color);
}

.container {
    width: 85%;
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* --3. Creative Header & Profile Picture -- */
header {
    background: linear-gradient(45deg, #f3f3f3, #e8e8e8);
    padding: 2.5rem 0;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

header h1 {
    font-family: 'Playfair Display', serif;
    margin: 0;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

header p {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 400;
    font-style: italic;
}

/* --4. Main Content & Sections -- */
main section {
    padding: 60px 0;
}

main h2 {
    font-family: 'Playfair Display', serif;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--dark-color);
}

/* --5. Portfolio Grid & Cards with Flair (Corrected) -- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.project-card .card-image-container {
    overflow: hidden;
}

.project-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card h3 {
    font-family: 'Playfair Display', serif;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--dark-color);
    font-weight: 700;
}

.project-card a {
    display: inline-block;
    margin-top: auto;
    padding: 10px 22px;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-speed);
    align-self: flex-start;
}

.project-card a:hover {
    background: var(--primary-color);
    color: #fff;
}


/* --6. Contact Section -- */
#contact {
    text-align: center;
}

.contact-button {
    display: inline-block;
    padding: 15px 35px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all var(--transition-speed);
    box-shadow: var(--shadow);
}

.contact-button:hover {
    background: var(--primary-hover-color);
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* --7. Footer -- */
footer {
    text-align: center;
    padding: 30px;
    margin-top: 40px;
    background: #f1f1f1;
    color: var(--text-color);
}

/* --8. Case Study Page Styles -- */
.case-study-header {
    padding: 4rem 0;
    background: #f8f8f8;
    text-align: center;
}

.case-study-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--dark-color);
    margin: 0;
}

.case-study-header p {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-style: italic;
}

.case-study-content {
    padding: 40px 0;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.project-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    background: #ffffff;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    border: 1px solid #eee;
}

/* This is the new style block to add */
.key-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    background: #f8f9fa;
    padding: 30px;
    border-radius: var(--border-radius);
    margin: 30px 0;
    text-align: center;
    border: 1px solid #eee;
}

.key-metrics h4 {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 1rem;
}

.key-metrics p {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
    line-height: 1.2;
}

.project-overview h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-top: 0;
}

.process-narrative h2 {
    text-align: left;
    font-size: 2.2rem;
    margin-top: 40px;
}

.process-narrative p {
    margin-bottom: 1.5rem;
}

.image-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.image-gallery img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.back-link {
    display: inline-block;
    text-align: center;
    margin-top: 40px;
    padding: 12px 25px;
    background: var(--dark-color);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-speed);
}

.back-link:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}