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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: #000000;
}

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 200, 255, 0.15) 0%, rgba(100, 50, 255, 0.1) 50%, transparent 70%);
    filter: blur(40px);
    animation: float 20s infinite ease-in-out;
}

.circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
    animation-duration: 25s;
}

.circle:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 50%;
    right: -100px;
    animation-delay: 5s;
    animation-duration: 20s;
}

.circle:nth-child(3) {
    width: 400px;
    height: 400px;
    bottom: -200px;
    left: 30%;
    animation-delay: 10s;
    animation-duration: 30s;
}

.circle:nth-child(4) {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 60%;
    animation-delay: 15s;
    animation-duration: 18s;
}

.circle:nth-child(5) {
    width: 250px;
    height: 250px;
    bottom: 20%;
    right: 20%;
    animation-delay: 8s;
    animation-duration: 22s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(100px, -100px) scale(1.2);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50px, 100px) scale(0.8);
        opacity: 0.3;
    }
    75% {
        transform: translate(150px, 50px) scale(1.1);
        opacity: 0.4;
    }
}

/* Tech Lines - Linhas animadas */
.tech-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.4), transparent);
    height: 1px;
    width: 100%;
}

.line-1 {
    top: 20%;
    animation: slideLine 8s linear infinite;
}

.line-2 {
    top: 40%;
    animation: slideLine 10s linear infinite reverse;
    animation-delay: 2s;
}

.line-3 {
    top: 60%;
    animation: slideLine 12s linear infinite;
    animation-delay: 4s;
}

.line-4 {
    top: 80%;
    animation: slideLine 9s linear infinite reverse;
    animation-delay: 1s;
}

@keyframes slideLine {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Starfield Canvas */
#starfield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
header {
    text-align: center;
    color: white;
    margin-bottom: 60px;
    animation: fadeInDown 1s ease-out;
}

header h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.subtitle {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 400;
    opacity: 0.9;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Service Card */
.service-card {
    background: linear-gradient(145deg, rgba(30, 30, 35, 0.5), rgba(20, 20, 25, 0.3));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: #e0e0e0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out backwards;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
.service-card:nth-child(7) { animation-delay: 0.7s; }

.service-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    background: linear-gradient(145deg, rgba(40, 40, 45, 0.6), rgba(30, 30, 35, 0.4));
}

.icon-wrapper {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, rgba(50, 50, 55, 0.4), rgba(30, 30, 35, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.service-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, rgba(60, 60, 65, 0.5), rgba(40, 40, 45, 0.4));
}

.icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.service-info {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.service-info h3 {
    font-size: 1.5rem;
    margin-bottom: 6px;
    color: #ffffff;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.service-info p {
    font-size: 0.875rem;
    color: rgba(150, 200, 255, 0.8);
    font-weight: 400;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Footer */
footer {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff;
    padding: 20px;
    font-size: 0.875rem;
    opacity: 0.7;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 20px;
    }

    .icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .service-info h3 {
        font-size: 1.2rem;
    }
}
