/* Global Styles */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #B8860B;  /* Dark Goldenrod */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 70px; /* More space for mobile/tablet */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@media (min-width: 1051px) {
    body {
        padding-top: 30px; /* Less space for desktop */
    }
}

main {
    flex: 1 0 auto;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    padding: 0;
    margin-right: 2rem;
    display: flex;
    align-items: center;
}

.logo {
    height: 7.5vh;
    width: auto;
    object-fit: contain;
    border-radius: 10%;
    transition: all 0.3s ease;
}

.navbar.scrolled .logo {
    height: 6vh;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
    color: var(--white) !important;
}

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

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

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

/* Mobile Navigation */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

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

.navbar-toggler-icon {
    background-image: none;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    transition: all 0.3s ease;
    display: block;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    transition: all 0.3s ease;
    left: 0;
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    top: 8px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--primary-color);
        padding: 1rem;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 8px;
        color: var(--white) !important;
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--white) !important;
    }

    .nav-link::after {
        display: none;
    }

    .navbar-toggler-icon,
    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        background-color: var(--white);
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(45deg, var(--primary-color) 30%, #2a2a2a 90%);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    z-index: -1;
}

/* Buttons */
.btn-primary {
    background-color: #B8860B !important;
    border-color: #B8860B !important;
    padding: 0.8rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    cursor: pointer !important;
}

.btn-primary:hover {
    background-color: #8B6914 !important;
    border-color: #8B6914 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
}

.btn-outline-primary {
    color: #B8860B !important;
    border-color: #B8860B !important;
}

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

/* Feature Cards */
.feature-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.feature-card p {
    margin-bottom: 0;
    flex-grow: 1;
}

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

.feature-card i {
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.1);
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }
.feature-card:nth-child(4) { animation-delay: 0.8s; }

@media (min-width: 992px) and (max-width: 1399px) {
    .feature-card {
        padding: 1.5rem !important;
    }
    
    .feature-card h4 {
        font-size: 1.1rem;
    }
    
    .feature-card p {
        font-size: 0.95rem;
    }
    
    .feature-card i {
        font-size: 2.5rem !important;
    }
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-card .card-img-top {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* About Page */
.trainer-profile img {
    border: 4px solid var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Contact Form */
.form-control {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(184, 134, 11, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Contact Info Cards */
.contact-info-card {
    height: 100%;
}

.contact-info-card i {
    width: 24px;
    text-align: center;
}

/* Map Section */
.map-container {
    border-radius: 12px;
    overflow: hidden;
}

/* Footer */
footer {
    background: linear-gradient(45deg, var(--primary-color) 30%, #333333 90%) !important;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
}

footer .container {
    position: relative;
    z-index: 1;
}

footer h5 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

footer a {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.5rem 0;
}

footer a:hover {
    color: var(--secondary-color) !important;
}

footer i {
    color: rgba(255, 255, 255, 0.8);
}

footer a:hover i {
    color: var(--secondary-color) !important;
}

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

/* Common animation classes for all pages */
h1, h2, h3, .lead, p {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* Remove animations from footer */
footer p,
footer h5,
footer a,
footer i {
    opacity: 1;
    animation: none;
}

/* Remove animations from contact.html page */
body[data-page="contact"] h1,
body[data-page="contact"] h2,
body[data-page="contact"] h3,
body[data-page="contact"] .lead,
body[data-page="contact"] p,
body[data-page="contact"] .card,
body[data-page="contact"] .btn,
body[data-page="contact"] .feature-card,
body[data-page="contact"] .service-card {
    opacity: 1;
    animation: none;
}

/* Hero section animations */
.hero-section h1 {
    animation-delay: 0.2s;
}

.hero-section p {
    animation-delay: 0.4s;
}

.hero-section .btn {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

/* Feature cards animations */
.feature-card {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }
.feature-card:nth-child(4) { animation-delay: 0.8s; }

/* Service cards animations */
.service-card {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.2s; }
.service-card:nth-child(2) { animation-delay: 0.4s; }
.service-card:nth-child(3) { animation-delay: 0.6s; }

/* Contact section animations */
#contact h2 {
    animation-delay: 0.2s;
}

#contact p {
    animation-delay: 0.4s;
}

#contact .card {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

#contact .card:nth-child(1) { animation-delay: 0.6s; }
#contact .card:nth-child(2) { animation-delay: 0.8s; }
#contact .card:nth-child(3) { animation-delay: 1s; }

/* About page specific animations */
.trainer-profile img {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.trainer-profile .card {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

/* Services page specific animations */
.accordion-item {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.accordion-item:nth-child(1) { animation-delay: 0.2s; }
.accordion-item:nth-child(2) { animation-delay: 0.4s; }
.accordion-item:nth-child(3) { animation-delay: 0.6s; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section img {
        margin-top: 2rem;
    }
    
    .feature-card {
        margin-bottom: 1.5rem;
    }

    .service-card {
        margin-bottom: 1.5rem;
    }

    .contact-info-card {
        margin-bottom: 1.5rem;
    }
}

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

/* Section Spacing */
section {
    padding: 5rem 0;
}

/* Image Styles */
.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(184, 134, 11, 0.15);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

.lead {
    font-weight: 400;
    font-size: 1.2rem;
}

/* List Styles */
.list-unstyled li {
    margin-bottom: 1rem;
}

/* Icon Styles */
.text-primary {
    color: #B8860B !important;
}

/* Background Colors */
.bg-light {
    background-color: var(--light-bg) !important;
}

/* Shadow Styles */
.shadow-lg {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Form Select Styles */
.form-select {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(184, 134, 11, 0.25);
}

/* Contact page specific animations */
body[data-page="contact"] h1 {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
    animation-delay: 0.15s;
}

body[data-page="contact"] .lead {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
    animation-delay: 0.3s;
}

body[data-page="contact"] .card {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

body[data-page="contact"] .card:nth-child(1) {
    animation-delay: 0.45s;
}

body[data-page="contact"] .card:nth-child(2) {
    animation-delay: 0.6s;
}

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

/* Hero section animations */
.hero-section h1 {
    animation-delay: 0.2s;
}

.hero-section p {
    animation-delay: 0.4s;
}

.hero-section .btn {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

/* Feature cards animations */
.feature-card {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }
.feature-card:nth-child(4) { animation-delay: 0.8s; }

/* Service cards animations */
.service-card {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.2s; }
.service-card:nth-child(2) { animation-delay: 0.4s; }
.service-card:nth-child(3) { animation-delay: 0.6s; }

/* Contact section animations */
#contact h2 {
    animation-delay: 0.2s;
}

#contact p {
    animation-delay: 0.4s;
}

#contact .card {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

#contact .card:nth-child(1) { animation-delay: 0.6s; }
#contact .card:nth-child(2) { animation-delay: 0.8s; }
#contact .card:nth-child(3) { animation-delay: 1s; }

/* About page specific animations */
.trainer-profile img {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.trainer-profile .card {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

/* Services page specific animations */
.accordion-item {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.accordion-item:nth-child(1) { animation-delay: 0.2s; }
.accordion-item:nth-child(2) { animation-delay: 0.4s; }
.accordion-item:nth-child(3) { animation-delay: 0.6s; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-section img {
        margin-top: 2rem;
    }
    
    .feature-card {
        margin-bottom: 1.5rem;
    }

    .service-card {
        margin-bottom: 1.5rem;
    }

    .contact-info-card {
        margin-bottom: 1.5rem;
    }
}

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

/* Section Spacing */
section {
    padding: 5rem 0;
}

/* Image Styles */
.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

.lead {
    font-weight: 400;
    font-size: 1.2rem;
}

/* List Styles */
.list-unstyled li {
    margin-bottom: 1rem;
}

/* Icon Styles */
.text-primary {
    color: #B8860B !important;
}

/* Background Colors */
.bg-light {
    background-color: var(--light-bg) !important;
}

/* Shadow Styles */
.shadow-lg {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

/* Form Select Styles */
.form-select {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(184, 134, 11, 0.25);
}

/* Links */
a {
    color: #B8860B;
    transition: all 0.3s ease;
}

a:hover {
    color: #8B6914;
}

/* Social Media Icons */
.social-icon {
    color: #B8860B;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: #8B6914;
    transform: scale(1.1);
}