/* Custom Styles for Success Ladder Coaching Institute */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #ffc107;
    --success-color: #198754;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff10" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,112C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-image {
    text-align: center;
    position: relative;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Course Cards */
.course-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.course-details ul {
    padding-left: 1.2rem;
}

.course-details li {
    margin-bottom: 0.5rem;
}

/* General Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

/* Buttons */
.btn {
    border-radius: 50px;
    font-weight: 500;
    padding: 10px 25px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

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

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

/* Section Padding */
section {
    padding-top: 80px;
    padding-bottom: 80px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Base mobile fixes */
body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
}

.row {
    margin-left: -15px;
    margin-right: -15px;
    width: calc(100% + 30px);
}

.col-lg-6 {
    padding-left: 15px;
    padding-right: 15px;
}

/* Contact Links */
a[href^="tel:"] {
    color: inherit;
    text-decoration: none;
}

a[href^="tel:"]:hover {
    color: var(--primary-color);
}

/* Social Media Buttons */
.btn-outline-danger:hover {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    * {
        box-sizing: border-box;
    }
    
    .hero-section {
        text-align: center;
        padding-left: 10px;
        padding-right: 10px;
        width: 100%;
        max-width: 100vw;
    }
    
    .hero-section .display-4 {
        font-size: 1.6rem;
        line-height: 1.2;
        margin-left: 0;
        margin-right: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-left: 0;
        margin-right: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-section .row {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
    
    .hero-section .col-lg-6 {
        padding-left: 0;
        padding-right: 0;
        width: 100%;
        flex: 0 0 100%;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        align-items: center;
        gap: 1rem !important;
        width: 100%;
    }
    
    .btn-lg {
        width: 100%;
        max-width: 250px;
        margin-left: auto;
        margin-right: auto;
        white-space: nowrap;
    }
    
    /* Fix container padding on mobile */
    .container {
        padding-left: 10px;
        padding-right: 10px;
        width: 100%;
        max-width: 100%;
    }
    
    /* Fix section padding on mobile */
    section {
        padding-left: 10px;
        padding-right: 10px;
        width: 100%;
        max-width: 100vw;
    }
    
    /* Additional mobile fixes */
    .min-vh-100 {
        min-height: 100vh !important;
        width: 100%;
    }
}

/* Loading Animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.pulse {
    animation: pulse 2s infinite;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Focus States */
.btn:focus,
.nav-link:focus,
a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

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

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: white;
    text-decoration: none;
}

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

/* Mobile adjustments for WhatsApp button */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 60px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
        z-index: 999;
    }
    
    /* Ensure WhatsApp button doesn't overlap with mobile navigation */
    .navbar-toggler:focus + .navbar-collapse .whatsapp-float {
        bottom: 80px;
    }
    
    /* Additional mobile fixes */
    body {
        overflow-x: hidden;
    }
    
    .hero-section {
        overflow-x: hidden;
    }
    
    .min-vh-100 {
        min-height: 100vh !important;
    }
}

/* Gallery Styles */
.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    transition: transform 0.3s ease;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery section background */
#gallery {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .whatsapp-float {
        display: none;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
}
