/* Custom animations and canvas-specific styles */
@keyframes glow {
    from { 
        text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
        filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
    }
    to { 
        text-shadow: 0 0 30px rgba(59, 130, 246, 0.8), 0 0 40px rgba(59, 130, 246, 0.3);
        filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

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

/* Canvas container */
.cosmos-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Animation classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite alternate;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Floating elements */
.floating-element {
    position: absolute;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 20px;
    height: 20px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 15px;
    height: 15px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 25px;
    height: 25px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

/* Enhanced spacing for cards and sections */
.section {
    padding: 3rem 2rem;
}

.section-card {
    margin: 2rem 0;
    padding: 3rem 2rem;
}

.section-card h2 {
    margin-bottom: 3rem;
}

.service-grid {
    gap: 2.5rem;
    margin: 2.5rem 0;
}

.service-card {
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    line-height: 1.7;
}

/* Enhanced Scroll indicator */
.scroll-indicator {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.scroll-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(156, 163, 175, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.scroll-dot:hover {
    background: rgba(59, 130, 246, 0.5);
    transform: scale(1.1);
}

.scroll-dot.active {
    background: rgb(59, 130, 246);
    transform: scale(1.3);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.scroll-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
    z-index: -1;
}

.scroll-dot:hover::before {
    background: rgba(59, 130, 246, 0.1);
}

.scroll-dot.active::before {
    background: rgba(59, 130, 246, 0.2);
    width: 30px;
    height: 30px;
}

/* Section labels for scroll dots */
.scroll-dot::after {
    content: attr(data-label);
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.scroll-dot:hover::after {
    opacity: 1;
}

/* Dark mode specific styles */
.dark .scroll-dot {
    background: rgba(156, 163, 175, 0.3);
}

.dark .scroll-dot.active {
    background: rgb(59, 130, 246);
}

.dark .scroll-dot::after {
    background: rgba(17, 24, 39, 0.9);
    color: white;
}

/* Light mode specific styles */
.light .scroll-dot {
    background: rgba(75, 85, 99, 0.3);
}

.light .scroll-dot.active {
    background: rgb(37, 99, 235);
}

.light .scroll-dot::after {
    background: rgba(255, 255, 255, 0.9);
    color: black;
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Prevent scroll chaining during section jumping */
body.scrolling {
    overflow: hidden;
}

/* Ensure header stays at top */
header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(75, 85, 99, 0.2);
}

/* Adjust content padding to account for fixed header */
.content-container {
    padding-top: 100px; /* Increased to account for header height */
}

/* Footer area styling */
footer {
    position: relative;
    z-index: 10;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(75, 85, 99, 0.2);
}

/* Last section should allow normal scrolling */
#coverage {
    min-height: calc(100vh - 100px); /* Account for header */
    margin-bottom: 2rem; /* Add space before footer */
}
