/**
 * Learn AI Lab - Custom Styles
 * Additional styles beyond Tailwind CSS
 */

/* Base */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #F7F4ED;
}
#hero{
    background-color: #DBD4C9;
}

#about, #programs{
    background-color: #F0ECE4;
}
#about p{
    color: rgb(16, 24, 40);
}
/*White text*/
#about > div > div.grid.lg\:grid-cols-2.gap-16.items-center.mb-20 > div.relative > div.relative.rounded-3xl.overflow-hidden.shadow-2xl.mb-8 > div.absolute.bottom-0.left-0.right-0.p-6 > p {
    color: #fff;
}

h1{
    color: #101828;
}
/*team member*/

        
#team > div > div.grid.md\:grid-cols-2.lg\:grid-cols-3.gap-8 > div:nth-child(1) > div > div.absolute.inset-0.bg-gradient-to-t.from-secondary-900.via-secondary-900\/95.to-secondary-900\/70.opacity-0.group-hover\:opacity-100.transition-all.duration-300.flex.flex-col.justify-end::before{
      content: ''; /* Required for pseudo-elements */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0; /* Stretches the overlay to cover the whole container */
  background-color: rgba(221, 44, 0, 0.6);
  opacity: 0; /* Hidden by default */
  /* Smooth transition for the opacity change */
  transition: opacity 0.5s ease-in-out; 
}
#team > div > div.grid.md\:grid-cols-2.lg\:grid-cols-3.gap-8 > div:nth-child(1) > div > div.absolute.inset-0.bg-gradient-to-t.from-secondary-900.via-secondary-900\/95.to-secondary-900\/70.opacity-0.group-hover\:opacity-100.transition-all.duration-300.flex.flex-col.justify-end::before:hover{
    opacity: 1; /* Fully visible on hover */
}

/* Gradient utilities - Red Brand Theme */
.gradient-bg {
    background: #DD2C00;
}

.gradient-text {
    background: #DD2C00;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/*.gradient-bg-hover:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
}*/

/* Glass morphism */
.glass-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Hero gradient background - warm tones */
.hero-gradient {
    background: linear-gradient(180deg, #fef2f2 0%, #fff7ed 30%, #ffffff 100%);
}

/* Professional card styles */
.card-professional {
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.card-professional:hover {
    border-color: #fca5a5;
    box-shadow: 0 20px 40px -12px rgba(220, 38, 38, 0.15);
    transform: translateY(-4px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Section animations */
.section-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.section-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Modal backdrop */
.modal-backdrop {
    background: rgba(16, 24, 40, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Progress step indicator */
.progress-step {
    transition: all 0.3s ease;
}

.progress-step.active {
    background: #DD2C00;
    transform: scale(1.2);
}

.progress-step.completed {
    background: #10b981;
}

/* Custom scrollbar - brand themed */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #DD2C00;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #DD2C00;
}

/* Form elements */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Button hover effects */

#hero > div.relative.max-w-7xl.mx-auto.px-4.sm\:px-6.lg\:px-8.pt-16.lg\:pt-24.pb-20 > div > div.text-center.lg\:text-left > div.flex.flex-col.sm\:flex-row.gap-4.justify-center.lg\:justify-start.mb-12 > a{
    color: #DD2C00;
    border:1px solid #DD2C00;
    background-color: #fff;
    padding: 0.7rem 2rem;
}

button:hover:not(:disabled) {
    transform: translateY(-1px);
     border:1px solid #DD2C00;
}

button:active:not(:disabled) {
    transform: translateY(0);
     border:1px solid #DD2C00;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Link underline animation */
.link-underline {
    position: relative;
}

.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.link-underline:hover::after {
    width: 100%;
}

/* Loading spinner */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: rgb(16, 24, 40);;
    color: white;
    font-size: 0.75rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.tooltip:hover::before {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 8px);
}

/* Radio/Checkbox styling */
input[type="radio"],
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
}

/* Input validation styles */
.validation-feedback {
    animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ripple effect animation for assessment options */
@keyframes ripple-effect {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Input shake animation for errors */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-4px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(4px);
    }
}

.input-error {
    animation: shake 0.5s ease-in-out;
}

/* Warning notification style */
.notification-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Character count styling */
#other-char-count {
    transition: color 0.3s ease;
}

/* Responsive utilities */
@media (max-width: 640px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 641px) {
    .show-mobile-only {
        display: none !important;
    }
}