/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    background-color: #000;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* Container and Grid System */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-12 { width: 100%; padding: 0 15px; }
.col-md-4 { width: 33.333%; padding: 0 15px; }
.col-md-6 { width: 50%; padding: 0 15px; }
.col-sm-6 { width: 50%; padding: 0 15px; }
.col-lg-8 { width: 66.666%; padding: 0 15px; }
.col-lg-offset-2 { margin-left: 16.666%; }

@media (max-width: 768px) {
    .col-md-4,
    .col-md-6,
    .col-sm-6 {
        width: 100%;
        margin-bottom: 30px;
    }
    .col-lg-offset-2 {
        margin-left: 0;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5em;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h3 {
    font-size: 1.5em;
    font-weight: 300;
}

h4 {
    font-size: 1.2em;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

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

.text-muted {
    color: #666;
}

.text-muted-alternate {
    color: #ccc;
}

.text-primary {
    color: #dc143c !important;
}

/* Navigation */
.navbar {
    background-color: #000;
    padding: 15px 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1000;
}

.navbar-fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 10px rgba(220, 20, 60, 0.3);
}

.navbar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.8em;
    font-weight: 900;
    color: #dc143c;
    text-decoration: none;
    letter-spacing: 1px;
}

.navbar-brand:hover {
    color: #ff1744;
}

.navbar-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    flex-direction: column;
    padding: 5px;
}

.icon-bar {
    width: 25px;
    height: 3px;
    background-color: #dc143c;
    margin: 3px 0;
    transition: 0.3s;
}

.navbar-collapse {
    display: flex;
    align-items: center;
}

.nav {
    display: flex;
    list-style: none;
    margin-left: auto;
}

.nav li {
    margin-left: 30px;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

.nav a:hover {
    color: #dc143c;
}

.nav a:before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #dc143c;
    transition: width 0.3s ease;
}

.nav a:hover:before {
    width: 100%;
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-collapse {
        display: none;
        width: 100%;
        margin-top: 20px;
    }
    
    .navbar-collapse.show {
        display: block;
    }
    
    .nav {
        flex-direction: column;
        margin-left: 0;
    }
    
    .nav li {
        margin-left: 0;
        margin-bottom: 15px;
    }
}

/* Header */
header {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(220, 20, 60, 0.3)), 
                url('img/treadmill.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.intro-text {
    z-index: 2;
}

.intro-lead-in {
    font-size: 1.5em;
    font-weight: 300;
    margin-bottom: 20px;
    color: #fff;
}

.intro-heading {
    font-size: 4em;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 40px;
    color: #dc143c;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .intro-heading {
        font-size: 2.5em;
        letter-spacing: 1px;
    }
    
    .intro-lead-in {
        font-size: 1.2em;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1em;
}

.btn-xl {
    padding: 20px 40px;
    font-size: 1.2em;
}

.btn-primary {
    background-color: #dc143c;
    color: #fff;
    border: 2px solid #dc143c;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.4);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.btn-primary:hover {
    background-color: #fff;
    color: #dc143c;
    border: 2px solid #dc143c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.6);
    text-shadow: none;
}

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

.section-heading {
    margin-bottom: 20px;
    color: #fff;
}

.section-subheading {
    margin-bottom: 60px;
    color: #ccc;
    font-style: italic;
}

.bg-light-gray {
    background-color: #111;
}

/* About Section */
#about {
    background-color: #000;
}

.fa-stack {
    margin-bottom: 30px;
}

.fa-stack-2x {
    color: #dc143c;
}

.fa-stack-1x {
    color: #000;
}

.service-heading {
    color: #dc143c;
    margin-bottom: 20px;
}

/* Gallery Section */
.portfolio-item {
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

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

.portfolio-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(220, 20, 60, 0.9);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-item:hover .portfolio-hover {
    opacity: 1;
}

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

.portfolio-hover-content {
    color: #fff;
}

.portfolio-caption {
    padding: 20px;
    background-color: #222;
    text-align: center;
}

.portfolio-caption h4 {
    color: #dc143c;
    margin-bottom: 10px;
}

/* Contact Section */
#contact {
    background-color: #000;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-info {
    padding-left: 30px;
}

.contact-info h3,
.contact-info h4 {
    margin-bottom: 20px;
}

.contact-info a {
    color: #dc143c;
    text-decoration: none;
}

.contact-info a:hover {
    color: #ff1744;
}

.contact-info i {
    margin-right: 10px;
    color: #dc143c;
    width: 20px;
}

.hours,
.address {
    margin-top: 30px;
}

.hours h5,
.address h5 {
    color: #dc143c;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hours p,
.address p {
    color: #ccc;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .contact-info {
        padding-left: 0;
        margin-top: 30px;
    }
}

/* Footer */
footer {
    background-color: #111;
    padding: 50px 0;
    text-align: center;
}

.copyright {
    color: #666;
}

.social-buttons {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.social-buttons li {
    margin: 0 10px;
}

.social-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #dc143c;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-buttons a:hover {
    background-color: #ff1744;
    transform: translateY(-3px);
}

.quicklinks {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.quicklinks li {
    margin: 0 15px;
}

.quicklinks a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.quicklinks a:hover {
    color: #dc143c;
}

.list-inline {
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .social-buttons,
    .quicklinks {
        flex-direction: column;
        align-items: center;
    }
    
    .social-buttons li,
    .quicklinks li {
        margin: 5px 0;
    }
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    overflow-y: auto;
}

.modal.show {
    display: block;
}

.modal-content {
    position: relative;
    margin: 50px auto;
    max-width: 1000px;
    background-color: #222;
    border-radius: 10px;
    overflow: hidden;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10000;
}

.lr {
    width: 100%;
    height: 100%;
    position: relative;
}

.lr .rl {
    width: 100%;
    height: 100%;
    position: relative;
}

.lr:before,
.lr .rl:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #dc143c;
    transform-origin: center;
}

.lr:before {
    transform: rotate(45deg);
}

.lr .rl:before {
    transform: rotate(-45deg);
}

.modal-body {
    padding: 100px 50px 50px;
    text-align: center;
}

.modal-body h2 {
    color: #dc143c;
    margin-bottom: 30px;
}

.modal-body img {
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.modal-body p {
    color: #ccc;
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .modal-body {
        padding: 80px 30px 30px;
    }
    
    .modal-content {
        margin: 20px;
    }
}

/* Utility Classes */
.img-responsive {
    max-width: 100%;
    height: auto;
}

.img-circle {
    border-radius: 50%;
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: #111;
}

::-webkit-scrollbar-thumb {
    background-color: #dc143c;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #ff1744;
}