/* Custom CSS for MasterPIP Academy */

/* Import Google Fonts */


/* Root Variables */
:root {
    --primary-color: #669602;
    --secondary-color: #fbbf24;
    --success-color: #10b981;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --text-color: #374151;
    --border-color: #e5e7eb;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'RB-Regular', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    padding-top: 100px; /* Space for top bar + navbar */
}

@media (max-width: 768px) {
    body {
        padding-top: 65px; /* Only navbar space on mobile */
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'RB-Bold', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1051;
    font-size: 0.875rem;
    transition: transform 0.15s ease-out;
    transform: translateY(0);
    will-change: transform;
}

.top-bar.hidden {
    transform: translateY(-100%);
}

.top-bar .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.top-bar .btn-outline-light:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--dark-color);
}

.top-bar .btn-light:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Top Bar Responsive */
@media (max-width: 768px) {
    .top-bar {
        display: none !important;
    }
    
    .top-bar .container {
        padding: 0 15px;
    }
    
    .top-bar .row {
        flex-direction: column;
        text-align: center;
    }
    
    .top-bar .col-md-8,
    .top-bar .col-md-4 {
        margin-bottom: 0.5rem;
    }
    
    .top-bar .col-md-4:last-child {
        margin-bottom: 0;
    }
    
    .top-bar .d-flex {
        justify-content: center !important;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .top-bar .btn {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
    
    .navbar {
        top: 0 !important;
    }
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), #2563eb) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease, transform 0.3s ease-in-out;
    transform: translateY(0);
    will-change: transform;
    top: 44px;
}

.navbar.top-bar-hidden {
    top: 0;
}

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

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

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

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

/* Hero Slider Section */
.hero-slider-section {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-image {
    position: relative;
    z-index: 2;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.hero-buttons .btn {
    margin: 0.5rem 0.5rem 0.5rem 0;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Carousel Customization */
.carousel-indicators {
    bottom: 30px;
    z-index: 3;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background-color: transparent;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: scale(1.2);
}

.carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 3;
}

.carousel-control-prev {
    right: auto;
    left: 30px;
}

.carousel-control-next {
    left: auto;
    right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Slide Transitions */
.carousel-item {
    transition: transform 0.8s ease-in-out;
}

.carousel-item.active {
    transform: translateX(0);
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }
    
    .carousel-control-prev {
        left: 15px;
    }
    
    .carousel-control-next {
        right: 15px;
    }
    
    .carousel-indicators {
        bottom: 20px;
    }
    
    .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 5px;
    }
    
    .hero-slide {
        background-attachment: scroll;
    }
}

/* Sections */
section {
    padding: 10px 0;
}

.bg-light {
    background-color: #f8fafc !important;
}

/* About Section */
.about-content h3 {
    color: var(--primary-color);
    font-weight: 700;
}

.values-list .value-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.values-list .value-item:last-child {
    border-bottom: none;
}

.values-list .value-item:hover {
    transform: translateX(10px);
    background: rgba(30, 58, 138, 0.05);
    padding-right: 1rem;
    border-radius: 10px;
}

.value-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Programs Section */
.program-card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.program-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.program-card .btn {
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Trainer Section */
.trainer-image img {
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.trainer-image img:hover {
    transform: scale(1.05);
}

.achievement-item {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.achievement-item:hover {
    transform: translateX(10px);
}

.achievement-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Community Section */
.testimonial-card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--success-color));
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.author-avatar {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stars i {
    font-size: 1rem;
    margin-left: 2px;
}

/* Blog Section */
.blog-card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image svg {
    transform: scale(1.05);
}

.blog-card .card-title a {
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.blog-card .card-title a:hover {
    color: var(--primary-color);
}

.blog-meta {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-control, .form-select {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.contact-info {
    text-align: center;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-color), #111827) !important;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color), var(--secondary-color), #dc3545, #6f42c1);
}

footer h6 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
}

footer h6::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-brand img {
    filter: brightness(0) invert(1);
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-link {
    color: #b8b8b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 8px 0;
    transition: all 0.3s ease;
    border-radius: 5px;
    margin-bottom: 5px;
}

.footer-link:hover {
    color: var(--secondary-color) !important;
    background: rgba(251, 191, 36, 0.1);
    padding-left: 10px;
    transform: translateX(5px);
}

.footer-link i {
    transition: transform 0.3s ease;
    margin-right: 8px;
}

.footer-link:hover i {
    transform: translateX(3px);
}
.text-muted{
    color: var(--white) !important;
}

/* Contact Info Styles */
.contact-info {
    padding: 10px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    transition: all 0.3s ease;
    border-radius: 5px;
    color: #b8b8b8;
}

.contact-item:hover {
    background: rgba(251, 191, 36, 0.1);
    padding-left: 10px;
    transform: translateX(3px);
    color: var(--secondary-color);
}

.contact-item i {
    font-size: 1.1rem;
    min-width: 20px;
    transition: transform 0.3s ease;
    margin-right: 10px;
    color: var(--primary-color);
}

.contact-item:hover i {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.contact-item span {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Newsletter Form */
.newsletter-form .input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.newsletter-form .form-control {
    border: none;
    padding: 12px 20px;
    background: rgba(255,255,255,0.95);
    color: #333;
}

.newsletter-form .form-control:focus {
    box-shadow: none;
    background: #fff;
}

.newsletter-form .btn {
    border: none;
    padding: 12px 20px;
    background: linear-gradient(45deg, var(--primary-color), #2563eb);
    transition: all 0.3s ease;
}

.newsletter-form .btn:hover {
    background: linear-gradient(45deg, #2563eb, var(--primary-color));
    transform: translateX(-2px);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::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 ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link.facebook {
    background: linear-gradient(45deg, #1877f2, #42a5f5);
}

.social-link.twitter {
    background: linear-gradient(45deg, #1da1f2, #42a5f5);
}

.social-link.instagram {
    background: linear-gradient(45deg, #e4405f, #fd1d1d, #fcb045);
}

.social-link.linkedin {
    background: linear-gradient(45deg, #0077b5, #42a5f5);
}

.social-link.youtube {
    background: linear-gradient(45deg, #ff0000, #ff4444);
}

.social-link.telegram {
    background: linear-gradient(45deg, #0088cc, #42a5f5);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: white;
}

.social-link i {
    font-size: 18px;
    z-index: 1;
    position: relative;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

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

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

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

/* Custom Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

.btn-warning {
    background: linear-gradient(135deg, var(--secondary-color), #f59e0b);
    border: none;
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #f59e0b, var(--secondary-color));
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #059669);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669, var(--success-color));
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        text-align: center;
    }
    
    .hero-buttons .btn {
        display: block;
        margin: 0.5rem auto;
        width: 100%;
        max-width: 300px;
    }
    
    .values-list .value-item:hover,
    .achievement-item:hover {
        transform: none;
        padding-right: 0;
    }
    
    section {
        padding: 0;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

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

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) 1;
}

