:root {
    --bg-color: #000000;
    /* Pure Black */
    --text-color: #e0e0e0;
    --primary-color: #D4AF37;
    /* Metallic Gold */
    --secondary-color: #8A6E24;
    /* Darker Gold/Bronze */
    --accent-color: #ffffff;
    /* White accent for contrast */
    --glass-bg: rgba(20, 20, 20, 0.6);
    /* Darker glass */
    --glass-border: rgba(212, 175, 55, 0.3);
    /* Gold tint border */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Background Glow */
.background-glow {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Navbar */
.navbar {
    height: 70px;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

/* Spacer to push content away from absolute logo */
.nav-spacer {
    width: 180px;
    flex-shrink: 0;
}



.menu-toggle {
    display: none;
}

.logo {
    position: absolute;
    top: 0;
    left: 2rem;
    background: rgba(10, 10, 15, 0.95);
    padding: 30px 25px;
    /* Symmetrical vertical/horizontal padding */
    border-radius: 0 0 25px 25px;
    border: 1px solid var(--glass-border);
    border-top: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    height: 100px;
    /* Large vertical logo */
    width: auto;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.2));
}

.logo .highlight {
    color: var(--primary-color);
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.lang-btn:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 10px var(--primary-color);
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-links .btn-primary {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    color: var(--primary-color);
}

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

/* Portal Switcher */
.portal-switcher {
    display: flex;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 2px;
    position: relative;
    overflow: hidden;
    margin: 0 1.5rem;
}

.portal-switcher-mobile {
    display: none;
}


.portal-btn {
    padding: 0.4rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.portal-btn.active {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.portal-btn:not(.active):hover {
    color: var(--primary-color);
    background: rgba(212, 175, 55, 0.1);
}

@media (max-width: 768px) {
    .portal-switcher {
        margin: 1rem auto;
        order: -1;
        /* Move to top in mobile menu */
    }
}


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 5% 0;
    /* Added top padding to clear the navbar */
    position: relative;
    overflow: hidden;
}



.hero-content {
    max-width: 600px;
    z-index: 10;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero .gradient-text {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: #000000;
    /* Black text on gold button for contrast */
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
}

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

.hero-visual {
    position: relative;
    width: 40%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-orb {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--secondary-color), transparent);
    border-radius: 50%;
    filter: blur(50px);
    animation: orb-float 6s ease-in-out infinite;
}

@keyframes orb-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.1);
    }
}

/* Services Section */
.services,
.news-section,
.philosophy,
.tech-stack {
    padding: 5rem 5%;
}

.tech-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.tech-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tech-card-image {
    width: 100%;
    height: 180px;
    margin: -2.5rem -2.5rem 1.5rem -2.5rem;
    width: calc(100% + 5rem);
    border-bottom: 1px solid var(--glass-border);
}

.tech-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tech-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.1);
    background: rgba(30, 30, 30, 0.6);
}

.tech-card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.tech-card h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.tech-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.7;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: -2rem;
}

.detail-card {
    border-color: rgba(138, 110, 36, 0.3);
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
}

.news-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.news-date {
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.news-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-snippet {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-link:hover {
    text-decoration: underline;
}

.loading-news {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-color);
    font-size: 1.2rem;
    padding: 2rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease;
    backdrop-filter: blur(5px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-image {
    width: 100%;
    height: 200px;
    margin: -2rem -2rem 1.5rem -2rem;
    width: calc(100% + 4rem);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
    position: relative;
    background: #000;
}

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

/* Atmosphere Style for new cards */
.card-image.atmosphere {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1a1a2e 0%, #0a0a0f 100%);
}

.blurred-bg {
    filter: blur(30px) brightness(0.6) saturate(1.8);
    transform: scale(1.4);
    opacity: 0.7 !important;
}

.glow-sphere {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.5;
    z-index: 2;
    animation: pulse-glow 3s infinite alternate;
}

.glow-sphere.gold {
    background: #d4af37;
}

.glow-sphere.blue {
    background: #4a90e2;
}

.glow-sphere.purple {
    background: #9b51e0;
}

@keyframes pulse-glow {
    from {
        transform: scale(0.7);
        opacity: 0.4;
    }

    to {
        transform: scale(1.3);
        opacity: 0.8;
    }
}

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

.card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
}

/* Bridge Section */
.bridge-section {
    padding: 6rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
    position: relative;
    overflow: hidden;
}

.bridge-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 4rem;
    max-width: 900px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 5;
}

.bridge-card h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.bridge-card p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.bridge-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 768px) {
    .bridge-card {
        padding: 2.5rem 1.5rem;
    }

    .bridge-card h2 {
        font-size: 2rem;
    }
}


/* Contact Section */
.contact {
    padding: 5rem 5%;
    background: rgba(0, 0, 0, 0.2);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-info .info-item {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
}

.contact-info .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 0.1em;
}

.contact-info .value {
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.contact-form {
    background: var(--glass-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.form-group select option {
    background-color: #000000;
    color: var(--text-color);
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    min-height: 1.5em;
}

/* Footer */
footer {
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.5);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        height: auto;
        padding-top: 5rem;
        /* Reduced: logo is now inline (small) so less clearance needed */
        padding-bottom: 4rem;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    /* Mobile Menu */
    .menu-toggle {
        display: block;
        cursor: pointer;
        z-index: 1001;
        /* Ensure it is above the menu */
    }

    .menu-toggle .bar {
        display: block;
        width: 30px;
        /* Slightly wider */
        height: 3px;
        margin: 6px auto;
        -webkit-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
        background-color: var(--primary-color);
        /* Gold for visibility */
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
        /* Shadow for contrast */
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        background-color: rgba(0, 0, 0, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        z-index: 999;
    }

    .nav-spacer {
        display: none;
    }

    .navbar>.portal-switcher {
        display: flex !important;
        margin: 0 auto;
        transform: scale(0.85);
        position: absolute;
        left: 50%;
        transform: translateX(-50%) scale(0.8);
        z-index: 1002;
    }

    .nav-links .portal-switcher-mobile {
        display: none !important;
    }



    .nav-links.active {
        left: 0;
    }

    .nav-links a,
    .nav-links .lang-btn,
    .nav-links .btn-primary {
        margin: 1rem auto;
        display: block;
        font-size: 1.5rem;
        /* Larger font for mobile touch */
        width: 80%;
        /* Wider hit area */
        text-align: center;
    }

    .nav-links .btn-primary {
        display: inline-block;
        width: auto;
        padding: 1rem 2rem;
        margin-top: 2rem;
    }

    .lang-btn {
        margin: 1.5rem auto;
        display: inline-block;
    }

    /* Hamburger Animation */
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 45px;
    height: 45px;
    bottom: 30px;
    right: 40px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(37, 211, 102, 0.4);
    z-index: 10000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-float:hover {
    background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.whatsapp-label {
    position: absolute;
    right: 60px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(10px);
    pointer-events: none;
}

.whatsapp-float:hover .whatsapp-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 38px;
        height: 38px;
        bottom: 15px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 21px;
        height: 21px;
    }

    .whatsapp-label {
        display: none;
        /* Hide label on mobile to avoid overlapping */
    }
}

/* LinkedIn Floating Button */
.linkedin-float {
    position: fixed;
    width: 45px;
    height: 45px;
    bottom: 90px;
    right: 40px;
    background: linear-gradient(135deg, #0077B5 0%, #00a0dc 100%);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 119, 181, 0.4);
    z-index: 10000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.linkedin-float:hover {
    background: linear-gradient(135deg, #005e93 0%, #0077B5 100%);
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 119, 181, 0.6);
}

.linkedin-float svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.linkedin-label {
    position: absolute;
    right: 60px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(10px);
    pointer-events: none;
}

.linkedin-float:hover .linkedin-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .linkedin-float {
        width: 38px;
        height: 38px;
        bottom: 68px;
        right: 20px;
    }

    .linkedin-float svg {
        width: 18px;
        height: 18px;
    }

    .linkedin-label {
        display: none;
    }
}

/* Instagram Floating Button */
.instagram-float {
    position: fixed;
    width: 45px;
    height: 45px;
    bottom: 150px;
    right: 40px;
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(131, 58, 180, 0.4);
    z-index: 10000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.instagram-float:hover {
    background: linear-gradient(135deg, #6b2d8b 0%, #c0392b 50%, #e0952e 100%);
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(131, 58, 180, 0.6);
}

.instagram-float svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.instagram-label {
    position: absolute;
    right: 60px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(10px);
    pointer-events: none;
}

.instagram-float:hover .instagram-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .instagram-float {
        width: 38px;
        height: 38px;
        bottom: 120px;
        right: 20px;
    }

    .instagram-float svg {
        width: 18px;
        height: 18px;
    }

    .instagram-label {
        display: none;
    }
}

/* X (Twitter) Floating Button */
.x-float {
    position: fixed;
    width: 45px;
    height: 45px;
    bottom: 210px;
    right: 40px;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 255, 255, 0.1);
    z-index: 10000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.x-float:hover {
    background: linear-gradient(135deg, #333333 0%, #555555 100%);
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(255, 255, 255, 0.2);
}

.x-float svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.x-label {
    position: absolute;
    right: 60px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(10px);
    pointer-events: none;
}

.x-float:hover .x-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .x-float {
        width: 38px;
        height: 38px;
        bottom: 173px;
        right: 20px;
    }

    .x-float svg {
        width: 17px;
        height: 17px;
    }

    .x-label {
        display: none;
    }
}

/* Pillars Section */
.pillars {
    padding: 8rem 5%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(212, 175, 55, 0.05) 50%, rgba(0, 0, 0, 0) 100%);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
    max-width: 1200px;
    margin: 4rem auto 0;
}

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

.pillar-image {
    width: 100%;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

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

.pillar-item:hover .pillar-image img {
    transform: scale(1.05);
}

.pillar-item h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.pillar-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* Manifesto Section */
.manifesto {
    padding: 10rem 5%;
    text-align: center;
}

.manifesto-content {
    max-width: 1000px;
    margin: 0 auto;
}

.manifesto h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.manifesto-quote {
    font-size: 2rem;
    font-style: italic;
    color: var(--primary-color);
    margin-bottom: 3rem;
    line-height: 1.4;
}

.human-switch-box {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--glass-bg);
    border: 1px solid var(--primary-color);
    border-radius: 30px;
    display: inline-block;
    max-width: 600px;
}

.human-switch-box h4 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Responsive Pillars */
@media (max-width: 768px) {
    .pillars-grid {
        gap: 3rem;
    }

    .manifesto h2 {
        font-size: 2.5rem;
    }

    .manifesto-quote {
        font-size: 1.5rem;
    }
}

/* Cinematic Evolution Stage */
.evolution-stage {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 550px;
    margin: 4rem auto;
    border-radius: 40px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.1);
}

.evolution-side {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.complex-side {
    left: 0;
    clip-path: polygon(0 0, 48% 0, 52% 100%, 0% 100%);
    filter: grayscale(1) contrast(1.2) brightness(0.5) sepia(0.2) hue-rotate(180deg);
    z-index: 1;
}

.happy-side {
    right: 0;
    filter: saturate(1.6) contrast(1.1) brightness(1.1);
    z-index: 0;
}

.evolution-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
    z-index: 10;
    transform: translateX(-50%) skewX(-2.5deg);
    box-shadow: 0 0 40px var(--primary-color);
    animation: energy-pulse 2.5s infinite alternate;
}

.evolution-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 5;
    opacity: 0.2;
    mix-blend-mode: color-dodge;
}

@keyframes energy-pulse {
    from {
        opacity: 0.5;
        box-shadow: 0 0 10px var(--primary-color);
    }

    to {
        opacity: 1;
        box-shadow: 0 0 50px var(--primary-color);
    }
}

@media (max-width: 768px) {
    .evolution-stage {
        height: 400px;
    }

    .complex-side {
        clip-path: polygon(0 0, 100% 0, 100% 48%, 0 52%);
    }

    .evolution-divider {
        width: 100%;
        height: 4px;
        left: 0;
        top: 50%;
        transform: translateY(-50%) skewY(-2.5deg);
    }
}

/* ==========================================================================
   FINAL OVERRIDES (Mobile & Fixes)
   ========================================================================== */

@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem !important;
        justify-content: space-between !important;
        height: 60px !important;
    }

    .logo {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        background: transparent !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        z-index: 1001 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 60px !important;
        /* Limit width to allow space for switcher */
    }

    .brand-logo {
        height: 40px !important;
        width: auto !important;
    }

    .hero {
        padding-top: 5rem !important;
    }
}

/* Dynamic Carousels */
.dynamic-carousel-section {
    padding: 4rem 5%;
    text-align: center;
}

.carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 3rem;
    padding: 2rem 0;
    width: max-content;
    align-items: center;
    animation: scroll 30s linear infinite;
}

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

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

.carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin: 0 auto;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-item img {
    height: 60px;
    width: auto;
    filter: none;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.logo-item img:hover {
    opacity: 1;
    transform: scale(1.1);
}

.project-item {
    min-width: 300px;
    height: 200px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.carousel-title {
    margin-bottom: 2rem;
    font-size: 2.5rem;
}