/* Global styles */
body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(-45deg, #1a2980, #26d0ce, #2948ff, #2980b9);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    overflow-x: hidden;
    /*padding-top: 70px;*/
}

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

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

.animated-background span {
    position: absolute;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.2);
    animation: float 6s ease-in-out infinite;
    border-radius: 50%;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(0.8); opacity: 0; }
    50% { transform: translate(100px, -100px) scale(1.2); opacity: 0.3; }
}

/* Glowing orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    pointer-events: none;
    animation: glow 8s ease-in-out infinite;
    display: none;
}

@media (min-width: 768px) {
    .glow-orb {
        display: block;
    }
}

@keyframes glow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* Navbar styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

/* Hero section */
.hero-section {
    text-align: center;
    padding: 120px 0;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section .container {
    max-width: 1200px;
    padding: 0 20px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero-description {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    margin-bottom: clamp(2rem, 5vw, 3rem);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.3s;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Feature cards */
.features {
    margin-top: clamp(50px, 10vw, 100px);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.6s;
    width: 100%;
}

.features .row {
    margin: 0 -15px;
    display: flex;
    flex-wrap: wrap;
}

.features .col-md-4 {
    padding: 15px;
    width: 100%;
}

@media (min-width: 768px) {
    .features .col-md-4 {
        width: 33.333%;
    }
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    color: #fff;
    letter-spacing: 1px;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

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

/* Form styles */
.form-floating > .form-control {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.form-floating > .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-floating > .form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1);
}

.form-floating > label {
    color: rgba(255, 255, 255, 0.7);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: rgba(255, 255, 255, 0.9);
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Modal styles */
.modal-content {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.modal .form-label {
    color: rgba(255, 255, 255, 0.8);
}

.modal .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.modal .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1);
}

.modal .form-check-label {
    color: rgba(255, 255, 255, 0.8);
}

.modal .form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.modal .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Login button */
.login-btn {
    padding: clamp(15px, 4vw, 20px) clamp(30px, 6vw, 50px);
    font-size: clamp(1rem, 3vw, 1.2rem);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards 0.6s;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    margin: 10px;
}

.login-btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
}

.login-btn:hover:before {
    transform: translate(-50%, -50%) scale(1);
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    color: #fff;
    letter-spacing: 1px;
}

/* Form styles */
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
    border-color: #80bdff;
}

.btn-primary {
    padding: 12px 24px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Service cards */
.service-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.service-card i {
    transition: transform 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.2);
}

/* Footer */
footer {
    margin-top: 100px;
    border-top: 1px solid #dee2e6;
}

/* Loading animation */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }

    .hero-section br {
        display: none;
    }

    .features {
        margin-top: 40px;
    }

    .feature-card {
        margin-bottom: 0;
    }

    .animated-background span {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-title {
        margin-bottom: 1rem;
    }

    .hero-description {
        margin-bottom: 1.5rem;
    }

    .login-btn {
        width: 90%;
        max-width: 300px;
    }
}
