body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: transparent;
}

#container {
    text-align: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a202c;
}

::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #718096;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Particle.js container */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #0f172a;
    background-image: url("");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
}

/* Additional responsive adjustments */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Gradient text animation */
@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-animation 5s ease infinite;
}

/* Additional custom styles can be added here if needed */

.captcha-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1a202c;  /* Dark background to match the form */
    border-radius: 0.375rem;  /* Rounded corners */
    padding: 0.5rem;
}

.captcha-container canvas {
    max-width: 100%;
    height: auto;
}

/* Add these styles to your existing styles.css */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate__animated {
    animation-duration: 0.5s;
    animation-fill-mode: both;
}

.animate__fadeIn {
    animation-name: fadeIn;
}

/* Add a glow effect to buttons */
.glow-on-hover {
    @apply relative overflow-hidden;
}

.glow-on-hover::before {
    content: '';
    @apply absolute inset-0 bg-gradient-to-r from-blue-400 to-purple-500 opacity-0 transition-opacity duration-300;
}

.glow-on-hover:hover::before {
    @apply opacity-75;
}

/* Add a floating animation to project cards */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.project-card {
    animation: float 6s ease-in-out infinite;
}

/* Add these new styles to your existing styles.css */

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutLeft {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-100%); opacity: 0; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.slide-in-right {
    animation: slideInRight 0.5s forwards;
}

.slide-in-left {
    animation: slideInLeft 0.5s forwards;
}

.slide-out-left {
    animation: slideOutLeft 0.5s forwards;
}

.slide-out-right {
    animation: slideOutRight 0.5s forwards;
}

.step-transition {
    transition: opacity 0.5s ease-in-out;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

.checkmark {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    stroke-width: 2;
    stroke: #fff;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #7ac142;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
    margin-right: 8px;
    vertical-align: middle;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #7ac142;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #7ac142;
    }
}

.crossmark {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    stroke-width: 2;
    stroke: #fff;
    stroke-miterlimit: 10;
    margin-right: 8px;
    vertical-align: middle;
    animation: fillRed .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.crossmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #ff6b6b;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.crossmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes fillRed {
    100% {
        box-shadow: inset 0px 0px 0px 30px #ff6b6b;
    }
}

/* Replace the existing step transition styles with these */
.step {
    transition: all 0.5s ease-in-out;
    opacity: 1;
    transform: translateX(0);
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

.step.hidden {
    opacity: 0;
    pointer-events: none;
}

.step.slide-out-left {
    transform: translateX(-30px);
    opacity: 0;
}

.step.slide-out-right {
    transform: translateX(30px);
    opacity: 0;
}

.step.slide-in-left {
    transform: translateX(0);
    opacity: 1;
}

.step.slide-in-right {
    transform: translateX(0);
    opacity: 1;
}

/* Add this new style for the form container */
.form-container {
    position: relative;
    min-height: 400px; /* Adjust this value based on your form's content */
}

/* Add these styles for the Skills section */
.skill-card {
    @apply bg-black bg-opacity-50 backdrop-filter backdrop-blur-lg p-6 rounded-lg shadow-lg 
           hover:shadow-xl transition duration-300 transform hover:-translate-y-2 
           flex flex-col items-center text-center;
}

.skill-card i {
    @apply text-blue-400;
}

.skill-card h3 {
    @apply text-gray-200;
}

/* Add these styles at the end of your styles.css file */
.max-h-90vh {
    max-height: 90vh;
}

#project-details-popup {
    backdrop-filter: blur(5px);
}

#project-details-popup .bg-gray-900 {
    border: 1px solid rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

#3d-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to bottom, #0f0c29, #302b63, #24243e);
}