:root {
    --primary-color: #00234b;
    --secondary-color: #e31e24;
    --dark-blue: #001a38;
    --accent-color: #e31e24;
    --white: #ffffff;
    --light-grey: #f4f4f4;
    --text-color: #333333;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #c1171c;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

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

/* Header */
#header {
    background: var(--primary-color);
    color: var(--white);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.logo-main {
    display: flex;
    align-items: baseline;
    gap: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1;
}

.logo-main-text {
    color: #d0d0d0;
    letter-spacing: 0.5px;
}

.logo-ni {
    color: #E31E24;
    font-size: 28px;
}

.logo-accent {
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #E31E24 0%, #E31E24 60%, transparent 100%);
    margin-top: 3px;
}

.logo-tagline {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

#navbar ul {
    display: flex;
    align-items: center;
}

#navbar ul li {
    margin-left: 30px;
}

#navbar ul li a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

#navbar ul li a:hover {
    color: var(--secondary-color);
}

.nav-cta-btn {
    background: var(--secondary-color);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700 !important;
    margin-left: 30px;
}

/* Hide mobile CTA button on desktop by default */
.mobile-cta-btn {
    display: none !important;
}

.nav-cta-btn:hover {
    background: #c1171c !important;
    transform: scale(1.05);
}

.mobile-nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    background-image: url('../img/hero_vibrant.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    background-color: #00234b;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
    margin-top: 0;
    padding-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 130px;
}

.hero-content h1 {
    color: var(--white);
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-btns {
    display: flex;
    justify-content: center;
}

.hero-btns .btn {
    margin: 0 10px;
}

/* Services Section */
#services {
    padding: 100px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
    z-index: 2;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

.section-title p {
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--dark-blue);
    padding: 60px 30px;
    text-align: center;
    border-radius: 15px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    color: var(--white);
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.75);
    z-index: -1;
    transition: transform 0.6s ease, filter 0.4s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
    z-index: -1;
}

.service-card:hover::before {
    transform: scale(1.1);
    filter: brightness(0.9);
}

.service-card:nth-child(1)::before { background-image: url('../img/basketball_vibrant.jpg'); }
.service-card:nth-child(2)::before { background-image: url('../img/gym_vibrant.png'); }
.service-card:nth-child(3)::before { background-image: url('../img/acoustic_vibrant.jpg'); }
.service-card:nth-child(4)::before { background-image: url('../img/maintenance_vibrant.jpg'); }

.service-icon {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 2;
}

.service-card h3 {
    font-size: 1.8rem;
    margin: 1rem 0;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 2;
}

.service-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 2;
}

/* About Section */
#about {
    padding: 100px 0;
    background: var(--light-grey);
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
}

.about-features {
    margin-top: 30px;
}

.about-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.about-features li i {
    color: var(--secondary-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
#contact {
    padding: 100px 0;
}

.contact-flex {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 20px;
    width: 50px;
    height: 50px;
    background: var(--light-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-form {
    flex: 2;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease-in-out;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
}

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

.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

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

/* Footer */
#footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo a {
    display: inline-block;
    height: auto;
    display: flex;
    align-items: center;
}

.footer-logo img {
    height: 35px;
    width: auto;
    max-width: 120px;
}

.footer-social a {
    margin-left: 20px;
    font-size: 1.2rem;
}

.footer-social a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    /* Mobile Header & Logo */
    #header {
        padding: 20px 0;
        min-height: auto;
    }

    #header .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0;
    }

    .logo {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 0;
    }

    .logo {
        width: 100%;
        display: flex;
        justify-content: center;
    }

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

    .logo-main {
        font-size: 26px;
        justify-content: center;
    }

    .logo-ni {
        font-size: 26px;
    }

    .logo-accent {
        width: 120px;
    }

    .logo-tagline {
        font-size: 10px;
    }

    .mobile-nav-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    #navbar {
        display: none;
    }

    .mobile-cta-btn {
        display: none;
    }

    #navbar.active .mobile-cta-btn {
        display: block;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 15px;
        margin-top: 15px;
    }

    .mobile-cta-btn a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        background-color: #e31e24;
        color: white;
        border-radius: 5px;
        font-weight: 600;
        transition: background-color 0.3s ease;
    }

    .mobile-cta-btn a:hover {
        background-color: #c41820;
    }

    /* Hero Section Mobile */
    #hero {
        height: auto;
        min-height: 100vh;
        background-attachment: scroll;
        padding-top: 80px;
    }

    .hero-content {
        padding-top: 170px !important;
        padding-bottom: 50px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .hero-btns .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.85rem;
        margin: 0;
    }

    /* Services Section Mobile */
    #services {
        padding: 60px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .section-title h2 {
        font-size: 1.8rem;
        position: relative;
        z-index: 2;
    }

    .section-title p {
        font-size: 0.95rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        min-height: 320px;
        padding: 40px 20px;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    /* About Section Mobile */
    #about {
        padding: 60px 0;
    }

    .about-flex {
        flex-direction: column;
        gap: 30px;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    /* Contact Section Mobile */
    #contact {
        padding: 60px 0;
    }

    .contact-flex {
        flex-direction: column;
        gap: 30px;
    }

    .contact-info h2 {
        font-size: 1.8rem;
    }

    .contact-form {
        flex: 1;
    }

    .form-group input, .form-group textarea {
        font-size: 1rem;
        padding: 12px;
    }

    /* Footer Mobile */
    .footer-flex {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-social {
        display: flex;
        justify-content: center;
        gap: 15px;
    }

    .footer-social a {
        margin-left: 0;
    }

    /* Modal Mobile */
    .modal-content {
        width: 90%;
        padding: 30px 20px;
    }

    .form-group input, .form-group textarea {
        font-size: 16px;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .logo img {
        height: 75px;
        max-width: 200px;
    }

    .hero-content {
        padding-top: 250px !important;
    }

    .hero-content h1 {
        font-size: 1.4rem;
    }

    .hero-content p {
        font-size: 0.85rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .service-card {
        padding: 30px 15px;
        min-height: 300px;
    }

    .service-icon {
        font-size: 2rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.85rem;
    }
}
