.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-gradient-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    transform: rotate(-30deg);
    background: linear-gradient(
        90deg,
        rgb(15,23,42) 0%, rgb(15,23,42) 2.08%,
        rgb(24,26,58) 2.08%, rgb(24,26,58) 4.17%,
        rgb(33,29,75) 4.17%, rgb(33,29,75) 6.25%,
        rgb(42,32,91) 6.25%, rgb(42,32,91) 8.33%,
        rgb(51,35,107) 8.33%, rgb(51,35,107) 10.42%,
        rgb(60,38,123) 10.42%, rgb(60,38,123) 12.5%,
        rgb(70,41,140) 12.5%, rgb(70,41,140) 14.58%,
        rgb(79,43,156) 14.58%, rgb(79,43,156) 16.67%,
        rgb(88,46,172) 16.67%, rgb(88,46,172) 18.75%,
        rgb(97,49,188) 18.75%, rgb(97,49,188) 20.83%,
        rgb(106,52,205) 20.83%, rgb(106,52,205) 22.92%,
        rgb(115,55,221) 22.92%, rgb(115,55,221) 25%,
        rgb(124,58,237) 25%, rgb(124,58,237) 27.08%,
        rgb(132,56,227) 27.08%, rgb(132,56,227) 29.17%,
        rgb(140,55,217) 29.17%, rgb(140,55,217) 31.25%,
        rgb(148,53,208) 31.25%, rgb(148,53,208) 33.33%,
        rgb(156,52,198) 33.33%, rgb(156,52,198) 35.42%,
        rgb(164,50,188) 35.42%, rgb(164,50,188) 37.5%,
        rgb(172,49,178) 37.5%, rgb(172,49,178) 39.58%,
        rgb(179,47,168) 39.58%, rgb(179,47,168) 41.67%,
        rgb(187,45,158) 41.67%, rgb(187,45,158) 43.75%,
        rgb(195,44,149) 43.75%, rgb(195,44,149) 45.83%,
        rgb(203,42,139) 45.83%, rgb(203,42,139) 47.92%,
        rgb(211,41,129) 47.92%, rgb(211,41,129) 50%,
        rgb(219,39,119) 50%, rgb(219,39,119) 52.08%,
        rgb(201,48,124) 52.08%, rgb(201,48,124) 54.17%,
        rgb(184,57,129) 54.17%, rgb(184,57,129) 56.25%,
        rgb(166,66,134) 56.25%, rgb(166,66,134) 58.33%,
        rgb(149,74,139) 58.33%, rgb(149,74,139) 60.42%,
        rgb(131,83,144) 60.42%, rgb(131,83,144) 62.5%,
        rgb(114,92,149) 62.5%, rgb(114,92,149) 64.58%,
        rgb(96,101,153) 64.58%, rgb(96,101,153) 66.67%,
        rgb(78,110,158) 66.67%, rgb(78,110,158) 68.75%,
        rgb(61,119,163) 68.75%, rgb(61,119,163) 70.83%,
        rgb(43,127,168) 70.83%, rgb(43,127,168) 72.92%,
        rgb(26,136,173) 72.92%, rgb(26,136,173) 75%,
        rgb(8,145,178) 75%, rgb(8,145,178) 77.08%,
        rgb(9,135,167) 77.08%, rgb(9,135,167) 79.17%,
        rgb(9,125,155) 79.17%, rgb(9,125,155) 81.25%,
        rgb(10,115,144) 81.25%, rgb(10,115,144) 83.33%,
        rgb(10,104,133) 83.33%, rgb(10,104,133) 85.42%,
        rgb(11,94,121) 85.42%, rgb(11,94,121) 87.5%,
        rgb(12,84,110) 87.5%, rgb(12,84,110) 89.58%,
        rgb(12,74,99) 89.58%, rgb(12,74,99) 91.67%,
        rgb(13,64,87) 91.67%, rgb(13,64,87) 93.75%,
        rgb(13,54,76) 93.75%, rgb(13,54,76) 95.83%,
        rgb(14,43,65) 95.83%, rgb(14,43,65) 97.92%,
        rgb(14,33,53) 97.92%, rgb(14,33,53) 100%
    );
    background-size: 50% 100%;
    animation: heroGradient 18s linear infinite;
    z-index: 0;
    opacity: 0.55;
    mix-blend-mode: screen;
    pointer-events: none;
}

@keyframes heroGradient {
    0% {
        background-position: 0px 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.hero-video-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.hero-video-container video {
    width: 100%;
	height: 100%;
	opacity: 0.01;
}

.hero-mask-container {
    width: 100%;
    height: 100%;
    background: #080808;
    mix-blend-mode: multiply;
    display: flex;
}

.hero-content-mask,
.hero-content-outline {
    text-align: center;
    width: 100%;
}

.hero-section,
.hero-content-mask {
    display: flex;
    align-items: center;
    justify-content: center;
}

canvas {
    position: absolute;
    margin-top: 88px;
}

#hero-canvas-solid {
    opacity: 0.2;
}

.hero-title-large {
    font-size: 8vw;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.04em;
    font-family: var(--font-body);
}

.hero-outline-container {
    position: absolute;
    mix-blend-mode: screen;
}

.outline-text {
    color: #000;
    -webkit-text-stroke: 0.4vw #cccccc;
    paint-order: stroke;
}

.hero-ui-overlay {
    position: absolute;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 5vh;
}

.hero-ui-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
	text-align: center;
	padding: 20px;
}

.services-section {
    padding: var(--spacing-xl) 0;
    position: relative;
    background: linear-gradient(to bottom, var(--bg-color), #000);
    z-index: 10;
}

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

@media (max-width: 768px) {
	.hero-title-large {
		font-size: 13vw;
		margin-bottom: 20vw;
	}

	.hero-ui-subtitle {
		font-size: 1rem;
	}

    .services-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.service-card {
    padding: 40px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px -10px rgba(139, 92, 246, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.service-card.active:hover {
    transform: none;
    box-shadow: none; /* prevents disconnecting from the expanding window */
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary);
    transition: var(--transition-fast);
}

.service-card:hover .service-icon,
.service-card.active .service-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.about-section {
    padding: var(--spacing-xl) 0;
    position: relative;
    background: linear-gradient(180deg, #000 0%, var(--bg-color) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 250px);
    max-width: 900px;
    margin: 0 auto;
    gap: 4px; /* tight mosaic spacing */
    width: 100%;
    border-radius: 8px; /* wrap entire mosaic loosely */
}

.gallery-item {
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
}

.gallery-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    transition: var(--transition-smooth);
}

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

.gallery-img-placeholder span {
    background: rgba(0, 0, 0, 0.6);
    padding: 5px 15px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    font-size: 0.8rem;
    color: #fff;
}



.reviews-section {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.01);
}

.reviews-carousel {
    max-width: 800px;
    margin: 3rem auto 0;
    position: relative;
    overflow: hidden;
}

.reviews-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card {
    min-width: 100%;
    padding: 3rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(12px);
}

.review-quote {
    font-size: 1.5rem;
    font-style: italic;
    color: #fff;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.review-author {
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.review-company {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.carousel-nav {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.carousel-dots {
    display: flex;
    gap: 12px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    width: 24px;
    border-radius: 10px;
}

.review-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 2px solid var(--glass-border);
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(4px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition-fast);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--text-color);
}

.carousel-btn.prev {
    left: -50px;
}

.carousel-btn.next {
    right: -50px;
}

@media (max-width: 768px) {
    .carousel-btn.prev {
        left: 0;
    }

    .carousel-btn.next {
        right: 0;
    }

    .about-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }

    .gallery-item {
        height: 200px;
    }
}

.contact-section {
    padding: var(--spacing-xl) 0;
    position: relative;
    background: linear-gradient(to top, rgba(139, 92, 246, 0.05), transparent);
}

.contact-grid {
    display: flex;
    justify-content: center;
    width: 100%;
}

.contact-container {
    width: 100%;
    max-width: 800px;
    padding: 40px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .contact-container {
        padding: 30px 20px;
    }
}

.service-modal-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

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

/* --- Services Accordion Styles --- */
.service-card {
    position: relative;
    z-index: 1;
}

.service-card.active {
    background: #060606;
    border-color: var(--primary);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    z-index: 10;
    position: relative;
    height: calc(100% + 21px);
    margin-bottom: -22px;
    backdrop-filter: none;
}

/* Pseudo-element removed for visual continuity */

.service-details-container {
    grid-column: 1 / -1;
    display: none;
    background: #060606;
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 0;
    position: relative;
    z-index: 5;
    animation: dropDown 0.6s ease-out forwards;
    transform-origin: top;
}

.service-details-container.first-in-row {
    border-top-left-radius: 0;
}

.service-details-container.last-in-row {
    border-top-right-radius: 0;
}

@keyframes dropDown {
    from {
        opacity: 0.5;
		border: 1px solid rgba(0,0,0,0);
    }
    to {
        opacity: 1;
		border: 1px solid var(--primary);
    }
}

.service-details-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.service-details-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .services-grid {
        gap: 10px;
    }

    .service-card {
        padding: 16px 20px;
        flex-direction: row;
        align-items: center;
        gap: 15px;
        height: auto !important;
        margin-bottom: 0;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .service-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0;
        background: rgba(2, 132, 199, 0.1);
        border-radius: 8px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .service-icon svg {
        width: 24px;
        height: 24px;
    }

    .service-card.active .service-icon {
        background: var(--primary);
        color: #fff;
    }

    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0;
        color: #fff;
    }

    .service-card p {
        display: none; /* Hide preview text in accordion header */
    }

    /* Accordion Chevron Indicator */
    .service-card::after {
        content: '';
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--primary);
        border-bottom: 2px solid var(--primary);
        transform: rotate(45deg);
        margin-left: auto;
        transition: transform 0.3s ease;
    }

    .service-card.active::after {
        transform: rotate(-135deg);
    }

    .service-card.active {
        background: rgba(2, 132, 199, 0.1);
        border-color: var(--primary);
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .service-details-container {
        margin-top: -10px; /* Bridge the gap to the header */
        border-top: none;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
        padding: 20px;
        background: rgba(255, 255, 255, 0.05);
        border-color: var(--primary);
        animation: accordionFadeIn 0.4s ease-out;
    }

    @keyframes accordionFadeIn {
        from { opacity: 0; transform: translateY(-5px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .service-details-inner h3 {
        display: none; /* Title is already in the accordion header */
    }

    .service-details-gallery {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* --- Energy Field Animation --- */
:root {
    --g: rgba(34, 255, 136, 1);
    --p: rgba(204, 68, 255, 1);
    --b: rgba(0, 212, 255, 1);
    --p-glow: rgba(204, 68, 255, 0);
}

#hero-video-tile {
    opacity: 0;
    transition: opacity 1s ease;
}
#hero-video-tile.visible {
    opacity: 1;
}

#energy-field-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    transition: opacity 1s ease;
}
#energy-field-container.hidden {
    opacity: 0;
    pointer-events: none;
}

.nebula-container {
    position: absolute; inset: 0; z-index: 0;
    background: radial-gradient(circle at 50% 50%, #08081a 0%, #000 100%);
    overflow: hidden;
}

.spotlight {
    position: absolute;
    width: 25vw; height: 25vw;
    border-radius: 50%;
    filter: blur(80px);
    mix-blend-mode: plus-lighter;
    opacity: 0.15;
}

.viewport {
    position: relative;
    width: 100%; height: 100%;
    perspective: 100vw;
    z-index: 1;
}

.beam-system {
    position: absolute; inset: 0;
    mix-blend-mode: screen;
}

.beam {
    position: absolute;
    width: 300vw;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    pointer-events: none;
}

.beam-body {
    position: relative;
    width: 100%;
    filter: blur(1px);
    animation: breathe 4s infinite ease-in-out alternate;
}

.beam-glow {
    position: absolute;
    width: 100%;
    height: 500%; 
    filter: blur(50px);
    opacity: 0.6;
    mix-blend-mode: screen;
}

.master-pivot {
    top: 0; left: 0;
    transform-origin: 0% 0%;
    height: 8vw;
    animation: masterSweep 12s infinite ease-in-out;
    z-index: 10;
}
.master-pivot .beam-body { 
    height: 2.5vw; 
    background: linear-gradient(to bottom, var(--p-glow) 0%, var(--p) 35%, var(--g) 65%, var(--p-glow) 100%);
}
.master-pivot .beam-glow {
    background: linear-gradient(to bottom, transparent, rgba(204, 68, 255, 0.4), rgba(34, 255, 136, 0.4), transparent);
}

@keyframes breathe {
    0% { opacity: 0.6; transform: scaleY(0.98) brightness(0.9); }
    100% { opacity: 1; transform: scaleY(1.02) brightness(1.2); }
}

@keyframes masterSweep {
    0%, 100% { transform: rotate(65deg) rotateX(15deg); }
    50% { transform: rotate(8deg) rotateX(-5deg); }
}

@keyframes sweepSecondary {
    0% { transform: rotate(var(--startAngle)) translateZ(var(--z)) scaleX(1); }
    50% { transform: rotate(var(--endAngle)) translateZ(var(--z)) scaleX(1.1); }
    100% { transform: rotate(var(--startAngle)) translateZ(var(--z)) scaleX(1); }
}

@keyframes floatSpot {
    0%, 100% { transform: translate(var(--sx), var(--sy)); }
    50% { transform: translate(var(--ex), var(--ey)); }
}

@keyframes glitchFrame {
    0%, 98% { transform: translate(0,0) skew(0); filter: brightness(1); }
    99% { transform: translate(10px, -5px) skew(2deg); filter: brightness(2) hue-rotate(90deg); }
    100% { transform: translate(-5px, 2px); filter: brightness(1.5); }
}

.glitch-active {
    animation: glitchFrame 0.2s linear;
}

.vignette {
    position: absolute; inset: 0;
    background: radial-gradient(circle, transparent 30%, black 150%);
    pointer-events: none;
}