:root {
    --retro-purple: #6a4c93;
    --pale-purple: #b19cd9;
    --light-purple: #e8dff5;
    --dark-purple: #472d5b;
    --accent-cyan: #4fc3f7;
    --accent-pink: #ff6b9d;
    --neon-green: #00ff88;
    --dark-bg: #1a0b2e;
    --medium-bg: #2d1b4e;
    --card-bg: #402963;
    --text-light: #f0f0f0;
    --text-dim: #c0b3e0;
    --gradient-main: linear-gradient(135deg, var(--dark-bg) 0%, var(--medium-bg) 50%, var(--retro-purple) 100%);
    --gradient-card: linear-gradient(145deg, var(--card-bg) 0%, var(--dark-purple) 100%);
    --neon-shadow: 0 0 20px rgba(79, 195, 247, 0.3);
    --retro-shadow: 0 8px 32px rgba(106, 76, 147, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Mono', monospace;
    background: var(--gradient-main);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated background grid */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(79, 195, 247, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 195, 247, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: -1;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    padding: 4rem 0 2rem;
    position: relative;
}

.hero-banner {
    width: 100%;
    max-width: 800px;
    height: 300px;
    background: var(--gradient-card);
    border: 2px solid var(--pale-purple);
    border-radius: 20px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--retro-shadow);
}


    .hero-banner::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        animation: shimmer 3s infinite;
    }

.hero-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px; /* Slightly smaller than the container's 20px to account for border */
    position: relative;
    z-index: 2;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.banner-placeholder {
    color: var(--text-dim);
    font-size: 1.2rem;
    text-align: center;
    z-index: 2;
}

.main-title {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--accent-cyan), var(--pale-purple), var(--accent-pink));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(79, 195, 247, 0.5);
    margin-bottom: 1rem;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        filter: brightness(1);
    }

    to {
        filter: brightness(1.2);
    }
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    font-style: italic;
}

/* Projects Section */
.projects-section {
    padding: 3rem 0;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    text-align: center;
    color: var(--pale-purple);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 3px;
        background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink));
        border-radius: 2px;
    }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.project-card {
    background: var(--gradient-card);
    border: 2px solid var(--retro-purple);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--retro-shadow);
}

    .project-card:hover {
        transform: translateY(-10px);
        border-color: var(--accent-cyan);
        box-shadow: var(--neon-shadow), var(--retro-shadow);
    }

    .project-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink), var(--neon-green));
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .project-card:hover::before {
        opacity: 1;
    }

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.card-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 700;
}

.card-description {
    color: var(--text-dim);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tech-tag {
    background: var(--dark-purple);
    color: var(--pale-purple);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid var(--retro-purple);
}

.launch-btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-pink));
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    position: relative;
    overflow: hidden;
}

    .launch-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(79, 195, 247, 0.5);
    }

    .launch-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .launch-btn:hover::before {
        left: 100%;
    }

/* Footer */
.footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--retro-purple);
    color: var(--text-dim);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--pale-purple);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

    .social-link:hover {
        color: var(--accent-cyan);
    }

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .hero-banner {
        height: 200px;
        max-width: 100%;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Floating elements animation */
.floating-element {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

    .floating-element:nth-child(1) {
        top: 10%;
        left: 10%;
        animation-delay: 0s;
    }

    .floating-element:nth-child(2) {
        top: 20%;
        right: 15%;
        animation-delay: 2s;
    }

    .floating-element:nth-child(3) {
        bottom: 30%;
        left: 20%;
        animation-delay: 4s;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Sparkle animation styles */
@keyframes sparkleAnim {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: scale(1) rotate(180deg);
        opacity: 1;
    }

    100% {
        transform: scale(0) rotate(360deg);
        opacity: 0;
    }
}

/* Additional utility classes for future use */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

.p-1 {
    padding: 0.5rem;
}

.p-2 {
    padding: 1rem;
}

.p-3 {
    padding: 1.5rem;
}

.p-4 {
    padding: 2rem;
}

/* Button variations for future use */
.btn-secondary {
    background: linear-gradient(45deg, var(--retro-purple), var(--dark-purple));
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid var(--pale-purple);
    display: inline-block;
}

    .btn-secondary:hover {
        background: linear-gradient(45deg, var(--pale-purple), var(--retro-purple));
        transform: translateY(-2px);
        box-shadow: var(--retro-shadow);
    }

.btn-outline {
    background: transparent;
    color: var(--accent-cyan);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-cyan);
    display: inline-block;
}

    .btn-outline:hover {
        background: var(--accent-cyan);
        color: var(--dark-bg);
        box-shadow: var(--neon-shadow);
    }

/* Card variations for future projects */
.card-small {
    padding: 1.5rem;
    border-radius: 15px;
}

.card-large {
    padding: 3rem;
    border-radius: 25px;
}

/* Loading states for future dynamic content */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--dark-purple);
    border-top: 4px solid var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-dots::after {
    content: '';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60%, 100% {
        content: '...';
    }
}
