/* General Body Styles */
body {
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

/* Font Imports */
h1, h2, h3, .font-orbitron {
    font-family: 'Orbitron', sans-serif;
}

/* Background Animations */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-gradient-shift {
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

.dots-pattern {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

@keyframes blob {
    0% { transform: translate(0, 0) scale(1); }
    30% { transform: translate(30px, -50px) scale(1.1); }
    60% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

.animate-blob {
    animation: blob 10s infinite cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Pulse Glow for background elements */
@keyframes pulse-glow {
    0% { box-shadow: 0 0 10px rgba(139, 92, 246, 0.4); }
    50% { box-shadow: 0 0 30px rgba(139, 92, 246, 0.8), 0 0 60px rgba(67, 56, 202, 0.6); }
    100% { box-shadow: 0 0 10px rgba(139, 92, 246, 0.4); }
}

.animate-pulse-glow {
    animation: pulse-glow 4s infinite alternate;
}

/* New: Starfield background */
.starfield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle 3s infinite ease-in-out alternate;
}

@keyframes twinkle {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.5); }
}

/* Text Animations */
@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 1s ease-out forwards;
}

.animation-delay-500 {
    animation-delay: 0.5s;
}

.animation-delay-1000 {
    animation-delay: 1s;
}



/* Feature Card Styles */
.feature-card {
    background: rgba(31, 41, 55, 0.7); /* gray-800 with opacity */
    transition: all 0.3s ease;
    border: 1px solid transparent; /* Start with transparent border */
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d; /* For 3D tilt effect */
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 0%, #8b5cf6 20%, transparent 40%, transparent 60%, #3b82f6 80%, transparent 100%);
    animation: rotate-border 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    background: rgba(55, 65, 81, 0.8); /* slightly lighter on hover */
    transform: translateY(-5px) scale(1.02) rotateX(2deg) rotateY(-2deg); /* 3D tilt */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

@keyframes rotate-border {
    to { transform: rotate(360deg); }
}

/* Glassmorphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transition: all 0.3s ease;
}

.glass-effect:hover {
    box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.5);
    transform: translateY(-2px);
}

/* Gradient Text */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.gradient-purple-blue {
    background-image: linear-gradient(to right, #a78bfa, #818cf8);
}

.gradient-pink-purple {
    background-image: linear-gradient(to right, #ec4899, #a78bfa);
}

/* Button Hover Effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.4s;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

/* New: Border Light Effect for Buttons */
.btn-border-light {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-border-light::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #a78bfa, #818cf8, #ec4899, #a78bfa);
    background-size: 400%;
    z-index: -1;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: border-light-anim 4s linear infinite;
}

.btn-border-light:hover::after {
    opacity: 1;
}

@keyframes border-light-anim {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Form Input Styles */
input[type="text"],
input[type="email"],
textarea {
    background-color: rgba(31, 41, 55, 0.7);
    color: white;
    transition: all 0.3s ease;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #8b5cf6; /* purple-500 */
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.5);
    background-color: rgba(31, 41, 55, 0.9);
}