/* ==========================================================================
   CSS Variables & Design System
   ========================================================================== */
:root {
    /* Colors */
    --clr-bg-light: #fdfdfd;
    --clr-bg-alt: #f3f4f8;
    --clr-bg-dark: #120a21;
    --clr-text-main: #1e1b2e;
    --clr-text-muted: #645f7e;
    --clr-text-light: #ffffff;
    --clr-text-light-muted: #a7a1c7;

    /* Brand Colors (Inspired by DNASound mockups) */
    --clr-primary: #592582;
    /* Deep purple */
    --clr-primary-light: #8a35cc;
    --clr-accent-blue: #2dd4bf;
    --clr-accent-pink: #f43f5e;
    --clr-gradient-1: #c471ed;
    --clr-gradient-2: #f64f59;
    --clr-gradient-3: #12c2e9;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Spacing & Sizes */
    --container-width: 1200px;
    --section-py: 100px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;

    /* Transitions & Shadows */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(89, 37, 130, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(89, 37, 130, 0.15);
    --shadow-glow: 0 0 20px rgba(138, 53, 204, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--clr-text-main);
    background-color: var(--clr-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--clr-text-main);
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-py) 0;
    position: relative;
    z-index: 10;
}

/* Utility Classes */
.bg-dark {
    background-color: var(--clr-bg-dark);
    color: var(--clr-text-light);
}

.bg-dark h2,
.bg-dark h3,
.bg-dark h4 {
    color: var(--clr-text-light);
}

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

.text-light {
    color: var(--clr-text-light) !important;
}

.text-light-muted {
    color: var(--clr-text-light-muted);
}

.mt-4 {
    margin-top: 2rem;
}

.lead-text {
    font-size: 1.125rem;
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* Gradients & Text Effects */
.gradient-text {
    background: linear-gradient(135deg, var(--clr-primary-light), var(--clr-accent-pink), var(--clr-accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Background Shapes (Soft vibrant mesh gradient) */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.6;
    pointer-events: none;
    animation: float 15s infinite ease-in-out alternate;
}

.bg-shape-1 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.4) 0%, rgba(255, 255, 255, 0) 60%);
    top: 50%;
    left: 20%;
    transform: translateY(-50%);
}

.bg-shape-2 {
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(196, 113, 237, 0.4) 0%, rgba(246, 79, 89, 0.3) 40%, rgba(255, 255, 255, 0) 70%);
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    animation-delay: -7s;
}

@keyframes float {
    0% {
        transform: translateY(-50%) translate(0, 0) scale(1);
    }

    100% {
        transform: translateY(-50%) translate(30px, -40px) scale(1.05);
    }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: white;
    border: 2px solid var(--clr-primary);
    box-shadow: 0 4px 15px rgba(89, 37, 130, 0.3);
}

.btn-primary:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--clr-primary-light), var(--clr-primary));
    z-index: -1;
    opacity: 0;
    transition: var(--transition-normal);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover:before {
    opacity: 1;
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-primary);
    border: 2px solid var(--clr-primary);
}

.btn-outline:hover {
    background-color: var(--clr-primary);
    color: white;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: var(--transition-normal);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(253, 253, 253, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

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

.logo-sound {
    color: var(--clr-text-main);
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    position: relative;
    font-size: 0.95rem;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-primary);
    transition: var(--transition-normal);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-toggle a {
    color: var(--clr-text-muted) !important;
    text-decoration: none;
    transition: var(--transition-fast);
}

.lang-toggle a:hover,
.lang-toggle a.active {
    color: var(--clr-primary) !important;
}

.lang-toggle a::after {
    display: none !important;
}

.lang-separator {
    color: var(--clr-text-light-muted);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 101;
}

.mobile-menu-btn .bar {
    position: absolute;
    height: 2px;
    width: 100%;
    background-color: var(--clr-text-main);
    transition: var(--transition-normal);
    left: 0;
}

.mobile-menu-btn .bar:nth-child(1) {
    top: 0;
}

.mobile-menu-btn .bar:nth-child(2) {
    top: 9px;
}

.mobile-menu-btn .bar:nth-child(3) {
    top: 18px;
}

.mobile-menu-btn.active .bar:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
    z-index: 10;
}

.hero-content {
    max-width: 800px;
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-primary);
    margin-bottom: 1.5rem;
}

.hero-subtitle::before,
.hero-subtitle::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 2px;
    background-color: var(--clr-primary);
    vertical-align: middle;
    margin: 0 10px;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Glassmorphism Cards
   ========================================================================== */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.85);
}

.glass-card-dark {
    background: rgba(30, 27, 46, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.glass-card-dark:hover {
    transform: translateY(-8px);
    border-color: rgba(138, 53, 204, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(138, 53, 204, 0.15) inset;
    background: rgba(30, 27, 46, 0.8);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.25rem;
    color: var(--clr-text-muted);
}

.intersection-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0;
}

.tag {
    background: rgba(89, 37, 130, 0.1);
    color: var(--clr-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(89, 37, 130, 0.2);
    transition: var(--transition-fast);
}

.tag:hover {
    background: var(--clr-primary);
    color: white;
}

.highlight-quote {
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 600;
    color: var(--clr-text-main) !important;
    border-left: 4px solid var(--clr-primary);
    padding-left: 1.5rem;
    margin-top: 2rem;
}

.mission-card h3 {
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: linear-gradient(135deg, var(--clr-primary-light), var(--clr-accent-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ==========================================================================
   Expertise Section
   ========================================================================== */
.expertise-section {
    position: relative;
    overflow: hidden;
}

.expertise-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 100%, rgba(89, 37, 130, 0.15) 0%, rgba(18, 10, 33, 0) 60%);
    pointer-events: none;
}

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

.expertise-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 1rem;
    transition: var(--transition-normal);
}

.expertise-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.expertise-card p {
    color: var(--clr-text-light-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.expertise-list {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.expertise-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--clr-text-light-muted);
    font-size: 0.9rem;
}

.expertise-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--clr-primary-light);
    transition: var(--transition-fast);
}

.glass-card-dark:hover .expertise-list li::before {
    transform: translateX(3px);
    color: var(--clr-accent-pink);
}

.expertise-focus {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--clr-text-light-muted);
}

.expertise-focus strong {
    color: var(--clr-primary-light);
}

/* ==========================================================================
   Engagement Section
   ========================================================================== */
.engagement-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.engagement-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.engagement-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.engagement-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(89, 37, 130, 0.2);
}

.engagement-item .icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.engagement-item span {
    font-weight: 500;
}

.philosophy-list {
    margin: 1.5rem 0;
}

.philosophy-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 500;
    color: var(--clr-text-muted);
}

.philosophy-list li:last-child {
    border-bottom: none;
}

.core-principle {
    background: var(--clr-bg-alt);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    margin-top: 2rem;
    text-align: center;
}

.core-principle h4 {
    font-size: 1rem;
    color: var(--clr-text-muted);
    margin-bottom: 0.5rem;
}

.core-principle .quote {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--clr-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--clr-text-light-muted);
}

.footer-contact h3 {
    margin-bottom: 1rem;
}

.footer-contact p {
    color: var(--clr-text-light-muted);
    margin-bottom: 1.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--clr-text-light-muted);
    font-size: 0.875rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

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

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 992px) {

    .about-grid,
    .engagement-grid,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .expertise-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 400px;
        background: var(--clr-bg-light);
        flex-direction: column;
        justify-content: center;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
    }

    .nav-links .lang-toggle {
        margin-top: 2rem;
    }

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

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

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ==========================================================================
   Modals
   ========================================================================== */
.engagement-item.modal-trigger {
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: 1rem;
    color: var(--clr-text-main);
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 10, 33, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 600px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(89, 37, 130, 0.2);
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    color: var(--clr-text-muted);
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    z-index: 2;
}

.close-modal:hover {
    color: var(--clr-text-main);
}

.modal-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 2.5rem 1rem 2.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-header .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.modal-header h3 {
    margin-bottom: 0;
    font-size: 1.5rem;
}

.modal-body {
    padding: 2rem 2.5rem 2.5rem 2.5rem;
}

.modal-body p {
    margin-bottom: 1.25rem;
    line-height: 1.6;
    font-size: 1rem;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Opportunities Section
   ========================================================================== */
.opportunities-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 4rem;
}

.opportunities-header {
    padding: 2.5rem;
}

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

@media (min-width: 992px) {
    .opportunities-columns {
        grid-template-columns: 1fr 1fr;
    }
}

.opportunities-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.full-height {
    height: 100%;
}

/* Fix Contact Layout */
.contact-layout {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-link {
    color: var(--clr-text-light-muted);
    font-weight: 500;
    position: relative;
    transition: var(--transition-fast);
}

.contact-link:hover {
    color: var(--clr-accent-blue);
    padding-left: 5px;
}

.email-sub {
    font-size: 0.8em;
    font-weight: 400;
    color: var(--clr-text-muted);
}

@media (max-width: 768px) {
    .contact-layout {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .contact-links {
        align-items: center;
    }

    .contact-link:hover {
        padding-left: 0;
        transform: translateY(-2px);
    }
}