:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --primary-color: #00f0ff;
    /* Cyan */
    --secondary-color: #7000ff;
    /* Purple */
    --accent-color: #ff0055;
    /* Pink/Red */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: 10px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 300;
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.narrow {
    max-width: 800px;
}

.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    border: none;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px;
    height: 100%;
    width: 100%;
    /* Ensure full width */
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(45deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-icon {
    font-size: 1.2rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    /* Nav height */
}

.hero-content h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -2px;
    position: relative;
    display: inline-block;
}

.glitch-text {
    position: relative;
}

/* Simple Glitch Effect */
.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    opacity: 0.5;
}

.glitch-text::before {
    color: var(--accent-color);
    z-index: -1;
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch-text::after {
    color: var(--primary-color);
    z-index: -2;
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(20% 0 80% 0);
        transform: translate(-2px, 0);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
        transform: translate(2px, 0);
    }

    40% {
        clip-path: inset(40% 0 50% 0);
        transform: translate(-2px, 0);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
        transform: translate(2px, 0);
    }

    80% {
        clip-path: inset(10% 0 70% 0);
        transform: translate(-2px, 0);
    }

    100% {
        clip-path: inset(30% 0 20% 0);
        transform: translate(2px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(2px, 0);
    }

    20% {
        clip-path: inset(30% 0 20% 0);
        transform: translate(-2px, 0);
    }

    40% {
        clip-path: inset(70% 0 10% 0);
        transform: translate(2px, 0);
    }

    60% {
        clip-path: inset(20% 0 50% 0);
        transform: translate(-2px, 0);
    }

    80% {
        clip-path: inset(50% 0 30% 0);
        transform: translate(2px, 0);
    }

    100% {
        clip-path: inset(0% 0 80% 0);
        transform: translate(-2px, 0);
    }
}

.hero-content .highlight {
    font-size: 3.5rem;
    background: linear-gradient(90deg, #fff, var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

.delay-5 {
    animation-delay: 1s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glass Panels / Cards */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    transition: transform 0.3s;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Section specific styling */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title span.thin {
    font-weight: 300;
    font-size: 1.5rem;
    display: block;
    margin-top: 10px;
    color: var(--text-color);
    -webkit-text-fill-color: initial;
}

/* About Section Splat Visual */
.row {
    display: flex;
    align-items: center;
    gap: 50px;
}

.col-text,
.col-visual {
    flex: 1;
}

.glowing-orb {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-color), var(--secondary-color), transparent 70%);
    filter: blur(50px);
    border-radius: 50%;
    margin: 0 auto;
    animation: pulse-glow 4s infinite ease-in-out;
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: var(--primary-color);
    font-weight: 600;
}

.link-arrow:hover {
    gap: 15px;
}

/* Benefits List */
.benefits-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.benefits-list i {
    font-size: 2rem;
    color: var(--secondary-color);
    background: rgba(112, 0, 255, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature-item {
    text-align: left;
    position: relative;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.feature-number {
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: -10px;
    right: 10px;
    z-index: 0;
    line-height: 1;
}

.feature-item h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    z-index: 1;
    position: relative;
    min-height: 3rem;
    /* Height for approx 2 lines to ensure alignment */
    display: flex;
    align-items: center;
}

.feature-item p {
    z-index: 1;
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Accordion */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
}

.accordion-header {
    width: 100%;
    padding: 20px;
    text-align: left;
    background: none;
    border: none;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
    color: rgba(255, 255, 255, 0.7);
}

.accordion-item.active .accordion-content {
    padding-bottom: 20px;
    max-height: 5000px;
    /* Increased limit for longer content */
}

/* Footer */
footer {
    padding: 50px 0;
    background: #000;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Hidden by default */
        position: fixed;
        top: 80px;
        /* Below navbar */
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        backdrop-filter: blur(10px);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        /* Prevent clicks when hidden */
        transition: opacity 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        /* Override display none when active? Actually flex is needed for layout */
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
        /* Above mobile menu */
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content .highlight {
        font-size: 2rem;
    }

    .hero-content .highlight {
        font-size: 2rem;
    }

    .row {
        flex-direction: column;
    }

    /* Hide Free Quote button on mobile */
    .nav-actions .btn {
        display: none;
    }
}

/* Portfolio / Gallery Grid */
.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    cursor: pointer;
    text-align: center;
    padding: 70px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Dark overlay by default */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Darken strongly */
    transition: opacity 0.4s ease;
    z-index: 1;
}

/* Brighten (remove overlay) on hover */
.gallery-item:hover::before {
    opacity: 0;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gallery-thumb {
    position: relative;
    z-index: 2;
    /* Ensure text is above overlay */
}

.gallery-thumb i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: block;
    transition: transform 0.3s ease;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.gallery-item:hover .gallery-thumb i {
    transform: scale(1.2) rotate(10deg);
    color: var(--primary-color);
}

.gallery-thumb span {
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    position: relative;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.2);
    border: 1px solid var(--glass-border);
}

.lightbox-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    padding: 40px 20px;
    text-align: center;
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    border: 1px solid var(--glass-border);
}

.contact-card h3 {
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.contact-role {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-link {
    display: block;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--primary-color);
}

.contact-link i {
    margin-right: 10px;
    width: 20px;
}