/* Utility Components */
/* Hero section */
.hero {
    background: var(--hero-gradient);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#tsparticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-base);
    min-height: 400px;
}

#tsparticles canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 0 !important;
    pointer-events: none;
    width: 100% !important;
    height: 100% !important;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 300;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    color: white; /* Ensure white text in both light and dark modes */
}

.typing-cursor {
    animation: blink 1s infinite;
    color: #fff;
}

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

.hero-subtitle {
    font-size: var(--font-size-xl);
    font-weight: 400;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
    color: white; /* Ensure white text in both light and dark modes */
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: white; /* Ensure white text in both light and dark modes */
}

.hero-links {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--azure-blue-700) 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--shadow-medium);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px var(--shadow-medium);
}

.back-to-top:active {
    transform: translateY(-1px);
}

.back-to-top-icon {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.back-to-top:hover .back-to-top-icon {
    transform: scale(1.1);
}

/* Footer */
.footer {
    background-color: var(--azure-blue-900);
    color: var(--azure-blue-50);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

[data-theme="dark"] .footer {
    background-color: #0f0f0f;
    color: var(--azure-blue-200);
}

.footer-links {
    margin-top: var(--spacing-md);
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
}

.footer-links a {
    color: var(--azure-blue-200);
    text-decoration: none;
    transition: color 0.3s ease;
}

[data-theme="dark"] .footer-links a {
    color: var(--azure-blue-300);
}

.footer-links a:hover {
    color: var(--azure-blue-50);
}

[data-theme="dark"] .footer-links a:hover {
    color: var(--azure-blue-100);
}

/* Responsive utilities */
@media screen and (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        left: 15px;
    }

    .back-to-top-icon {
        font-size: var(--font-size-base);
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-md);
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: var(--font-size-2xl);
    }
}

