@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #6d5b9b;
    --primary-dark: #4b4168;
    --primary-light: #9c89ce;
    --bg-color: #fcfbfd;
    --text-dark: #333333;
    --text-light: #777777;
    --accent: #d4cdeb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    overflow: hidden;
}

/* Navbar */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 8%;
    position: absolute;
    width: 100%;
    z-index: 10;
    animation: fadeInDown 1s ease-out;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-box {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(109, 91, 155, 0.3);
}

.logo-text {
    font-weight: 800;
    font-size: 24px;
    color: var(--primary-dark);
    letter-spacing: 1.5px;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 25px;
}

.btn-login {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
}

.btn-login:hover {
    color: var(--primary);
}

.btn-signup {
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(75, 65, 104, 0.25);
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(109, 91, 155, 0.4);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 20vh;
}

.hero-content {
    z-index: 2;
    animation: fadeInUp 1.2s ease-out;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.1;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 0.rem;
    color: var(--text-light);
    margin-bottom: 30px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
}

.btn-main {
    text-decoration: none;
    background: linear-gradient(135deg, #2d283e, var(--primary-dark));
    color: white;
    padding: 14px 40px;
    border-radius: 35px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    box-shadow: 0 10px 25px rgba(45, 40, 62, 0.3);
}

.btn-main:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(45, 40, 62, 0.4);
}

/* Curve Background */
.curve-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: url('img/welcome.png') no-repeat center center;
    background-size: cover;
    opacity: 0.6;
    z-index: 0;
    border-top-left-radius: 50% 30%;
    border-top-right-radius: 50% 30%;
    animation: slideUpCurve 1.5s ease-out;
}

/* Floating Glass Cards */
.floating-elements {
    position: absolute;
    bottom: 8%;
    width: 100%;
    height: 300px;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    perspective: 1000px;
}

.glass-card {
    width: 200px;
    height: 280px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(109, 91, 155, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-20deg);
    animation: shine 6s infinite;
}

.glass-card.left {
    animation: float-left 4s ease-in-out infinite;
    animation-delay: 0s;
}

.glass-card.center {
    width: 240px;
    height: 320px;
    animation: float 4s ease-in-out infinite;
    animation-delay: -2s;
    z-index: 2;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 30px 50px rgba(109, 91, 155, 0.25);
}

.glass-card.right {
    animation: float-right 4s ease-in-out infinite;
    animation-delay: -1s;
}

.card-icon {
    font-size: 50px;
    color: var(--primary-dark);
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 10px rgba(75, 65, 104, 0.2));
}

.center .card-icon {
    font-size: 70px;
    color: var(--primary);
}

.card-title {
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: 1px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUpCurve {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes float-left {

    0%,
    100% {
        transform: rotateY(15deg) translateZ(-50px) translateY(0);
    }

    50% {
        transform: rotateY(15deg) translateZ(-50px) translateY(-20px);
    }
}

@keyframes float-right {

    0%,
    100% {
        transform: rotateY(-15deg) translateZ(-50px) translateY(0);
    }

    50% {
        transform: rotateY(-15deg) translateZ(-50px) translateY(-20px);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

@media (max-width: 900px) {
    .floating-elements {
        display: none;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .curve-bottom {
        height: 40%;
        border-top-left-radius: 50% 20%;
        border-top-right-radius: 50% 20%;
    }
}

@media (max-width: 500px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    header {
        padding: 20px 5%;
    }

    .auth-buttons {
        gap: 15px;
    }

    .btn-login,
    .btn-signup {
        font-size: 14px;
    }

    .btn-signup {
        padding: 10px 20px;
    }
}