/* ============================================
   GYMLINE - Fitness Management Software
   Based on Crosit GYM Fitness Template Design
   ============================================ */

/* CSS Variables */
:root {
    /* Primary Colors - Gymline Gradient */
    --primary-cyan: #00C9FF;
    --primary-green: #92FE9D;
    --primary-gradient: linear-gradient(135deg, #00C9FF 0%, #92FE9D 100%);
    --primary-gradient-hover: linear-gradient(135deg, #00B4E6 0%, #7AE582 100%);
    
    /* Dark Theme Colors */
    --bg-dark: #2a2a2a;
    --bg-darker: #1e1e1e;
    --bg-card: #333333;
    --bg-card-hover: #3d3d3d;
    --bg-overlay: rgba(0, 0, 0, 0.85);
    
    /* Text Colors */
    --text-white: #ffffff;
    --text-light: #e0e0e0;
    --text-muted: #888888;
    --text-dark: #333333;
    
    /* Accent Colors */
    --accent-red: #ff4444;
    --accent-orange: #ff6b35;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    
    /* Typography */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(0, 201, 255, 0.3);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Gradient Text */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn--primary {
    background: var(--primary-gradient);
    color: var(--bg-dark);
}

.btn--primary:hover {
    background: var(--primary-gradient-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

.btn--outline:hover {
    background: var(--text-white);
    color: var(--bg-dark);
}

.btn--lg {
    padding: 18px 40px;
    font-size: 1rem;
}

/* Section Styling */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    background: var(--primary-gradient);
    color: var(--bg-dark);
    padding: 8px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition-normal);
    background: transparent;
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

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

.nav__logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.nav__menu {
    display: flex;
    gap: 40px;
}

.nav__link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition-normal);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__link:hover,
.nav__link.active {
    color: var(--text-white);
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav__toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1920&q=80') center/cover no-repeat;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.85) 100%);
}

.hero__container {
    position: relative;
    z-index: 2;
    padding-top: 100px;
}

.hero__content {
    max-width: 800px;
}

.hero__badge {
    display: inline-block;
    background: var(--primary-gradient);
    color: var(--bg-dark);
    padding: 10px 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 30px;
    margin-bottom: 25px;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-white);
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero__description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 600px;
}

.hero__buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero__stats {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stat {
    display: flex;
    flex-direction: column;
}

.hero__stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero__scroll a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--text-white);
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    padding: var(--section-padding);
    background: var(--bg-dark);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-10px);
    border-color: rgba(0, 201, 255, 0.2);
    box-shadow: var(--shadow-card);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--bg-dark);
}

.feature-card__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.feature-card__text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================
   MODULES SECTION
   ============================================ */
.modules {
    padding: var(--section-padding);
    background: var(--bg-darker);
}

.modules__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.module-card {
    position: relative;
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 8px;
    transition: var(--transition-normal);
    border-left: 4px solid transparent;
}

.module-card:hover {
    background: var(--bg-card-hover);
    border-left-color: var(--primary-cyan);
    transform: translateX(10px);
}

.module-card__number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
}

.module-card__icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 201, 255, 0.1);
    border-radius: 8px;
    font-size: 1.5rem;
    color: var(--primary-cyan);
    margin-bottom: 20px;
}

.module-card__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.module-card__text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats {
    padding: 60px 0;
    background: var(--primary-gradient);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.stat-item__icon {
    font-size: 2.5rem;
    color: var(--bg-dark);
    opacity: 0.3;
}

.stat-item__content {
    display: flex;
    flex-direction: column;
}

.stat-item__number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--bg-dark);
}

.stat-item__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bg-dark);
    text-transform: uppercase;
}

.stat-item__sub {
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.6);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
    padding: var(--section-padding);
    background: var(--bg-dark);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    position: relative;
    transition: var(--transition-normal);
}

.testimonial-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
}

.testimonial-card__quote {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
}

.testimonial-card__text {
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 30px;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-card__avatar {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border-radius: 50%;
    font-weight: 700;
    color: var(--bg-dark);
    font-size: 0.9rem;
}

.testimonial-card__info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 4px;
}

.testimonial-card__info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   DEMO SECTION (with form)
   ============================================ */
.demo {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.demo::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: var(--primary-gradient);
    border-radius: 50%;
    opacity: 0.05;
    filter: blur(100px);
}

.demo__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.demo__content {
    max-width: 500px;
}

.demo__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-white);
    margin: 20px 0;
    line-height: 1.2;
}

.demo__text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.7;
}

.demo__features {
    list-style: none;
}

.demo__features li {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.demo__features i {
    color: var(--primary-cyan);
    font-size: 1.1rem;
}

.demo__form-wrapper {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.demo__form h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 25px;
    text-transform: uppercase;
}

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

.form-group label {
    display: block;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-normal);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 3px rgba(0, 201, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* Form success state */
.demo__form.submitted {
    text-align: center;
    padding: 60px 40px;
}

.demo__form.submitted h3 {
    color: var(--primary-cyan);
}

@media (max-width: 768px) {
    .demo__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .demo__form-wrapper {
        padding: 30px 20px;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 80px 0 0;
    background: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__logo {
    height: 55px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.footer__tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer__address {
    margin-top: 15px;
}

.footer__address p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer__address i {
    color: var(--primary-cyan);
    margin-right: 8px;
}

.footer__social {
    display: flex;
    gap: 15px;
}

.footer__social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1.1rem;
    transition: var(--transition-normal);
}

.footer__social-link:hover {
    background: var(--primary-gradient);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.footer__links h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    text-transform: uppercase;
    margin-bottom: 25px;
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer__links a:hover {
    color: var(--primary-cyan);
    padding-left: 5px;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
}

.footer__bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer__legal {
    display: flex;
    gap: 30px;
}

.footer__legal a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer__legal a:hover {
    color: var(--text-white);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .features__grid,
    .modules__grid,
    .testimonials__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--bg-darker);
        flex-direction: column;
        padding: 100px 40px;
        gap: 30px;
        transition: var(--transition-normal);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav__menu.active {
        right: 0;
    }
    
    .nav__toggle {
        display: block;
    }
    
    .nav__actions .btn {
        display: none;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__stats {
        gap: 30px;
    }
    
    .hero__stat-number {
        font-size: 2rem;
    }
    
    .features__grid,
    .modules__grid,
    .testimonials__grid {
        grid-template-columns: 1fr;
    }
    
    .stats__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .stat-item {
        justify-content: center;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__social {
        justify-content: center;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta__buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero__buttons {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 12px 25px;
        font-size: 0.85rem;
    }
    
    .btn--lg {
        padding: 14px 30px;
    }
    
    .hero__title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-card,
    .module-card,
    .testimonial-card {
        padding: 30px 20px;
    }
}

/* ============================================
   PAGE HEADER (Legal Pages)
   ============================================ */
.page-header {
    padding: 140px 0 60px;
    background: var(--primary-gradient);
    text-align: center;
}

.page-header__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--bg-dark);
    margin-bottom: 10px;
}

.page-header__subtitle {
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.6);
}

/* ============================================
   LEGAL CONTENT (Privacy, Terms, Cookies)
   ============================================ */
.legal-content {
    padding: 60px 0 80px;
    background: #ffffff;
}

.legal-content__wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 40px 0 15px;
    text-transform: uppercase;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: #333333;
    margin: 25px 0 12px;
}

.legal-content p {
    color: #444444;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.legal-content ul {
    margin: 15px 0 25px 20px;
}

.legal-content li {
    color: #444444;
    line-height: 1.8;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
}

.legal-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    background: var(--primary-cyan);
    border-radius: 50%;
}

.legal-content a {
    color: #0891b2;
    text-decoration: underline;
}

.legal-content a:hover {
    color: #06b6d4;
}

.legal-content strong {
    color: #1a1a1a;
}

/* Legal page footer - keep dark */
.legal-page .footer {
    margin-top: 0;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Scroll Reveal Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
