body {
    font-family: 'Inter', sans-serif;
    background-color: #111827; /* Darker, cooler gray */
    color: #e5e7eb;
    overflow-x: hidden;
}
/* Custom scrollbar for a more modern look */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1f2937;
}
::-webkit-scrollbar-thumb {
    background: #4b5563;
}
::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}
/* Refined fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.fade-in-section {
    opacity: 0; /* Initially hidden */
}
.fade-in-visible {
    animation: fadeIn 1s ease-out forwards;
}

/* Modal styles */
.modal {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-content {
    transition: transform 0.3s ease;
}

/* Animated Background */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place it behind everything */
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 163, 174, 0.15) 0%, rgba(22, 163, 174, 0) 70%);
    animation: move 25s infinite linear;
}

.circle.alt-color {
    background: radial-gradient(circle, rgba(225, 29, 72, 0.1) 0%, rgba(225, 29, 72, 0) 70%);
}

.circle:nth-child(1) {
    width: 30vw; height: 30vw; top: 10%; left: 10%; animation-duration: 25s;
}
.circle:nth-child(2) {
    width: 40vw; height: 40vw; bottom: 5%; right: 5%; animation-duration: 30s; animation-delay: -5s;
}
.circle:nth-child(3) {
    width: 25vw; height: 25vw; top: 50%; left: 50%; animation-duration: 35s; animation-delay: -10s;
}
.circle:nth-child(4) {
     width: 20vw; height: 20vw; top: 20%; right: 15%; animation-duration: 40s; animation-delay: -15s;
}
.circle:nth-child(5) {
     width: 35vw; height: 35vw; bottom: 15%; left: 5%; animation-duration: 28s; animation-delay: -20s;
}


@keyframes move {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    25% { transform: translate(10vw, -15vh) rotate(90deg) scale(1.1); }
    50% { transform: translate(-15vw, 10vh) rotate(180deg) scale(0.9); }
    75% { transform: translate(5vw, 15vh) rotate(270deg) scale(1.2); }
    100% { transform: translate(0, 0) rotate(360deg) scale(1); }
}

/* Particles */
#particles-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    bottom: -10px;
    background-color: rgba(229, 231, 235, 0.2);
    border-radius: 50%;
    animation-name: floatUp;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes floatUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-105vh);
        opacity: 1;
    }
}

/* Shooting Stars */
.shooting-star {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 2px;
    background: linear-gradient(-45deg, rgba(107, 114, 128, 0.8), transparent);
    border-radius: 999px;
    filter: drop-shadow(0 0 6px rgba(107, 114, 128, 0.5));
    animation: tail 3s ease-in-out infinite, shooting 3s ease-in-out infinite;
}

@keyframes tail {
    0% { width: 0; }
    30% { width: 100px; }
    100% { width: 0; }
}

@keyframes shooting {
    0% { transform: translateX(0); }
    100% { transform: translateX(400px); }
}


/* Section Separator */
.section-separator {
    width: 80%;
    max-width: 400px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(75, 85, 99, 0.5), transparent);
    margin: 0 auto;
}

/* Scroll Tracker and Dots */
#scroll-tracker-container.morphed #dot-left,
#scroll-tracker-container.morphed #dot-right {
    opacity: 0;
    transform: translateY(-50%) scale(0);
}

#scroll-tracker-container #dot-left,
#scroll-tracker-container #dot-right {
    transition: opacity 0.5s ease, transform 0s, left 0s, right 0s;
}

#scroll-tracker-container.morphed #back-to-top-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

#scroll-tracker-container #back-to-top-btn {
    transform: translate(-50%, -50%) scale(0);
}

#scroll-tracker-container.morphed #dots-track {
    opacity: 0;
}
#scroll-tracker-container {
    transition: transform 0.3s ease-in-out;
}

/* Enhanced Hover Effect */
.card-hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover-effect:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px rgba(22, 163, 174, 0.3), 0 0 10px rgba(22, 163, 174, 0.2);
}

/* Animated Gradient Text for Hero */
.animated-gradient-text {
    background: linear-gradient(90deg, #e5e7eb, #67e8f9, #e5e7eb);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: gradient-animation 5s linear infinite;
}

@keyframes gradient-animation {
    to {
        background-position: 200% center;
    }
}

/* Hero Button Glow */
.hero-button-glow:hover {
    box-shadow: 0 0 20px rgba(22, 163, 174, 0.6), 0 0 10px rgba(22, 163, 174, 0.4);
}

/* New Hero Background Animations */
#hero-radial-bg {
    animation: pulse-gradient 10s infinite ease-in-out;
}

#hero-grid-bg {
    animation: move-grid 60s linear infinite alternate;
}

@keyframes pulse-gradient {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

@keyframes move-grid {
    from { background-position: 0 0; }
    to { background-position: -56px -96px; }
}