/* Custom Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-in-out;
}

.delay-300 {
    animation-delay: 300ms;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.animate-slide-up {
    animation: slideUp 1s ease-in-out;
}

@keyframes slideUp {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

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

/* Section Styles */
.section-title {
    @apply text-3xl font-bold mb-8 text-gray-100;
}

/* Add this to your CSS for section titles */
h2.text-3xl.font-bold.mb-16.text-center.text-gray-100 {
    @apply relative inline-block;
}

h2.text-3xl.font-bold.mb-16.text-center.text-gray-100::after {
    content: '';
    @apply absolute left-1/2 bottom-0 transform -translate-x-1/2 w-24 h-1 bg-gradient-to-r from-indigo-500 to-blue-500 rounded-full mt-4;
}

/* Card Styles */
.card {
    @apply bg-gray-800 rounded-lg p-6 shadow-lg transition-all duration-300 hover:shadow-xl;
}

/* Timeline Styles */
.timeline-dot {
    @apply absolute w-4 h-4 bg-gray-600 rounded-full -left-[10px] mt-1.5 border-4 border-gray-900;
}

/* Skill Tag Styles */
.skill-tag {
    @apply bg-gray-700 text-gray-100 px-3 py-1.5 rounded-full text-sm transition-all duration-300 border border-transparent;
}

.skill-tag:hover {
    @apply border-indigo-500/50 bg-gradient-to-r from-gray-700 to-indigo-900/70 shadow-md transform -translate-y-0.5;
}

/* Project Card Styles */
.project-card {
    @apply bg-gray-800 rounded-lg overflow-hidden shadow-lg transition-all duration-300 hover:-translate-y-2 hover:shadow-xl border-2 border-transparent;
}

.project-card:hover {
    @apply border-2 border-gradient-to-r from-indigo-500 to-blue-500;
    background-image: linear-gradient(to bottom, #1e293b, #1e293b),
                      linear-gradient(to right, rgba(99, 102, 241, 0.5), rgba(59, 130, 246, 0.5));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

/* Contact Form Styles */
.form-input {
    @apply w-full bg-gray-600 rounded-md px-4 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500;
    color: white !important;
    border: 1px solid #4b5563;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Fix for select dropdown */
select.form-input {
    @apply appearance-none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23FFFFFF' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    color: white !important;
}

select.form-input option {
    @apply bg-gray-600;
    color: white !important;
}

/* Button Styles */
.btn {
    @apply px-4 py-2 rounded-md font-medium transition-all duration-300 relative overflow-hidden shadow-md;
}

.btn::before {
    content: '';
    @apply absolute inset-0 opacity-0 transition-opacity duration-300;
    background: linear-gradient(to right, rgba(99, 102, 241, 0.7), rgba(59, 130, 246, 0.7));
}

.btn:hover::before {
    @apply opacity-100;
}

.btn span {
    @apply relative z-10;
}

.btn-primary {
    @apply bg-gray-700 text-white;
}

.bg-gray-700.hover\:bg-gray-600 {
    @apply relative overflow-hidden;
}

.bg-gray-700.hover\:bg-gray-600::before {
    content: '';
    @apply absolute inset-0 opacity-0 transition-opacity duration-300;
    background: linear-gradient(to right, rgba(99, 102, 241, 0.7), rgba(59, 130, 246, 0.7));
}

.bg-gray-700.hover\:bg-gray-600:hover::before {
    @apply opacity-100;
}

/* Skill Section Title Glow */
.text-xl.font-bold.text-gray-100.mb-6 {
    @apply relative;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

/* Section Background Patterns */
.bg-gray-900 {
    background-color: #0f172a;
    background-image: radial-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.bg-gray-800 {
    background-color: #1e293b;
    background-image: radial-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a202c;
}

::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #718096;
}
