/*--------------------------------------------------------------
# General Styles
--------------------------------------------------------------*/
:root {
    --primary-color: #4e57d4;
    --primary-color-rgb: 78, 87, 212;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --body-color: #f8f9fa;
    --body-color-dark: #121212;
    --text-color: #212529;
    --text-color-dark: #e9ecef;
    --border-color: #dee2e6;
    --border-radius: 0.5rem;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease-in-out;
    --gradient: linear-gradient(135deg, #4e57d4 0%, #8a94f1 100%);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --body-color: #121212;
    --text-color: #e9ecef;
    --border-color: #343a40;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--body-color);
    transition: var(--transition);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: rgba(var(--primary-color-rgb), 0.8);
}

.section-padding {
    padding: 100px 0;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-light {
    background-color: var(--light-color) !important;
}

[data-theme="dark"] .bg-light {
    background-color: #1e1e1e !important;
}

.btn {
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient);
    border: none;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8a94f1 0%, #4e57d4 100%);
    z-index: -1;
    transition: var(--transition);
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-hover-effect {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(var(--primary-color-rgb), 0.2);
}

.btn-hover-effect:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(var(--primary-color-rgb), 0.3);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-heading {
    margin-bottom: 3rem;
}

.section-heading h6 {
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-heading h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-heading h2:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -15px;
    width: 80px;
    height: 3px;
    background: var(--gradient);
    transform: translateX(-50%);
}

.section-wave {
    position: relative;
    bottom: -5px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background-color: var(--body-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 40px;
    height: 40px;
    position: relative;
}

.double-bounce1, .double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
    animation-delay: -1.0s;
}

@keyframes sk-bounce {
    0%, 100% { 
        transform: scale(0.0);
    } 50% { 
        transform: scale(1.0);
    }
}

/*--------------------------------------------------------------
# Theme Toggle
--------------------------------------------------------------*/
.theme-toggle {
    display: inline-block;
}

.checkbox {
    opacity: 0;
    position: absolute;
}

.checkbox-label {
    background-color: #111;
    width: 50px;
    height: 26px;
    border-radius: 50px;
    position: relative;
    padding: 5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.checkbox-label .mdi-weather-sunny {
    color: #f39c12;
}

.checkbox-label .mdi-weather-night {
    color: #f1c40f;
}

.checkbox-label .ball {
    background-color: #fff;
    width: 22px;
    height: 22px;
    position: absolute;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    transition: transform 0.2s linear;
}

.checkbox:checked + .checkbox-label .ball {
    transform: translateX(24px);
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #121212;
    color: #f8f9fa;
}

body.dark-mode .navbar {
    background-color: #1e1e1e !important;
}

body.dark-mode .navbar-nav .nav-link {
    color: #f8f9fa;
}

body.dark-mode .card,
body.dark-mode .section-title h2,
body.dark-mode .section-title p,
body.dark-mode .footer {
    background-color: #1e1e1e;
    color: #f8f9fa;
}

body.dark-mode .bg-light {
    background-color: #1e1e1e !important;
}

body.dark-mode .text-dark {
    color: #f8f9fa !important;
}

body.dark-mode .btn-light {
    background-color: #2d2d2d;
    color: #f8f9fa;
}

body.dark-mode .portfolio-card {
    background-color: #2d2d2d;
}

body.dark-mode .portfolio-info h5,
body.dark-mode .portfolio-info p {
    color: #f8f9fa;
}

/*--------------------------------------------------------------
# Navbar
--------------------------------------------------------------*/
.navbar {
    padding: 20px 0;
    transition: var(--transition);
    z-index: 1000;
}

.navbar.navbar-scrolled {
    padding: 10px 0;
    background-color: var(--body-color);
    box-shadow: var(--box-shadow);
}

[data-theme="dark"] .navbar.navbar-scrolled {
    background-color: var(--body-color-dark);
}

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

.navbar-brand img {
    height: 40px;
}

.logo-dark {
    display: block;
}

.logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: none;
}

[data-theme="dark"] .logo-light {
    display: block;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

[data-theme="dark"] .navbar-light .navbar-nav .nav-link {
    color: var(--text-color-dark);
}

.navbar-light .navbar-nav .nav-link:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-light .navbar-nav .nav-link:hover:before,
.navbar-light .navbar-nav .nav-link.active:before {
    width: 30px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--body-color);
}

[data-theme="dark"] .hero-section {
    background-color: var(--body-color-dark);
}

.particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.hero-shape-1,
.hero-shape-2 {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.1;
    filter: blur(50px);
    z-index: -1;
}

.hero-shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
    animation: pulse 8s infinite;
}

.hero-shape-2 {
    width: 200px;
    height: 200px;
    bottom: 50px;
    left: 50px;
    animation: pulse 6s infinite 1s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.2;
    }
    100% {
        transform: scale(1);
        opacity: 0.1;
    }
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.typewrite {
    position: relative;
}

.typewrite::after {
    content: '|';
    position: absolute;
    right: -5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.service-card {
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

[data-theme="dark"] .service-card {
    background-color: #1e1e1e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient);
    opacity: 0.1;
    z-index: -1;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(var(--primary-color-rgb), 0.1);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(var(--primary-color-rgb), 0.3);
}

.service-card h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    transition: var(--transition);
}

.service-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/*--------------------------------------------------------------
# Trainings Section
--------------------------------------------------------------*/
.training-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    background-color: #fff;
}

[data-theme="dark"] .training-card {
    background-color: #1e1e1e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.training-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(var(--primary-color-rgb), 0.1);
}

.training-image {
    position: relative;
    overflow: hidden;
}

.training-image img {
    transition: var(--transition);
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.training-card:hover .training-image img {
    transform: scale(1.1);
}

.training-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--primary-color-rgb), 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.training-card:hover .training-overlay {
    opacity: 1;
}

.training-content {
    padding: 1.5rem;
}

.training-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.mobile-enroll-btn {
    display: none;
    width: 100%;
    margin-top: 10px;
    text-align: center;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: var(--gradient);
    color: white;
    border-radius: var(--border-radius);
}

@media (max-width: 768px) {
    .mobile-enroll-btn {
        display: block;
    }
    
    .training-overlay {
        display: none;
    }
    
    .training-card:hover {
        transform: none;
    }
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio-section {
    position: relative;
    overflow: hidden;
}

.portfolio-filter {
    margin-bottom: 30px;
}

.portfolio-filter button {
    margin: 0 5px;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.portfolio-filter button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.portfolio-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    height: 100%;
    transition: var(--transition);
}

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

.portfolio-img {
    position: relative;
    overflow: hidden;
}

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

.portfolio-card:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--primary-color-rgb), 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-content {
    text-align: center;
    padding: 20px;
    color: white;
}

.portfolio-content h5 {
    margin-bottom: 5px;
    color: white;
}

.portfolio-content p {
    margin-bottom: 15px;
    font-size: 14px;
}

/* New styles for direct project links */
.view-project-btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: white;
    color: var(--primary-color);
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.view-project-btn:hover {
    background-color: var(--dark-color);
    color: white;
}

/* Mobile-friendly info section */
.portfolio-info {
    padding: 15px;
    text-align: center;
    background-color: #fff;
    border-top: 1px solid var(--border-color);
    display: none; /* Hidden by default on desktop */
}

[data-theme="dark"] .portfolio-info {
    background-color: #1e1e1e;
    color: var(--text-color-dark);
}

.portfolio-info h5 {
    font-size: 18px;
    margin-bottom: 5px;
}

.portfolio-info p {
    font-size: 14px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.portfolio-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: white;
    color: var(--primary-color);
    font-size: 20px;
    transition: var(--transition);
}

.portfolio-link:hover {
    background: var(--dark-color);
    color: white;
}

/* Portfolio Modal Styles */
.portfolio-modals {
    position: relative;
}

.portfolio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    overflow-y: auto;
    padding: 50px 0;
}

.portfolio-modal-content {
    position: relative;
    background: var(--body-color);
    max-width: 900px;
    margin: 30px auto;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.project-details {
    padding: 20px 0;
}

.project-info {
    margin: 20px 0;
    padding: 15px;
    background: rgba(var(--primary-color-rgb), 0.1);
    border-radius: var(--border-radius);
}

.project-description {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .portfolio-modal-content {
        padding: 20px;
        margin: 20px;
    }
    
    .portfolio-filter button {
        margin-bottom: 10px;
    }
    
    .portfolio-overlay {
        display: none; /* Hide overlay on mobile */
    }
    
    .portfolio-info {
        display: block; /* Show info section on mobile */
    }
    
    .portfolio-card:hover {
        transform: none; /* Disable hover effect on mobile */
    }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about-image {
    position: relative;
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 20px rgba(var(--primary-color-rgb), 0.3);
    animation: pulse 3s infinite;
}

.experience-badge .years {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    text-align: center;
}

.about-tabs .nav-pills {
    display: inline-flex;
    background-color: #f8f9fa;
    border-radius: 50px;
    padding: 5px;
}

[data-theme="dark"] .about-tabs .nav-pills {
    background-color: #343a40;
}

.about-tabs .nav-link {
    border-radius: 50px;
    padding: 8px 20px;
    color: var(--text-color);
    font-weight: 500;
}

[data-theme="dark"] .about-tabs .nav-link {
    color: var(--text-color-dark);
}

.about-tabs .nav-link.active {
    background: var(--gradient);
    color: white;
}

.about-tabs .tab-content {
    padding: 1.5rem 0;
}

.about-stats {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/*--------------------------------------------------------------
# Features Section
--------------------------------------------------------------*/
.feature-card {
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    text-align: center;
}

[data-theme="dark"] .feature-card {
    background-color: #1e1e1e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(var(--primary-color-rgb), 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 10px 20px rgba(var(--primary-color-rgb), 0.3);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.feature-icon::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: 0.5s;
    z-index: -1;
}

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

.feature-card h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/*--------------------------------------------------------------
# Pricing Section
--------------------------------------------------------------*/
.pricing-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    background-color: #fff;
    position: relative;
}

[data-theme="dark"] .pricing-card {
    background-color: #1e1e1e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(var(--primary-color-rgb), 0.1);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 1;
}

.pricing-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--gradient);
    color: white;
    padding: 5px 30px;
    font-size: 0.8rem;
    transform: rotate(45deg);
    box-shadow: 0 5px 10px rgba(var(--primary-color-rgb), 0.3);
}

.pricing-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.pricing-header h3 {
    margin-bottom: 1rem;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.currency {
    font-size: 1.5rem;
    margin-right: 5px;
    align-self: flex-start;
}

.period {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 400;
    align-self: flex-end;
}

.pricing-body {
    padding: 2rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.pricing-features li i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.pricing-footer {
    padding: 0 2rem 2rem;
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonial-card {
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
}

[data-theme="dark"] .testimonial-card {
    background-color: #1e1e1e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.testimonial-content {
    position: relative;
    margin-bottom: 1.5rem;
}

.quote-icon {
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.2;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    border: 3px solid var(--primary-color);
}

.author-info h5 {
    margin-bottom: 0.25rem;
}

.author-info p {
    margin-bottom: 0;
    color: var(--secondary-color);
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background-color: var(--primary-color);
}

/*--------------------------------------------------------------
# Team Section
--------------------------------------------------------------*/
.team-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    height: 100%;
    background-color: #fff;
}

[data-theme="dark"] .team-card {
    background-color: #1e1e1e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(var(--primary-color-rgb), 0.1);
}

.team-image {
    position: relative;
    overflow: hidden;
}

.team-image img {
    transition: var(--transition);
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: rgba(var(--primary-color-rgb), 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.team-card:hover .team-social {
    bottom: 0;
}

.team-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    transition: var(--transition);
}

.team-social a:hover {
    background-color: white;
    color: var(--primary-color);
}

.team-content {
    padding: 1.5rem;
    text-align: center;
}

.team-content h4 {
    margin-bottom: 0.5rem;
}

.team-content p {
    margin-bottom: 0;
    color: var(--secondary-color);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-info-item .icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(var(--primary-color-rgb), 0.3);
}

.contact-info-item .content h5 {
    margin-bottom: 0.5rem;
}

.contact-info-item .content p {
    margin-bottom: 0;
}

.contact-form-card {
    padding: 2rem;
    border-radius: var(--border-radius);
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .contact-form-card {
    background-color: #1e1e1e;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-floating > .form-control,
.form-floating > .form-select {
    height: calc(3.5rem + 2px);
    padding: 1rem 0.75rem;
}

.form-floating > label {
    padding: 1rem 0.75rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-color-rgb), 0.25);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer-section {
    background-color: #212529;
    color: #fff;
    padding: 80px 0 0;
}

.footer-logo {
    height: 40px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.footer-links h5 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-links h5:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: #adb5bd;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-newsletter h5 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-newsletter h5:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.newsletter-form .input-group {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
    padding: 15px 20px;
    height: auto;
}

.newsletter-form .btn {
    padding: 0 25px;
    background: var(--gradient);
    border: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/*--------------------------------------------------------------
# Community Section
--------------------------------------------------------------*/
.community-section {
    position: relative;
    overflow: hidden;
}

.community-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/overlay-11.png');
    background-size: cover;
    opacity: 0.05;
    z-index: 0;
}

.community-card {
    background-color: #fff;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 100%;
}

[data-theme="dark"] .community-card {
    background-color: #1e1e1e;
}

.community-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(var(--primary-color-rgb), 0.1) !important;
}

/*--------------------------------------------------------------
# Back to Top Button
--------------------------------------------------------------*/
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(var(--primary-color-rgb), 0.3);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #8a94f1 0%, #4e57d4 100%);
    color: white;
    transform: translateY(-3px);
}

/*--------------------------------------------------------------
# Responsive Styles
--------------------------------------------------------------*/
@media (max-width: 991.98px) {
    .section-padding {
        padding: 80px 0;
    }
    
    .hero-section {
        height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .about-image {
        margin-bottom: 3rem;
    }
    
    .experience-badge {
        right: 50%;
        transform: translateX(50%);
    }
    
    .pricing-card.featured {
        transform: scale(1);
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    
    .navbar-collapse {
        background-color: var(--body-color);
        padding: 1rem;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        max-height: 80vh;
        overflow-y: auto;
    }
    
    [data-theme="dark"] .navbar-collapse {
        background-color: var(--body-color-dark);
    }
    
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .nav-item {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .section-heading h2 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .service-card,
    .feature-card,
    .pricing-card,
    .team-card,
    .testimonial-card,
    .contact-form-card {
        margin-bottom: 1.5rem;
    }
    
    .about-stats .stat-item {
        margin-bottom: 1.5rem;
    }
    
    .footer-about,
    .footer-links,
    .footer-newsletter {
        margin-bottom: 2rem;
    }
    
    .hero-btns .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-btns .btn:last-child {
        margin-left: 0 !important;
    }
    
    .about-tabs .nav-link {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-heading h2 {
        font-size: 1.75rem;
    }
    
    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .service-card, 
    .training-card, 
    .feature-card, 
    .pricing-card {
        padding: 1.5rem;
    }
    
    .animate-bounce {
        animation-duration: 1.5s;
    }
}

/*--------------------------------------------------------------
# Animations
--------------------------------------------------------------*/
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

@keyframes spin {
    from {transform: rotate(0deg);}
    to {transform: rotate(360deg);}
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* AOS Animation Overrides */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Custom Animation Classes */
.animate-bounce {
    animation: bounce 2s infinite;
}

.animate-spin {
    animation: spin 10s linear infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}