/**
 * SPA Pages Stylesheet
 *
 * Consolidated styles extracted from inline <style> blocks in individual pages.
 * This file is loaded once in the SPA shell to avoid style re-injection on route changes.
 */

/* ============================================
   GLOBAL PAGE STYLES
   ============================================ */

/* Theme-aware body — colours driven by CSS variables set on <html> */
body {
    background-color: var(--dm-background) !important;
    color: var(--dm-text) !important;
}

/* Card hover effect - used across multiple pages */
.card-hover:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Theme-aware gradient card variants */
.card-gradient-success {
    background: linear-gradient(135deg, #f0fdf4 0%, var(--dm-card-bg) 100%) !important;
    border-left: 4px solid #10b981 !important;
}

.card-gradient-success .card-title {
    color: #10b981 !important;
}

.card-gradient-primary {
    background: linear-gradient(135deg, #eff6ff 0%, var(--dm-card-bg) 100%) !important;
    border-left: 4px solid #3b82f6 !important;
}

.card-gradient-primary .card-title {
    color: #3b82f6 !important;
}

.card-gradient-purple {
    background: linear-gradient(135deg, #faf5ff 0%, var(--dm-card-bg) 100%) !important;
    border-left: 4px solid #8b5cf6 !important;
}

.card-gradient-purple .card-title {
    color: #8b5cf6 !important;
}

.card-gradient-amber {
    background: linear-gradient(135deg, #fffbeb 0%, var(--dm-card-bg) 100%) !important;
    border-left: 4px solid #f59e0b !important;
}

.card-gradient-amber .card-title {
    color: #f59e0b !important;
}

/* Dark theme overrides for gradient cards */
.theme-dark-charcoal .card-gradient-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, var(--dm-card-bg) 100%) !important;
    border-left: 4px solid #10b981 !important;
}

.theme-dark-charcoal .card-gradient-success .card-title {
    color: #10b981 !important;
}

.theme-dark-charcoal .card-gradient-primary {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, var(--dm-card-bg) 100%) !important;
    border-left: 4px solid #3b82f6 !important;
}

.theme-dark-charcoal .card-gradient-primary .card-title {
    color: #3b82f6 !important;
}

.theme-dark-charcoal .card-gradient-purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, var(--dm-card-bg) 100%) !important;
    border-left: 4px solid #8b5cf6 !important;
}

.theme-dark-charcoal .card-gradient-purple .card-title {
    color: #8b5cf6 !important;
}

.theme-dark-charcoal .card-gradient-amber {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, var(--dm-card-bg) 100%) !important;
    border-left: 4px solid #f59e0b !important;
}

.theme-dark-charcoal .card-gradient-amber .card-title {
    color: #f59e0b !important;
}

/* ============================================
   SERVICES PAGE STYLES
   ============================================ */

/* Service cards styling - similar to portfolio cards */
.service-item {
    background: var(--dm-card-bg);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* Service header with icon */
.service-header {
    background: var(--dcbw-gradient-primary);
    padding: 2rem;
    text-align: center;
    color: white;
}

.service-header [data-icon] {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 1rem;
    display: inline-flex;
    margin-bottom: 1rem;
}

.service-header h2 {
    color: white !important;
    margin-bottom: 0.5rem;
}

.service-header p {
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

/* Service features */
.service-features {
    padding: 2rem;
    background: var(--dm-surface, #fafafa);
    border-top: 1px solid var(--dm-border);
    border-bottom: 1px solid var(--dm-border);
}

.service-feature {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.service-feature:last-child {
    margin-bottom: 0;
}

.service-feature-icon {
    background: #10b981;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Service meta information */
.service-meta {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

.service-meta-item {
    text-align: center;
}

.service-meta-label {
    color: var(--dm-text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.service-meta-value {
    color: var(--dm-text);
    font-weight: 500;
}

/* Technology badges */
.service-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tech-badge {
    display: inline-block;
    background: var(--dm-gray-100);
    color: var(--dm-gray-700);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    border: 1px solid var(--dm-gray-200);
}

/* ============================================
   ABOUT PAGE STYLES
   ============================================ */

/* Center the timeline container */
#company-timeline {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1rem;
}

/* Ensure centred timeline layout looks good */
.dm-timeline-centered .dm-timeline-item-left,
.dm-timeline-centered .dm-timeline-item-right {
    max-width: 45%;
}

@media (max-width: 768px) {
    #company-timeline {
        max-width: 100%;
    }
}

/* ============================================
   PORTFOLIO PAGE STYLES
   ============================================ */

/* Fix hero section text visibility */
.portfolio-hero {
    background: var(--dcbw-gradient-primary);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

/* REMOVED: Rotating glow pseudo-element - using bg-ambient-float-blobs instead */

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

.portfolio-hero .container {
    position: relative;
    z-index: 1;
}

.portfolio-hero .hero-badge,
.portfolio-hero .hero-title,
.portfolio-hero .hero-description {
    color: white !important;
}

/* Hero stats cards - with background images */
.portfolio-hero .stats-card {
    position: relative;
    min-height: 350px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-hero .stats-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-hero .stats-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-hero .stats-card:hover .stats-card-bg {
    transform: scale(1.05);
}

.portfolio-hero .stats-card:hover .stats-card-overlay {
    opacity: 0.9;
}

.portfolio-hero .stats-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.portfolio-hero .stats-card-content {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    text-align: center;
}

.portfolio-hero .stats-card-content h2 {
    color: var(--dcbw-accent-text) !important;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.portfolio-hero .stats-card-content p {
    color: var(--dm-text-secondary) !important;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
}

/* Portfolio items as Domma cards */
.portfolio-item {
    background: var(--dm-card-bg);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* Challenge section - light blue background */
.portfolio-challenge {
    background: #f0f9ff;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    margin-bottom: 1rem;
}

/* Solution section - light green background */
.portfolio-solution {
    background: #f0fdf4;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #10b981;
    margin-bottom: 1rem;
}

/* Dark theme overrides for portfolio sections */
.theme-dark-charcoal .portfolio-challenge {
    background: rgba(59, 130, 246, 0.1);
}

.theme-dark-charcoal .portfolio-solution {
    background: rgba(16, 185, 129, 0.1);
}

/* Results section - beautiful grid layout */
.portfolio-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.portfolio-result-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 2.5rem;
}

/* Dark theme override for portfolio result items */
.theme-dark-charcoal .portfolio-result-item {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
    border-color: rgba(16, 185, 129, 0.3);
}

.portfolio-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    border-color: #86efac;
}

.result-check-badge {
    position: absolute;
    left: 0.75rem;
    width: 24px;
    height: 24px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.result-check-badge svg {
    width: 14px;
    height: 14px;
    color: white;
}

/* ============================================
   TECHNOLOGY PAGE STYLES
   ============================================ */

/* Tech hero with rotating background */
.tech-hero {
    position: relative;
    overflow: hidden;
}

/* REMOVED: Rotating glow pseudo-element - using bg-ambient-float-blobs instead */

.tech-hero .container {
    position: relative;
    z-index: 1;
}

/* Hero stats cards - with background images (shared with portfolio) */
.tech-hero .stats-card {
    position: relative;
    min-height: 350px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-hero .stats-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-hero .stats-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-hero .stats-card:hover .stats-card-bg {
    transform: scale(1.05);
}

.tech-hero .stats-card:hover .stats-card-overlay {
    opacity: 0.9;
}

.tech-hero .stats-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.tech-hero .stats-card-content {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    text-align: center;
}

.tech-hero .stats-card-content h2 {
    color: var(--dcbw-accent-text) !important;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.tech-hero .stats-card-content p {
    color: var(--dm-text-secondary) !important;
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
}

/* Technology category cards - similar to service cards */
.tech-category-card {
    background: var(--dm-card-bg);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tech-category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.tech-category-header {
    background: var(--dcbw-gradient-primary);
    padding: 2rem;
    text-align: center;
    color: white;
}

.tech-category-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.tech-category-title {
    color: white !important;
    margin: 0;
}

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

.tech-card {
    background: var(--dm-surface, #fafafa);
    border: 1px solid var(--dm-border);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.tech-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.tech-name {
    font-weight: 500;
    color: var(--dm-text);
}

.tech-icons {
    display: flex;
    gap: 0.25rem;
}

.tech-tick,
.tech-star {
    flex-shrink: 0;
}

.tech-card:hover {
    background: var(--dm-card-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Current Technology Focus - 6 cards in one row */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 1200px) {
    .focus-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.focus-item {
    background: var(--dm-card-bg);
    border: none;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08),
                0 2px 4px rgba(0, 0, 0, 0.05);
}

.focus-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15),
                0 6px 12px rgba(0, 0, 0, 0.1);
}

.focus-item-icon {
    color: var(--dcbw-primary);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.focus-item:hover .focus-item-icon {
    transform: scale(1.15);
}

.focus-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dm-text);
}

/* Domma showcase styling - enhanced */
.domma-showcase {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    border-radius: 12px;
    margin: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.domma-showcase:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.domma-showcase .domma-logo {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.domma-showcase .domma-tagline {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.95;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.domma-showcase p {
    position: relative;
    z-index: 1;
}

.domma-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    position: relative;
    z-index: 1;
}

.domma-feature {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.domma-feature:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.domma-showcase .btn {
    position: relative;
    z-index: 1;
    font-weight: 500;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.domma-showcase .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */

/* Contact page split layout */
.contact-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    align-items: start;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-image {
    position: sticky;
    top: 2rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    overflow: hidden;
    min-height: 800px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.08));
}

/* Make form card fill width */
.contact-form-card {
    width: 100%;
}

/* Combined contact info card */
.contact-info-combined-card {
    width: 100%;
}

.contact-info-grid-combined {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--dm-gray-50);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    background: var(--dm-gray-100);
    transform: translateY(-2px);
}

.contact-info-item.availability-item {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.contact-info-item.availability-item:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.contact-info-item.availability-item .contact-info-label,
.contact-info-item.availability-item .contact-info-value {
    color: white;
}

.contact-info-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.contact-info-item.availability-item .contact-info-icon {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.contact-info-details {
    flex: 1;
}

.contact-info-label {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dm-text-secondary);
    margin-bottom: 0.5rem;
}

.contact-info-value {
    color: var(--dm-text);
    font-size: 1rem;
}

.contact-info-value a {
    color: var(--dm-primary);
    text-decoration: none;
    font-weight: 500;
}

.contact-info-value a:hover {
    text-decoration: underline;
}

/* Responsive: stack on mobile/tablet */
@media (max-width: 992px) {
    .contact-split-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-image {
        position: relative;
        top: 0;
        min-height: 400px;
        order: -1;
    }

    .contact-info-grid-combined {
        grid-template-columns: 1fr;
    }
}

/* Hide the container wrapper from original layout */
main .contact-container {
    max-width: none;
    padding: 0;
}
