/* Global Styles */
:root {
    --primary-color: #007BFF;
    --secondary-color: #0056b3;
    --accent-color: #0056b3;
    --success-color: #25D366;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #333333;
    --light-color: #F8F9FA;
    --text-color: #333333;
    --border-radius: 6px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
}

.display-4 {
    font-size: 2.5rem;
    font-weight: 700;
}

.lead {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-color);
}

body {
    font-family: 'Lato', 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    font-size: 16px;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    padding: 0.5rem 0;
    background: rgba(0, 123, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    background: rgba(0, 123, 255, 0.98) !important;
    backdrop-filter: blur(15px);
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-line-1 {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.brand-line-2 {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.brand-line-3 {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem 1rem !important;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #fff;
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-nav .nav-link.active {
    color: #fff !important;
    font-weight: 600;
}

.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    background-attachment: fixed;
}

.hero-overlay {
    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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 100%;
    height: auto;
    display: block;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

.animate-slide-in {
    animation: slideInRight 1s ease-out 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    padding: 12px 24px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
    min-height: 50px;
}

/* About Section */
.about-content ul li {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.about-content ul li:last-child {
    border-bottom: none;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.counter {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Course Cards */
.course-card {
    background: white;
    padding: 0;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: var(--transition);
    z-index: 3;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.course-card:hover::before {
    transform: scaleX(1);
}

.course-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.05);
}

.course-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -30px auto 1rem;
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.course-card:hover .course-icon {
    transform: scale(1.1) rotate(5deg);
}

.course-card h4 {
    padding: 0 1.5rem;
    margin-bottom: 1rem;
}

.course-card p {
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
    color: #6b7280;
}

.course-features {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
    padding: 0 1.5rem;
}

.course-features li {
    padding: 0.5rem 0;
    color: #6b7280;
}

.course-features i {
    color: var(--primary-color);
}

.course-card .btn {
    margin: 0 1.5rem 1.5rem;
    width: calc(100% - 3rem);
}

/* Contact Section */
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-control {
    border-radius: var(--border-radius);
    border: 2px solid #e5e7eb;
    padding: 12px 16px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Map Container */
.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Enroll Section */
.enroll-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color), #111827);
}

footer a:hover {
    color: white !important;
    text-decoration: none;
}

/* Floating Contact Buttons */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.call-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.floating-btn:hover {
    transform: scale(1.1);
    color: white;
    text-decoration: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
    }
    100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
}

/* Pop-out Contact Panel */
.contact-panel {
    position: fixed;
    top: 50%;
    right: -400px;
    transform: translateY(-50%);
    width: 350px;
    background: white;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    transition: var(--transition);
    max-height: 80vh;
    overflow-y: auto;
}

.contact-panel.active {
    right: 0;
}

.contact-panel-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem;
    border-radius: var(--border-radius) 0 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-panel {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-panel:hover {
    transform: scale(1.1);
}

.contact-panel-content {
    padding: 1.5rem;
}

.contact-panel-content .contact-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.contact-panel-content .contact-item:last-child {
    border-bottom: none;
}

.contact-panel-content .contact-item i {
    font-size: 1.2rem;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

.contact-panel-content .contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-panel-content .contact-item a:hover {
    text-decoration: underline;
}

.contact-panel-buttons {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
}

.contact-panel-buttons .btn {
    flex: 1;
    font-size: 0.9rem;
    padding: 8px 16px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Section Spacing */
section {
    padding: 80px 0;
}

/* Additional responsive fixes */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 40px 0;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .hero-section {
        padding-top: 100px;
        text-align: center;
        min-height: auto;
        padding-bottom: 60px;
    }
    
    .hero-content {
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        margin: 0.5rem 0;
        width: 100%;
        max-width: 300px;
        font-size: 1rem;
        padding: 10px 20px;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .hero-image img {
        max-width: 100%;
        height: auto;
    }
    
    .floating-buttons {
        bottom: 15px;
        right: 15px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .contact-panel {
        width: 300px;
        right: -300px;
    }
    
    .stat-card {
        margin-bottom: 1rem;
        padding: 1.5rem;
    }
    
    .course-card {
        margin-bottom: 2rem;
        padding: 1.5rem;
    }
    
    .contact-form {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
         .navbar-brand {
         font-size: 1.3rem;
     }
     
     .brand-line-1 {
         font-size: 1rem;
     }
     
     .brand-line-2 {
         font-size: 0.8rem;
     }
     
     .brand-line-3 {
         font-size: 0.7rem;
     }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }
    
    .navbar-nav .nav-link.btn {
        margin: 0.5rem 0;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
         .navbar-brand {
         font-size: 1.1rem;
     }
     
     .brand-line-1 {
         font-size: 0.9rem;
     }
     
     .brand-line-2 {
         font-size: 0.7rem;
     }
     
     .brand-line-3 {
         font-size: 0.6rem;
     }
    
    .hero-section {
        padding: 100px 0 40px;
        min-height: auto;
    }
    
    .display-4 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .lead {
        font-size: 0.95rem;
    }
    
    .hero-buttons .btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .hero-image {
        margin-top: 1.5rem;
    }
    
    .hero-image img {
        border-radius: 6px;
    }
    
    .contact-panel {
        width: 280px;
        right: -280px;
    }
    
    .contact-panel-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .floating-buttons {
        bottom: 10px;
        right: 10px;
        gap: 8px;
    }
    
    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .course-card {
        padding: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .enroll-form {
        padding: 1rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 10px 20px;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Focus States */
.btn:focus,
.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Print Styles */
@media print {
    .floating-buttons,
    .contact-panel,
    .navbar {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    .hero-overlay {
        display: none;
    }
}
