/* Mind Mapper AI - Main Stylesheet */
/* Modern Design with Animated Gradients */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #00d4ff 0%, #0084ff 50%, #7b2ff7 100%);
    --secondary-gradient: linear-gradient(135deg, #0084ff 0%, #7b2ff7 100%);
    --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #7b2ff7 100%);
    --dark-gradient: linear-gradient(135deg, #0a0a2e 0%, #1a1a4e 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Animated Gradient Background */
.gradient-bg {
    background: linear-gradient(-45deg, #0a0a2e, #00d4ff, #0084ff, #7b2ff7, #0047ab, #00d4ff);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    position: relative;
}

/* Geometric Background Shapes */
.gradient-bg::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 47, 247, 0.1));
    border-radius: 50%;
    top: 10%;
    right: 10%;
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

.gradient-bg::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(0, 132, 255, 0.15), rgba(0, 71, 171, 0.1));
    transform: rotate(45deg);
    bottom: 15%;
    left: 5%;
    animation: float 15s ease-in-out infinite reverse;
    z-index: 0;
}

/* Third geometric shape using a separate div would be better, but adding via position */
.gradient-bg > * {
    position: relative;
    z-index: 1;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 10000 !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.nav-links a:hover,
.nav-links a.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.4), rgba(123, 47, 247, 0.4));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.5), 0 0 15px rgba(123, 47, 247, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.6);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem 2rem;
    color: white;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Third geometric shape - Triangle */
.hero::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 200px solid transparent;
    border-right: 200px solid transparent;
    border-bottom: 350px solid rgba(0, 212, 255, 0.08);
    top: 20%;
    left: 50%;
    transform: translateX(-50%) rotate(25deg);
    animation: float 25s ease-in-out infinite;
    z-index: 0;
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease 0.3s both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #00d4ff 0%, #7b2ff7 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.6s both;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(123, 47, 247, 0.3);
}

.cta-button:hover {
    background: linear-gradient(135deg, #7b2ff7 0%, #00d4ff 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px rgba(123, 47, 247, 0.8), 0 0 60px rgba(0, 212, 255, 0.5), 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: #fff;
}

/* Content Cards */
.content-section {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    margin: 1rem 0;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 1s ease;
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.content-section p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

/* Memes Gallery */
.memes-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.meme-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.meme-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4), 0 0 20px rgba(123, 47, 247, 0.3);
    border-color: rgba(0, 212, 255, 0.6);
}

.meme-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 300px;
    background: rgba(255, 255, 255, 0.1);
}

.meme-caption {
    padding: 1rem;
    color: white;
    text-align: center;
    font-weight: 500;
}

/* Visual Showcase Images */
.visual-showcase {
    margin: 1rem 0;
    text-align: center;
    animation: fadeIn 1s ease;
}

.showcase-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.5), 0 0 30px rgba(123, 47, 247, 0.4);
}

/* Profile Image Styles */
.profile-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.profile-image-container {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(0, 212, 255, 0.4);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3), 0 0 20px rgba(123, 47, 247, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image-container:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.6), 0 0 40px rgba(123, 47, 247, 0.4);
    border-color: rgba(0, 212, 255, 0.8);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* About Page Specific Styles */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.25rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4), 0 0 15px rgba(123, 47, 247, 0.3);
    border-color: rgba(0, 212, 255, 0.5);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.feature-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .showcase-image {
        border-radius: 10px;
    }

    .profile-image-container {
        width: 200px;
        height: 200px;
    }

    .menu-toggle {
        display: block;
        z-index: 100001 !important;
        transition: transform 0.3s ease;
        position: relative;
    }

    .menu-toggle:active {
        transform: scale(0.9);
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #0a0a2e 0%, #1a1a4e 100%);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 0;
        gap: 0;
        z-index: 99999;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
        border: 1px solid rgba(0, 212, 255, 0.3);
        border-top: none;
        max-width: 100vw;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease;
        pointer-events: auto;
        touch-action: auto;
    }

    .nav-links li {
        width: 100%;
        margin: 0;
        padding: 0;
        position: relative;
        z-index: 99999;
        background: transparent;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1.2rem;
        margin: 0;
        border-radius: 0;
        background: rgba(255, 255, 255, 0.05);
        border-bottom: 1px solid rgba(0, 212, 255, 0.2);
        position: relative;
        z-index: 100000;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 212, 255, 0.3);
    }
    
    .nav-links a:hover,
    .nav-links a:active,
    .nav-links a:focus {
        background: linear-gradient(135deg, rgba(0, 212, 255, 0.3), rgba(123, 47, 247, 0.3));
        outline: none;
        box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.2);
    }

    .nav-links li:first-child a {
        border-radius: 0;
    }

    .nav-links li:last-child a {
        border-radius: 0 0 10px 10px;
        border-bottom: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .content-section {
        padding: 1rem;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .memes-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .container {
        padding: 1rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }
}
