:root {
    --primary: #1e3a8a; 
    --secondary: #0ea5e9; 
    --accent: #06b6d4; 
    --light: #f8fafc;
    --dark: #0f172a;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body, html {
    height: 100%;
    overflow-x: hidden;
    
    color: var(--dark);
}

.prelaunch-wrapper {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.bg-animated {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3a8a, #0ea5e9);
    z-index: -2;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.2);
    z-index: -1;
}

.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
    opacity: 0.4;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.floating-element {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

.floating-element:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 10%;
    animation-duration: 30s;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 180px;
    height: 180px;
    top: 60%;
    left: 70%;
    animation-duration: 25s;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 80px;
    height: 80px;
    top: 30%;
    left: 85%;
    animation-duration: 20s;
    animation-delay: 4s;
}

.floating-element:nth-child(4) {
    width: 160px;
    height: 160px;
    top: 70%;
    left: 25%;
    animation-duration: 35s;
    animation-delay: 1s;
}

.floating-element:nth-child(5) {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 50%;
    animation-duration: 28s;
    animation-delay: 3s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -50px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

header {
    padding: 1.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 24px;
    height: 24px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: white;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: var(--transition);
    animation: slideInRight 0.8s ease-out forwards;
}

.social-icon:hover {
    opacity: 1;
    transform: translateY(-2px) scale(1.1);
    color: var(--secondary);
}

.prelaunch-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    color: white;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 900px;
}

h1 span {
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--secondary);
    opacity: 0.3;
    border-radius: 4px;
    z-index: -1;
}

/* Secondary heading styling for the "Connect with Friends" section */
h2.secondary-heading {
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    font-weight: 800 !important;
    margin: 2rem 0 1.5rem 0 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    color: white !important;
}

h2.secondary-heading span {
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

h2.secondary-heading span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--secondary);
    opacity: 0.3;
    border-radius: 4px;
    z-index: -1;
}

/* Regular h2 styling (for "AI that sees the road..." text) */
h2:not(.secondary-heading) {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 600;
    max-width: 1000px;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    color: white;
    white-space: nowrap;
}

@media (max-width: 768px) {
    h2:not(.secondary-heading) {
        white-space: normal;
    }
}

.subheading {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 400;
    max-width: 700px;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    min-width: 200px;
    cursor: pointer;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-primary i,
.btn-primary span {
    position: relative;
    z-index: 2;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.15), 
        rgba(14, 165, 233, 0.25), 
        rgba(6, 182, 212, 0.25),
        rgba(255, 255, 255, 0.15),
        transparent
    );
    animation: wave-flow 3s ease-in-out infinite;
    z-index: 1;
    border-radius: 50px;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.btn-primary:hover::before {
    animation-duration: 2s;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Special gradient style for leaderboard button */
.btn-leaderboard {
    background: linear-gradient(135deg, #1e3a8a, #0ea5e9);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
    z-index: 1;
}

.btn-leaderboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: 1;
    border-radius: 50px;
}

.btn-leaderboard i,
.btn-leaderboard span {
    position: relative;
    z-index: 2;
}

.btn-leaderboard:hover {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
    opacity: 1; /* Ensure button stays visible on hover */
}

.btn-leaderboard:hover {
    animation: leaderboard-glow 2s infinite alternate;
}

.btn-leaderboard:hover::before {
    opacity: 0.5;
}

@keyframes leaderboard-glow {
    0% { 
        box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4); 
    }
    100% { 
        box-shadow: 0 12px 35px rgba(30, 58, 138, 0.6); 
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
}

.modal-overlay.active .modal {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    opacity: 0.7;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    opacity: 1;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-control {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--dark);
}

.form-input {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.form-submit {
    background-color: var(--primary);
    color: white;
    padding: 0.875rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.form-submit:hover {
    background-color: var(--secondary);
}

.form-note {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 1rem;
}

.features-preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 250px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.feature-icon:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: rgba(255, 255, 255, 0.2);
    animation: pulse 2s infinite;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.875rem;
    opacity: 0.8;
}

footer {
    padding: 1rem 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.875rem;
}

.footer-link:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.footer-separator {
    width: 4px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

@media (max-width: 480px) {
    .footer-links {
        gap: 1rem;
    }
    
    .footer-separator {
        width: 3px;
        height: 3px;
    }
    
    .footer-link {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .prelaunch-content {
        padding: 1.5rem;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
        border-radius: 24px;
        min-height: 60px;
    }

    h1 {
        font-size: 3rem;
        margin-bottom: 1.25rem;
        line-height: 1.1;
        font-weight: 900;
    }

    /* Secondary heading styling for mobile */
    h1:nth-of-type(2) {
        font-size: 2.5rem;
        margin: 1.5rem 0 1rem 0;
        font-weight: 800;
    }

    h2:not(.secondary-heading) {
        font-size: 1.2rem;
        margin-bottom: .5rem;
        line-height: 1.4;
        font-weight: 500;
    }

    /* Secondary heading styling for the "Connect with Friends" section */
    h2.secondary-heading {
        font-size: clamp(2rem, 4vw, 3rem) !important;
        margin: 2rem 0 1.5rem 0 !important;
        font-weight: 800 !important;
        line-height: 1.1 !important;
    }

    .subheading {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.6;
        padding: 0 1rem;
        opacity: 0.95;
    }

    .features-preview {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    /* Make the first features row a column on mobile and reorder only first two items */
    .features-first-row {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    /* Reorder first two feature boxes on mobile only in the first row */
    .features-first-row .feature-ai-coach {
        order: 1;
    }

    .features-first-row .feature-driver-behavior {
        order: 2;
    }

    /* Reset order for other items in first row to maintain natural order after the first two */
    .features-first-row .feature-item:not(.feature-ai-coach):not(.feature-driver-behavior) {
        order: 3;
    }

    /* Make individual feature boxes bigger on mobile */
    .feature-item-boxed {
        padding: 2.5rem 2rem;
        border-radius: 24px;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .feature-item-boxed .feature-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 1.5rem;
    }

    .feature-item-boxed .feature-icon i {
        font-size: 2rem;
    }

    .feature-item-boxed .feature-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        font-weight: 700;
    }

    .feature-item-boxed .feature-desc {
        font-size: 1.1rem;
        line-height: 1.6;
    }
}

.success-message {
    display: none;
    background-color: #10b981;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.5s;
}

/* Success Celebration Modal */
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}

.success-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.success-modal {
    background: linear-gradient(135deg, #1e3a8a, #0ea5e9);
    border-radius: 20px;
    padding: 3rem 2rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(30px) scale(0.9);
    opacity: 0;
    transition: transform 0.4s, opacity 0.4s;
    position: relative;
    overflow: hidden;
}

.success-modal-overlay.active .success-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.success-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: -1;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: celebrationBounce 0.8s ease-out;
}

.success-icon i {
    font-size: 2.5rem;
    color: white;
}

.success-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: slideInUp 0.6s ease-out 0.2s both;
}

.success-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.5;
    animation: slideInUp 0.6s ease-out 0.4s both;
}

.success-close-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    animation: slideInUp 0.6s ease-out 0.6s both;
}

.success-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px) scale(1.02);
}

@keyframes celebrationBounce {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

.celebration-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: particle-float 2s ease-out forwards;
}

@keyframes particle-float {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-50px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Enhanced Animations */
@keyframes slideInUp {
    from { 
        opacity: 0; 
        transform: translateY(50px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideInLeft {
    from { 
        opacity: 0; 
        transform: translateX(-50px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes slideInRight {
    from { 
        opacity: 0; 
        transform: translateX(50px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes scaleIn {
    from { 
        opacity: 0; 
        transform: scale(0.8); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.05); 
    }
}

@keyframes wave-flow {
    0% {
        left: -100%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@keyframes shooting-star {
    0% {
        left: -30px;
        opacity: 0;
        transform: scale(0);
    }
    5% {
        opacity: 1;
        transform: scale(1);
    }
    95% {
        opacity: 1;
    }
    100% {
        left: calc(100% + 30px);
        opacity: 0;
        transform: scale(0);
    }
}

.shooting-star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(14, 165, 233, 0.8) 50%, transparent 100%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    left: -30px;
    opacity: 0;
}

.shooting-star::before {
    content: '';
    position: absolute;
    right: 4px;
    top: 50%;
    width: 15px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), transparent);
    transform: translateY(-50%);
}

.shooting-star-1 {
    top: 20%;
    animation: shooting-star 2.5s linear infinite;
    animation-delay: 0s;
}

.shooting-star-2 {
    top: 40%;
    width: 6px;
    height: 6px;
    animation: shooting-star 3.2s linear infinite;
    animation-delay: 1.2s;
}

.shooting-star-3 {
    top: 65%;
    width: 3px;
    height: 3px;
    animation: shooting-star 2.8s linear infinite;
    animation-delay: 2.1s;
}

.shooting-star-4 {
    top: 80%;
    width: 5px;
    height: 5px;
    animation: shooting-star 3.5s linear infinite;
    animation-delay: 3.4s;
}

.shooting-star-5 {
    top: 30%;
    width: 2px;
    height: 2px;
    animation: shooting-star 2.2s linear infinite;
    animation-delay: 1.8s;
}

.shooting-star-6 {
    top: 55%;
    width: 4px;
    height: 4px;
    animation: shooting-star 3.8s linear infinite;
    animation-delay: 0.7s;
}

.shooting-star-7 {
    top: 15%;
    width: 3px;
    height: 3px;
    animation: shooting-star 2.9s linear infinite;
    animation-delay: 4.1s;
}

.shooting-star-8 {
    top: 75%;
    width: 2px;
    height: 2px;
    animation: shooting-star 3.3s linear infinite;
    animation-delay: 2.7s;
}

/* Add some sparkle effect to shooting stars */
.shooting-star::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    top: -1px;
    left: -1px;
    animation: sparkle 1s ease-in-out infinite alternate;
}

@keyframes sparkle {
    0% { 
        opacity: 0.3; 
        transform: scale(0.5); 
    }
    100% { 
        opacity: 1; 
        transform: scale(1.2); 
    }
}

/* Animation Classes */
.animate-slide-up {
    animation: slideInUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out forwards;
    opacity: 0;
}

.animate-scale {
    animation: scaleIn 0.6s ease-out forwards;
    opacity: 0;
}

.animate-delay-1 { animation-delay: 0.2s; }
.animate-delay-2 { animation-delay: 0.4s; }
.animate-delay-3 { animation-delay: 0.6s; }
.animate-delay-4 { animation-delay: 0.8s; }
.animate-delay-5 { animation-delay: 1s; }

/* Button fade-in animations */
.btn-fade-1,
.btn-fade-2,
.btn-fade-3 {
    opacity: 0;
    animation: fadeInScale 0.8s ease-out forwards;
    animation-fill-mode: forwards; /* Ensure final state is maintained */
}

.btn-fade-1 {
    animation-delay: 0.8s; /* Start after scale animation begins */
}

.btn-fade-2 {
    animation-delay: 1.0s; /* 0.2s after first button */
}

.btn-fade-3 {
    animation-delay: 1.2s; /* 0.2s after second button */
}

/* Ensure buttons stay visible after animation */
.btn-fade-1.animation-complete,
.btn-fade-2.animation-complete,
.btn-fade-3.animation-complete {
    opacity: 1 !important;
}

/* Mobile optimized animations - faster delays for feature boxes only */
@media (max-width: 768px) {
    /* Keep original delays for main content */
    .animate-delay-1 { animation-delay: 0.2s; }
    .animate-delay-2 { animation-delay: 0.4s; }
    .animate-delay-3 { animation-delay: 0.6s; }
    
    /* Faster delays only for feature boxes */
    .features-preview .animate-delay-4 { animation-delay: 0.3s; }
    .features-preview .animate-delay-5 { animation-delay: 0.4s; }
    
    /* Keep original button fade timing */
    .btn-fade-1 {
        animation-delay: 0.8s;
    }
    
    .btn-fade-2 {
        animation-delay: 1.0s;
    }
    
    .btn-fade-3 {
        animation-delay: 1.2s;
    }
    
    /* Faster feature box animations only */
    .features-preview .animate-slide-up,
    .features-preview .animate-slide-left,
    .features-preview .animate-slide-right {
        animation-duration: 0.5s;
    }
}

/* Performance optimizations */
.animate-slide-up,
.animate-slide-left,
.animate-slide-right,
.animate-scale {
    will-change: transform, opacity;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Auto-hiding scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Hide scrollbar by default */
body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Show scrollbar when scrolling */
body.scrolling {
    scrollbar-width: thin; /* Firefox */
    -ms-overflow-style: auto; /* IE and Edge */
}

body.scrolling::-webkit-scrollbar {
    display: block; /* Chrome, Safari, Opera */
}

/* Enhanced floating elements animation */
.floating-element {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 15s infinite linear;
    will-change: transform;
    backface-visibility: hidden;
}

/* Special styling for the additional features row */
.features-preview-special {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem 2rem;
    margin: 1rem auto 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.features-preview-special::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.features-preview-special:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.15);
}

.features-preview-special .feature-item {
    position: relative;
    z-index: 2;
}

.features-preview-special .feature-icon {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.features-preview-special .feature-icon:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) rotate(5deg);
}

.features-preview-special .feature-title,
.features-preview-special .feature-desc {
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .features-preview-special {
        padding: 1.5rem 1.5rem;
        margin: 0.5rem auto 1rem;
    }
}

/* Individual feature boxes styling */
.feature-item-boxed {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-item-boxed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    pointer-events: none;
}

.feature-item-boxed:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-item-boxed .feature-icon {
    background-color: rgba(255, 255, 255, 0.15);
}

.feature-item-boxed .feature-icon:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

/* Floating particles container for features */
.features-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.feature-particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    animation: float-up linear infinite;
    opacity: 0;
    will-change: transform, opacity;
}

@keyframes float-up {
    0% {
        opacity: 0;
        transform: translateY(0px) scale(0);
        bottom: -5px;
    }
    5% {
        opacity: 1;
        transform: translateY(-10px) scale(1);
    }
    85% {
        opacity: 1;
        transform: translateY(-85%) scale(1);
    }
    95% {
        opacity: 0.3;
        transform: translateY(-95%) scale(0.7);
    }
    100% {
        opacity: 0;
        transform: translateY(-100%) scale(0);
        bottom: 100%;
    }
}

/* Different particle sizes and speeds */
.feature-particle-1 {
    width: 3px;
    height: 3px;
    animation-duration: 4s;
}

.feature-particle-2 {
    width: 4px;
    height: 4px;
    animation-duration: 5s;
}

.feature-particle-3 {
    width: 2px;
    height: 2px;
    animation-duration: 3.5s;
}

.feature-particle-4 {
    width: 5px;
    height: 5px;
    animation-duration: 6s;
}

.feature-particle-5 {
    width: 2.5px;
    height: 2.5px;
    animation-duration: 4.5s;
}

.feature-particle-6 {
    width: 3.5px;
    height: 3.5px;
    animation-duration: 5.5s;
}

/* Ensure feature content is above particles */
.feature-item-boxed .feature-icon,
.feature-item-boxed .feature-title,
.feature-item-boxed .feature-desc {
    position: relative;
    z-index: 2;
}

/* Features preview special also gets particles */
.features-preview-special {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem 2rem;
    margin: 1rem auto 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Screen reader only text */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
