/* Enhanced CSS for AI Learning Website */

/* Root Variables */
:root {
    --primary-amber: #f59e0b;
    --primary-orange: #ea580c;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --gradient-primary: linear-gradient(90deg, #facc15, #fb923c);
    --gradient-bg: radial-gradient(circle at 50% 50%, rgba(251, 191, 36, 0.08), rgba(15, 23, 42, 0) 70%),
                   linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--slate-900);
    color: #e2e8f0;
    line-height: 1.6;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hero Background */
.hero-bg-image {
    background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85)), 
                      url('https://images.unsplash.com/photo-1534723452862-4c874018d66d?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Content Background */
.content-bg {
    background: var(--gradient-bg);
}

/* Glass Card Effects */
.glass-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(51, 65, 85, 0.8);
    border: 1px solid rgba(251, 191, 36, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Glow Effect */
.section-glow::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 250px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, rgba(251, 191, 36, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Enhanced Navigation */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Styles */
#mobile-menu-btn {
    transition: all 0.3s ease;
}

#mobile-menu-btn:hover {
    transform: scale(1.05);
}

.mobile-nav-link {
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.mobile-nav-link:hover {
    background: rgba(251, 191, 36, 0.1);
}

/* Hero Section Enhancements */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(30px) rotate(240deg); }
}

.hero-badge {
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* Section Badges */
.section-badge {
    animation: fadeInUp 0.6s ease-out both;
}

/* Button Enhancements */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button-secondary {
    position: relative;
    overflow: hidden;
}

.cta-button-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.cta-button-secondary:hover::before {
    left: 100%;
}

/* Scroll Indicator */
.scroll-indicator {
    text-align: center;
}

.scroll-down-arrow {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Profile Section */
.profile-image-container {
    position: relative;
    display: inline-block;
}

.profile-image {
    filter: grayscale(20%);
    transition: all 0.5s ease;
}

.profile-image:hover {
    filter: grayscale(0%);
}

.profile-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
    100% { transform: translateX(-50%) scale(1); }
}

/* Feature Points */
.feature-point {
    animation: slideInLeft 0.6s ease-out both;
}

.feature-point:nth-child(2) { animation-delay: 0.2s; }
.feature-point:nth-child(3) { animation-delay: 0.4s; }

/* Step Cards */
.step-card {
    transition: all 0.4s ease;
    position: relative;
}

.step-card:hover {
    transform: translateY(-10px);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--slate-900);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 2;
}

.step-number::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: var(--gradient-primary);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-card:hover .step-number::before {
    opacity: 0.3;
    animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.3); opacity: 0; }
}

.step-icon {
    margin: 1rem auto;
    transition: transform 0.3s ease;
}

.step-card:hover .step-icon {
    transform: scale(1.1);
}

/* Highlight Cards */
.highlight-card {
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(251, 191, 36, 0.1), transparent 30%);
    animation: rotate 6s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.highlight-icon {
    animation: bounceIn 1s ease-out both;
}

/* Newspaper Clips */
.newspaper-container {
    perspective: 1000px;
}

.newspaper-clip {
    background-color: #f3e2d1;
    color: #2d2a26;
    padding: 1.5rem;
    border: 1px solid #ccc;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: rotate(-2deg);
    transition: all 0.4s ease;
    border-radius: 8px;
}

.newspaper-clip:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Challenge Items */
.challenge-item, .impact-item {
    transition: all 0.3s ease;
}

.challenge-item:hover, .impact-item:hover {
    transform: translateX(10px);
    background: rgba(51, 65, 85, 0.6);
}

/* Career Cards */
.career-card {
    position: relative;
    overflow: hidden;
}

.career-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s;
}

.career-card:hover::before {
    left: 100%;
}

.career-icon {
    transition: all 0.4s ease;
}

.career-card:hover .career-icon {
    transform: scale(1.2) rotate(5deg);
}

.salary-range {
    transition: all 0.3s ease;
}

.career-card:hover .salary-range {
    transform: scale(1.05);
}

/* Form Styles */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(251, 191, 36, 0.1);
}

/* Custom Checkbox */
.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #475569;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.interest-checkbox input:checked + .checkbox-custom {
    background: var(--gradient-primary);
    border-color: var(--primary-amber);
}

.interest-checkbox input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--slate-900);
    font-weight: bold;
    font-size: 12px;
}

.interest-checkbox:hover {
    background: rgba(51, 65, 85, 0.6);
    border-color: rgba(251, 191, 36, 0.3);
}

/* Submit Button */
.submit-btn {
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

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

/* Solution Card */
.solution-card {
    position: relative;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solution-card:hover::before {
    opacity: 0.5;
}

.solution-icon {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 5px #f59e0b, 0 0 10px #f59e0b, 0 0 15px #f59e0b; }
    to { text-shadow: 0 0 10px #f59e0b, 0 0 20px #f59e0b, 0 0 30px #f59e0b; }
}

/* Contact Card */
.contact-card {
    position: relative;
}

.contact-info {
    animation: fadeIn 1s ease-out both;
}

/* WhatsApp Float */
.whatsapp-float {
    position: relative;
}

.whatsapp-ping {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #25D366;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Back to Top Button */
#backToTop {
    transition: all 0.3s ease;
}

#backToTop.show {
    transform: translateY(0);
    opacity: 1;
}

#backToTop:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .hero-bg-image {
        background-attachment: scroll;
    }
    
    .floating-shapes {
        display: none;
    }
    
    .step-card {
        margin-bottom: 2rem;
    }
    
    .newspaper-clip {
        transform: rotate(-1deg);
        margin-bottom: 2rem;
    }
    
    .newspaper-clip:hover {
        transform: rotate(0deg) scale(1.01);
    }
    
    .career-card {
        margin-bottom: 1rem;
    }
    
    .form-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 640px) {
    .section-glow::before {
        width: 90%;
        height: 150px;
    }
    
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 6rem;
    }
    
    #backToTop {
        bottom: 6rem;
        width: 48px;
        height: 48px;
    }
}

/* Print Styles */
@media print {
    .whatsapp-float,
    #backToTop,
    #mobile-menu-btn,
    header {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .glass-card {
        background: white !important;
        border: 1px solid #ccc !important;
    }
}