﻿:root {
    --primary-purple: #6c5ce7;
    --primary-red: #e74c3c;
    --dark-bg: #2c2c54;
    --darker-bg: #1e1e2e;
    --text-light: #ffffff;
    --text-muted: #b8b8b8;
    --accent-blue: #4ecdc4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    color: var(--text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
    background: transparent !important;
    backdrop-filter: none;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(30, 30, 46, 0.95) !important;
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-light) !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    margin: 0 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-purple) !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(45deg, var(--primary-red), var(--primary-purple));
    border-radius: 2px;
}

/* Hero Section Styles */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    position: relative;
    overflow: hidden;
}

/* Animated Background */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: linear-gradient(45deg, var(--primary-red), var(--primary-purple));
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.3;
    }
}

/* Grid Background */
.grid-bg {
    position: absolute;
    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: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Hero Content */
.hero-content {
    z-index: 10;
    position: relative;
    max-width: 600px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    color: white;
    line-height: 1.1;
    margin-bottom: 2rem;
    overflow: hidden;
}

.title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(100px);
    animation: slideUp 0.8s ease forwards;
}

.title-word:nth-child(1) { animation-delay: 0.1s; }
.title-word:nth-child(2) { animation-delay: 0.3s; }
.title-word:nth-child(3) { animation-delay: 0.5s; }
.title-word:nth-child(4) { animation-delay: 0.7s; }
.title-word:nth-child(5) { animation-delay: 0.9s; }

.title-word.gradient {
    background: linear-gradient(45deg, var(--primary-red), var(--primary-purple), var(--accent-blue));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideUp 0.8s ease forwards, gradientShift 3s ease infinite;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeIn 1s ease 1.2s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.btn-discover {
    background: linear-gradient(45deg, var(--primary-red), var(--primary-purple));
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
    transition: all 0.3s ease;
}

.btn-discover::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 ease;
}

.btn-discover:hover::before {
    left: 100%;
}

.btn-discover:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,107,107,0.4);
    color: white;
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.btn-discover:hover .arrow-icon {
    transform: translateX(5px);
}

/* 3D Graphic */
.graphic-container {
    z-index: 10;
    position: relative;
    width: 400px;
    height: 400px;
}

.geometric-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.shape-3d {
    width: 200px;
    height: 200px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
    animation: rotate3d 8s linear infinite;
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--primary-red), var(--primary-purple));
    opacity: 0.8;
    border: 2px solid rgba(255,255,255,0.2);
}

.face.front { transform: translateZ(100px); }
.face.back { transform: translateZ(-100px) rotateY(180deg); }
.face.right { transform: rotateY(90deg) translateZ(100px); }
.face.left { transform: rotateY(-90deg) translateZ(100px); }
.face.top { transform: rotateX(90deg) translateZ(100px); }
.face.bottom { transform: rotateX(-90deg) translateZ(100px); }

@keyframes rotate3d {
    0% { transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg); }
    100% { transform: translate(-50%, -50%) rotateX(360deg) rotateY(360deg); }
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.floating-element {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-blue);
    border-radius: 50%;
    animation: floatUp 4s linear infinite;
}

.floating-element:nth-child(1) { left: 20%; animation-delay: 0s; }
.floating-element:nth-child(2) { left: 40%; animation-delay: 1s; }
.floating-element:nth-child(3) { left: 60%; animation-delay: 2s; }
.floating-element:nth-child(4) { left: 80%; animation-delay: 3s; }

@keyframes floatUp {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* Mouse trail effect */
.mouse-trail {
    position: absolute;
    width: 6px;
    height: 6px;
    background: linear-gradient(45deg, var(--primary-red), var(--primary-purple));
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    z-index: 999;
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-red), var(--primary-purple));
}

/* Team Bubbles */
.team-bubbles {
    position: relative;
    height: 400px;
    margin: 2rem 0;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.bubble:hover {
    transform: scale(1.1);
}

.bubble-big { width: 150px; height: 150px; }
.bubble-medium { width: 110px; height: 110px; }
.bubble-small { width: 80px; height: 80px; }

.bubble-ui { background: #3498db; top: 5%; right: 50%; }
.bubble-comp { background: #9b59b6; top: 10%; right: 15%; }
.bubble-software { background: #6c5ce7; top: 40%; right: 40%; }
.bubble-architects { background: #e74c3c; top: 55%; right: 15%; }
.bubble-frontend { background: #3498db; top: 75%; right: 65%; }
.bubble-backend { background: #9b59b6; top: 80%; right: 20%; }
.bubble-graphic-designers { background: #e74c3c; top: 85%; right: 48%; }
.bubble-engineers { background: #e74c3c; top: 35%; right: 70%; }

/* Service Cards */
.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tech-logos {
    display: flex;
    gap: 10px;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.tech-logo {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    transition: transform 0.3s ease;
}

.tech-logo:hover {
    transform: scale(1.1);
}

.btn-try {
    background: linear-gradient(45deg, var(--primary-red), var(--primary-purple));
    border: none;
    width: 100%;
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-try:hover {
    padding-inline: 2rem;
    color: white;
}

/* Feature Items */
.feature-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    padding-block: 2rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon.purple { background: var(--primary-purple); }
.feature-icon.orange { background: #ff7675; }
.feature-icon.blue { background: #74b9ff; }
.feature-icon.red { background: var(--primary-red); }

.btn-explore {
    background: linear-gradient(45deg, var(--primary-red), var(--primary-purple));
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    color: white;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
    margin-top: 2rem;
}

.btn-explore:hover {
    transform: translateY(-2px);
    color: white;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--darker-bg) 0%, #0f0f1a 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-purple), var(--primary-red), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.footer-wave {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="%23' + encodeURIComponent('1e1e2e') + '"></path></svg>') repeat-x;
    background-size: 1200px 50px;
    animation: wave 8s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-50px); }
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer-logo {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary-red), var(--primary-purple), var(--accent-blue));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
    display: inline-block;
}

.footer-section h5 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-section h5::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(45deg, var(--primary-red), var(--primary-purple));
    border-radius: 2px;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link:hover {
    color: var(--primary-purple);
    transform: translateX(5px);
}

.footer-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 1px;
    background: var(--primary-purple);
    transition: width 0.3s ease;
    transform: translateY(-50%);
}

.footer-link:hover::before {
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: linear-gradient(45deg, var(--primary-red), var(--primary-purple));
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(108, 92, 231, 0.3);
}

.footer-newsletter {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

.newsletter-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.25);
    color: white;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.btn-newsletter {
    background: linear-gradient(45deg, var(--primary-red), var(--primary-purple));
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-newsletter:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.3);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
}

.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.footer-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-blue);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle 6s linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100%) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-20px) scale(1);
        opacity: 0;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax effect */
.parallax {
    transform: translateY(0);
    transition: transform 0.1s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2rem;
    }

    .graphic-container {
        width: 250px;
        height: 250px;
        margin-top: 2rem;
    }

    .shape-3d {
        width: 120px;
        height: 120px;
    }

    .face {
        width: 120px;
        height: 120px;
    }

    .team-bubbles {
        height: 300px;
    }

    .bubble {
        font-size: 0.7rem;
        padding: 0.5rem;
    }

    .bubble-big { width: 100px; height: 100px; }
    .bubble-medium { width: 80px; height: 80px; }
    .bubble-small { width: 60px; height: 60px; }

    .section-title {
        font-size: 2rem;
    }
}