/* Custom Styles for Tiwari Class */

:root {
    --primary-color: #4F46E5;
    --secondary-color: #06B6D4;
    --accent-color: #F59E0B;
    --dark-color: #1F2937;
    --light-color: #F9FAFB;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
    --gradient-3: linear-gradient(135deg, #667eea 0%, #06B6D4 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #ffffff;
}

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

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%) !important;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Hero Section */
.hero-section {
    margin-top: 56px;
    position: relative;
    overflow: hidden;
}

.hero-banner {
    width: 100%;
    position: relative;
    animation: fadeIn 1s ease;
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 600px;
    object-fit: cover;
}

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

/* Adjust hero section for mobile */
@media (max-width: 768px) {
    .hero-section {
        margin-top: 56px;
    }

    .hero-banner img {
        max-height: 400px;
    }
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: white;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.2) !important;
}

.card-img-top {
    height: 250px;
    object-fit: cover;
}

.card .btn-primary {
    background: var(--primary-color);
    border: none;
}

.card .btn-primary:hover {
    background: var(--secondary-color);
}

/* Feature Icons */
.feature-icon {
    display: inline-block;
    padding: 20px;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    line-height: 60px;
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.1);
}

/* Section Headers */
h2.display-4 {
    color: var(--dark-color);
    font-weight: 800;
    position: relative;
    display: inline-block;
}

h2.display-4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-2);
    border-radius: 2px;
}

/* Form Styling */
.form-control {
    border-radius: 12px;
    padding: 14px 20px;
    border: 2px solid #E5E7EB;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    outline: none;
}

/* Button Styling */
.btn {
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1rem;
}

/* Footer */
footer {
    margin-top: auto;
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%) !important;
    border-top: 3px solid var(--primary-color);
}

/* Background Sections */
.bg-light {
    background: linear-gradient(180deg, #F9FAFB 0%, #F3F4F6 100%) !important;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section {
        padding-top: 60px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Section Padding */
section {
    scroll-margin-top: 80px;
}

section .lead {
    color: #6B7280;
    font-weight: 400;
}

/* Card Title Styling */
.card-title {
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.card-text {
    color: #6B7280;
}

/* About Section Cards */
#about .card {
    border: 2px solid transparent;
    background: white;
}

#about .card:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, #F9FAFB 100%);
}

/* Contact Section */
#contact {
    position: relative;
}

#contact .btn-primary {
    background: var(--accent-color);
}

#contact .btn-primary:hover {
    background: #D97706;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

/* Smooth transitions for all interactive elements */
a, button, .card, .btn, .form-control {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7);
    color: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.8);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    }
}

/* WhatsApp Button in Contact Section */
.btn-success {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #128C7E 0%, #0D7A6F 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* Course Highlight Card */
.course-highlight {
    background: var(--gradient-3);
    color: white;
}

.course-highlight .card-title {
    color: white;
    font-weight: 800;
}

.course-highlight .card-text {
    color: rgba(255, 255, 255, 0.9);
}

.course-highlight .feature-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.course-highlight .btn-primary {
    background: white;
    color: var(--primary-color);
}

.course-highlight .btn-primary:hover {
    background: var(--accent-color);
    color: white;
}

/* Mobile Responsive for WhatsApp Float */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}