/* ==========================================
   DONNA DE VILLA PORTFOLIO
   STYLE.CSS - PART 2A
========================================== */

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#F8FAFB;
    color:#1f2937;
    line-height:1.7;
}

/* ==========================
   CONTAINER
========================== */

section{
    padding:80px 8%;
}

img{
    max-width:100%;
    display:block;
}

a{
    text-decoration:none;
}

ul{
    list-style:none;
}

/* ==========================
   NAVBAR
========================== */

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:999;
    background:#fff;
    box-shadow:0 5px 20px rgba(0,0,0,.05);
}

.navbar{
    max-width:1300px;
    margin:auto;
    height:80px;

    display:flex;
    align-items:center;
    justify-content:space-between;
}

.logo{
    font-size:30px;
    font-weight:700;
    color:#165E63;
}

.logo span{
    color:#3AA6A0;
}

.nav-links{
    display:flex;
    gap:35px;
}

.nav-links a{

    color:#444;
    font-weight:500;
    transition:.3s;
}

.nav-links a:hover{

    color:#165E63;
}

.resume-btn{

    padding:12px 26px;

    border-radius:30px;

    background:#165E63;

    color:white;

    transition:.3s;
}

.resume-btn:hover{

    background:#0F4548;
}

/* ==========================
   HERO
========================== */

.hero{

    min-height:100vh;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:0;
}

.hero-content{

    flex:1;
}

.hero-content h4{

    color:#3AA6A0;

    font-size:18px;
}

.hero-content h1{

    font-size:60px;

    margin:10px 0;

    color:#1f2937;
}

.hero-content h2{

    color:#165E63;

    font-size:26px;

    margin-bottom:20px;
}

.hero-content p{

    max-width:600px;

    color:#555;

    margin-bottom:35px;
}

/* Buttons */

.hero-buttons{

    display:flex;

    gap:20px;
}

.primary-btn{

    background:#165E63;

    color:white;

    padding:15px 34px;

    border-radius:40px;

    transition:.3s;
}

.primary-btn:hover{

    transform:translateY(-4px);

    box-shadow:0 15px 30px rgba(22,94,99,.3);
}

.secondary-btn{

    border:2px solid #165E63;

    color:#165E63;

    padding:15px 34px;

    border-radius:40px;

    transition:.3s;
}

.secondary-btn:hover{

    background:#165E63;

    color:white;
}

/* Hero Image */

.hero-image{

    flex:1;

    display:flex;

    justify-content:center;

    align-items:center;

}

.hero-image img{

    width:300px;
    height:300px;

    object-fit:cover;

    border-radius:50%;

    padding:8px;

    background:linear-gradient(
        135deg,
        #165E63,
        #3AA6A0,
        #6ED3CF
    );

    box-shadow:
        0 20px 60px rgba(22,94,99,.25);

}

/* ==========================
   SECTION TITLE
========================== */

.section-title{

    text-align:center;

    margin-bottom:60px;
}

.section-title h2{

    font-size:40px;

    color:#165E63;

    margin-bottom:15px;
}

.section-title p{

    max-width:650px;

    margin:auto;

    color:#666;
}

/* ==========================================
   PART 2B
   ABOUT • SKILLS • PROJECTS
==========================================*/

/* ==========================
   ABOUT
========================== */

.about{
    background:#ffffff;
}

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

.about-card{

    background:#fff;

    padding:40px 30px;

    border-radius:22px;

    text-align:center;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

    transition:.35s;
}

.about-card:hover{

    transform:translateY(-10px);

    box-shadow:0 25px 50px rgba(22,94,99,.18);
}

.about-card i{

    font-size:48px;

    color:#165E63;

    margin-bottom:20px;
}

.about-card h3{

    margin-bottom:15px;

    color:#165E63;

    font-size:24px;
}

.about-card p{

    color:#666;

    font-size:15px;
}


/* ==========================
   SKILLS
========================== */

.skills{

    background:#F5F9FA;
}

.skills-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

    gap:20px;
}

.skill{

    background:white;

    padding:22px;

    border-radius:16px;

    text-align:center;

    font-weight:600;

    color:#165E63;

    box-shadow:0 8px 20px rgba(0,0,0,.06);

    transition:.3s;
}

.skill:hover{

    background:#165E63;

    color:white;

    transform:translateY(-6px);
}


/* ==========================
   PROJECTS
========================== */

.projects{

    background:white;
}

.project-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(340px,1fr));

    gap:35px;
    align-items:stretch;
}

.project-card{
    position: relative;
    display:flex;
    flex-direction:column;
    background:white;

    border-radius:22px;

    overflow:hidden;

    box-shadow:0 15px 40px rgba(0,0,0,.08);

    transition:.35s;
    height:100%;
}

.project-card:hover{

    transform:translateY(-12px);

    box-shadow:0 35px 60px rgba(0,0,0,.15);
}

.project-card img{

    width:100%;

    height:240px;

    object-fit:cover;
}

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

.project-content h3{

    color:#165E63;

    margin-bottom:15px;

    font-size:26px;
}

.project-content p{

    color:#666;
    line-height:1.7;
    margin-bottom:20px;
    min-height:95px;
}

.project-content a{

    display:inline-flex;
    align-items:center;
    justify-content:center;
    align-self:flex-start;
    margin-top:auto;
    padding:12px 24px;

    background:#165E63;

    color:white;

    border-radius:30px;
    font-weight:600;
    transition:.3s;
}

.project-content a:hover{

    background:#0F4548;

    transform:translateY(-2px);
}


/* ==========================
   FEATURE TAGS
========================== */

.project-tags{

    display:flex;

    flex-wrap:wrap;

    gap:8px;

    margin-bottom:24px;
}

.project-tags span{

    background:#E7F4F4;

    color:#165E63;

    padding:8px 14px;

    border-radius:50px;

    font-size:13px;

    font-weight:600;
}


/* ==========================
   IMAGE ZOOM
========================== */

.project-card{

    position:relative;
}

.project-card img{

    transition:.4s;
}

.project-card:hover img{

    transform:scale(1.05);
}


/* ==========================
   PREMIUM CARD BORDER
========================== */

.project-card::before{

    content:"";

    position:absolute;

    top:0;

    left:0;

    width:100%;

    height:5px;

    background:linear-gradient(
        90deg,
        #165E63,
        #3AA6A0
    );
}

/* ==========================
   DARK MODE TOGGLE
========================== */

.theme-toggle{

    width:48px;

    height:48px;

    border-radius:50%;

    background:#165E63;

    color:white;

    display:flex;

    align-items:center;

    justify-content:center;

    cursor:pointer;

    transition:.3s;

    font-size:18px;
}

.theme-toggle:hover{

    transform:rotate(180deg);

    background:#0F4548;

}


/* ==========================
   DARK MODE
========================== */

body.dark-mode{

    background:#121212;

    color:white;

}


body.dark-mode header{

    background:#1B1B1B;

}

body.dark-mode .navbar a{

    color:white;

}

body.dark-mode .logo{

    color:#3AA6A0;

}

body.dark-mode .section-title h2{

    color:#59C7C2;

}

body.dark-mode .section-title p{

    color:#d1d1d1;

}

body.dark-mode .hero h1{

    color:white;

}

body.dark-mode .hero h2{

    color:#59C7C2;

}

body.dark-mode .hero p{

    color:#cfcfcf;

}

body.dark-mode .about{

    background:#171717;

}

body.dark-mode .skills{

    background:#1A1A1A;

}

body.dark-mode .projects{

    background:#171717;

}

body.dark-mode .about-card{

    background:#222;

    color:white;

}

body.dark-mode .skill{

    background:#222;

    color:white;

}

body.dark-mode .project-card{

    background:#222;

}

body.dark-mode .project-content p{

    color:#d6d6d6;

}

body.dark-mode footer{

    background:#111;

    color:white;

}

/* ======================================
BACK TO TOP
====================================== */

.back-to-top{

    position:fixed;
    
    right:25px;
    
    bottom:25px;
    
    width:55px;
    
    height:55px;
    
    border:none;
    
    border-radius:50%;
    
    background:#165E63;
    
    color:white;
    
    font-size:24px;
    
    cursor:pointer;
    
    opacity:0;
    
    visibility:hidden;
    
    transition:.3s;
    
    box-shadow:0 10px 25px rgba(0,0,0,.2);
    
    z-index:999;
    }
    
    .back-to-top.show{
    
    opacity:1;
    
    visibility:visible;
    }
    
    .back-to-top:hover{
    
    transform:translateY(-5px);
    
    }
    
    
    /* ======================================
    SCROLL PROGRESS BAR
    ====================================== */
    
    .scroll-progress{
    
    position:fixed;
    
    top:0;
    
    left:0;
    
    height:5px;
    
    width:0;
    
    background:#3AA6A0;
    
    z-index:9999;
    
    transition:.2s;
    
    }

/* =====================================
BEFORE AFTER SLIDER
===================================== */

.before-after-section{

    padding:100px 8%;
    
    background:white;
    
    }
    
    .before-after-section h2{
    
    text-align:center;
    
    margin-bottom:50px;
    
    font-size:42px;
    
    color:#165E63;
    
    }
    
    .image-comparison{
    
    position:relative;
    
    max-width:1100px;
    
    height:620px;
    
    margin:auto;
    
    overflow:hidden;
    
    border-radius:25px;
    
    box-shadow:0 20px 60px rgba(0,0,0,.15);
    
    user-select:none;
    
    cursor:ew-resize;
    
    }
    
    .image-comparison img{
    
    position:absolute;
    
    width:100%;
    
    height:100%;
    
    object-fit:cover;
    
    pointer-events:none;
    
    }
    
    .after-wrapper{
    
    position:absolute;
    
    top:0;
    
    left:0;
    
    width:50%;
    
    height:100%;
    
    overflow:hidden;
    
    }
    
    .after-img{
    
    width:100%;
    
    height:100%;
    
    }
    
    .slider-line{
    
    position:absolute;
    
    left:50%;
    
    top:0;
    
    width:3px;
    
    height:100%;
    
    background:white;
    
    z-index:20;
    
    }
    
    .slider-handle{
    
    position:absolute;
    
    left:50%;
    
    top:50%;
    
    transform:translate(-50%,-50%);
    
    width:70px;
    
    height:70px;
    
    border-radius:50%;
    
    background:#165E63;
    
    color:white;
    
    display:flex;
    
    justify-content:center;
    
    align-items:center;
    
    font-size:30px;
    
    font-weight:bold;
    
    z-index:25;
    
    cursor:grab;
    
    box-shadow:0 15px 40px rgba(0,0,0,.25);
    
    }
    
    .slider-handle:active{
    
    cursor:grabbing;
    
    }

    /* ======================================
PARALLAX
====================================== */

.parallax{

    transition:
    transform .18s linear;
    
    will-change:transform;
    
    }

    /* ======================================
   TYPING ANIMATION
====================================== */

#typing-text{
    color:#165E63;
    font-weight:700;
}

.cursor{
    display:inline-block;
    width:3px;
    height:1.2em;
    background:#165E63;
    margin-left:4px;
    animation:blink .8s infinite;
    vertical-align:middle;
}

@keyframes blink{

    0%,100%{
        opacity:1;
    }

    50%{
        opacity:0;
    }

}

.project-placeholder{
    width:100%;
    height:240px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    background:#165E63;
    color:#fff;
    border-radius:20px;
}

.project-placeholder h3{
    font-size:28px;
    margin-bottom:10px;
}

.project-placeholder p{
    opacity:.9;
}

/* ==========================
CONTACT FORM
========================== */

.contact{

    background:#F7F9FA;

}

.contact-form{

    max-width:700px;

    margin:40px auto 0;

    display:flex;

    flex-direction:column;

    gap:20px;

}

.contact-form input,
.contact-form textarea{

    padding:18px;

    border:1px solid #ddd;

    border-radius:12px;

    font-size:16px;

    font-family:Poppins,sans-serif;

    outline:none;

    transition:.3s;

}

.contact-form input:focus,
.contact-form textarea:focus{

    border-color:#165E63;

    box-shadow:0 0 0 3px rgba(22,94,99,.15);

}

.contact-form textarea{

    resize:vertical;

}

.contact-form button{

    background:#165E63;

    color:white;

    border:none;

    padding:18px;

    border-radius:12px;

    cursor:pointer;

    font-size:17px;

    transition:.3s;

}

.contact-form button:hover{

    background:#0F4548;

}

.success-message{

    margin-top:20px;

    color:#165E63;

    font-weight:600;

    text-align:center;

}

/* ==========================
SOCIAL LINKS
========================== */

.social-links{

    display:flex;

    justify-content:center;

    gap:20px;

    margin-top:40px;

}

.social-links a{

    width:55px;

    height:55px;

    border-radius:50%;

    background:#165E63;

    color:white;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:22px;

    transition:.3s;

    box-shadow:0 10px 20px rgba(0,0,0,.12);

}

.social-links a:hover{

    background:#0F4548;

    transform:translateY(-6px) scale(1.08);

}


/* ==========================
FOOTER
========================== */

footer{

    background:#165E63;

    color:white;

    padding:15px 20px;

    text-align:center;

}

.footer-content{

    max-width:1200px;

    margin:auto;

}

.footer-content p{

    margin:6px 0;

}

.footer-subtitle{

    font-size:14px;

    opacity:.8;

}

/* =========================
   FEATURED CASE STUDY
========================= */

.featured-case-study {
    padding: 80px 8%;
}

.featured-case-card {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.featured-case-image img {
    width: 100%;
    display: block;
    border-radius: 15px;
}

.featured-case-content {
    padding: 10px;
}

.case-study-label {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
}

.featured-case-content h3 {
    margin-bottom: 15px;
    font-size: 28px;
}

.featured-case-content p {
    line-height: 1.7;
    margin-bottom: 20px;
}

.case-study-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 22px;
    border-radius: 25px;
    text-decoration: none;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .featured-case-study {
        padding: 60px 6%;
    }

    .featured-case-card {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 20px;
    }

    .featured-case-content h3 {
        font-size: 24px;
    }


}

/* ==========================================
   CASE STUDY PAGE
   SPA E-VOUCHER AUTOMATION
========================================== */

.case-page {
    padding-top: 80px;
}

.case-container {
    max-width: 1100px;
    margin: auto;
}


/* ==========================
   CASE STUDY HERO
========================== */

.case-hero {
    padding: 100px 8% 80px;
    background: #F8FAFB;
}

.case-back {
    display: inline-block;
    color: #165E63;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    transition: .3s;
}

.case-back:hover {
    color: #0F4548;
    transform: translateX(-4px);
}

.case-label {
    display: inline-block;
    padding: 7px 15px;
    margin-bottom: 18px;

    border-radius: 30px;

    background: #E7F4F4;
    color: #165E63;

    font-size: 13px;
    font-weight: 600;
}

.case-hero h1 {
    max-width: 850px;

    color: #1f2937;

    font-size: clamp(42px, 6vw, 65px);
    line-height: 1.1;

    margin-bottom: 22px;
}

.case-hero h1 span {
    display: block;
    color: #165E63;
}

.case-intro {
    max-width: 800px;

    color: #666;

    font-size: 18px;

    margin-bottom: 30px;
}


/* ==========================
   CASE TAGS
========================== */

.case-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 40px;
}

.case-tags span {
    padding: 7px 13px;

    border-radius: 30px;

    background: #E7F4F4;
    color: #165E63;

    font-size: 13px;
    font-weight: 600;
}


/* ==========================
   CASE META
========================== */

.case-meta {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.case-meta-card {
    padding: 24px;

    background: #fff;

    border-radius: 16px;

    border-top: 4px solid #165E63;

    box-shadow: 0 8px 25px rgba(0, 0, 0, .06);
}

.case-meta-card small {
    display: block;

    color: #777;

    font-size: 12px;

    margin-bottom: 5px;
}

.case-meta-card strong {
    color: #165E63;

    font-size: 15px;
}


/* ==========================
   CASE SECTION
========================== */

.case-section {
    padding: 90px 8%;
    background: #fff;
}

.case-section.alt {
    background: #F5F9FA;
}


/* ==========================
   CASE HEADINGS
========================== */

.case-heading {
    text-align: center;
    margin-bottom: 45px;
}

.case-heading .number {
    display: block;

    color: #3AA6A0;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .1em;

    margin-bottom: 8px;
}

.case-heading h2 {
    color: #165E63;

    font-size: 38px;

    line-height: 1.2;

    margin-bottom: 12px;
}

.case-heading p {
    max-width: 700px;

    margin: auto;

    color: #666;
}


/* ==========================
   OVERVIEW
========================== */

.overview-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.overview-card {
    padding: 28px;

    background: #fff;

    border: 1px solid #edf0f1;

    border-radius: 18px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, .05);

    transition: .3s;
}

.overview-card:hover {
    transform: translateY(-6px);

    box-shadow: 0 15px 35px rgba(22, 94, 99, .12);
}

.overview-icon {
    display: inline-flex;

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

    min-width: 50px;
    height: 40px;

    padding: 0 10px;

    margin-bottom: 18px;

    border-radius: 20px;

    background: #E7F4F4;
    color: #165E63;

    font-size: 12px;
    font-weight: 700;
}

.overview-card h3 {
    color: #165E63;

    font-size: 19px;

    margin-bottom: 10px;
}

.overview-card p {
    color: #666;

    font-size: 14px;
}


/* ==========================
   TWO COLUMN
========================== */

.two-col {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}

.case-card {
    padding: 32px;

    background: #fff;

    border: 1px solid #edf0f1;

    border-radius: 18px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, .06);
}

.case-card .icon {
    width: 45px;
    height: 45px;

    display: flex;

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

    margin-bottom: 18px;

    border-radius: 50%;

    background: #E7F4F4;
    color: #165E63;

    font-size: 13px;
    font-weight: 700;
}

.case-card h3 {
    color: #165E63;

    font-size: 22px;

    margin-bottom: 12px;
}

.case-card p {
    color: #666;

    font-size: 15px;
}


/* ==========================
   IMPLEMENTATION
========================== */

.implementation {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 40px;
}

.steps {
    list-style: none;
}

.steps li {
    padding: 15px 0 15px 35px;

    border-bottom: 1px solid #ddd;

    position: relative;

    color: #555;
}

.steps li::before {
    content: "✓";

    position: absolute;

    left: 0;
    top: 15px;

    width: 23px;
    height: 23px;

    display: flex;

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

    border-radius: 50%;

    background: #E7F4F4;
    color: #165E63;

    font-size: 12px;
    font-weight: 700;
}

.tech-box {
    padding: 30px;

    background: #fff;

    border-radius: 18px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, .06);
}

.tech-box h3 {
    color: #165E63;

    margin-bottom: 18px;
}

.tech-list {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;
}

.tech-list span {
    padding: 8px 13px;

    background: #E7F4F4;
    color: #165E63;

    border-radius: 30px;

    font-size: 13px;
    font-weight: 600;
}


/* ==========================
   AUTOMATION FLOW
========================== */

.flow {
    display: flex;

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

    gap: 12px;

    flex-wrap: wrap;
}

.flow-item {
    min-width: 150px;

    padding: 20px;

    text-align: center;

    background: #fff;

    border-radius: 16px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);

    transition: .3s;
}

.flow-item:hover {
    transform: translateY(-5px);
}

.flow-item strong {
    display: block;

    color: #165E63;

    font-size: 14px;
}

.flow-item small {
    color: #777;

    font-size: 12px;
}

.flow-arrow {
    color: #3AA6A0;

    font-size: 22px;

    font-weight: 700;
}


/* ==========================
   ARCHITECTURE
========================== */

.architecture {
    display: flex;

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

    gap: 20px;
}

.architecture-card {
    flex: 1;

    min-height: 190px;

    padding: 30px;

    text-align: center;

    background: #fff;

    border-radius: 18px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, .06);
}

.architecture-number {
    width: 40px;
    height: 40px;

    display: flex;

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

    margin: 0 auto 15px;

    border-radius: 50%;

    background: #E7F4F4;
    color: #165E63;

    font-size: 12px;
    font-weight: 700;
}

.architecture-card h3 {
    color: #165E63;

    margin-bottom: 10px;
}

.architecture-card p {
    color: #666;

    font-size: 14px;
}

.architecture-line {
    color: #3AA6A0;

    font-size: 25px;

    font-weight: 700;
}


/* ==========================
   OUTCOME
========================== */

.outcome {
    max-width: 900px;

    margin: auto;

    padding: 45px;

    border-radius: 22px;

    background: linear-gradient(
        135deg,
        #165E63,
        #3AA6A0
    );

    color: #fff;
}

.outcome .number {
    color: #D9FFFF;
}

.outcome h2 {
    margin: 10px 0 15px;

    color: #fff;

    font-size: 35px;
}

.outcome p {
    max-width: 750px;

    color: rgba(255, 255, 255, .9);

    margin-bottom: 12px;
}


/* ==========================
   TAKEAWAYS
========================== */

.takeaways {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.takeaway {
    padding: 25px;

    background: #fff;

    border-radius: 16px;

    border-bottom: 4px solid #3AA6A0;

    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
}

.takeaway h3 {
    color: #165E63;

    font-size: 17px;

    margin-bottom: 8px;
}

.takeaway p {
    color: #666;

    font-size: 13px;
}


/* ==========================
   CASE STUDY CTA
========================== */

.case-cta {
    padding: 80px 8%;

    text-align: center;

    background: #fff;
}

.case-cta h2 {
    color: #165E63;

    font-size: 36px;

    margin-bottom: 10px;
}

.case-cta p {
    color: #666;

    margin-bottom: 25px;
}


/* ==========================
   CASE STUDY DARK MODE
========================== */

body.dark-mode .case-hero {
    background: #171717;
}

body.dark-mode .case-section {
    background: #171717;
}

body.dark-mode .case-section.alt {
    background: #1d1d1d;
}

body.dark-mode .case-hero h1 {
    color: #fff;
}

body.dark-mode .case-intro,
body.dark-mode .case-heading p,
body.dark-mode .case-card p,
body.dark-mode .overview-card p,
body.dark-mode .steps li,
body.dark-mode .architecture-card p,
body.dark-mode .case-cta p {
    color: #ccc;
}

body.dark-mode .case-meta-card,
body.dark-mode .case-card,
body.dark-mode .overview-card,
body.dark-mode .tech-box,
body.dark-mode .flow-item,
body.dark-mode .architecture-card,
body.dark-mode .takeaway {
    background: #222;
    border-color: #333;
}

body.dark-mode .case-heading h2,
body.dark-mode .case-card h3,
body.dark-mode .overview-card h3,
body.dark-mode .tech-box h3,
body.dark-mode .architecture-card h3,
body.dark-mode .takeaway h3,
body.dark-mode .case-cta h2 {
    color: #59C7C2;
}


/* ==========================
   CASE STUDY MOBILE
========================== */

@media (max-width: 1000px) {

    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .takeaways {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 900px) {

    .case-meta,
    .implementation,
    .two-col {
        grid-template-columns: 1fr;
    }

    .architecture {
        flex-direction: column;
    }

    .architecture-card {
        width: 100%;
    }

    .architecture-line {
        transform: rotate(90deg);
    }

}


@media (max-width: 700px) {

    .case-hero,
    .case-section,
    .case-cta {
        padding-left: 6%;
        padding-right: 6%;
    }

    .case-hero {
        padding-top: 90px;
    }

    .case-hero h1 {
        font-size: 42px;
    }

    .case-heading h2 {
        font-size: 30px;
    }

    .overview-grid,
    .takeaways {
        grid-template-columns: 1fr;
    }

    .flow {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .flow-item {
        width: 100%;
    }

    .outcome {
        padding: 30px 25px;
    }

}

/* ================= SHOPIFY STORES ================= */

.stores {
    padding: 100px 8%;
    background: #f8fafb;
}

.stores .section-title {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.stores .section-title h2 {
    margin-bottom: 20px;
}

.stores .section-title p {
    line-height: 1.7;
}


/* GRID */

.stores-grid {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 35px;
}


/* CARD */

.store-card {
    background: #ffffff;

    border-radius: 20px;

    overflow: hidden;

    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;

    display: flex;
    flex-direction: column;
}

.store-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.12);
}


/* IMAGE */

.store-image {
    width: 100%;
    height: 210px;

    overflow: hidden;

    background: #f1f4f5;
}

.store-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.5s ease;
}

.store-card:hover .store-image img {
    transform: scale(1.04);
}


/* CONTENT */

.store-content {
    padding: 25px;

    display: flex;
    flex-direction: column;

    flex: 1;
}

.store-content h3 {
    font-size: 22px;

    margin-bottom: 12px;

    color: #1f2937;
}

.store-content p {
    font-size: 15px;

    line-height: 1.7;

    color: #4b5563;

    margin-bottom: 20px;
}


/* TAGS */

.store-content .project-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 25px;
}

.store-content .project-tags span {
    background: #e8f5f5;

    color: #17666b;

    padding: 8px 14px;

    border-radius: 30px;

    font-size: 13px;

    font-weight: 600;
}


/* FOOTER */

.store-footer {
    margin-top: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.store-footer a:first-child {
    color: #17666b;

    font-weight: 600;

    text-decoration: none;

    transition: 0.3s ease;
}

.store-footer a:first-child:hover {
    color: #0f4f54;
}


/* EXTERNAL LINK */

.external-icon {
    width: 38px;
    height: 38px;

    display: flex;

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

    border: 1px solid #17666b;

    border-radius: 10px;

    color: #17666b;

    text-decoration: none;

    transition: 0.3s ease;
}

.external-icon:hover {
    background: #17666b;

    color: #ffffff;
}


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

@media (max-width: 1000px) {

    .stores-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 650px) {

    .stores {
        padding: 70px 6%;
    }

    .stores-grid {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .store-image {
        height: 220px;
    }

}