:root {
    --bg-color: #f4f4f5;
    --surface-color: #ffffff;
    --text-primary: #18181b;
    --text-secondary: #52525b;
    --accent-primary: #2563eb; /* Electric Blue */
    --accent-secondary: #d4e1f5; /* Light Blue */
    --accent-pop: #ea1e63; /* Brutalist Pink/Red */
    --border-color: #e4e4e7;
    --border-strong: #000000;
    --shadow-sharp: 4px 4px 0px 0px rgba(0,0,0,1);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --font-heading: 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Segoe UI', system-ui, sans-serif;
    --max-width: 1280px;
    --header-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--border-strong);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

#small_logo {
    width: 80px;
    display: inline;
    margin-top: 10px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: var(--text-primary);
    color: var(--surface-color);
    padding: 0.5rem 1rem;
    transform: skew(-5deg);
    display: flex;
    align-items: flex-end;
}

nav ul {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-pop);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a.active {
    color: var(--accent-primary);
    font-weight: 700;
}

nav a.active::after {
    width: 100%;
    background-color: var(--accent-primary);
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 2px solid var(--border-strong);
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: white;
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sharp);
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px 0px rgba(0,0,0,1);
}

.btn-primary:active {
    transform: translate(0, 0);
    box-shadow: none;
}

.btn-secondary {
    background-color: var(--surface-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--accent-secondary);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 6rem 0;
    padding-bottom: 160px; /* Space for the banner */
    background: radial-gradient(circle at top right, #e0e7ff, transparent 40%),
                radial-gradient(circle at bottom left, #ffe4e6, transparent 40%);
    text-align: center;
}

#hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background-image: url('../images/herobg3.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    color: var(--text-primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.hero .note {
    margin-top: 3rem;
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-secondary);
    opacity: 0.8;
}

.hero-scope-image {
    position: absolute;
    right: 100px;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: auto;
    z-index: 1;
    object-fit: contain;
    opacity: 0.2;
}

/* Sections General */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: '';
    position: absolute;
    height: 10px;
    width: 100%;
    bottom: 5px;
    left: 0;
    background-color: rgba(37, 99, 235, 0.2);
    z-index: -1;
}

/* Cards Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--surface-color);
    border: 2px solid var(--border-strong);
    padding: 2rem;
    transition: transform 0.2s;
    box-shadow: var(--shadow-sharp);
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.card ul {
    margin-top: 1rem;
    margin-left: 1.2rem;
    list-style-type: square;
}

.card ul li {
    margin-bottom: 0.5rem;
}

/* Solutions Specific */
.solution-block {
    display: flex;
    flex-direction: column;
    margin-bottom: 6rem;
    background: var(--surface-color);
    border-radius: 1rem;
    padding: 3rem;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: visible;
}

.solution-top-row {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.solution-block:nth-child(even) .solution-top-row {
    flex-direction: row-reverse;
}

.solution-content {
    flex: 1;
    z-index: 2;
}

.solution-image-wrapper {
    flex: 1;
    position: relative;
}

.solution-image {
    height: 300px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;
    overflow: hidden;
}

/* Thunder Container - Full Width Below Image Row */
.thunder-container {
    width: 100%;
    position: relative;
}


/* Thunder List */
.thunder-list {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-top: 20px;
    position: relative;
    z-index: 11; /* Ensure text is above lines if needed, or lines above? JS lines z-index 10. */
}

/* Right-side list positioning */
.thunder-container-right .thunder-list {
    padding-left: 80px;
}

/* Left-side list positioning */
.thunder-container-left .thunder-list {
    padding-right: 80px;
}

/* List Items */
.thunder-list li {
    position: relative;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(37, 100, 235, 0.014);
    border-radius: 5px;
    border: 2px solid rgba(37, 99, 235, 0.2);
}

/* Connector Branch (Removed CSS impl, used JS) */
.thunder-connector {
    /* Kept for potential text offset or as anchor if needed */
    display: inline-block;
}

/* Portfolio */
.portfolio-item {
    border-left: 5px solid var(--accent-pop);
    padding-left: 2rem;
    margin-bottom: 3rem;
}

/* AWL Live Stats */
.awl-live-stats {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(234, 30, 99, 0.05));
    border: 2px solid var(--border-strong);
    border-radius: 8px;
    position: relative;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    position: relative;
    transition: background-color 0.3s ease;
}

.pulse-dot.connected {
    background-color: #22c55e;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
}

.live-text {
    color: var(--text-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.stat-box {
    text-align: center;
    padding: 1rem;
    background: var(--surface-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.stat-box.stat-updated {
    background: rgba(37, 99, 235, 0.1);
    transform: scale(1.05);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-primary);
    font-family: 'Courier New', monospace;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Process */
.process-steps {
    counter-reset: steps;
}

.step {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 2rem;
}

.step::before {
    counter-increment: steps;
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--text-primary);
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Footer */
footer {
    background-color: var(--text-primary);
    color: var(--surface-color);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a:hover {
    color: var(--accent-secondary);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    font-family: inherit;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.walking-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background-image: url(../images/walk6.gif), linear-gradient(to top, rgb(16 44 61 / 40%), transparent);    background-repeat: repeat-x, no-repeat;
    background-size: auto 100%, 100% 100%;
    background-position: bottom center, bottom;
    z-index: 1;
    pointer-events: none;
}

/* Responsive */
/* Mobile Toggle Defaults */
.mobile-top-bar {
    display: contents;
}
#mobile-toggle {
    display: none;
}
#mobile-expandable {
    display: contents;
}

@media (max-width: 1024px) {
    header {
        position: fixed;
        width: 100%;
        top: 0;
        height: auto;
        padding: 0;
    }
    
    .header-inner {
        display: block;
        /* Container has padding, so we just stack content */
    }

    .mobile-top-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
    }

    .mobile-top-bar .logo {
        font-size: 1.2rem;
        padding: 0.4rem 0.8rem;
    }

    .mobile-top-bar #small_logo {
        width: 40px;
    }

    #mobile-toggle {
        display: block;
        background: transparent;
        border: none;
        color: var(--text-primary);
        cursor: pointer;
        padding: 0.5rem;
    }
    
    #mobile-toggle.open svg {
        transform: rotate(180deg);
        transition: transform 0.3s ease;
    }

    #mobile-expandable {
        display: flex;
        flex-direction: column;
        height: 0;
        overflow: hidden;
        transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        align-items: center;
    }

    #mobile-expandable nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        padding: 1rem 0;
    }

    .cta-group {
        margin-top: 0.5rem;
        margin-bottom: 2rem;
    }

    .hero{
        margin-top: var(--header-height);
    }

    .hero h1 { 
        font-size: 2.5rem; 
    }

    .hero-scope-image {
        position: absolute;
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
        height: auto;
        max-height: 300px;
        right: auto;
    }
}

@media (max-width: 768px) {
    .solution-top-row {
        flex-direction: column-reverse !important;
        gap: 1rem;
    }

    .solution-image-wrapper {
        width: 100%;
    }

    .solution-image {
        height: auto;
        width: 100%;
    }

    .solution-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    /* Reset padding for thunder lists which was used for the lines */
    .thunder-container-right .thunder-list, 
    .thunder-container-left .thunder-list {
        padding-left: 0;
        padding-right: 0;
    }

    .thunder-svg-overlay {
        display: none !important;
    }

    .solution-block {
        padding: 1.5rem;
    }

    /* Accordion styles for mobile */
    .thunder-list li {
        cursor: pointer;
        padding: 1rem; /* Slightly adjust padding */
    }

    .thunder-list li strong {
        display: block;
        position: relative;
        padding-right: 20px;
    }

    /* Arrow indicator */
    .thunder-list li strong::after {
        content: '+';
        position: absolute;
        right: 0;
        top: 0;
        font-weight: bold;
        transition: transform 0.3s ease;
    }

    .thunder-list li.expanded strong::after {
        transform: rotate(45deg); /* Make it look like x or just rotate plus */
        content: '+'; /* Keep plus and rotate to make X, or minus */
    }
    
    .t-desc {
        display: block;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
        margin-top: 0;
        color: var(--text-secondary);
        font-size: 0.95rem;
    }

    .thunder-list li.expanded .t-desc {
        max-height: 200px; /* Adjust based on content length */
        opacity: 1;
        margin-top: 0.5rem;
    }

    /* Portfolio item with image - mobile adjustments */
    .portfolio-item[style*="display: flex"] {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        gap: 0.5rem !important;
    }

    .portfolio-item img[alt="IoT Core"] {
        width: 120px !important;
        transform: rotate(-5deg) !important;
    }

    .portfolio-item img[alt="DOOH AdTech"] {
        width: 300px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .portfolio-item:has(img[alt="DOOH AdTech"]) > div:first-child {
        align-self: flex-start !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* AWL Stats responsive */
    .awl-live-stats {
        padding: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }
}

/* Cool Quote Section */
.quote-wrapper {
    padding: 6rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
}

.cool-quote {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    color: var(--text-secondary);
    max-width: 1000px;
    letter-spacing: -0.02em;
    font-family: var(--font-heading);
}

.cool-quote .line {
    display: block;
    margin-bottom: 0.5rem;
}

.cool-quote .negative {
    color: var(--text-primary);
    font-size: 1.5em; /* Bigger */
    border-bottom: 4px solid var(--accent-pop);
}

.cool-quote .highlight {
    font-size: 1.8em; /* Much bigger */
    color: var(--surface-color);
    background-color: var(--accent-pop);
    display: inline-block;
    transform: rotate(-2deg);
    padding: 0.2rem 1rem;
    margin: 0.5rem 0;
    box-shadow: var(--shadow-sharp);
    border: 2px solid var(--border-strong);
}
