:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --primary-color: #ffffff;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --accent-glow-2: rgba(147, 51, 234, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

* {
    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-main);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

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

/* Buttons */
.btn-primary {
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    display: inline-block;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    font-weight: 600;
    display: inline-block;
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: var(--glass-bg);
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    width: 100%;
}

.header-socials {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 2rem;
}

.header-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    transition: var(--transition);
}

.header-socials a:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-2px);
}

.header-socials svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}



/* Nav Flex Container for Desktop */
nav {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo img {
    height: 40px;
    width: auto;
    filter: invert(1) brightness(2);
    /* Fix: Invert black logo to white */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a:not(.btn-primary) {
    color: var(--text-muted);
    font-weight: 500;
}

nav a:not(.btn-primary):hover {
    color: var(--text-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    background: linear-gradient(90deg, #fff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Hero Background Effects */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.sphere-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-glow);
    top: -100px;
    right: -100px;
    animation: float 10s infinite ease-in-out;
}

.sphere-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-glow-2);
    bottom: -50px;
    left: -100px;
    animation: float 12s infinite ease-in-out reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 50px);
    }
}

/* Generic Section Styles */
.section {
    padding: 6rem 0;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }


}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: default;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-icon-img {
    height: 60px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.card-icon-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-card:hover .card-glow {
    opacity: 1;
}

/* Applications Section */
.apps-showcase {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.app-item {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 2rem;
    border-radius: 2rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--glass-border);
}

.app-item:nth-child(even) {
    flex-direction: row-reverse;
}

.app-content {
    flex: 1;
}

.app-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.app-tech {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.app-preview {
    flex: 1;
    aspect-ratio: 16/9;
    background: #111;
    border-radius: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.preview-placeholder {
    color: var(--text-muted);
    font-size: 1.5rem;
    font-weight: 600;
}

@media (max-width: 768px) {

    .app-item,
    .app-item:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }
}

/* Clients Section */
.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    gap: 4rem;
    animation: marquee 20s linear infinite;
    width: max-content;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.client-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.7;
    white-space: nowrap;
    cursor: default;
    transition: var(--transition);
}

.client-logo:hover {
    color: var(--text-color);
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

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

    100% {
        transform: translateX(-33.33%);
    }
}

/* Projects Section */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.project-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    /* Reduced padding */
    border-radius: 2rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

/*.project-card:nth-child(even) {
    flex-direction: row-reverse;
}*/

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-image {
    flex: 1;
    /* Aspect ratio to ensuring fitting */
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 1.5rem;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-size: 1.5rem;
    background: linear-gradient(45deg, #111, #1a1a1a);
    transition: transform 0.5s ease;
}

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

.project-info {
    flex: 1;
}

.project-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.project-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
}

.project-link:hover {
    transform: translateX(5px);
}

@media (max-width: 768px) {

    .project-card,
    .project-card:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }
}

/* Contact/Footer */
.contact-section {
    padding-bottom: 4rem;
}

.contact-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    padding: 5rem 2rem;
    text-align: center;
}

.contact-box h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-box p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
}

footer {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--text-color);
}

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

.social-links {
    display: flex;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-box h2 {
        font-size: 2rem;
    }
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1002;
    position: relative;
    width: 30px;
    /* Explicit width */
    margin-left: auto;
    /* Force right alignment */
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    nav {
        display: flex;
        /* Ensure it's flex for inner items */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.95);
        border-bottom: 1px solid var(--glass-border);
        padding: 4rem 2rem;
        transform: translateY(-150%);
        transition: transform 0.5s ease;
    }

    /* Reset Socials in Mobile Nav */
    .header-socials {
        display: flex !important;
        margin-left: 0;
        margin-top: 1rem;
    }

    nav.active {
        transform: translateY(0);
    }

    nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Contact Form */
.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

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

/* Country Code Dropdown */
.phone-group {
    display: flex;
    gap: 12px;
    position: relative;
    align-items: center;
}

.country-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0 12px;
    height: 50px;
    /* Match typical input height */
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    min-width: 130px;
    position: relative;
    transition: var(--transition);
    user-select: none;
}

.country-select:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Selected Flag Display */
.selected-flag {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 500;
}

.selected-flag::after {
    content: '▼';
    font-size: 0.6rem;
    margin-left: auto;
    /* Push arrow to the right */
    opacity: 0.6;
}

.flag-img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Dropdown List */
.country-list {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 280px;
    max-height: 300px;
    overflow-y: auto;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    padding-top: 0;
    /* Updated for sticky search */
}

/* Search Box */
.search-container {
    position: sticky;
    top: 0;
    background: #111;
    padding: 10px;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.country-search {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    outline: none;
}

.country-search:focus {
    border-color: var(--primary-color);
}

.country-list.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.country-option {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #eee;
}

.country-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.country-option span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Scrollbar for dropdown */
.country-list::-webkit-scrollbar {
    width: 6px;
}

.country-list::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.country-list::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

/* Ensure phone input aligns */
.phone-group input {
    flex: 1;
    height: 50px;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer Info */
.footer-info {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Success Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.popup-content {
    background: #111;
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 2rem;
    text-align: center;
    max-width: 400px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

.popup-icon {
    font-size: 3rem;
    color: #4ade80;
    /* Success Green */
    margin-bottom: 1rem;
}

.popup-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.popup-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Footer Logo Fix */
footer .footer-logo img {
    filter: invert(1) brightness(2) !important;
}

/* About Section */
.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    text-align: center;
}

.about-text p {
    margin-bottom: 2rem;
}



/* Client Logo Images */
.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    /* Fixed height container */
    margin: 0 2rem;
}

.client-logo img {
    max-height: 40px;
    /* Reduced from 50px */
    width: auto;
    max-width: 150px;
    /* Prevent overly wide logos */
    filter: grayscale(1) brightness(0.8);
    transition: var(--transition);
    opacity: 0.6;
    object-fit: contain;
}

.client-logo:hover img {
    filter: grayscale(0) brightness(1);
    opacity: 1;
}



/* Zenith Modal Styles */
.app-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.app-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.close-modal {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 3001;
    transition: transform 0.3s;
}

.close-modal:hover {
    transform: rotate(90deg);
}

.modal-content {
    width: 100%;
    max-width: 1000px;
    padding: 4rem 2rem 6rem 2rem;
    /* Added extra bottom padding */
    color: var(--text-color);
}

.modal-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: slideUp 0.5s ease forwards;
}

.modal-logo {
    height: 80px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.modal-tagline {
    color: var(--primary-color);
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.modal-hero {
    text-align: center;
    margin-bottom: 4rem;
    animation: slideUp 0.6s ease forwards;
}

.modal-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Modal Redesign */

/* Split Layout for Ecosystem Stack */
.modal-split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.stack-column h3 {
    margin-bottom: 1.5rem;
}

.stack-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.stack-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.stack-card:hover {
    transform: translateX(5px);
    border-color: var(--highlight);
}

.stack-card span {
    font-weight: 600;
    color: var(--text-light);
}

.stack-card small {
    color: var(--text-muted);
}

.logo-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ecosystem-diagram-img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 12px;
    /* Remove background glow if image has transparency, or keep subtle if needed */
}

/* Feature Set Card Grid */
.details-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.feature-card h4 {
    color: var(--highlight);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

/* Responsive Redesign adjustments */
@media (max-width: 900px) {
    .modal-split-section {
        grid-template-columns: 1fr;
    }

    .logo-column {
        order: -1;
        /* Place logo on top for mobile/tablet */
        margin-bottom: 1.5rem;
    }

    .stack-grid {
        grid-template-columns: 1fr 1fr;
        /* 2 cols for stack on tablet */
    }
}

@media (max-width: 600px) {
    .stack-grid {
        grid-template-columns: 1fr;
    }

    .details-grid-cards {
        grid-template-columns: 1fr;
    }
}

.modal-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    animation: slideUp 0.7s ease forwards;
}

.modal-section-block {
    display: block;
    margin-bottom: 4rem;
    animation: slideUp 0.7s ease forwards;
}

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.modal-gallery {
    margin-bottom: 4rem;
}

.modal-gallery h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.02);
    border-color: var(--primary-color);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-impact {
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    padding: 3rem;
    border-radius: 2rem;
    border: 1px solid var(--glass-border);
    margin-top: 4rem;
    /* Added spacing */
}

.impact-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    color: #4ade80;
    font-weight: 600;
}

.modal-cta h3 {
    margin-bottom: 1.5rem;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Zenith App Card Logo */
/* Zenith App Card Logo */
.app-card-logo {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: fill;
    filter: none;
    transition: transform 0.3s ease;
}

/* Specific fix for Power Apps Logo on Card being too large */
[data-trigger="custom-apps"] .app-card-logo {
    width: 60% !important;
    /* Reduce size */
    height: auto !important;
    margin: 0 auto;
    /* Center it */
    display: block;
    object-fit: contain;
}

.app-item:hover .app-card-logo {
    transform: scale(1.1);
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0 2rem;
    /* Space for buttons */
}

.carousel-track-container {
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16/9;
    /* Maintain aspect ratio */
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    list-style: none;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Or cover, depending on preference. Contain is safer for UI shots */
    background: #000;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    color: white;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: black;
}

.carousel-btn.prev-btn {
    left: 0;
}

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

.carousel-nav {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    gap: 10px;
}

.carousel-indicator {
    border: 0;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-indicator.current-slide {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Mobile Menu & Close Button Fixes */
.close-modal {
    display: none;
    /* Hidden by default */
}

.app-modal.active .close-modal {
    display: block;
    /* Only show when modal is active */
}

@media (max-width: 768px) {
    nav {
        visibility: hidden;
        /* Hide to prevent accidental clicks/view */
    }

    nav.active {
        visibility: visible;
    }

    .carousel-btn {
        padding: 0.5rem;
        font-size: 1.5rem;
    }
}


.feature-list-simple {
    list-style: none;
    text-align: left;
    margin-top: 1rem;
}

.feature-list-simple li {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Ensure bottom padding is maintained on mobile */
@media (max-width: 768px) {
    .modal-content {
        padding: 4rem 1.5rem 8rem 1.5rem !important;
        /* Force extra space on mobile */
    }
}

/* Impact Stats Section */
.stats-section {
    padding: 3rem 0;
    background: transparent;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 6rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .stats-grid {
        gap: 3rem;
    }

    .stat-number {
        font-size: 3rem;
    }
}

/* Form Validation Styles */
.input-error {
    border: 1px solid #ff4444 !important;
    animation: shake 0.3s ease-in-out;
}

.error-message {
    color: #ff4444;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
    text-align: left;
}

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

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

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

/* Image Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 4000;
    /* Above everything */
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
    padding: 1rem;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-image {
    max-width: 95%;
    max-height: 95vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 2001;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 2.5rem;
    }
}

/* Classic Luxury Loader */
#antigravity-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0b0b0b;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-origin: top;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.loader-logo {
    width: 100px;
    height: auto;
    filter: invert(1);
    opacity: 0;
    margin-bottom: 2rem;
}

.loader-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 0px;
    opacity: 0;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Site Content Visibility */
#site-content {
    opacity: 0;
    pointer-events: none;
}

.final-title {
    font-family: 'Fira Code', monospace;
    font-size: 3rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.2em;
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

/* Reveal States */
.loader-content.visible .final-logo {
    opacity: 1;
    transform: scale(1);
}

.loader-content.visible .final-title {
    opacity: 1;
    transform: translateY(0);
}

#antigravity-loader.fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}