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

body {
    font-family: 'Inter', sans-serif;
    background: #F8F9FB;
    color: #111;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 60px;
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
}

/* LOGO */
.logo img {
    width: 40px;
}

/* NAV */
nav a {
    margin-left: 30px;
    text-decoration: none;
    color: #777;
    font-size: 14px;
    transition: 0.3s;
}

nav a:hover,
nav a.active {
    color: #2D5A27;
}

/* HERO */
.hero {
    max-width: 900px;
    margin: 120px auto 80px;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: 32px;
    font-weight: 300;
    line-height: 1.5;
    color: #444;
}

/* GRID (FIXED MODERN VERSION) */
/* --- FIXED WORK GRID --- */
.workgrid {
    display: grid;
    /* Forces exactly 3 columns on desktop for that clean look */
    grid-template-columns: repeat(3, 1fr); 
    gap: 24px;
    padding: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.wgrid-item {
    position: relative;
    height: 380px; 
    background: #f8f8f8;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Stable Hover - No Blinking */
.wgrid-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.wgrid-item img, .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}



/* Fixed Overlay */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s ease;
    pointer-events: none; /* Prevents flickering */
}

.wgrid-item:hover .overlay {
    opacity: 1;
}
/* This ONLY affects the home page grid */
.workgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Forces 3 clean columns */
    gap: 32px;
    padding: 60px;
}

/* This ensures the cards don't overlap */
.wgrid-item {
    position: relative;
    z-index: 1; 
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
/* FOOTER */
footer {
    display: flex;
    justify-content: space-between;
    padding: 50px;
    font-size: 14px;
    color: #777;
}

.footer-links a {
    margin-left: 20px;
    text-decoration: none;
    color: #777;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    header {
        padding: 20px;
    }

    .hero h1 {
        font-size: 24px;
    }
}



/* ========================= */
/* INFO PAGE RESTORE FIX     */
/* ========================= */

.info-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    padding: 100px 80px;
}

.info-left img {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 30px;
}

.bio p {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
}

.info-title {
    font-size: 64px;
    font-weight: 500;
    color: #CFE3DA;
    margin-bottom: 40px;
}

/* TIMELINE */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.entry span {
    font-size: 12px;
    letter-spacing: 2px;
    color: #999;
    display: block;
    margin-bottom: 8px;
}

.entry p {
    font-size: 16px;
    line-height: 1.6;
    color: #222;
}

/* RESUME SECTION */
.resume-section {
    padding: 80px 80px 40px;
    border-top: 1px solid #ddd;
}

.resume-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
}

.resume-col h3 {
    font-size: 12px;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 20px;
}

.resume-col p {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.resume-col strong {
    color: #111;
    font-weight: 500;
}

.resume-col a {
    text-decoration: none;
    color: #2D5A27;
}

/* BOTTOM BAR */
.bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 80px;
    border-top: 2px solid #111;
    margin-top: 40px;
}

.bottom-left,
.bottom-center {
    font-size: 14px;
    letter-spacing: 1px;
}

.btn-touch {
    background: #111;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s;
}

.btn-touch:hover {
    background: #2D5A27;
}

/* RESPONSIVE */
@media (max-width: 900px) {

    .info-layout {
        grid-template-columns: 1fr;
        padding: 60px 20px;
    }

    .info-title {
        font-size: 40px;
    }

    .resume-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .bottom-bar {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}


/* PROJECT IMAGE CONTAINER */
.project-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* gives breathing room so edges don't get cut */
    box-sizing: border-box;
    background: #f3f3f3;
}

.project-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;   /* IMPORTANT CHANGE */
    display: block;
}

/* KEEP OVERLAY ABOVE IMAGE */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 90, 39, 0.85);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    transition: 0.4s;
    z-index: 2;
}

/* SHOW OVERLAY ON HOVER */
.grid-item:hover .overlay {
    opacity: 1;
}

.project-image {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    background: #f3f3f3; /* soft card base */
    padding: 25px;
    box-sizing: border-box;
}

/* IMAGE STYLE */
.project-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;

    border-radius: 16px;

    /* soft blend look */
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* OVERLAY FIX */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 90, 39, 0.75);
    color: rgb(11, 10, 10);

    opacity: 0;
    transition: 0.4s;

    display: flex;
    align-items: flex-end;   /* 👈 pushes content to bottom */
    justify-content: flex-start;

    padding: 20px;
    box-sizing: border-box;
}

.grid-item:hover .overlay {
    opacity: 1;
}
/* ========================= */
/* 🍕 FINAL WORKING PIZZA    */
/* ========================= */

/* --- 🍕 HIGH-FIDELITY PIZZA --- */
.pizza-stage {
    width: 160px;
    height: 160px;
    position: relative;
    border-radius: 50%;
    /* The Crust */
    border: 10px solid #e9c46a; 
    background: #f4a261; /* Cheese */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    animation: pizzaSpin 12s linear infinite;
}

/* The Sauce Layer */
.pizza-circle {
    position: absolute;
    inset: 4px; 
    background: #FF003D; /* Your project's Tomato Red */
    border-radius: 50%;
}

/* Pepperoni Toppings */
.pizza-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle, #b23a2b 14px, transparent 15px),
        radial-gradient(circle, #b23a2b 12px, transparent 13px),
        radial-gradient(circle, #b23a2b 14px, transparent 15px),
        radial-gradient(circle, #b23a2b 12px, transparent 13px);
    background-position: 30% 30%, 70% 35%, 40% 70%, 75% 65%;
    background-repeat: no-repeat;
}

/* Subtle Slice Lines */
.slice {
    position: absolute;
    width: 2px;
    height: 100%;
    background: rgba(0,0,0,0.05);
    left: 50%;
    transform-origin: center;
}

.s1 { transform: rotate(0deg); }
.s2 { transform: rotate(60deg); }
.s3 { transform: rotate(120deg); }

@keyframes pizzaSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========================================= */
/* ARCHIVE PAGE - FULL STYLES                */
/* ========================================= */

/* GLOBAL RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif; /* Professional clean font */
}

body {
  background: #ffffff;
  color: #111;
  overflow-x: hidden;
}

/* HEADER & NAV */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 40px;
  background: #fff;
}

.logo {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 1px;
}

nav a {
  margin-left: 30px;
  text-decoration: none;
  color: #888;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: 0.3s;
}

nav a.active, nav a:hover {
  color: #000;
}

/* HERO SECTION */
.hero {
  text-align: center;
  padding: 80px 20px 100px;
  max-width: 800px;
  margin: 0 auto;
}

.subtitle {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #999;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 32px;
  font-weight: 400;
  color: #333;
  margin-bottom: 20px;
}

.description {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

/* GRID SYSTEM */
.grid {
  display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.card {
    aspect-ratio: 1 / 1;
    position: relative; /* Essential for containing absolute children */
    overflow: hidden;
    background: #ffffff; 
    border: 0.5px solid #eee; /* Optional: adds a very faint border between flush images */
}

/* FIX: Ensure all images (static and sliding) don't crop */
.card img, .slide {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Prevents cropping */
    background: #ffffff;
    padding: 10px;
}
/* Arrow Button Styles */
.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    transform: translateY(-50%);
    z-index: 15; /* Sits above the overlay */
    pointer-events: none; /* Allows hover on the card still */
}
.prev-btn, .next-btn {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    pointer-events: auto; /* Makes only the buttons clickable */
    transition: 0.3s;
}

.prev-btn:hover, .next-btn:hover {
    background: #000;
    color: #fff;
}
/* Hide arrows until hover */
.slider-controls {
    opacity: 0;
    transition: 0.3s;
}

.card:hover .slider-controls {
    opacity: 1;
}
/* OVERLAY TEXT */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); 
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: white;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 5; /* Stays above sliding images */
}

.card:hover .overlay {
  opacity: 1;
}

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

.overlay h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 5px;
}

.overlay p {
  font-size: 13px;
  opacity: 0.8;
}

/* ========================================= */
/* SLIDESHOW FIX FOR SKETCHES                */
/* ========================================= */

/* SLIDESHOW SPECIFICS */
.slideshow-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.card {
    position: relative;
    height: 320px;   /* or 350px */
    overflow: hidden;
    border-radius: 10px;
}
.slide.active {
    opacity: 1;
    z-index: 2;
}
.slide {
    position: absolute;
    inset: 0;              /* fill container */
    width: 100%;
    height: 100%;
    object-fit: cover;     /* or use contain if you want full image */
    opacity: 0;
    transition: opacity 0.4s ease;
}

.slide.active {
    opacity: 1;
}

/* OVERLAY - Stays on top */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: white;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 10; /* Keeps text above the images */
}

.card:hover .overlay {
    opacity: 1;
}




/* FOOTER */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 40px;
  font-size: 12px;
  color: #999;
}

.footer-links a {
  margin-left: 20px;
  text-decoration: none;
  color: #999;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #000;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
  header, footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* FOOTER - Aligned to edges */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 40px;
  font-size: 12px;
  color: #666;
}

.footer-links a {
  margin-left: 20px;
  text-decoration: none;
  color: #666;
}



/* ========================= */
/* PLATEWISE FINAL DESIGN    */
/* ========================= */
/* ========================= */


.platewise-page .pw-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;

    padding: 120px 80px 60px;
}

/* LEFT */
.platewise-page .pw-left {
    flex: 1;
}

/* RIGHT IMAGE */
.platewise-page .pw-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.platewise-page .pw-right img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
}

/* TEXT STYLES */
.pw-year {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

.pw-desc {
    margin: 20px 0;
    line-height: 1.6;
    color: #444;
}

.pw-meta p {
    margin-bottom: 8px;
    font-size: 14px;
}

.pw-meta span {
    color: #999;
    margin-right: 10px;
}

.pw-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 20px;
    background: #2D5A27;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}

/* ========================= */
/* PROCESS SECTIONS          */
/* ========================= */

.platewise-page .pw-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;

    padding: 80px;
}

/* REVERSE LAYOUT */
.platewise-page .pw-row.reverse {
    flex-direction: row-reverse;
}

/* TEXT */
.pw-text {
    flex: 1;
}

.pw-text h2 {
    margin-bottom: 15px;
}

.pw-text p {
    color: #444;
    line-height: 1.6;
}

/* IMAGE */
.pw-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.pw-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
}

/* CASE STUDY */
.pw-case {
    text-align: center;
    padding: 80px;
}

.pw-case a {
    font-size: 18px;
    text-decoration: none;
    color: #5FAE6E;
}

/* ========================= */
/* RESPONSIVE                */
/* ========================= */

@media (max-width: 900px) {

    .platewise-page .pw-hero,
    .platewise-page .pw-row {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
    }

    .pw-right img,
    .pw-image img {
        max-width: 100%;
    }
}

/************************/
.pw-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.pw-btn {
  padding: 10px 16px;
  background: #5FAE6E;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
}

.pw-btn:hover {
  background: #333;
}

/* Optional secondary style for research link */
.pw-secondary {
  background: transparent;
  color: #5FAE6E;
  border: 1px solid #eff3ef;
}

.pw-secondary:hover {
  background: #5FAE6E;
  color: #fff;
}

/* --- slize theory Case Study Layout (Scoped to the container) --- */

/* Container Spacing */
.case-study-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* Hero Section: Text left, Image right */
.case-study-container .hero-section {
    display: flex;
    align-items: center; /* Centers items vertically */
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 60px;
}

.case-study-container .text-content {
    flex: 1;
}

.case-study-container .image-content {
    flex: 1;
}

.case-study-container .image-content img {
    width: 100%;
    height: auto;
    border-radius: 15px; /* Matches the rounded corners in your screenshot */
}

/* Typography matching PlateWise */
.case-study-container .year {
    color: #999;
    font-size: 14px;
    margin-bottom: 5px;
}

.case-study-container h1 {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.case-study-container .description {
    font-size: 18px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 30px;
}

/* Meta Data Layout */
.case-study-container .meta-data {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.case-study-container .meta-item {
    font-size: 16px;
    line-height: 1.4;
}

/* Button Styling */
.btn-primary {
    display: inline-block;
    background-color:#FF003C; /* Matching your PlateWise Green */
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #FF003C;
    transform: translateY(-2px);
}

/* Divider */
hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 80px 0;
}

/* Mobile Responsive */
@media (max-width: 850px) {
    .case-study-container .hero-section {
        flex-direction: column-reverse; /* Puts image on top for mobile */
        text-align: left;
    }
}
/* Section 2: Visual Identity */
.visual-identity-section, .interaction-flow-section {
    margin-top: 60px;
}

.style-guide {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 30px;
    padding: 25px;
    background: #FAFAFA;
    border-radius: 12px;
}

.color-palette {
    display: flex;
    gap: 15px;
}

.color-swatch {
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 13px;
}

/* Section 3: Motion Grid */
.motion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.motion-card {
    background: #fff;
}

.motion-card img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    margin-bottom: 15px;
}

.motion-card p {
    font-size: 15px;
    color: #333;
}

/* Matching your PlateWise Header Style */
.section-number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-description {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    max-width: 850px;
}