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

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Animation */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.brain-mri-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    background-image: url('ChatGPT Image Sep 5, 2025, 03_17_51 PM.png');
    background-size: 40%;
    background-position: center;
    background-repeat: no-repeat;
    animation: brainPulse 8s ease-in-out infinite;
}

.brain-mri-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(0.5px);
}

@keyframes brainPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

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

/* Container */
.container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    padding: 2rem 0;
    text-align: center;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    gap: 1rem;
}

.kannlab-logo {
    position: fixed;
    left: 20px;
    top: 20px;
    z-index: 1000;
}

.kannlab-img {
    height: 110px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.kannlab-img:hover {
    opacity: 1;
}

.aim-logo {
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 1000;
}

.aim-img {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.aim-img:hover {
    opacity: 1;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
}

.brainiac-logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.brainiac-logo {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    animation: logoGlow 2s ease-in-out infinite alternate;
}

.brainiac-text {
    font-size: 2.1rem;
    font-weight: 700;
    color: #ffffff;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

.logo i {
    color: #7877c6;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

.subtitle {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 0.1em;
}

@keyframes logoGlow {
    0% { text-shadow: 0 0 10px rgba(120, 119, 198, 0.5); }
    100% { text-shadow: 0 0 20px rgba(120, 119, 198, 0.8), 0 0 30px rgba(120, 119, 198, 0.3); }
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

.hero-section {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #7877c6 0%, #ff77c6 50%, #78dbff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

.subtitle-text {
    color: #e0e0e0;
    font-weight: 400;
}

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

.hero-description {
    font-size: 1.2rem;
    color: #b0b0b0;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Tasks Grid */
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    max-width: 1000px;
    width: 100%;
}

.task-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

.task-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.1) 0%, rgba(255, 119, 198, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.task-card:hover {
    transform: translateY(-10px);
    border-color: rgba(120, 119, 198, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.task-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2rem;
    color: #7877c6;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.task-icon {
    height: 2.75rem;
    width: auto;
    filter: brightness(0) saturate(100%) invert(47%) sepia(79%) saturate(2476%) hue-rotate(218deg) brightness(118%) contrast(119%);
    transition: all 0.3s ease;
}

.task-card:hover .card-icon {
    transform: scale(1.1);
}

.task-card:hover .task-icon {
    transform: scale(1.1);
    filter: brightness(0) saturate(100%) invert(60%) sepia(100%) saturate(7500%) hue-rotate(300deg) brightness(101%) contrast(101%);
}

.card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.card-description {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.45;
    margin-bottom: 0.75rem;
    flex: 1;
}

.card-features {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.feature-tag {
    background: rgba(120, 119, 198, 0.2);
    color: #7877c6;
    padding: 0.2rem 0.6rem;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(120, 119, 198, 0.3);
}

.card-arrow {
    align-self: flex-end;
    font-size: 1rem;
    color: #7877c6;
    transition: all 0.3s ease;
}

.task-card:hover .card-arrow {
    transform: translateX(5px);
    color: #ff77c6;
}

/* Footer */
.footer {
    margin-top: 4rem;
    padding: 2rem 0;
    text-align: center;
}

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

.footer-link {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link:hover {
    color: #7877c6;
}

.footer-link i {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .kannlab-logo {
        order: 2;
    }
    
    .logo-container {
        order: 1;
    }
    
    .kannlab-img {
        height: 120px;
    }
    
    .aim-img {
        height: 80px;
    }
    
    .brainiac-logo {
        height: 60px;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .tasks-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .task-card {
        padding: 1rem;
        min-height: 160px;
    }
    
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .logo {
        font-size: 2rem;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Task card animations are handled by JavaScript */
