:root {
    --primary: #00f2ff;
    --primary-glow: rgba(0, 242, 255, 0.5);
    --secondary: #7000ff;
    --secondary-glow: rgba(112, 0, 255, 0.5);
    --bg-dark: #080c1a;
    --bg-card: rgba(255, 255, 255, 0.06);
    --text-main: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.15);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

body {
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background:
        radial-gradient(ellipse at 15% 40%, rgba(112, 0, 255, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 15%, rgba(0, 242, 255, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 85%, rgba(112, 0, 255, 0.06) 0%, transparent 45%);
}

h1,
h2,
h3,
.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.glow-text {
    text-shadow: 0 0 20px var(--primary-glow);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.3);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    padding: 1rem 0;
    background: rgba(8, 12, 26, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 42px;
    width: auto;
    max-height: 42px;
    border-radius: 10px;
    display: block;
    flex-shrink: 0;
    transition: var(--transition);
}

.logo:hover .logo-img {
    box-shadow: 0 0 18px rgba(0, 242, 255, 0.35);
    transform: translateY(-1px);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
    box-shadow: 0 0 10px var(--primary-glow);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    filter: brightness(0.75);
}

.hero-content {
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: clamp(1rem, 4vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 100%;
    max-width: 500px;
}


/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 3rem;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
}

/* Projects/Assistants */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(8, 12, 26, 0.97));
    transform: translateY(20px);
    transition: var(--transition);
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    margin-bottom: 0.5rem;
}

.project-overlay p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.5rem;
    border: 1px solid var(--glass-border);
}

.info-text h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.info-text p {
    font-size: 1.2rem;
    font-weight: 600;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

input,
textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    outline: none;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
}

.social-links a {
    color: var(--primary);
    opacity: 0.7;
    transition: var(--transition);
}

.social-links a:hover {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--primary-glow);
}

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 991px) {
    .container {
        padding: 0 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }

    .hero-btns {
        justify-content: center;
    }
}

@media (max-width: 991px) {
    section {
        padding: 60px 0;
    }

    .hamburger {
        display: flex;
        position: relative;
        z-index: 1100;
    }

    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(8, 12, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        transition: var(--transition);
        z-index: 1050;
        display: flex;
        /* Ensure it stays flex when active */
    }

    .nav-wrapper.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 2rem;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .hero-btns .btn {
        margin: 0 !important;
        width: 100%;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Simplify animations for mobile */
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: rgba(15, 10, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .cookie-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.cookie-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.cookie-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: #fff;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 1.5rem;
}

.faq-question h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    text-transform: none;
    /* Changed from uppercase for better readability in FAQ */
    letter-spacing: normal;
}

.faq-question [data-lucide],
.faq-question svg {
    transition: var(--transition);
    color: var(--primary);
}

.faq-item.active .faq-question [data-lucide],
.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    /* Added for extra safety */
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    visibility: visible;
    opacity: 1;
}

.faq-answer p {
    padding: 0 2rem 1.5rem 2rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Comparison Table Section */
.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 3rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    min-width: 850px;
    /* Increased from 700px */
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem 2.5rem;
    /* Increased padding */
    border-bottom: 1px solid var(--glass-border);
    vertical-align: middle;
}

.comparison-table th {
    background: rgba(112, 0, 255, 0.15);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

/* Centering comparison data for better readability */
.comparison-table th:nth-child(2),
.comparison-table th:nth-child(3),
.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3) {
    text-align: center;
}

.comparison-table th:nth-child(3) {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr {
    transition: var(--transition);
}

.comparison-table tr:hover td {
    background: rgba(255, 255, 255, 0.04);
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--text-main);
    width: 25%;
    /* Adjusted from 30% */
}

.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3) {
    width: 37.5%;
    /* Explicit width for comparison columns */
}

/* PETER PAX Column Highlight */
.comparison-table td:nth-child(3) {
    color: var(--primary);
    background: rgba(0, 242, 255, 0.05);
    font-weight: 500;
    border-left: 1px solid rgba(0, 242, 255, 0.1);
}

.comparison-table th:nth-child(3) {
    border-left: 1px solid rgba(0, 242, 255, 0.2);
}

@media (max-width: 768px) {

    .comparison-table th,
    .comparison-table td {
        padding: 1.25rem 1rem;
        font-size: 0.85rem;
    }

    .comparison-table-wrapper {
        margin-top: 2rem;
    }
}