/* ========================================
   EatFastTrain Complete Fitness - Styles
   ======================================== */

/* CSS Variables - App Colors */
:root {
    --eat-green: #4CAF50;
    --eat-green-light: #66BB6A;
    --eat-green-dark: #388E3C;

    --fast-purple: #9C27B0;
    --fast-purple-light: #BA68C8;
    --fast-purple-dark: #7B1FA2;

    --train-red: #F44336;
    --train-red-light: #EF5350;
    --train-red-dark: #D32F2F;

    --profile-blue: #2196F3;

    --dark-bg: #1a1a1a;
    --dark-gray: #2d2d2d;
    --light-gray: #f5f5f5;
    --text-dark: #1e293b;
    --text-light: #64748b;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1.125rem;
}

/* Navbar Styles */
.navbar {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-gray) 100%) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    padding: 0.25rem 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: translateY(-2px);
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.logo-container:hover .logo-img {
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.5);
    transform: rotate(-5deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.logo-tagline {
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--eat-green) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: white;
    opacity: 1;
    font-weight: 400;
}

.hero-screenshot {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.3s ease;
}

.hero-screenshot:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-10px);
}

/* Hero Three-Phone Layout */
.hero-phones-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-phone {
    position: absolute;
    max-width: 280px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    transition: all 0.4s ease;
}

.hero-phone-left {
    left: 0;
    transform: perspective(1000px) rotateY(15deg) rotateZ(-3deg) scale(0.9);
    z-index: 1;
}

.hero-phone-center {
    left: 50%;
    transform: translateX(-50%) perspective(1000px) scale(1.05);
    z-index: 3;
    box-shadow: 0 25px 70px rgba(0,0,0,0.5);
}

.hero-phone-right {
    right: 0;
    transform: perspective(1000px) rotateY(-15deg) rotateZ(3deg) scale(0.9);
    z-index: 2;
}

.hero-phones-container:hover .hero-phone-left {
    transform: perspective(1000px) rotateY(10deg) rotateZ(-2deg) scale(0.92) translateY(-10px);
}

.hero-phones-container:hover .hero-phone-center {
    transform: translateX(-50%) perspective(1000px) scale(1.08) translateY(-15px);
}

.hero-phones-container:hover .hero-phone-right {
    transform: perspective(1000px) rotateY(-10deg) rotateZ(2deg) scale(0.92) translateY(-10px);
}

/* Buttons */
.btn-app-store {
    background: linear-gradient(135deg, var(--dark-bg), var(--dark-gray));
    color: white;
    padding: 1rem 3rem;
    font-size: 1.25rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: not-allowed;
}

.btn-app-store:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: white;
}

.btn-app-store i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Three Pillars Section */
.pillars-section {
    background: var(--light-gray);
}

.pillar-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    height: 100%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

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

.pillar-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.pillar-card.eat .pillar-icon {
    color: var(--eat-green);
}

.pillar-card.fast .pillar-icon {
    color: var(--fast-purple);
}

.pillar-card.train .pillar-icon {
    color: var(--train-red);
}

.pillar-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.pillar-card.eat h3 {
    color: var(--eat-green);
}

.pillar-card.fast h3 {
    color: var(--fast-purple);
}

.pillar-card.train h3 {
    color: var(--train-red);
}

/* Feature Detail Sections */
.feature-section {
    padding: 80px 0;
}

.feature-section.eat {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(76, 175, 80, 0.1) 100%);
}

.feature-section.fast {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.05) 0%, rgba(156, 39, 176, 0.1) 100%);
}

.feature-section.train {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.05) 0%, rgba(244, 67, 54, 0.1) 100%);
}

.feature-content {
    /* Let Bootstrap handle the flex layout */
}

.feature-text h2 {
    margin-bottom: 1.5rem;
}

.feature-text.eat h2 {
    color: var(--eat-green);
}

.feature-text.fast h2 {
    color: var(--fast-purple);
}

.feature-text.train h2 {
    color: var(--train-red);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.feature-list li {
    padding: 0.75rem 0;
    font-size: 1.125rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.feature-list li i {
    margin-right: 1rem;
    font-size: 1.5rem;
}

.feature-list.eat li i {
    color: var(--eat-green);
}

.feature-list.fast li i {
    color: var(--fast-purple);
}

.feature-list.train li i {
    color: var(--train-red);
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-screenshot {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

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

.feature-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card:nth-child(3n+1) i {
    color: var(--eat-green);
}

.feature-card:nth-child(3n+2) i {
    color: var(--fast-purple);
}

.feature-card:nth-child(3n+3) i {
    color: var(--train-red);
}

.feature-card h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    font-size: 1rem;
    margin: 0;
}

/* Screenshots Gallery */
.gallery-section {
    background: var(--dark-bg);
    color: white;
}

.gallery-section .section-title {
    color: white;
}

.gallery-section .section-subtitle {
    color: rgba(255,255,255,0.7);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.gallery-grid-centered {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    max-width: 300px;
    margin: 0 auto;
}

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

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--eat-green) 0%, var(--fast-purple) 50%, var(--train-red) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.95);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 3rem 0 2rem;
}

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

.footer-email {
    color: var(--eat-green);
    text-decoration: none;
    font-size: 1.125rem;
    transition: color 0.3s ease;
}

.footer-email:hover {
    color: var(--eat-green-light);
}

.footer-links {
    margin: 1.5rem 0;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    margin-top: 1.5rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Badge */
.coming-soon-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--eat-green), var(--fast-purple));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    h2 {
        font-size: 2rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-section p {
        font-size: 1.25rem;
    }

    /* Three-phone layout adjustments for tablets */
    .hero-phones-container {
        max-width: 500px;
        height: 450px;
    }

    .hero-phone {
        max-width: 240px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .btn-app-store {
        padding: 0.875rem 2rem;
        font-size: 1.125rem;
    }

    .section {
        padding: 60px 0;
    }

    .pillar-card {
        margin-bottom: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .gallery-grid-centered {
        gap: 0.5rem;
    }

    /* Simplify three-phone layout for mobile */
    .hero-phones-container {
        max-width: 380px;
        height: 400px;
    }

    .hero-phone {
        max-width: 200px;
    }

    .hero-phone-left {
        left: -10px;
        transform: perspective(1000px) rotateY(20deg) rotateZ(-5deg) scale(0.75);
    }

    .hero-phone-center {
        transform: translateX(-50%) perspective(1000px) scale(0.95);
    }

    .hero-phone-right {
        right: -10px;
        transform: perspective(1000px) rotateY(-20deg) rotateZ(5deg) scale(0.75);
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0 40px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .btn-app-store {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .section {
        padding: 40px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Extra compact three-phone layout for small mobile */
    .hero-phones-container {
        max-width: 320px;
        height: 350px;
    }

    .hero-phone {
        max-width: 170px;
    }

    .hero-phone-left {
        left: -15px;
        transform: perspective(1000px) rotateY(25deg) rotateZ(-6deg) scale(0.65);
        opacity: 0.9;
    }

    .hero-phone-center {
        transform: translateX(-50%) perspective(1000px) scale(0.85);
    }

    .hero-phone-right {
        right: -15px;
        transform: perspective(1000px) rotateY(-25deg) rotateZ(6deg) scale(0.65);
        opacity: 0.9;
    }

    /* Disable hover effects on mobile */
    .hero-phones-container:hover .hero-phone-left {
        transform: perspective(1000px) rotateY(25deg) rotateZ(-6deg) scale(0.65);
    }

    .hero-phones-container:hover .hero-phone-center {
        transform: translateX(-50%) perspective(1000px) scale(0.85);
    }

    .hero-phones-container:hover .hero-phone-right {
        transform: perspective(1000px) rotateY(-25deg) rotateZ(6deg) scale(0.65);
    }
}

/* Utility Classes */
.text-gradient-eat {
    background: linear-gradient(135deg, var(--eat-green), var(--eat-green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-fast {
    background: linear-gradient(135deg, var(--fast-purple), var(--fast-purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-train {
    background: linear-gradient(135deg, var(--train-red), var(--train-red-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
