:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #00f2ff;
    --accent-gradient: linear-gradient(135deg, #00f2ff 0%, #0072ff 100%);
    --font-main: 'Outfit', sans-serif;
    --badge-complete: #00ffa3;
    --badge-beta: #ff0055;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Background Effects */
.background-radial {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #050505 100%);
    z-index: -2;
}

.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    opacity: 0.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* Header */
header {
    padding: 5rem 0 3rem;
    text-align: center;
}

.logo {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo span {
    font-weight: 300;
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
}

.tagline {
    color: var(--text-secondary);
    font-size: clamp(1rem, 4vw, 1.25rem);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Titles */
.project-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.secondary-section .section-title {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
}

.community-section .section-title {
    color: #25d366;
    font-size: 1.5rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.project-card {
    text-decoration: none;
    color: inherit;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.5rem 2rem 2rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 242, 255, 0.1);
}

/* Badges */
.badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.badge-complete {
    background: var(--badge-complete);
    color: #000;
}

.badge-beta {
    background: var(--badge-beta);
    color: #fff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 4px 10px rgba(255, 0, 85, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 4px 20px rgba(255, 0, 85, 0.6); }
    100% { transform: scale(1); box-shadow: 0 4px 10px rgba(255, 0, 85, 0.3); }
}

.icon-wrapper {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
    display: block;
}

.project-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.project-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* Button Group */
.btn-group {
    margin-top: auto;
}

.btn-visit {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--accent-gradient);
    border: none;
    border-radius: 14px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
}

.project-card:hover .btn-visit {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 242, 255, 0.5);
}

.whatsapp-card:hover {
    border-color: #25d366;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(37, 211, 102, 0.1);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-card:hover .whatsapp-btn {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* Footer */
footer {
    margin-top: auto;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.3);
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.project-card {
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) backwards;
}

.project-section:nth-child(1) .project-card:nth-child(1) { animation-delay: 0.1s; }
.project-section:nth-child(1) .project-card:nth-child(2) { animation-delay: 0.2s; }
.project-section:nth-child(1) .project-card:nth-child(3) { animation-delay: 0.3s; }
.project-section:nth-child(2) .project-card:nth-child(1) { animation-delay: 0.4s; }
.project-section:nth-child(2) .project-card:nth-child(2) { animation-delay: 0.5s; }
.project-section:nth-child(2) .project-card:nth-child(3) { animation-delay: 0.6s; }
.project-section:nth-child(3) .project-card:nth-child(1) { animation-delay: 0.7s; }
.project-section:nth-child(3) .project-card:nth-child(2) { animation-delay: 0.8s; }
.project-section:nth-child(3) .project-card:nth-child(3) { animation-delay: 0.9s; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    header {
        padding: 3rem 0 2rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .project-section {
        margin-bottom: 3rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .project-card {
        padding: 2.2rem 1.5rem 1.5rem;
        border-radius: 20px;
    }

    .icon-wrapper {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .project-card h3 {
        font-size: 1.4rem;
    }

    .btn-visit {
        padding: 0.85rem;
        font-size: 0.85rem;
    }

    .badge {
        top: 12px;
        right: 12px;
        padding: 0.3rem 0.6rem;
        font-size: 0.65rem;
    }
}

/* Touch optimization for mobile */
@media (hover: none) {
    .project-card:hover {
        transform: none;
    }
}
