/* 
* Akvana - Aquafitness Studio
* CSS Styles
*/

/* Base Styles */
:root {
    --primary-color: #0099CC;
    --primary-dark: #007ba3;
    --primary-light: #b3e0f2;
    --secondary-color: #E6F4FA;
    --text-color: #333333;
    --light-text: #ffffff;
    --dark-text: #1a1a1a;
    --gray-color: #f5f5f5;
    --dark-gray: #666666;
    --danger-color: #ff3b30;
    --success-color: #28a745;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 10px */
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--text-color);
    background-color: #ffffff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
}

h1 {
    font-size: 4.2rem;
    font-weight: 700;
}

h2 {
    font-size: 3.6rem;
    font-weight: 600;
}

h3 {
    font-size: 2.4rem;
    font-weight: 600;
}

h4 {
    font-size: 2rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.align-left {
    margin-left: 0;
    margin-right: auto;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-submit {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1.6rem;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--light-text);
}

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

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

.btn-submit {
    background-color: var(--primary-color);
    color: var(--light-text);
    width: 100%;
    margin-top: 1rem;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
}

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

.logo a {
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-list li {
    margin-left: 3rem;
}

.nav-list a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
}

.nav-list a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-list a:not(.btn-primary):hover {
    color: var(--primary-color);
}

.nav-list a:not(.btn-primary):hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    width: 3rem;
    height: 2.4rem;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    position: absolute;
    transition: var(--transition);
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span:nth-child(3) {
    bottom: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--secondary-color);
    overflow: hidden;
    padding-top: 8rem;
}

.hero-content {
    width: 40%;
    padding: 5rem 10rem;
    position: relative;
    z-index: 20;
}

.hero-content h1 {
    margin-bottom: 2rem;
    font-size: 4.8rem;
}

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    height: 100%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 3;
}

.wave-divider.inverted {
    top: 0;
    bottom: auto;
}

.wave-divider svg {
    width: 100%;
    height: auto;
}

/* About Section */
.about-section {
    padding: 10rem 0;
    position: relative;
    background-color: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    margin-bottom: 1.5rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.8rem;
}

.section-header.light h2,
.section-header.light p {
    color: var(--light-text);
}

.separator {
    width: 8rem;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

.separator.light {
    background-color: var(--light-text);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-features {
    margin-top: 3rem;
}

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

.about-features svg {
    margin-right: 1.5rem;
}

/* Services Section */
.services-section {
    padding: 40rem 0;
    position: relative;
    background-color: var(--primary-color);
    color: var(--light-text);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.2);
}

.service-icon {
    margin: 0 auto 2rem;
    width: 8rem;
    height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card h3 {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.service-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.service-link {
    color: var(--light-text);
    font-weight: 600;
    position: relative;
}

.service-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--light-text);
    transition: var(--transition);
}

.service-link:hover::after {
    width: 100%;
}

/* Trainers Section */
.trainers-section {
    padding: 10rem 0;
    position: relative;
    background-color: #ffffff;
}

.trainers-carousel {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.trainer-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
    margin-bottom: 3rem;
}

.trainer-image {
    flex: 1;
    min-width: 250px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    aspect-ratio: 1/1;
}

.trainer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trainer-info {
    flex: 2;
    min-width: 300px;
}

.trainer-info h3 {
    margin-bottom: 0.5rem;
}

.trainer-info h4 {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4rem;
}

.carousel-prev,
.carousel-next {
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
}

.carousel-dots {
    display: flex;
    gap: 1rem;
    margin: 0 2rem;
}

.dot {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background-color: var(--primary-light);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
}

/* Facilities Section */
.facilities-section {
    padding: 20rem 0;
    position: relative;
    background-color: var(--primary-color);
    color: var(--light-text);
}

.facilities-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    aspect-ratio: 1/1;
}

.gallery-item.large {
    grid-column: span 3;
    grid-row: span 1;
    aspect-ratio: 2/1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

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

.gallery-caption h3 {
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.gallery-caption p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

/* Testimonials Section */
.testimonials-section {
    padding: 10rem 0;
    position: relative;
    background-color: #f9fcff;
}

.testimonials-slider {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    padding: 4rem;
    box-shadow: var(--box-shadow);
    margin: 2rem 0;
    display: none;
}

.testimonial-card.active {
    display: block;
}

.quote-icon {
    margin-bottom: 2rem;
}

.testimonial-content p {
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 3rem;
}

.testimonial-author h4 {
    margin-bottom: 0.5rem;
}

.testimonial-author p {
    color: var(--dark-gray);
    font-size: 1.4rem;
    margin-bottom: 0;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4rem;
}

.testimonial-prev,
.testimonial-next {
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
}

.testimonial-dots {
    display: flex;
    gap: 1rem;
    margin: 0 2rem;
}

/* Contact Section */
.contact-section {
    padding: 40rem 0 20rem;
    position: relative;
    background-color: var(--primary-color);
    color: var(--light-text);
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-details {
    margin-top: 4rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.contact-item svg {
    margin-right: 2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    padding: 4rem;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 153, 204, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    width: auto;
    margin-right: 1rem;
    margin-top: 0.5rem;
}

.checkbox-group label {
    margin-bottom: 0;
}

/* Footer */
.main-footer {
    background-color: #1a1a1a;
    color: rgba(255, 255, 255, 0.8);
    padding-top: 6rem;
}

.footer-logo {
    margin-bottom: 4rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h4 {
    color: var(--light-text);
    margin-bottom: 2rem;
}

.footer-column ul li {
    margin-bottom: 1rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 1.4rem;
}

/* Success Page */
.success-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12rem 0 6rem;
}

.success-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem;
    background-color: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.success-icon {
    margin: 0 auto 3rem;
    width: 12rem;
    height: 12rem;
}

.success-content h1 {
    margin-bottom: 2rem;
}

.success-content p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
}

.submission-details {
    text-align: left;
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 3rem;
}

.submission-details h3 {
    margin-bottom: 1.5rem;
}

.success-actions {
    margin-top: 3rem;
}

/* Legal Pages */
.legal-section {
    padding: 12rem 0 6rem;
}

.legal-header {
    text-align: center;
    margin-bottom: 5rem;
}

.legal-date {
    color: var(--dark-gray);
    font-style: italic;
    margin-bottom: 0;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: 4rem;
    margin-bottom: 2rem;
    font-size: 2.8rem;
}

.legal-content h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.legal-content ul li,
.legal-content ol li {
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style-type: disc;
}

.legal-content ol {
    list-style-type: decimal;
}

.cookies-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 3rem;
}

.cookies-table th,
.cookies-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.cookies-table th {
    background-color: var(--secondary-color);
    font-weight: 600;
}

.cookies-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    html {
        font-size: 58%;
    }
    
    .hero-content {
        width: 60%;
    }
    
    .hero-image {
        width: 50%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 56%;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 10rem 3rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-list.active {
        right: 0;
    }
    
    .nav-list li {
        margin: 1.5rem 0;
    }
    
    .hero-section {
        flex-direction: column;
    }
    
    .hero-content {
        width: 100%;
        padding: 3rem 2rem;
        text-align: center;
        order: 2;
    }
    
    .hero-image {
        position: relative;
        width: 100%;
        height: 50vh;
        order: 1;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content, 
    .trainer-card {
        flex-direction: column;
        text-align: center;
    }
    
    .trainer-image {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .about-features li {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .facilities-gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-item.large {
        grid-column: auto;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
    
    .footer-links {
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 52%;
    }
    
    h1 {
        font-size: 3.6rem;
    }
    
    h2 {
        font-size: 3rem;
    }
    
    .hero-content h1 {
        font-size: 3.8rem;
    }
    
    .nav-list {
        width: 85%;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons a {
        width: 100%;
    }
    
    .testimonial-card {
        padding: 3rem 2rem;
    }
    
    .contact-form {
        padding: 3rem 2rem;
    }
    
    .footer-column {
        min-width: 100%;
    }
}

/* Animation Classes */
.menu-toggle.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Helper Classes */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

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