/* CSS Reset & Varsity Variables */
:root {
    --bg-color: #0b0f19;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    
    --primary: #4f46e5;      /* Indigo */
    --primary-hover: #4338ca;
    
    --secondary: #ec4899;    /* Pink */
    --accent: #06b6d4;       /* Cyan */
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

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

/* Custom Parallax Vectors */
.vector-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.vector-item {
    position: absolute;
    font-size: 300px;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: -2;
}

.vector-1 { top: -10%; left: -5%; color: rgba(79, 70, 229, 0.04); animation: floatV1 8s infinite ease-in-out alternate; }
.vector-2 { bottom: 10%; right: -5%; color: rgba(236, 72, 153, 0.03); animation: floatV2 10s infinite ease-in-out alternate; }
.vector-3 { top: 40%; right: 15%; font-size: 150px; color: rgba(6, 182, 212, 0.04); opacity: 0.6; animation: floatV3 7s infinite ease-in-out alternate; }
.vector-4 { bottom: 20%; left: 15%; font-size: 180px; color: rgba(255, 255, 255, 0.02); opacity: 0.6; animation: floatV4 9s infinite ease-in-out alternate; }

@keyframes floatV1 { 0% { margin-top: 0; margin-left: 0; } 100% { margin-top: 30px; margin-left: 15px; } }
@keyframes floatV2 { 0% { margin-top: 0; margin-left: 0; } 100% { margin-top: -35px; margin-left: -20px; } }
@keyframes floatV3 { 0% { margin-top: 0; margin-left: 0; } 100% { margin-top: 25px; margin-left: 10px; } }
@keyframes floatV4 { 0% { margin-top: 0; margin-left: 0; } 100% { margin-top: -40px; margin-left: -30px; } }

/* Background Blobs for mild gradient look */
.blob {
    position: fixed;
    filter: blur(120px);
    z-index: -3;
    opacity: 0.25;
    animation: floating 12s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary), transparent 70%);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary), transparent 70%);
    animation-delay: -2s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent), transparent 70%);
    animation-delay: -4s;
    opacity: 0.4;
}

@keyframes floating {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* App Container */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    /* Since we're in dark mode, the white area around the logo may need styling 
       Wait, the uploaded image is PNG with likely transparency. If it's a white logo or black, 
       Wait, looking at the image in thought, it said the "X" and "ark" are black.
       If the background is dark, a black logo will not be very visible. Let's apply a brightness filter to make it stand out. */
    filter: drop-shadow(0px 0px 8px rgba(255,255,255,0.2)) invert(1) brightness(2);
}

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

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

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

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff !important;
}

/* Hero Section */
.hero-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 4rem;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.3);
    color: #fbcfe8;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

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

.highlight {
    background: linear-gradient(to right, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-inline: auto;
}

/* Meeting Card & Glassmorphism */
.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.meeting-card {
    padding: 2.5rem;
    max-width: 650px;
    margin: 0 auto 4rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.meeting-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.meeting-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.meeting-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--text-muted);
    background: rgba(0,0,0,0.2);
    padding: 0.5rem 1rem;
    border-radius: 12px;
}

.meta-item iconify-icon {
    font-size: 1.2rem;
    color: var(--accent);
}

.meta-item.time iconify-icon {
    color: var(--secondary);
}

.mentor-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* Join Button */
.join-btn {
    position: relative;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-heading);
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 1;
}

.join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(236, 72, 153, 0.4);
}

.join-btn:active {
    transform: translateY(1px);
}

.btn-icon {
    font-size: 1.5rem;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: transparent;
    border: 2px solid var(--secondary);
    border-radius: 50px;
    z-index: -1;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0;
    }
}

.waiting-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

.download-apps {
    margin-top: 2rem;
    text-align: center;
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
}

.download-apps p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.app-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.app-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent);
}

.app-btn iconify-icon {
    font-size: 1.2rem;
}

/* Features Grid */
.features-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    padding: 2rem 0;
}

.feature-card {
    padding: 2rem;
    text-align: left;
    transition: transform 0.3s ease, background 0.3s ease;
}

.hover-up:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.bg-gradient-1 { background: linear-gradient(135deg, #4f46e5, #818cf8); }
.bg-gradient-2 { background: linear-gradient(135deg, #ec4899, #f472b6); }
.bg-gradient-3 { background: linear-gradient(135deg, #06b6d4, #67e8f9); }

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

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

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-muted);
    margin-top: auto;
    font-size: 0.9rem;
}

.powered-by {
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.powered-by a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.powered-by a:hover {
    text-decoration: underline;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    padding: 3rem;
    text-align: center;
    max-width: 400px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.loader {
    border: 4px solid rgba(255,255,255,0.1);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.modal-title {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.cancel-btn {
    margin-top: 2rem;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.4);
    background: transparent;
    color: #fff;
    font-size: 1rem;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.delay-1 { animation: fadeInUp 1s ease-out 0.2s both; }
.delay-2 { animation: fadeInUp 1s ease-out 0.4s both; }

/* Responsive */
@media (max-width: 768px) {
    .app-container {
        padding: 1rem;
    }

    .header {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-links {
        display: flex;
        width: 100%;
        justify-content: center;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
    }
    
    .logo-img {
        height: 38px;
    }

    .hero-title {
        font-size: 2.2rem;
    }
    
    .meeting-card {
        padding: 1.5rem;
    }
    
    .meeting-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .join-btn {
        width: 100%;
        justify-content: center;
        font-size: 1rem;
        padding: 1rem;
    }

    .features-wrapper {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 2rem 1.5rem;
    }
}
