:root {
    --primary-color: #dc3545;
    --secondary-color: #0d6efd;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --text-muted: #6c757d;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Navbar Styles */
.navbar {
    background: white;
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #580202 !important;
}

.navbar-logo {
    height: 80px;
    width: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

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

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

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

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

/* Hero Section */
.hero-section {
    margin-top: 0;
    position: relative;
    z-index: 1;
    height: 100vh;
}

.carousel-image {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-caption-custom {
    text-align: center;
    color: var(--white);
}

.carousel-caption-custom h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.carousel-caption-custom p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1.2s ease;
}

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

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Section Styles */
.section-padding {
    padding: 100px 0;
    position: relative;
    z-index: 2;
    background: white;
}

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

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin-bottom: 2rem;
}

/* About Section */
#about .lead {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.about-image-grid {
    position: relative;
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.about-image-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 20px;
    transform: rotate(-3deg);
    z-index: -1;
    opacity: 0.1;
}

.about-image-grid img {
    transition: all 0.4s ease;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 5px solid white;
}

.about-image-grid img:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.about-card {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 4px solid;
    transition: all 0.3s ease;
    height: 100%;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-card:first-child {
    border-left-color: #0d6efd;
}

.about-card:last-child {
    border-left-color: #dc3545;
}

/* Gallery Section */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

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

/* Real Murcia Section */
#real-murcia {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.murcia-image img {
    transition: transform 0.3s ease;
}

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

/* Events Section */
.event-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.event-gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.event-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 30px 20px 20px 20px;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.event-overlay h5 {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
}

.event-gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.event-gallery-item:hover .event-overlay {
    padding-bottom: 30px;
}

/* Platze Padel Section */
#platze-padel {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
}

.padel-illustration img {
    transition: transform 0.3s ease;
}

.padel-illustration img:hover {
    transform: scale(1.05);
}

/* Player Representative Section */
.bg-gradient {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.partner-logo {
    max-width: 350px;
    margin: 0 auto;
    display: block;
    padding: 40px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Contact Section */
.contact-info .contact-item {
    padding: 1rem;
    border-left: 3px solid var(--primary-color);
    background: var(--light-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.contact-info .contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
}

/* Contact Form */
.contact-form .form-control {
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a02330 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a02330 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.btn-outline-danger {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-danger:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--white);
    color: var(--dark-color);
}

.btn-light:hover {
    background: var(--light-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
}

.footer a {
    transition: all 0.3s ease;
}

.footer a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: 2px solid var(--primary-color);
    padding: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

.modal-body h6 {
    color: var(--primary-color);
    font-size: 1.1rem;
}

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

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

/* Responsive Design */
@media (max-width: 991px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .carousel-image {
        height: 400px;
    }
    
    .carousel-caption-custom h1 {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 767px) {
    .carousel-image {
        height: 300px;
    }
    
    .carousel-caption-custom h1 {
        font-size: 1.5rem;
    }
    
    .carousel-caption-custom p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Scroll to top button (optional) */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #a02330;
    transform: translateY(-5px);
}
