:root {
    /* Color Palette - Vibrant Professional */
    --color-bg: #0f0c1d;
    /* Deep Navy Background */
    --color-bg-light: #1a162e;
    /* Slightly lighter for sections */

    --color-primary: #6d28d9;
    /* Neon Purple */
    --color-primary-light: #8b5cf6;
    /* Lighter Purple */
    --color-primary-dark: #4c1d95;
    /* Darker Purple */

    --color-accent: #fbbf24;
    /* Gold */
    --color-accent-glow: #f59e0b;
    /* Gold Glow */

    --color-text: #f8fafc;
    /* White/Off-white */
    --color-text-muted: #94a3b8;
    /* Gray text */

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-blur: blur(10px);

    /* Spacing */
    --section-padding: 6rem 0;
    --container-width: 1200px;
    --border-radius: 16px;

    /* Transitions */
    --transition-speed: 0.3s;
}

/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Typography & Utilities --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

strong {
    color: var(--color-text);
    font-weight: 700;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--section-padding);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
}

.section-header p {
    font-size: 1.125rem;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    background: var(--color-primary);
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid transparent;
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.4);
    transition: var(--transition-speed);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--color-accent-glow);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--color-text);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

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

.glow-effect {
    position: relative;
    overflow: hidden;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 12, 29, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.nav-links a:hover {
    color: var(--color-text);
}

.nav-links .btn-primary {
    color: #ffffff;
}

.nav-links .btn-primary:hover {
    color: var(--color-accent);
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--color-text);
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    transition: var(--transition-speed);
}

.lang-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-light);
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: 1.8rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 2px solid var(--color-primary);
    box-shadow: 0 4px 30px rgba(109, 40, 217, 0.5);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 12, 29, 0.7);
    /* Dark overlay to dim video */
    z-index: -1;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--color-primary);
    top: 20%;
    left: 10%;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--color-bg-light);
    bottom: 10%;
    right: 10%;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-text {
    max-width: 700px;
    /* Left aligned by default */
}

.hero-glass-panel {
    background: rgba(10, 5, 20, 0.1);
    /* More transparent */
    backdrop-filter: blur(10px);
    /* Slightly less blur for clarity */
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 0 20px rgba(109, 40, 217, 0.05);
    margin-top: 5vh;
}

.hero-badge {
    display: inline-block;
    background: rgba(251, 191, 36, 0.1);
    color: var(--color-accent);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #e2e8f0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* --- About Section --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-illustration {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    /* Floating Animation */
    animation: float 6s ease-in-out infinite;
}

.about-text {
    /* Purple Border for the text container */
    border: 1px solid var(--color-primary);
    padding: 2rem;
    border-radius: var(--border-radius);
    background: rgba(109, 40, 217, 0.05);
    /* Very subtle purple tint */
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.founder-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.founder-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 1rem;
}

.founder-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    /* Golden Halo */
    border: none;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
}

.founder-header h3 {
    margin-bottom: 0;
    font-size: 1.3rem;
    color: var(--color-text);
}

/* --- Tech Marquee --- */
.tech-marquee {
    padding: 40px 0;
    padding: 40px 0;
    background: rgba(19, 16, 34, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(139, 92, 246, 0.4);
    border-bottom: 1px solid rgba(139, 92, 246, 0.4);
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: flex;
    animation: scroll 45s linear infinite;
    width: max-content;
    will-change: transform;
}

.marquee-set {
    display: flex;
    gap: 60px;
    padding-right: 60px;
    align-items: center;
    min-width: max-content;
}

.marquee-logo {
    height: 40px;
    width: auto;
    opacity: 0.6;
    transition: all 0.3s;
    filter: grayscale(100%);
}

.marquee-logo:hover {
    opacity: 1;
    filter: grayscale(0%) drop-shadow(0 0 10px var(--color-primary-light));
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% / 3));
    }
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns Desktop */
    gap: 50px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition-speed);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* --- FORCED 3D SERVICE CARDS --- */
.service-card {
    /* CRITICAL: Allows image to float outside */
    overflow: visible !important;
    position: relative;
    /* Solid background - no transparency */
    background: #1A162E;
    /* No borders at all */
    border: none;
    border-top: none;
    border-radius: 16px;
    padding: 0;
    margin-top: 60px;
    /* Space for the popping image */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    /* Shadow defines the shape */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-card:hover {
    transform: translateY(-5px);
    /* Slightly brighter background on hover */
    background: #231e3d;
    /* Purple glow underneath */
    box-shadow: 0 20px 40px -5px rgba(139, 92, 246, 0.3);
}

.service-img {
    width: 100%;
    /* Make it wider than the card for effect */
    aspect-ratio: 16/10;
    object-fit: cover;
    /* THE POP-OUT MAGIC */
    margin-top: -60px !important;
    border-radius: 16px;
    position: relative;
    z-index: 10;
    /* Cyberpunk Glow & Fade */
    filter: drop-shadow(0 -10px 20px rgba(109, 40, 217, 0.5));
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    /* Floating Animation */
    animation: float 6s ease-in-out infinite;
}

.service-content {
    padding: 30px;
    /* Increased from standard */
    background: transparent;
    position: relative;
    z-index: 5;
}

.service-highlight {
    color: #FFD700;
    /* Gold */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    color: #ffffff;
    font-weight: 700;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: #e2e8f0;
    /* White/Light Grey */
}

.feature-list li i {
    color: var(--color-accent);
    font-size: 1.2rem;
    margin-top: 2px;
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns Desktop */
    gap: 30px;
}

.project-card {
    padding: 0;
    /* Override glass-card padding */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.project-content p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.highlight-metric {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 50px;
    background: rgba(251, 191, 36, 0.1);
    color: #FFD700 !important;
    font-weight: 700;
    text-align: center;
}

/* --- Float Animation (Living Breath Effect) --- */
@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0);
    }
}

/* --- Mid CTA --- */
.mid-cta {
    position: relative;
    padding: 4.5rem 0;
    text-align: center;
    overflow: hidden;
    /* Background Image with Dark Overlay - Parallax Effect */
    background: linear-gradient(rgba(15, 12, 29, 0.75), rgba(15, 12, 29, 0.6)), url('assets/CTA.jpg');
    background-size: cover;
    background-position: 50% 50%;
    background-attachment: fixed;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Shimmer Animation (Premium Living Background) --- */
@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Optional: Add a grid overlay pattern via CSS */
.mid-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.mid-cta .container {
    position: relative;
    z-index: 2;
    /* Keep text above the grid */
}

.mid-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.mid-cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Process Section --- */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    position: relative;
    padding: 2rem;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    transition: var(--transition-speed);
}

.step:hover {
    border-color: var(--color-primary);
    transform: translateX(10px);
}

.step-number {
    font-size: 5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 0;
    line-height: 1;
}

.step-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: rgba(109, 40, 217, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    position: relative;
    z-index: 1;
    font-size: 2rem;
    color: var(--color-primary-light);
}

.step-content {
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.step-content p {
    margin-bottom: 0;
}

.step:nth-child(even) {
    border-color: rgba(251, 191, 36, 0.5);
}

.step:nth-child(even):hover {
    border-color: var(--color-accent);
}

.step:nth-child(even) .step-icon {
    background: rgba(251, 191, 36, 0.1);
    color: var(--color-accent);
    border-color: rgba(251, 191, 36, 0.3);
}

.step:nth-child(even) .step-number {
    color: rgba(251, 191, 36, 0.1);
}

/* --- FAQ Section --- */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.accordion-item {
    background: var(--glass-bg);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-speed);
}

.accordion-item:hover {
    border-color: var(--color-primary-light);
}

.accordion-header {
    width: 100%;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-speed);
}

.accordion-header i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--color-accent);
}

.accordion-header.active i {
    transform: rotate(180deg);
    color: var(--color-primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 0, 0, 0.2);
}

.accordion-content p {
    padding: 20px 25px;
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* --- Contact Section --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-details {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.detail-item i {
    color: var(--color-primary-light);
    font-size: 1.5rem;
}

.contact-form-wrapper {
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.1);
}

.full-width {
    width: 100%;
}

/* --- Footer --- */
footer {
    background: var(--color-bg-light);
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-logo img {
    height: 30px;
    width: auto;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 2.8rem;
    }

    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 0;
    }

    .nav-links {
        display: none;
        /* Hidden by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        /* CRITICAL: Solid Dark Background for Mobile Menu */
        background: rgba(15, 12, 29, 0.98);
        padding: 20px;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-glass-panel {
        padding: 2rem;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        /* 1 Column on Mobile */
    }

    /* Mobile Process Section */
    .step {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem;
    }

    .step:hover {
        transform: translateY(-5px);
    }

    .step-number {
        top: 10px;
        right: 50%;
        transform: translateX(50%);
        font-size: 4rem;
    }

    .step-icon {
        margin-bottom: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}