/* ===== CUSTOM WEB DESIGN - NATURE-INSPIRED PROFESSIONAL THEME ===== */

/* === Variables === */
:root {
    /* Nature Colors */
    --forest-green: #2C5F2D;
    --sage-green: #87A96B;
    --mint: #A8D5BA;
    --earth-brown: #8B7355;
    --terracotta: #C1876B;
    --sand: #E8D5C4;
    --cream: #FAF7F2;
    --charcoal: #2D3436;
    --sky-blue: #87CEEB;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--charcoal);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    color: var(--forest-green);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(44, 95, 45, 0.1);
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--forest-green);
}

.nav-logo {
    width: 40px;
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--charcoal);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--forest-green);
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--forest-green), var(--sage-green));
    color: white;
    box-shadow: 0 4px 15px rgba(44, 95, 45, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 95, 45, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--forest-green);
    border: 2px solid var(--forest-green);
}

.btn-secondary:hover {
    background: var(--forest-green);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--sage-green);
    color: var(--forest-green);
}

.btn-outline:hover {
    background: var(--sage-green);
    color: white;
}

/* === Hero Section === */
.hero {
    padding: 10rem 0 6rem;
    text-align: center;
    background: linear-gradient(135deg, var(--cream) 0%, var(--sand) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(135, 169, 107, 0.1), transparent),
        radial-gradient(circle at 80% 80%, rgba(44, 95, 45, 0.05), transparent);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--forest-green), var(--sage-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--charcoal);
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === Personalization Box === */
.personalization-box {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(44, 95, 45, 0.15);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.personalization-title {
    color: var(--forest-green);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.personalization-subtitle {
    color: var(--charcoal);
    opacity: 0.7;
    margin-bottom: 1.5rem;
    text-align: center;
}

.personalization-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.personalization-form input,
.personalization-form select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--sand);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.personalization-form input:focus,
.personalization-form select:focus {
    outline: none;
    border-color: var(--sage-green);
    box-shadow: 0 0 0 3px rgba(135, 169, 107, 0.1);
}

.personalization-form .btn {
    width: 100%;
    font-size: 1.1rem;
    padding: 1.2rem;
}

/* === Detection Feedback === */
.detection-feedback {
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: -0.5rem;
    transition: all 0.3s ease;
}

.detection-feedback.show {
    margin-top: 0;
}

.detection-feedback.high-confidence {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #10B981;
}

.detection-feedback.medium-confidence {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #F59E0B;
}

.detection-feedback.low-confidence {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #EF4444;
}

.detection-feedback strong {
    font-weight: 600;
}

/* === Hero Content Dynamic === */
.hero-content-dynamic {
    opacity: 1;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-content-dynamic.transitioning {
    opacity: 0;
    transform: translateY(20px);
}

.hero-content-dynamic.personalized {
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Industry-specific background gradients */
.hero.industry-restaurant {
    background: linear-gradient(135deg, #FFF8E7 0%, #FFE8CC 100%);
}

.hero.industry-healthcare {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
}

.hero.industry-realestate {
    background: linear-gradient(135deg, #F3E5F5 0%, #E1BEE7 100%);
}

.hero.industry-fitness {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
}

.hero.industry-legal {
    background: linear-gradient(135deg, #ECEFF1 0%, #CFD8DC 100%);
}

.hero.industry-retail {
    background: linear-gradient(135deg, #FCE4EC 0%, #F8BBD0 100%);
}

.hero.industry-technology {
    background: linear-gradient(135deg, #E0F2F1 0%, #B2DFDB 100%);
}

.hero.industry-construction {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
}

.hero.industry-beauty {
    background: linear-gradient(135deg, #F3E5F5 0%, #E1BEE7 100%);
}

.hero.industry-consulting {
    background: linear-gradient(135deg, #E8EAF6 0%, #C5CAE9 100%);
}

/* === Section === */
.section {
    padding: var(--spacing-xl) 0;
}

.bg-light {
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--charcoal);
    opacity: 0.7;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* === Comparison Grid === */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.comparison-card {
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.comparison-card.negative {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
}

.comparison-card.positive {
    background: linear-gradient(135deg, var(--mint) 0%, var(--sage-green) 100%);
    color: white;
    border: 2px solid var(--forest-green);
}

.comparison-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.comparison-card.positive h3 {
    color: white;
}

.comparison-card ul {
    list-style: none;
}

.comparison-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.comparison-card.negative li::before {
    content: '×';
    position: absolute;
    left: 0;
    color: #dc3545;
    font-size: 1.5rem;
}

.comparison-card.positive li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: white;
    font-size: 1.2rem;
}

/* === Services Grid === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 95, 45, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(44, 95, 45, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 0.5rem;
    color: var(--forest-green);
}

.service-card p {
    color: var(--charcoal);
    opacity: 0.8;
}

/* === Process Timeline === */
.process-timeline {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 180px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--forest-green), var(--sage-green));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.process-step h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.process-step p {
    color: var(--charcoal);
    opacity: 0.8;
    font-size: 0.95rem;
}

/* === Portfolio Grid === */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-image {
    height: 220px;
    background: linear-gradient(135deg, var(--sage-green), var(--mint));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.portfolio-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.placeholder {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.portfolio-item h3 {
    padding: 1.5rem 1rem 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

.portfolio-item p {
    padding: 0 1rem 1rem;
    color: var(--charcoal);
    opacity: 0.7;
}

/* Featured Portfolio with Mockups */
.portfolio-item.featured-portfolio {
    grid-column: span 1;
    border: 3px solid var(--forest-green);
    box-shadow: 0 6px 30px rgba(44, 95, 45, 0.2);
}

.portfolio-item.featured-portfolio:hover {
    transform: translateY(-8px);
}

.portfolio-item.featured-portfolio h3 {
    background: linear-gradient(135deg, var(--forest-green), var(--sage-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-item.featured-portfolio p a {
    color: var(--forest-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.portfolio-item.featured-portfolio p a:hover {
    color: var(--sage-green);
    text-decoration: underline;
}

/* Portfolio Link Wrapper */
.portfolio-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Portfolio Mockup Styles */
.portfolio-mockup {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.mockup-browser {
    width: 100%;
    max-width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.browser-header {
    background: #e8e8e8;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid #d0d0d0;
}

.browser-dots {
    display: flex;
    gap: 0.4rem;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f56;
}

.browser-dots span:nth-child(2) {
    background: #ffbd2e;
}

.browser-dots span:nth-child(3) {
    background: #27c93f;
}

.browser-url {
    flex: 1;
    background: white;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #666;
    text-align: center;
}

.browser-content {
    padding: 1rem 0.75rem;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* AI Visibility Preview */
.portfolio-visibility {
    background: linear-gradient(135deg, #0A1929 0%, #1a2332 100%);
}

.visibility-preview {
    background: linear-gradient(135deg, #0A1929 0%, #1a2332 100%);
}

.preview-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.logo-circle {
    width: 30px;
    height: 30px;
    border: 2px solid #D4AF37;
    border-radius: 50%;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #D4AF37;
}

.preview-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #F5F5DC;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.preview-subtitle {
    font-size: 0.8rem;
    color: rgba(245, 245, 220, 0.8);
    margin-bottom: 1rem;
}

.preview-button {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, #D4AF37 0%, #F4E4C1 100%);
    color: #1a1a1a;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Portfolio Overlay */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 95, 45, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-link:hover .portfolio-overlay {
    opacity: 1;
}

.view-site-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--forest-green), var(--sage-green));
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.portfolio-link:hover .view-site-btn {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* AI Receptionist Preview */
.portfolio-receptionist {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.receptionist-preview {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.preview-nav {
    font-weight: 600;
    color: #059669;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.preview-title.light {
    color: #065f46;
}

.preview-subtitle.light {
    color: #047857;
    opacity: 0.9;
}

.preview-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.feature-box {
    background: white;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    color: #047857;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Coming Soon Portfolio Item */
.portfolio-coming-soon {
    background: linear-gradient(135deg, var(--sage-green), var(--mint));
}

.coming-soon-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.coming-soon-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.coming-soon-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

/* Responsive adjustments for portfolio mockups */
@media (max-width: 768px) {
    .portfolio-image {
        height: 180px;
    }
    
    .portfolio-mockup {
        padding: 0.75rem;
    }
    
    .browser-content {
        padding: 1rem 0.75rem;
        min-height: 120px;
    }
    
    .preview-title {
        font-size: 1rem;
    }
    
    .preview-subtitle {
        font-size: 0.75rem;
    }
    
    .feature-box {
        font-size: 0.65rem;
        padding: 0.3rem 0.5rem;
    }
    
    .view-site-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* === Pricing Grid === */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.featured {
    border: 3px solid var(--forest-green);
    transform: scale(1.05);
}

.pricing-card .badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--forest-green);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-card h3 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--forest-green);
    margin-bottom: 2rem;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-card li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-card li::before {
    content: '✓ ';
    color: var(--sage-green);
    font-weight: 700;
    margin-right: 0.5rem;
}

/* === Contact Form === */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--sand);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--sage-green);
}

.contact-form select {
    margin-bottom: 1rem;
}

.contact-form textarea {
    margin-bottom: 1rem;
    resize: vertical;
}

.contact-info {
    text-align: center;
    margin-top: 2rem;
}

.contact-info p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

/* === Footer === */
.footer {
    background: var(--forest-green);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer a {
    color: var(--mint);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* === Responsive Design === */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero {
        padding: 8rem 0 4rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        display: none; /* Simplified for now */
    }
    
    .process-timeline {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
}

/* ===== CINEMATIC BUILD OVERLAY ===== */
.build-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(250, 247, 242, 0.98);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.build-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.build-content {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}

.build-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--forest-green);
    margin-bottom: 3rem;
    animation: fadeInTitle 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Build Animation Container */
.build-animation {
    margin: 3rem 0;
    height: 200px;
    position: relative;
}

/* Wireframe Animation */
.wireframe-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
    position: absolute;
    width: 100%;
    animation: fadeInOut 2s ease-in-out;
}

.wireframe-box {
    width: 80px;
    height: 120px;
    border: 2px solid var(--sage-green);
    border-radius: 8px;
    background: linear-gradient(135deg, transparent 0%, rgba(135, 169, 107, 0.1) 100%);
    animation: morphWireframe 1.5s ease-in-out infinite;
}

.wireframe-box:nth-child(2) {
    animation-delay: 0.2s;
}

.wireframe-box:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes morphWireframe {
    0%, 100% {
        transform: scaleY(1) translateY(0);
        opacity: 0.3;
    }
    50% {
        transform: scaleY(1.2) translateY(-10px);
        opacity: 1;
    }
}

/* Color Palette Animation */
.color-palette {
    display: flex;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
    position: absolute;
    width: 100%;
    animation: fadeInOut 2s 2s ease-in-out;
}

.color-swatch {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    animation: shuffleColors 1.5s ease-in-out infinite;
}

.color-swatch:nth-child(1) {
    background: linear-gradient(135deg, #2C5F2D, #87A96B);
}

.color-swatch:nth-child(2) {
    background: linear-gradient(135deg, #87A96B, #A8D5BA);
    animation-delay: 0.2s;
}

.color-swatch:nth-child(3) {
    background: linear-gradient(135deg, #C1876B, #E8D5C4);
    animation-delay: 0.4s;
}

.color-swatch:nth-child(4) {
    background: linear-gradient(135deg, #87CEEB, #E8D5C4);
    animation-delay: 0.6s;
}

@keyframes shuffleColors {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.15) rotate(5deg);
        opacity: 1;
    }
}

/* Typography Animation */
.typography-sample {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    opacity: 0;
    position: absolute;
    width: 100%;
    padding: 0 2rem;
    animation: fadeInOut 2s 4s ease-in-out;
}

.type-line {
    height: 20px;
    background: linear-gradient(90deg, var(--sage-green), var(--mint));
    border-radius: 4px;
    animation: swapTypography 1.5s ease-in-out infinite;
}

.type-line:nth-child(1) {
    width: 80%;
}

.type-line:nth-child(2) {
    width: 60%;
    animation-delay: 0.2s;
}

.type-line:nth-child(3) {
    width: 70%;
    animation-delay: 0.4s;
}

@keyframes swapTypography {
    0%, 100% {
        transform: translateX(0) scaleX(1);
        opacity: 0.4;
    }
    50% {
        transform: translateX(10px) scaleX(0.95);
        opacity: 1;
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0;
        transform: translateY(10px);
    }
    10%, 90% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Build Steps */
.build-steps {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.build-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.build-step.active {
    opacity: 1;
    transform: translateX(0);
}

.build-step.complete .step-dot {
    background: var(--forest-green);
    border-color: var(--forest-green);
}

.build-step.complete .step-dot::after {
    content: '✓';
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
}

.step-dot {
    width: 24px;
    height: 24px;
    border: 2px solid var(--sage-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.build-step.active .step-dot {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(135, 169, 107, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(135, 169, 107, 0);
    }
}

.step-text {
    font-size: 1.1rem;
    color: var(--charcoal);
    text-align: left;
}

@keyframes fadeInTitle {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Build Label */
.custom-build-label {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(44, 95, 45, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.custom-build-label.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.label-icon {
    font-size: 1.2rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
}

.label-text {
    font-size: 0.95rem;
    color: var(--charcoal);
}

.label-text strong {
    color: var(--forest-green);
    font-weight: 600;
}

/* Page Reassembly Animation */
.page-reassembling {
    opacity: 0;
    transform: translateY(30px);
}

.page-reassembled {
    animation: reassemblePage 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes reassemblePage {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Industry-specific emphasis classes */
.hero.emphasized {
    padding: 12rem 0 8rem;
}

.hero-title.emphasized {
    font-size: 4.5rem;
    animation: emphasisPulse 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes emphasisPulse {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive adjustments for build overlay */
@media (max-width: 768px) {
    .build-title {
        font-size: 2rem;
    }
    
    .wireframe-box {
        width: 60px;
        height: 90px;
    }
    
    .color-swatch {
        width: 50px;
        height: 50px;
    }
    
    .step-text {
        font-size: 1rem;
    }
    
    .custom-build-label {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        justify-content: center;
    }
}
