/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    color: #1e293b;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated background particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(8, 145, 178, 0.08) 0%, transparent 50%);
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Navigation Styling */
.navlen {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    height: 70px;
    color: #1e293b;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    transition: all 0.3s ease;
}

.element-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #7c3aed, #2563eb, #0891b2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.25);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: 70%;
    transform: translate(-50%, -50%);
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.3) 0px,
        rgba(255, 255, 255, 0.3) 2px,
        transparent 2px,
        transparent 6px
    );
    animation: visualizerBars 1.5s infinite ease-in-out;
}

@keyframes visualizerBars {
    0%, 100% { height: 70%; opacity: 0.3; }
    50% { height: 90%; opacity: 0.8; }
}

.logo-icon:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.logo-icon:hover::before {
    animation-duration: 0.8s;
    opacity: 1;
}

.dynamic-logo {
    font-family: 'Roboto Slab', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dynamic-logo:hover {
    color: #7c3aed;
    transform: translateX(5px);
}

.element a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.element a:hover {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    transform: translateY(-2px);
}

.fab {
    font-size: 1.2rem;
}

/* Main Content Styling */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.main-content-logo {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.main-content-logo .logo-icon {
    width: 120px;
    height: 120px;
    font-size: 60px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #7c3aed, #2563eb, #0891b2, #059669);
    animation: pulse 2s infinite;
    position: relative;
    overflow: hidden;
}

.main-content-logo .logo-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    transform: translate(-50%, -50%);
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.4) 0px,
        rgba(255, 255, 255, 0.4) 4px,
        transparent 4px,
        transparent 12px
    );
    animation: mainVisualizerBars 2s infinite ease-in-out;
}

@keyframes mainVisualizerBars {
    0%, 100% { height: 60%; opacity: 0.4; }
    25% { height: 85%; opacity: 0.7; }
    50% { height: 95%; opacity: 0.9; }
    75% { height: 75%; opacity: 0.6; }
}

.main-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #1e293b, #7c3aed, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.main-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4); }
    70% { box-shadow: 0 0 0 30px rgba(124, 58, 237, 0); }
    100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards Container */
.flex-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

/* Card Styling */
.flex-card-items {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.flex-card-items::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #2563eb, #0891b2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.flex-card-items:hover::before {
    transform: scaleX(1);
}

.flex-card-items:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.first-card {
    animation-delay: 0.2s;
}

.second-card {
    animation-delay: 0.4s;
}

.third-card {
    animation-delay: 0.6s;
}

.flex-card-items heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1e293b, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.flex-card-items content {
    display: block;
}

.flex-card-items ul {
    list-style: none;
    padding: 0;
}

.flex-card-items li {
    padding: 0.75rem 0;
    color: #475569;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 2rem;
}

.flex-card-items li::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: #7c3aed;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.flex-card-items:hover li {
    color: #1e293b;
}

.flex-card-items:hover li::before {
    color: #2563eb;
    transform: translateX(5px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.flex-card-items:hover .card-icon {
    opacity: 1;
    transform: scale(1.1);
}

.card-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.explore-text {
    color: #7c3aed;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.flex-card-items:hover .explore-text {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1rem;
        height: 60px;
    }
    
    .dynamic-logo {
        font-size: 1.4rem;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .main-content {
        padding: 2rem 1rem;
        gap: 2rem;
    }
    
    .main-content-logo .logo-icon {
        width: 80px;
        height: 80px;
        font-size: 40px;
    }
    
    .flex-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 500px;
    }
    
    .flex-card-items {
        padding: 1.5rem;
    }
    
    .flex-card-items heading {
        font-size: 1.25rem;
    }

    .main-title {
        font-size: 2rem;
    }

    .main-subtitle {
        font-size: 1rem;
    }

    .card-icon {
        font-size: 2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .flex-cards {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
    
    .flex-card-items {
        min-height: 250px;
    }
}

@media (min-width: 1025px) {
    .flex-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }
    
    .main-content {
        padding: 1.5rem 1rem;
    }
    
    .flex-card-items {
        padding: 1rem;
    }

    .main-title {
        font-size: 1.75rem;
    }

    .main-subtitle {
        font-size: 0.9rem;
    }

    .card-icon {
        font-size: 1.8rem;
    }
}