/* ========================================================
   MATIAS CLONE - DARK THEME + YELLOW ACCENT
   ======================================================== */

/* --- Project Details Page --- */
.project-hero {
    padding-top: 150px;
    padding-bottom: 50px;
}

.project-hero h1 {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 700;
}

.project-hero h1 .highlight {
    color: var(--primary-color);
}

.project-cover {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 60px;
}

.project-cover img {
    width: 100%;
    height: auto;
    display: block;
}

.project-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 80px;
    padding: 20px 0;
}

.info-item-box {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.info-item-box:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.info-item-box h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.info-item-box p {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
    margin: 0;
}


.project-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px auto;
}

.project-description h3 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    white-space: pre-wrap;
    text-align: left;
    /* Better readability for text blocks */
    overflow-wrap: break-word;
    /* Prevents overflow with long words */
    word-wrap: break-word;
}

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

.gallery-item img {
    width: 100%;
    border-radius: 12px;
    display: block;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gallery-item:hover img {
    transform: scale(1.02);
}

@media (max-width: 992px) {
    .project-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .project-info-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .project-hero h1 {
        font-size: 2.5rem;
    }
}

:root {
    --primary-color: #ffb400;
    --background-color: #111111;
    --sidebar-color: #222222;
    --text-color: #ffffff;
    --text-light: #eeeeee;
    --gray-text: #bdbdbd;
    --transition: all 0.3s ease-in-out;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    transition: var(--transition);
    color: inherit;
}

p {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* PRELOADER */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #111;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    border: 4px solid #333;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ========================================================
   HEADER / SIDEBAR
   ======================================================== */
/* ========================================================
   HEADER
   ======================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background-color: #000000;
    padding: 15px 30px;
    z-index: 1000;
    border-bottom: 1px solid #2b2b2b;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Green icon circle for logo if needed, or just text */
/* Logo icon with Golden Gradient */
.logo a::before {
    content: '';
    display: inline-block;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #e6a200 100%);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='black'%3E%3Cpath d='M12 2l9 4-9 4-9-4 9-4zm0 9l9 4-9 4-9-4 9-4z'/%3E%3C/svg%3E"), linear-gradient(135deg, var(--primary-color) 0%, #e6a200 100%);
    /* Simple placeholder icon */
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
}

.logo a h2 {
    font-size: 24px;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
    letter-spacing: 1px;
}

.nav-menu {
    margin: 0;
}

.nav-list {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 5px 0;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    font-family: var(--font-heading);
    position: relative;
    text-transform: uppercase;
}

.nav-link i {
    display: none;
    /* Hide icons in top nav */
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, #e6a200 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Portfolio Filter */
.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    /* Increased gap for better touch targets */
    margin-bottom: 50px;
    /* Increased bottom margin */
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    /* Slight background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #aeaeae;
    /* Softer default color */
    padding: 10px 24px;
    /* Larger click area */
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smooth transition */
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
    /* Lift effect */
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(230, 162, 0, 0.4);
    /* Glow effect */
    transform: translateY(-2px);
}

/* Header Right: Button + Toggle */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lets-talk-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #e6a200 100%);
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    margin: 0;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 180, 0, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}

.lets-talk-btn:hover {
    background: linear-gradient(135deg, #ffc840 0%, #ffaa00 100%);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 180, 0, 0.5);
}

.lets-talk-btn i {
    margin-left: 5px;
}

/* Nav Toggle (Hamburger) */
.nav-toggle {
    display: none;
    /* Hidden on desktop */
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1002;
    background: #fff;
    /* White background as per image 2? Image 2 shows white box with black lines */
    border-radius: 5px;
    justify-content: center;
    align-items: center;
}

/* If image 2 shows white background for hamburger: */
.nav-toggle {
    display: none;
    background-color: #fff;
    width: 48px;
    height: 48px;
    /* Bigger touch target */
    border-radius: 8px;
    padding: 12px;
    flex-direction: column;
    justify-content: space-between;
    border: none;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #000;
    /* Black lines on white bg */
    border-radius: 2px;
    transition: var(--transition);
}


/* ========================================================
   MAIN CONTENT
   ======================================================== */
.main-content {
    margin-left: 0;
    padding-top: 0;
    /* Offset handled in sections */
    min-height: 100vh;
}

/* ========================================================
   HOME SECTION (HERO)
   ======================================================== */
.home-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--background-color);
    padding: 0 120px;
    /* Increased to clear sidebars */
    overflow: hidden;
    /* UPDATE IMAGE: If you want a background image, uncomment and set path below */
    /* background-image: url('assets/images/hero-bg.jpg'); */
    background-size: cover;
    background-position: center;
}

/* Specific styles for Advocacy Product Page */
.home-section-advocacia {
    min-height: auto;
    padding-top: 150px;
    padding-bottom: 100px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/images/bg_header.jpg');
}

/* Vertical Sidebars */
.vertical-sidebar {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 80vh;
    width: 60px;
    z-index: 10;
    opacity: 0;
    animation: fadeInSidebar 1s ease-out 0.5s forwards;
}

.left-sidebar {
    left: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.right-sidebar {
    right: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes fadeInSidebar {
    from {
        opacity: 0;
        transform: translateY(-40%);
    }

    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

.sidebar-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    color: #888;
    font-size: 12px;
    letter-spacing: 2px;
    display: flex;
    gap: 40px;
    align-items: center;
}

.sidebar-text span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-dots {
    color: #444;
    font-size: 20px;
    margin-top: 20px;
}

.social-icons-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: auto;
}

.social-icons-vertical a {
    color: #888;
    font-size: 16px;
    transition: var(--transition);
}

.social-icons-vertical a:hover {
    color: var(--primary-color);
}


/* Hero Content */
.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

/* Hero Text */
.hero-top-text p {
    color: #fff;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    padding-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-main-title h1 {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero-main-title .highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, #e6a200 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    /* Required for background-clip on some browsers */
}

/* Work Process Button */
.hero-bottom-actions {
    margin-top: 50px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.work-process-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.curly-arrow {
    position: absolute;
    left: -50px;
    top: 0;
    width: 50px;
    height: 50px;
    opacity: 0.7;
}

.play-btn-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    position: relative;
    transition: var(--transition);
}

.play-btn-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.play-btn-circle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.play-btn-circle:hover::before {
    background-color: rgba(255, 180, 0, 0.2);
}

.process-label {
    font-size: 14px;
    line-height: 1.3;
    color: #fff;
    font-weight: 500;
}

/* Hero Image & Background */
.hero-image-col {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100vh;
    /* Allow image to be tall */
    padding-top: 100px;
    opacity: 0;
    animation: fadeInRight 1s ease-out 0.4s forwards;
}

.hero-bg-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    /* Larger to clear edges during rotation */
    height: 1000px;
    /* Dark radial gradient center */
    background: radial-gradient(circle, rgba(30, 30, 30, 1) 0%, rgba(10, 10, 10, 1) 60%, rgba(0, 0, 0, 1) 100%);
    opacity: 0.4;
    z-index: -1;
    border-radius: 50%;
    /* Ribbed / Tunnel spiral effect using repeating conic or radial */
    background-image: repeating-radial-gradient(circle at center,
            #333 0,
            #111 2px,
            #111 20px,
            #333 22px);
    mask-image: radial-gradient(circle, black 30%, transparent 70%);
    animation: rotateTunnel 60s linear infinite;
}

@keyframes rotateTunnel {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.hero-img {
    max-width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    /* Ensure full image is seen */
    filter: grayscale(10%);
    /* Slight visual style */
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* BUTTONS GENERIC */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #e6a200 100%);
    color: #fff;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 180, 0, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffc840 0%, #ffaa00 100%);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 180, 0, 0.5);
    border: none;
}


.container {
    padding: 0 15px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 576px) {
    .container {
        padding: 0 30px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* SECTIONS GENERAL */
.section {
    padding: 80px 0;
}

.section-title {
    position: relative;
    margin-bottom: 60px;
    text-align: center;
}

.section-title h2 {
    font-size: 50px;
    text-transform: uppercase;
    font-weight: 900;
    margin: 0;
}

.section-title h2 span {
    color: var(--primary-color);
}

.title-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.04);
    z-index: -1;
    letter-spacing: 10px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ========================================================
   ABOUT SECTION
   ======================================================== */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.col-6 {
    flex: 1;
    min-width: 300px;
}

.col-4 {
    flex: 1;
    min-width: 300px;
    /* On desktop this will likely need flex-basis: 33% but flex: 1 works if 3 items */
}

.about-text-box {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    height: 100%;
    border: 1px solid #333;
}

.about-text-box p {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.8;
}

.info-list {
    display: flex;
    gap: 50px;
    margin-bottom: 30px;
}

.info-list li {
    margin-bottom: 15px;
    color: #fff;
}

.info-list li span {
    color: var(--gray-text);
    margin-right: 5px;
}

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

.stat-box {
    border: 1px solid #333;
    padding: 25px;
    border-radius: 10px;
    transition: var(--transition);
}

.stat-box:hover {
    border-color: var(--primary-color);
}

.stat-box h1 {
    font-size: 45px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-box p {
    padding-left: 40px;
    position: relative;
    text-transform: uppercase;
    font-size: 14px;
    margin: 0;
}

.stat-box p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 30px;
    height: 1px;
    background: #555;
}

/* ========================================================
   SERVICES
   ======================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background: #222;
    padding: 30px;
    border-radius: 10px;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.service-item:hover {
    border-bottom-color: var(--primary-color);
    background: #252525;
}

.service-item i {
    font-size: 45px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.service-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* ========================================================
   PORTFOLIO
   ======================================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.portfolio-img img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    color: var(--primary-color);
    transform: translateY(-20px);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay h3 {
    transform: translateY(0);
}

/* ========================================================
   CONTACT
   ======================================================== */
.contact-wrapper {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form-wrapper {
    flex: 2;
    min-width: 300px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 40px;
    color: var(--primary-color);
    margin-right: 20px;
}

.info-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #aaa;
}

.info-item p {
    font-size: 16px;
    color: #fff;
    font-weight: 600;
}

.input-group {
    display: flex;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 25px;
    border-radius: 30px;
    background: #252525;
    border: 1px solid #252525;
    color: #fff;
    margin-bottom: 25px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
}

.contact-form textarea {
    border-radius: 20px;
    height: 150px;
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Service CTA */
.service-cta {
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid rgba(255, 180, 0, 0.2);
    padding-bottom: 2px;
}

.service-cta i {
    margin-left: 5px;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.service-cta:hover {
    color: #fff;
    border-bottom-color: var(--primary-color);
}

.service-cta:hover i {
    transform: translateX(5px);
}

/* ========================================================
   RESPONSIVE
   ======================================================== */
/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 991px) {
    .header {
        padding: 10px 20px;
        justify-content: space-between;
    }

    .header-inner {
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #000;
        padding: 30px 0;
        border-top: 1px solid #222;
        border-bottom: 1px solid #222;
        display: none;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.9);
        z-index: 1001;
        height: 100vh;
        /* Full screen menu */
        justify-content: center;
    }

    .header.open .nav-menu {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        width: 100%;
        font-size: 18px;
        /* Larger font for mobile menu */
    }

    .nav-link {
        padding: 15px 0;
        /* Larger touch target */
    }

    .logo a h2 {
        font-size: 22px;
    }

    .lets-talk-btn {
        padding: 10px 15px;
        font-size: 12px;
        margin-right: 0;
    }

    .header-right {
        gap: 15px;
    }

    /* HOME SECTION RESPONSIVE */
    .home-section {
        padding: 0 30px;
        /* Better lateral spacing on mobile */
        flex-direction: column;
        justify-content: flex-end;
        height: auto;
        min-height: 100vh;
        padding-top: 120px;
        /* Give space for header */
        padding-bottom: 50px;
    }

    .vertical-sidebar {
        display: none;
        /* Hide sidebars on mobile */
    }

    .row {
        flex-direction: column-reverse;
        /* Text on top or bottom? Image implies text on bottom on mobile usually, or text top. Let's keep typical structure: Text then Image, or stack properly. But standard BS row is flex. */
        /* Actually image 2 shows text on top left */
        flex-direction: column;
    }

    .col-lg-6 {
        max-width: 100%;
        flex: 0 0 100%;
        text-align: center;
    }

    .hero-text-col {
        margin-bottom: 50px;
        padding-top: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Center align text on mobile */
    }

    .hero-top-text p {
        text-align: center;
    }

    .hero-main-title h1 {
        font-size: clamp(36px, 10vw, 45px);
        /* Responsive font size */
    }

    .hero-image-col {
        height: auto;
        padding-top: 0;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    .hero-img {
        max-height: 55vh;
        width: auto;
        max-width: 100%;
        display: block;
    }

    .work-process-wrapper {
        justify-content: center;
    }

    /* Other sections */
    .section-title h2 {
        font-size: 35px;
    }

    .section-title .title-bg {
        font-size: 50px;
    }

    .info-list,
    .stats-grid,
    .contact-wrapper,
    .services-grid,
    .portfolio-grid {
        display: flex;
        /* Ensure these are flex or block appropriately */
        flex-direction: column;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .header {
        padding: 10px 15px;
    }

    .logo a h2 {
        font-size: 20px;
    }

    .hero-main-title h1 {
        font-size: 36px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 12px;
        margin-right: 0;
    }

    .header .lets-talk-btn {
        padding: 8px 16px;
        font-size: 11px;
        border-radius: 30px;
        min-height: 36px;
        gap: 5px;
    }

    .header .lets-talk-btn i {
        font-size: 12px;
    }

    .input-group {
        flex-direction: column;
        gap: 0;
    }
}

/* ========================================================
   SCROLL ANIMATIONS
   ======================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================================
   LOGO CAROUSEL
   ======================================================== */
.carousel-section {
    overflow: hidden;
    padding: 20px 0;
    background: #000;
    white-space: nowrap;
    position: relative;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
}

.logos-slide {
    display: inline-block;
    animation: slide 35s infinite linear;
}

.logos-slide img {
    height: 40px;
    margin: 0 40px;
    opacity: 0.5;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.logos-slide img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

@keyframes slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ========================================================
   PROJECT DETAILS PAGE
   ======================================================== */
.project-hero {
    padding-top: 150px;
    padding-bottom: 50px;
    text-align: center;
}

.project-hero h1 {
    font-size: 60px;
    margin-bottom: 20px;
    line-height: 1.1;
}

.project-cover-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    margin-bottom: 60px;
    display: block;
}

/* Info Grid (4 columns) */
.project-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    padding: 40px 0;
    margin-bottom: 60px;
}

.info-item-box h4 {
    font-size: 14px;
    color: var(--gray-text);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item-box p {
    font-size: 18px;
    color: #fff;
    font-weight: 600;
    margin: 0;
}

/* Description & Content */
.project-description {
    max-width: 800px;
    margin: 0 auto 80px auto;
}

.project-description h3 {
    font-size: 32px;
    margin-bottom: 30px;
}

.project-description p {
    font-size: 16px;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 20px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Gallery */
.project-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 80px;
}

.project-gallery img {
    width: 100%;
    border-radius: 10px;
    transition: var(--transition);
}

.project-gallery img:hover {
    transform: scale(1.02);
}

/* CTA Section (Custom for Project Page) */
.cta-project-section {
    text-align: center;
    padding: 100px 0;
    background-color: #111;
    /* Dark background */
}

.cta-project-section h2 {
    font-size: 50px;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #fff;
}

.cta-project-section p {
    font-size: 40px;
    color: #999;
    font-weight: 300;
    margin-bottom: 50px;
}

.btn-cta {
    background-color: var(--primary-color);
    color: #000;
    padding: 20px 60px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.btn-cta:hover {
    background-color: #fff;
    transform: translateY(-5px);
}

.btn-cta-icon-circle {
    background: #000;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Project Page */
@media (max-width: 768px) {
    .project-info-grid {
        grid-template-columns: 1fr 1fr;
    }

    .project-hero h1 {
        font-size: 40px;
    }

    .cta-project-section h2 {
        font-size: 32px;
    }

    .cta-project-section p {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .project-info-grid {
        grid-template-columns: 1fr;
    }

    .project-gallery {
        grid-template-columns: 1fr;
    }
}

/* ========================================================
   PROMPTS PAGE (Master-Detail Layout)
   ======================================================== */
.prompts-hero {
    padding-top: 150px;
    padding-bottom: 50px;
}

.prompts-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    min-height: 60vh;
}

/* SIDEBAR (Left) */
.prompts-sidebar {
    width: 350px;
    flex-shrink: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 120px;
    /* Below header */
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.sidebar-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
}

.sidebar-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.s-filter-btn {
    background: transparent;
    border: 1px solid #444;
    color: #888;
    font-size: 10px;
    /* Requested smaller */
    padding: 10px 16px;
    /* Larger touch area */
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.s-filter-btn:hover {
    background: #333;
    color: #fff;
    border-color: #666;
}

.s-filter-btn.active {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    font-weight: 700;
    box-shadow: none;
}

/* Sidebar List Item Styling */
/* Duplicate prompt-list-btn styles removed. See definition below around line 1788 */


/* --- Portfolio Grid (Restored) --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.portfolio-img {
    position: relative;
    width: 100%;
    height: 300px;
    /* Fixed height for consistency */
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-overlay h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.portfolio-overlay p {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* New Area Filters */
.area-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    align-items: center;
}

.area-filter-btn {
    background: transparent;
    border: 1px solid #333;
    color: #888;
    padding: 6px 14px;
    border-radius: 20px;
    /* Pill shape */
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.area-filter-btn:hover {
    .area-filter-btn:hover {
        background: #333;
        border-color: #555;
        color: #ddd;
    }

    .area-filter-btn.active {
        background: var(--primary-color);
        color: #000;
        border-color: var(--primary-color);
        font-weight: 600;
    }

    background: #333;
    color: #fff;
}

.s-filter-btn.active {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

.sidebar-list-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.prompt-list-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 10px 12px;
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
    margin-bottom: 2px;
    background: rgba(255, 255, 255, 0.02);
}

.prompt-list-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.prompt-list-btn.active {
    background: rgba(255, 180, 0, 0.1);
    border-left-color: var(--primary-color);
    color: #fff;
}

.list-cat {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2px;
    opacity: 0.8;
}

.list-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    line-height: 1.2;
}

/* VIEWER (Right) */
.prompts-viewer {
    flex-grow: 1;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 40px;
    min-height: 500px;
}

.prompt-detail-view {
    display: none;
    animation: fadeIn 0.3s ease;
}

.prompt-detail-view.active {
    display: block;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.detail-title h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #fff;
}

.detail-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-feed {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.badge-stories {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
}

.badge-reels {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.prompt-objective {
    background: rgba(255, 180, 0, 0.08);
    border: 1px solid rgba(255, 180, 0, 0.2);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.prompt-objective i {
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 2px;
}

.prompt-objective strong {
    color: var(--primary-color);
}

.prompt-editable-area {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 25px;
    color: #e0e0e0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    line-height: 1.8;
    min-height: 300px;
    outline: none;
    transition: var(--transition);
}

.prompt-editable-area:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(255, 180, 0, 0.1);
}

/* Responsive */
/* Responsive */
@media (max-width: 991px) {
    .prompts-layout {
        flex-direction: column;
    }

    .prompts-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 20px;
        min-height: auto;
        border-bottom: 1px solid #333;
        /* Separator */
        padding-bottom: 20px;
    }

    /* Hide the list of titles on mobile, we will show full cards in viewer */
    .sidebar-list-container {
        display: none;
    }

    .prompts-viewer {
        padding: 0;
        min-height: auto;
        border: none;
        background: transparent;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }

    .prompt-detail-view {
        margin-bottom: 20px;
        background: #1a1a1a;
        border: 1px solid #333;
        border-radius: 12px;
        padding: 20px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .prompt-editable-area {
        min-height: 120px;
        padding: 15px;
        background: #111;
        width: 100%;
        box-sizing: border-box;
    }

    .detail-title h2 {
        font-size: 20px;
    }

    .detail-header {
        flex-wrap: wrap;
    }

    .sidebar-filters {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
        min-height: auto;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary-color);
    color: #000;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Enhanced Prompt Filter Buttons */
.prompt-filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #aeaeae;
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.prompt-filter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.prompt-filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, #e6a200 100%);
    border-color: transparent;
    color: #000;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(255, 180, 0, 0.4);
    transform: translateY(-3px) scale(1.05);
}

.prompt-filter-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}


/* ========================================================
   UPDATES PAGE
   ======================================================== */
.updates-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 20px;
}

.updates-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    /* Align with left padding/border of cards if needed, or create a vertical line */
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
    display: none;
    /* Hide for now, using card stack look */
}

.update-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    margin-bottom: 40px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.update-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.update-month {
    background: #252525;
    padding: 15px 30px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.update-month:hover {
    background-color: #2a2a2a;
}

.update-month h3 {
    margin: 0;
    font-size: 18px;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.month-line {
    flex-grow: 1;
    height: 1px;
    background: rgba(255, 180, 0, 0.2);
}

.chevron {
    color: #888;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.update-card.active .chevron {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.update-content {
    /* Collapsible logic */
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    /* Zero vertical padding when collapsed */
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.update-card.active .update-content {
    max-height: 500px;
    /* Arbitrary large height */
    padding: 30px;
    opacity: 1;
}

.update-content h4 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
}

.update-list {
    margin-bottom: 30px;
}

.update-list li {
    margin-bottom: 10px;
    font-size: 16px;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 10px;
}

.update-list li i {
    color: var(--primary-color);
    font-size: 18px;
}

/* Canva Button */
.canva-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #00C4CC 0%, #7D2AE8 100%);
    /* Canva Gradient-ish */
    color: #fff;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(125, 42, 232, 0.3);
}

.canva-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(125, 42, 232, 0.6);
    color: #fff;
}

.canva-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    /* Make white */
}


/* ========================================================
   TOOLS PAGE
   ======================================================== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 991px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

.tool-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    transition: var(--transition);
    height: 100%;
    /* Ensure uniform height in grid */
}

.tool-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.tool-icon {
    font-size: 40px;
    color: #2ecc71;
    /* Excel green default */
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(10deg);
    background: rgba(255, 255, 255, 0.1);
}

.tool-title {
    font-size: 20px;
    margin: 15px 0 10px;
    color: #fff;
}

.tool-desc {
    color: #aeaeae;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-download {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 14px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-download:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
}

@media (max-width: 576px) {
    .tool-card {
        padding: 20px;
    }
}



/* ========================================================
   GENERATED CONTENT PAGE
   ======================================================== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 991px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .content-grid {
        grid-template-columns: 1fr;
        /* Stack on very small screens? User asked for 2 on mobile, but 1 usually better. explicit request said 2 mobile. Let's try 2 but maybe 1 for extra small */
        grid-template-columns: repeat(2, 1fr);
    }
}

.content-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.content-preview {
    position: relative;
    width: 100%;
    height: 200px;
    /* Fixed height for consistency */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 5px;
    background: #000;
}

.content-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.content-preview:hover img {
    transform: scale(1.05);
    opacity: 0.7;
}

.btn-download-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: var(--primary-color);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    color: #000;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-preview:hover .btn-download-img {
    transform: translate(-50%, -50%) scale(1);
}

.content-block {
    background: #252525;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.content-block.active {
    border-color: var(--primary-color);
}

.c-header {
    background: #333;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    /* Indicates clickable */
    user-select: none;
}

.c-header:hover {
    background: #3a3a3a;
}

.c-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-icon {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.content-block.active .toggle-icon {
    transform: rotate(180deg);
}

.c-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #aaa;
    letter-spacing: 1px;
}

.c-text {
    padding: 15px;
    font-size: 13px;
    color: #ddd;
    line-height: 1.5;
    white-space: pre-line;
    /* Collapses indentation, keeps newlines */
    text-align: left;
    outline: none;
    cursor: text;
    background: #1a1a1a;
    display: none;
    /* Hidden by default */
    border-top: 1px solid #333;
}

.content-block.active .c-text {
    display: block;
    /* Visible when active */
    animation: fadeIn 0.3s ease;
}

.c-text:focus {
    background: #111;
    color: #fff;
}



/* Card Tags (Category & Area) */
.card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: -5px;
    /* Pull closer to image */
    margin-bottom: 5px;
}

.card-tag {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    /* Full pill shape */
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.tag-category {
    background: #2a2a2a;
    color: #888;
    border: 1px solid #333;
}

.tag-area {
    background: rgba(212, 175, 55, 0.1);
    background: #222;
    /* Fallback */
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.1);
    /* Subtle glow */
}

/* Hover effect on tags */
.content-card:hover .tag-area {
    background: var(--primary-color);
    color: #000;
}

/* ========================================================
   MOBILE FIXES (MISSING GRIDS)
   ======================================================== */
@media (max-width: 991px) {
    .timeline {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .prompts-layout {
        flex-direction: column;
    }

    .prompts-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 40px;
        height: auto;
        overflow-y: visible;
    }

    .prompts-viewer {
        width: 100%;
        min-height: auto;
        padding: 20px;
    }

    /* Improve timeline item spacing on mobile */
    .timeline-item {
        border-bottom: 1px solid #333;
        padding-bottom: 20px;
        margin-bottom: 0;
    }

    .timeline-item:last-child {
        border-bottom: none;
    }
}