/* =============================================
   KAIZEN EXPO - Main Stylesheet
   ============================================= */

/* CSS Variables */
:root {
    --primary: #2EE6DA;
    --primary-dark: #25c4ba;
    --dark: #0F172A;
    --dark-light: #1e293b;
    --light: #EDF6EE;
    --text-dark: #06140C;
    --white: #ffffff;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Poppins', sans-serif;
    
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray);
}

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

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

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 800px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--dark);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--dark);
}

.btn-white {
    background: var(--white);
    color: var(--dark);
}

.btn-white:hover {
    background: var(--light);
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--dark);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--dark-light);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* =============================================
   HEADER & NAVIGATION
   ============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.logo-text span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-cta {
    margin-left: 1rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232EE6DA' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
}

.stat-label {
    color: var(--gray-light);
    font-size: 0.875rem;
}

.hero-image {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.hero-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: block;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    border-radius: var(--radius-lg);
    z-index: -1;
}

/* =============================================
   SECTION STYLES
   ============================================= */
.section {
    padding: 6rem 0;
}

.section-dark {
    background: var(--dark);
}

.section-light {
    background: var(--light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
}

/* =============================================
   SERVICES/OFFER SECTION
   ============================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: var(--transition);
    border: 1px solid var(--gray-light);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 35px;
    height: 35px;
    stroke: var(--dark);
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 500;
}

.service-link:hover {
    gap: 0.75rem;
}

.service-link svg {
    width: 20px;
    height: 20px;
}

/* Offer Row Layout (for oferta.php) */
.offer-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    padding-bottom: 5rem;
    border-bottom: 1px solid var(--gray-light);
}

.offer-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.offer-row.reversed {
    direction: rtl;
}

.offer-row.reversed > * {
    direction: ltr;
}

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

.offer-content .service-icon-small {
    width: 60px;
    height: 60px;
    background: var(--light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.offer-content .service-icon-small svg {
    width: 30px;
    height: 30px;
    stroke: var(--primary);
}

.offer-content h2 {
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.features-list li svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
    flex-shrink: 0;
}

/* =============================================
   FEATURES/BENEFITS SECTION
   ============================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .feature-icon svg {
    stroke: var(--dark);
}

.feature-card h4 {
    margin-bottom: 0.75rem;
}

/* Features Box (for category pages) */
.features-box {
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-top: 2rem;
}

.features-box h3 {
    margin-bottom: 1.5rem;
}

.features-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.features-columns li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
}

.features-columns li svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
    flex-shrink: 0;
}

/* =============================================
   PROJECTS/REALIZATIONS
   ============================================= */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--light);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--dark);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    display: block;
}

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

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

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

.project-overlay h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.project-overlay p {
    color: var(--gray-light);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.project-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary);
    color: var(--dark);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Project Gallery */
.project-gallery {
    margin-bottom: 3rem;
}

.gallery-main {
    margin-bottom: 1rem;
}

.gallery-main img {
    width: 100%;
    border-radius: var(--radius-lg);
}

.gallery-thumbs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 100px;
    height: 70px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
}

.gallery-thumb:hover,
.gallery-thumb.active {
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-overlay svg {
    width: 40px;
    height: 40px;
    stroke: var(--white);
}

/* Project Meta */
.project-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.project-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-light);
    font-size: 0.875rem;
}

.project-meta svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary);
}

/* Project Navigation */
.project-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.project-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    transition: var(--transition);
}

.project-nav-link:hover {
    box-shadow: var(--shadow);
}

.project-nav-link.prev {
    justify-content: flex-start;
}

.project-nav-link.next {
    justify-content: flex-end;
    text-align: right;
}

.project-nav-link.center {
    flex-direction: column;
    text-align: center;
}

.project-nav-link.center svg {
    width: 30px;
    height: 30px;
    stroke: var(--gray);
}

.project-nav-link.empty {
    visibility: hidden;
}

.nav-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray);
}

.nav-title {
    font-weight: 500;
    color: var(--text-dark);
}

/* Project Details */
.project-details {
    display: grid;
    gap: 1rem;
}

.project-details dt {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.project-details dd {
    font-weight: 500;
    color: var(--text-dark);
}

/* =============================================
   TESTIMONIALS/CTA SECTION
   ============================================= */
.cta-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: var(--primary);
    opacity: 0.1;
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-content p {
    color: var(--gray-light);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* =============================================
   CONTACT FORM
   ============================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-info > p {
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: var(--light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
}

.contact-item-content h4 {
    margin-bottom: 0.25rem;
}

.contact-item-content p {
    margin-bottom: 0;
    color: var(--gray);
}

.contact-item-content a {
    color: var(--gray);
}

.contact-item-content a:hover {
    color: var(--primary);
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 230, 218, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
    margin-top: 0.25rem;
}

.checkbox-label a {
    color: var(--primary);
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Form Messages */
.form-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.form-errors ul {
    margin: 0;
    padding-left: 1.5rem;
    list-style: disc;
}

.form-errors li {
    color: #dc2626;
}

.form-success {
    text-align: center;
    padding: 3rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--white);
}

.form-success h3 {
    color: #10b981;
    margin-bottom: 1rem;
}

/* FAQ */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--light);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    stroke: var(--gray);
    transition: var(--transition);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

/* Map */
.map-section {
    height: 400px;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* =============================================
   BLOG
   ============================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.blog-card-image {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.blog-card-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--gray);
}

.blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-meta svg {
    width: 16px;
    height: 16px;
    stroke: var(--gray);
}

.blog-card-content h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card-content h2 a:hover {
    color: var(--primary);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 500;
    margin-top: 0.5rem;
}

.read-more:hover {
    gap: 0.75rem;
}

.read-more svg {
    width: 18px;
    height: 18px;
}

/* Blog Post Meta */
.blog-post-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.blog-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-light);
    font-size: 0.875rem;
}

.blog-post-meta svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary);
}

/* Blog Featured Image */
.blog-featured-image {
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.blog-featured-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-height: 500px;
    object-fit: cover;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-light);
}

.share-buttons span {
    font-weight: 500;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: var(--transition);
}

.share-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

.share-facebook {
    background: #1877f2;
}

.share-linkedin {
    background: #0a66c2;
}

.share-twitter {
    background: #000;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-light);
}

.post-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.post-nav-link:hover {
    background: var(--gray-light);
}

.post-nav-link.next {
    justify-content: flex-end;
    text-align: right;
}

.post-nav-link.empty {
    visibility: hidden;
}

.post-nav-link .nav-arrow svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
}

/* Sidebar Posts */
.sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-posts li a {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.sidebar-posts li a img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: var(--radius);
}

.sidebar-posts li a span {
    font-size: 0.875rem;
    line-height: 1.4;
}

.sidebar-posts li a:hover span {
    color: var(--primary);
}

/* Pagination */
.pagination {
    margin-top: 3rem;
}

.pagination-nav ul {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination-nav li a,
.pagination-nav li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--radius);
    background: var(--light);
    transition: var(--transition);
}

.pagination-nav li a:hover,
.pagination-nav li.active a {
    background: var(--primary);
    color: var(--dark);
}

/* =============================================
   CONTENT LAYOUT
   ============================================= */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
}

.content-layout-blog {
    grid-template-columns: 1fr 300px;
}

.content-main {
    min-width: 0;
}

.content-featured-image {
    margin-bottom: 2rem;
}

.content-featured-image img {
    width: 100%;
    border-radius: var(--radius-lg);
}

.prose {
    color: var(--text-dark);
    line-height: 1.8;
}

.prose h2 {
    margin: 2rem 0 1rem;
}

.prose h3 {
    margin: 1.5rem 0 0.75rem;
}

.prose p {
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

.prose ul,
.prose ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
}

.prose ul {
    list-style: disc;
}

.prose ol {
    list-style: decimal;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose img {
    border-radius: var(--radius);
    margin: 2rem 0;
}

.prose blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--gray);
}

.prose a {
    color: var(--primary);
}

.prose a:hover {
    text-decoration: underline;
}

/* Sidebar */
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-box {
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.sidebar-box h4 {
    margin-bottom: 1rem;
}

.sidebar-box p {
    margin-bottom: 1rem;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.sidebar-links a:hover {
    background: var(--gray-light);
}

.sidebar-link-icon {
    width: 35px;
    height: 35px;
    background: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-link-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--dark);
    color: var(--gray-light);
    padding-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about .logo {
    margin-bottom: 1.5rem;
}

.footer-about .logo-text {
    color: var(--white);
}

.footer-about p {
    color: var(--gray-light);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

.social-link:hover svg {
    fill: var(--dark);
}

.footer-title {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-light);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-contact-item svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin-bottom: 0;
    color: var(--gray);
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: var(--gray);
    font-size: 0.875rem;
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

/* =============================================
   PAGE HEADERS
   ============================================= */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    padding: 10rem 0 5rem;
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232EE6DA' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header h1 {
    color: var(--white);
    position: relative;
    margin-bottom: 1rem;
}

.page-header h1 span {
    color: var(--primary);
}

.page-header p {
    color: var(--gray-light);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--gray-light);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    color: var(--gray);
}

.breadcrumb .current {
    color: var(--primary);
}

.breadcrumb svg {
    width: 14px;
    height: 14px;
    stroke: var(--gray);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    width: 100px;
    height: 100px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.empty-icon svg {
    width: 50px;
    height: 50px;
    stroke: var(--gray);
}

.empty-state h3 {
    margin-bottom: 1rem;
}

/* Placeholder Image */
.placeholder-image {
    width: 100%;
    height: 100%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image svg {
    width: 60px;
    height: 60px;
    stroke: var(--gray);
    opacity: 0.5;
}

/* Text utilities */
.text-small {
    font-size: 0.875rem;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-image {
        order: 0;
        max-width: 500px;
        margin: 0 auto 2rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .content-sidebar {
        order: -1;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .offer-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .offer-row.reversed {
        direction: ltr;
    }
    
    .project-navigation {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-nav-link.center {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header,
    .header.scrolled {
        background: var(--white);
        backdrop-filter: none;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero {
        min-height: auto;
        padding: 8rem 0 4rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid,
    .projects-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-about .logo,
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact-item {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .blog-post-meta,
    .project-meta {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 4rem 0;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
    }
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

/* Scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   CONVERSION TOOLS - Exit Intent Popup
   ============================================= */
.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.exit-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.exit-popup {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 90%;
    padding: 40px;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-xl);
}

.exit-popup-overlay.active .exit-popup {
    transform: scale(1) translateY(0);
}

.exit-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.2s;
    line-height: 1;
}

.exit-popup-close:hover {
    color: var(--dark);
}

.exit-popup-content {
    text-align: center;
}

.exit-popup-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.exit-popup-content h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--dark);
}

.exit-popup-content p {
    color: var(--gray);
    margin-bottom: 20px;
}

.exit-popup-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.exit-popup-form input {
    padding: 14px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 16px;
    transition: border-color 0.2s;
}

.exit-popup-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.exit-popup-note {
    font-size: 12px;
    color: var(--gray);
    margin-top: 12px;
}

/* =============================================
   CONVERSION TOOLS - Mini Chat
   ============================================= */
.chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: var(--font-main);
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    box-shadow: 0 4px 20px rgba(46, 230, 218, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(46, 230, 218, 0.5);
}

.chat-icon-close {
    display: none;
}

.chat-widget.open .chat-icon-open {
    display: none;
}

.chat-widget.open .chat-icon-close {
    display: block;
}

.chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 360px;
    max-height: 480px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s ease;
}

.chat-widget.open .chat-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    background: var(--dark);
    color: var(--white);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.chat-header-info strong {
    display: block;
    font-size: 14px;
}

.chat-header-info span {
    font-size: 12px;
    opacity: 0.7;
}

.chat-messages {
    max-height: 220px;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    max-width: 85%;
}

.chat-message p {
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    line-height: 1.5;
}

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.bot p {
    background: var(--light);
    border-bottom-left-radius: 4px;
}

.chat-message.user {
    align-self: flex-end;
}

.chat-message.user p {
    background: var(--primary);
    color: var(--dark);
    border-bottom-right-radius: 4px;
}

.chat-message p a {
    color: var(--primary-dark);
    text-decoration: underline;
}

.chat-message.bot p a {
    color: var(--dark);
}

.chat-quick-replies {
    padding: 0 16px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chat-quick-btn {
    background: var(--white);
    border: 1px solid var(--gray-light);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.chat-quick-btn:hover {
    border-color: var(--primary);
    background: rgba(46, 230, 218, 0.1);
}

.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--gray-light);
}

.chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--gray-light);
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

.chat-input:focus {
    border-color: var(--primary);
}

.chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: transform 0.2s;
}

.chat-send:hover {
    transform: scale(1.1);
}

/* =============================================
   CONVERSION TOOLS - Sticky CTA (Mobile)
   ============================================= */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 12px 16px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9998;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.sticky-cta.visible {
    transform: translateY(0);
}

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

.sticky-cta-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
}

/* =============================================
   CONVERSION TOOLS - Cookie Consent
   ============================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: var(--white);
    padding: 20px;
    z-index: 10001;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    font-size: 14px;
    margin: 0;
}

.cookie-content p a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-buttons .btn-outline {
    background: transparent;
    border: 1px solid var(--gray);
    color: var(--white);
}

.cookie-buttons .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* =============================================
   CONVERSION TOOLS - Lead Quiz
   ============================================= */
.quiz-trigger {
    margin-top: 30px;
}

.quiz-trigger-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 400px;
    text-align: left;
}

.quiz-trigger-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(46, 230, 218, 0.2);
    transform: translateY(-2px);
}

.quiz-trigger-icon {
    font-size: 32px;
}

.quiz-trigger-text strong {
    display: block;
    font-size: 16px;
    color: var(--dark);
}

.quiz-trigger-text small {
    color: var(--gray);
    font-size: 14px;
}

.quiz-trigger-arrow {
    margin-left: auto;
    font-size: 24px;
    color: var(--primary);
}

.quiz-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.quiz-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.quiz-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.quiz-modal-overlay.active .quiz-modal {
    transform: scale(1);
}

.quiz-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--gray);
    z-index: 1;
}

.quiz-close:hover {
    color: var(--dark);
}

.quiz-progress {
    height: 4px;
    background: var(--gray-light);
}

.quiz-progress-bar {
    height: 100%;
    background: var(--primary);
    transition: width 0.4s ease;
}

.quiz-content {
    padding: 40px;
}

.quiz-step-label {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 8px;
}

.quiz-question {
    font-size: 22px;
    color: var(--dark);
    margin-bottom: 24px;
}

.quiz-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-answer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.quiz-answer:hover {
    border-color: var(--primary);
    background: rgba(46, 230, 218, 0.05);
}

.quiz-answer-icon {
    font-size: 24px;
}

.quiz-answer-text {
    font-size: 16px;
    color: var(--dark);
}

.quiz-result {
    text-align: center;
}

.quiz-result-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.quiz-result h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.quiz-result-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

.quiz-result-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--dark);
}

.quiz-result-card p {
    color: var(--gray);
    margin: 0;
}

.quiz-result-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-result-form p {
    margin-bottom: 8px;
    color: var(--gray);
}

.quiz-result-form input {
    padding: 14px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 16px;
}

.quiz-result-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.quiz-skip {
    display: block;
    margin-top: 16px;
    color: var(--gray);
    font-size: 14px;
    text-decoration: none;
}

.quiz-skip:hover {
    color: var(--primary-dark);
}

/* Pulse animation for chat badge */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* =============================================
   Mobile Adjustments for Conversion Tools
   ============================================= */
@media (max-width: 768px) {
    .chat-widget {
        bottom: 80px;
        right: 16px;
    }
    
    .chat-window {
        width: calc(100vw - 32px);
        right: -8px;
    }
    
    .exit-popup {
        padding: 24px;
    }
    
    .exit-popup-content h3 {
        font-size: 20px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .quiz-content {
        padding: 24px;
    }
    
    .quiz-question {
        font-size: 18px;
    }
}


/* =============================================
   PROJECT GALLERY - Redesigned
   ============================================= */
.gallery-showcase {
    margin-bottom: 3rem;
}

.gallery-main-wrapper {
    position: relative;
    background: var(--dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main-wrapper.gallery-single {
    max-height: 650px;
}

.gallery-main-img {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s ease;
}

.gallery-single .gallery-main-img {
    max-height: 650px;
}

/* Gallery arrows */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 5;
    opacity: 0;
}

.gallery-main-wrapper:hover .gallery-arrow {
    opacity: 1;
}

.gallery-arrow:hover {
    background: rgba(46, 230, 218, 0.7);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.05);
}

.gallery-arrow-prev { left: 1rem; }
.gallery-arrow-next { right: 1rem; }

/* Gallery counter */
.gallery-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 5;
    letter-spacing: 1px;
}

/* Thumbnail strip */
.gallery-thumbstrip {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.25rem 0;
    -ms-overflow-style: none;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.gallery-thumbstrip::-webkit-scrollbar {
    height: 4px;
}

.gallery-thumbstrip::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-thumbstrip::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.gallery-thumb-btn {
    flex-shrink: 0;
    width: 90px;
    height: 64px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: all 0.2s ease;
    padding: 0;
    background: none;
}

.gallery-thumb-btn:hover {
    opacity: 0.8;
}

.gallery-thumb-btn.active {
    opacity: 1;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(46, 230, 218, 0.3);
}

.gallery-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Gallery Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
    opacity: 1;
}

.gallery-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.gallery-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gallery-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.gallery-lightbox-arrow:hover {
    background: rgba(46, 230, 218, 0.5);
    border-color: var(--primary);
}

.gallery-lightbox-prev { left: 1.5rem; }
.gallery-lightbox-next { right: 1.5rem; }

.gallery-lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    letter-spacing: 2px;
}

/* Project Detail Layout */
.project-detail {
    max-width: 1100px;
    margin: 0 auto;
}

.project-header {
    margin-bottom: 2rem;
}

.project-header h1 {
    margin-bottom: 1rem;
}

.project-content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    margin-top: 3rem;
}

.project-body .prose {
    font-size: 1.05rem;
    line-height: 1.8;
}

.project-features {
    margin-top: 2.5rem;
}

.project-features h3 {
    margin-bottom: 1.5rem;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--gray-light);
}

.features-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Sidebar */
.sidebar-card {
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.sidebar-card h4 {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
}

.detail-list {
    list-style: none;
    padding: 0;
}

.detail-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.95rem;
}

.detail-list li strong {
    color: var(--gray);
    font-weight: 500;
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    color: white;
}

.sidebar-cta h4 {
    color: white;
    margin-bottom: 0.75rem;
}

.sidebar-cta p {
    color: var(--gray-light);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Project Navigation */
.project-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-light);
}

.project-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    background: var(--light);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-dark);
}

.project-nav-link:hover {
    background: var(--primary);
    color: var(--dark);
}

.project-nav-link:hover .nav-label {
    color: var(--dark);
}

.project-nav-prev { justify-self: start; }
.project-nav-next { justify-self: end; text-align: right; }
.project-nav-all { justify-self: center; font-weight: 600; }

.nav-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.nav-title {
    display: block;
    font-weight: 600;
}

/* Related Projects */
.related-projects {
    margin-top: 4rem;
}

.related-projects h2 {
    margin-bottom: 2rem;
}

/* Responsive gallery */
@media (max-width: 768px) {
    .gallery-main-wrapper {
        max-height: 350px;
    }

    .gallery-main-img {
        max-height: 350px;
    }

    .gallery-arrow {
        width: 40px;
        height: 40px;
        opacity: 1;
    }

    .gallery-arrow-prev { left: 0.5rem; }
    .gallery-arrow-next { right: 0.5rem; }

    .gallery-thumb-btn {
        width: 70px;
        height: 50px;
    }

    .project-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-navigation {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-nav-prev,
    .project-nav-next,
    .project-nav-all {
        justify-self: stretch;
    }

    .gallery-lightbox-arrow {
        width: 44px;
        height: 44px;
    }

    .gallery-lightbox-prev { left: 0.75rem; }
    .gallery-lightbox-next { right: 0.75rem; }
}

@media (max-width: 480px) {
    .gallery-main-wrapper {
        max-height: 280px;
        border-radius: var(--radius);
    }

    .gallery-main-img {
        max-height: 280px;
    }

    .gallery-counter {
        font-size: 0.75rem;
        padding: 0.3rem 0.7rem;
    }
}
