/* CSS Variables */
:root {
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #6d28d9;
    --accent-light: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6d28d9 0%, #3b82f6 100%);
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Cursor Blob */
#cursor-blob {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    /* Subtle organic blend of purple, blue, and orange */
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.1) 30%, rgba(249, 115, 22, 0.08) 60%, transparent 75%);
    background-size: 200% 200%;
    filter: blur(40px);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    will-change: transform, opacity, background-position;
    animation: blobColors 10s ease infinite alternate;
}

@keyframes blobColors {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Typography */
h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 800;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

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

.section-padding {
    padding: 6rem 0;
}

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

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--accent-gradient);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(109, 40, 217, 0.5);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: var(--transition);
}

#navbar.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    border-radius: 8px;
}

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

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

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

.nav-links a.btn-primary:hover {
    color: white;
}

/* Hero Section */
#hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(5,5,5,0) 0%, rgba(5,5,5,1) 100%);
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    z-index: 1;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-logo-container {
    margin-bottom: 1.5rem;
    perspective: 1000px;
    position: relative;
    display: inline-block;
}

.hero-logo-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(139, 92, 246, 0.4), rgba(59, 130, 246, 0.3), rgba(249, 115, 22, 0.2));
    background-size: 200% 200%;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morphAura 8s ease-in-out infinite alternate, spinAura 20s linear infinite;
    filter: blur(25px);
    z-index: -1;
    pointer-events: none;
}

@keyframes morphAura {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; background-position: 0% 50%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 40% 60% 50% 50% / 40% 50% 60% 50%; background-position: 100% 50%; }
}

@keyframes spinAura {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-animated-logo {
    position: relative;
    max-width: 500px;
    width: 90%;
    animation: floatLogo 6s ease-in-out infinite, glowLogo 4s alternate infinite;
    filter: drop-shadow(0 0 20px rgba(109, 40, 217, 0.4));
    z-index: 2;
}

@keyframes floatLogo {
    0% { transform: translateY(0) rotateX(0); }
    50% { transform: translateY(-10px) rotateX(5deg); }
    100% { transform: translateY(0) rotateX(0); }
}

@keyframes glowLogo {
    from { filter: drop-shadow(0 0 10px rgba(109, 40, 217, 0.4)); }
    to { filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.8)); }
}

.tagline-container {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 1.3rem !important;
    font-weight: 200;
    color: var(--text-primary) !important;
    font-style: normal;
    min-height: 2.5rem;
    display: block;
    margin-bottom: 2rem;
    position: relative;
}

.glitch-anim {
    animation: glitch 1.5s infinite both;
}

@keyframes glitch {
  0%, 100% { transform: translate(0); text-shadow: 0 0 0 transparent; }
  20% { transform: translate(-2px, 2px); text-shadow: 2px -2px rgba(139, 92, 246, 0.8), -2px 2px rgba(59, 130, 246, 0.8); }
  40% { transform: translate(-1px, -1px); text-shadow: 1px 1px rgba(139, 92, 246, 0.8), -1px -1px rgba(59, 130, 246, 0.8); }
  60% { transform: translate(2px, 1px); text-shadow: -2px -1px rgba(139, 92, 246, 0.8), 2px 1px rgba(59, 130, 246, 0.8); }
  80% { transform: translate(1px, -2px); text-shadow: -1px 2px rgba(139, 92, 246, 0.8), 1px -2px rgba(59, 130, 246, 0.8); }
}

/* Partners Marquee */
.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    padding: 2rem 0;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

.marquee {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee img {
    height: 50px;
    margin: 0 3rem;
    vertical-align: middle;
    filter: grayscale(100%) opacity(0.6);
    transition: var(--transition);
}

.marquee img:hover {
    filter: grayscale(0%) opacity(1);
}

.invert-logo {
    filter: invert(1) brightness(2) opacity(0.6) !important;
}

.scale-logo {
    transform: scale(1.6);
    margin: 0 4rem !important; /* Extra margin to prevent overlapping */
}

.marquee img.invert-logo:hover {
    filter: invert(1) brightness(2) opacity(1) !important;
}

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

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

.team-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: rgba(109, 40, 217, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.img-wrapper {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    filter: grayscale(80%) contrast(110%) brightness(90%);
}

.team-card:hover .img-wrapper img {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(100%) brightness(100%);
}

.card-content {
    padding: 2rem;
    text-align: center;
}

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

.linkedin-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.linkedin-link:hover {
    color: #0a66c2; /* LinkedIn brand color */
    text-shadow: 0 0 10px rgba(10, 102, 194, 0.5);
}

.role {
    color: var(--accent-light);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Contact Section */
.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 4rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.glass-panel p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.input-group:focus-within {
    border-color: var(--accent-light);
    box-shadow: 0 0 15px rgba(109, 40, 217, 0.2);
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 1.5rem;
    color: white;
    font-size: 1rem;
    font-family: var(--font-main);
    outline: none;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.hidden {
    display: none;
}

#form-message {
    margin-top: 1rem;
    font-size: 0.9rem;
}

#form-message.success {
    color: #10b981;
}

/* Modal Reel */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
}

.modal-content video {
    width: 100%;
    border-radius: 10px;
    outline: none;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1001;
}

.close-modal:hover {
    color: var(--accent-light);
}

/* Footer */
footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .input-group {
        flex-direction: column;
        border-radius: 20px;
        background: transparent;
        border: none;
    }
    
    .input-group input {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 50px;
        padding: 1rem 1.5rem;
        margin-bottom: 1rem;
    }
    
    .glass-panel {
        padding: 2rem 1rem;
    }
}
