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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
    color: #fff;
    min-height: 100vh;
}

body.home {
    overflow: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0e27;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    position: relative;
    width: 120px;
    height: 120px;
}

/* Animation de loading - spinning circles */
.loader svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(102, 255, 204, 0.4));
}

/* Circle 1 */
.circle-1 {
    animation: spin 2s linear infinite;
    transform-origin: 50% 50%;
}

/* Circle 2 */
.circle-2 {
    animation: spin-reverse 3s linear infinite;
    transform-origin: 50% 50%;
}

/* Circle 3 */
.circle-3 {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.loading-text {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #66ffcc;
    letter-spacing: 4px;
}

.loading-text span {
    animation: blink 1.5s infinite;
}

.loading-text span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-text span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Main Content */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 20px;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 1.5s forwards;
}

body:not(.home) .container {
    min-height: auto;
    padding-bottom: 80px;
    justify-content: flex-start;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(135deg, #66ffcc 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 25px;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #66ffcc, #00d4ff);
    transition: width 0.3s ease;
}

nav a:hover {
    color: #66ffcc;
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: -80px;
}

h1 {
    font-size: 72px;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
    animation: slideIn 0.8s ease-out 1.6s backwards;
}

h1 span {
    background: linear-gradient(135deg, #66ffcc 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 24px;
    color: #a0a8c0;
    margin-bottom: 40px;
    animation: slideIn 0.8s ease-out 1.7s backwards;
}

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

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: slideIn 0.8s ease-out 1.8s backwards;
}

.btn {
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #66ffcc 0%, #00d4ff 100%);
    color: #0a0e27;
    box-shadow: 0 0 30px rgba(102, 255, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(102, 255, 204, 0.5);
}

.btn-secondary {
    background: transparent;
    color: #66ffcc;
    border: 2px solid #66ffcc;
}

.btn-secondary:hover {
    background: rgba(102, 255, 204, 0.1);
    transform: translateY(-3px);
}

/* Animated Elements */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.shape {
    position: absolute;
    background: linear-gradient(135deg, #66ffcc 0%, #00d4ff 100%);
    opacity: 0.05;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 10%;
    animation: float 10s ease-in-out infinite;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-40px) translateX(-10px); }
    75% { transform: translateY(-20px) translateX(10px); }
}

/* Footer */
footer {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 60px;
}

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

    .subtitle {
        font-size: 18px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    nav a {
        margin: 0 15px;
        font-size: 14px;
    }
}
