/* CEOSLAB Premium Dark Design System */
:root {
    /* Colors */
    --bg-dark: #020617;
    /* Very deep blue/black */
    --bg-card: rgba(30, 41, 59, 0.4);
    /* Glassy dark slate */
    --primary-gradient: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
    --accent-gradient: linear-gradient(135deg, #7F1D1D 0%, #DC2626 100%);
    /* Dark Red to Bright Red */
    --text-white: #F8FAFC;
    --text-muted: #94A3B8;
    --border-glass: rgba(255, 255, 255, 0.1);

    /* Glow Effects */
    --glow-blue: 0 0 40px rgba(30, 58, 138, 0.3);
    --glow-red: 0 0 20px rgba(220, 38, 38, 0.4);

    /* Typography */
    --font-main: 'Inter', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 6rem 2rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Gradients */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.2) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(127, 29, 29, 0.15) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    /* Modern pill shape */
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.5);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Header */
header {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: padding 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo-container {
    display: flex;
    align-items: center;
}

/* Logo Update */
.logo-img {
    height: 70px;
    /* Significantly increased size */
    margin-right: 15px;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* AI Voice Assistant Modal */
#ai-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-modal {
    background: linear-gradient(135deg, #0F172A, #1e293b);
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(220, 38, 38, 0.2);
    overflow: hidden;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ai-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.close-ai {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
}

.ai-avatar {
    width: 80px;
    height: 80px;
    background: var(--bg-dark);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #DC2626;
    position: relative;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #DC2626;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.ai-content {
    padding: 2rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#ai-status {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-white);
}

#ai-visualizer {
    display: flex;
    gap: 5px;
    height: 30px;
    align-items: center;
}

#ai-visualizer span {
    display: block;
    width: 5px;
    height: 5px;
    background: #DC2626;
    border-radius: 5px;
    transition: height 0.1s;
}

#ai-visualizer.active span {
    animation: soundWave 0.5s infinite ease-in-out alternate;
}

#ai-visualizer.active span:nth-child(1) {
    animation-delay: 0s;
}

#ai-visualizer.active span:nth-child(2) {
    animation-delay: 0.1s;
}

#ai-visualizer.active span:nth-child(3) {
    animation-delay: 0.2s;
}

#ai-visualizer.active span:nth-child(4) {
    animation-delay: 0.3s;
}

#ai-visualizer.active span:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes soundWave {
    0% {
        height: 5px;
    }

    100% {
        height: 30px;
    }
}

.ai-controls {
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
}


.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    z-index: 1;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Behind content */
    opacity: 0.6;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/hero.png');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
    animation: zoomIn 30s infinite alternate;
}

@keyframes zoomIn {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.8));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    /* Above canvas */
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.hero-content p {
    font-size: 1.35rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    /* Ensure vertical alignment */
    flex-wrap: wrap;
    /* Allow wrapping on very small screens */
}

/* Ensure buttons themselves align properly */
.hero-buttons .btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 200px;
    /* Consistent width */
}

/* Section Common */
.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title span {
    color: #DC2626;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 3rem;
    border-radius: 12px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
}

/* Timeline/Process */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateX(10px);
    background: rgba(30, 41, 59, 0.6);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 4rem;
    backdrop-filter: blur(10px);
}

.contact-info-item h4 {
    color: #DC2626;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info-item p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: white;
    font-family: var(--font-main);
    margin-bottom: 1.5rem;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #DC2626;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-glass);
    padding: 5rem 2rem 2rem;
    background: linear-gradient(to top, #020617 0%, #0F172A 100%);
}

/* Mobile */
.hamburger {
    display: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 90px;
        left: 0;
        width: 100%;
        background: #020617;
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-glass);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }
}