@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #00ffcc;
    --secondary-color: #ff00aa;
    --accent-color: #7700ff;
    --text-color: #f0f0f0;
    --bg-color: #0a0a0a;
    --card-bg: rgba(20, 20, 20, 0.7);
}

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

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

@keyframes slideInFromLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInFromRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    padding: 3rem 0;
    animation: fadeIn 1.2s ease-out forwards;
}

/* Glitch effect for the main title */
.glitch {
    font-size: 5rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    color: var(--text-color);
    letter-spacing: 5px;
    text-shadow: 0 0 10px var(--primary-color);
    transform: scale(0.8);
    opacity: 0;
    animation: scaleIn 1s ease-out 0.5s forwards, glitch 2s 1.5s infinite;
}

/* Neon flicker effect - additional animation */
.neon-flicker {
    text-shadow: 
        0 0 5px var(--text-color),
        0 0 10px var(--text-color),
        0 0 20px var(--primary-color),
        0 0 40px var(--primary-color),
        0 0 80px var(--primary-color);
    animation: neonFlicker 3s infinite alternate-reverse;
}

@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 
            0 0 5px var(--text-color),
            0 0 10px var(--text-color),
            0 0 20px var(--primary-color),
            0 0 40px var(--primary-color),
            0 0 80px var(--primary-color);
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    color: var(--primary-color);
    animation: glitch-effect 3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-5px, -5px);
}

.glitch::after {
    color: var(--secondary-color);
    animation: glitch-effect 2s infinite;
    clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
    transform: translate(5px, 5px);
}

@keyframes glitch-effect {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-5px, 5px);
    }
    40% {
        transform: translate(-5px, -5px);
    }
    60% {
        transform: translate(5px, 5px);
    }
    80% {
        transform: translate(5px, -5px);
    }
    100% {
        transform: translate(0);
    }
}

.main-info {
    text-align: center;
    margin-bottom: 4rem;
    animation: slideInFromLeft 1.5s ease-out 0.3s forwards;
    opacity: 0;
}

.tagline {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--text-color);
}

.about {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(240, 240, 240, 0.8);
}

.technologies {
    margin-bottom: 4rem;
    animation: fadeIn 1.5s ease-out 0.6s forwards;
    opacity: 0;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    bottom: -10px;
    left: 25%;
}

.tech-grid, .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.tech-item, .team-item {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.tech-item:hover, .team-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.tech-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.tech-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.tech-item p {
    font-size: 0.9rem;
    color: rgba(240, 240, 240, 0.7);
}

.teams {
    animation: fadeIn 1.5s ease-out 0.8s forwards;
    opacity: 0;
}

.team-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.team-item:nth-child(odd) {
    animation-delay: 0.2s;
}

.team-item:nth-child(even) {
    animation-delay: 0.4s;
}

.collaborate {
    text-align: center;
    margin-bottom: 4rem;
    animation: slideInFromRight 1.5s ease-out 0.9s forwards;
    opacity: 0;
}

.collaborate p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.contact-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.contact-btn:hover::before {
    opacity: 1;
}

footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 1.5s ease-out 1.2s forwards;
    opacity: 0;
}

.copyright {
    font-size: 0.9rem;
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Responsive styles */
@media (max-width: 768px) {
    .glitch {
        font-size: 3rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .glitch {
        font-size: 2.5rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .contact-links {
        flex-direction: column;
        gap: 1rem;
    }
}