/* ========================================
   CFA BE FIT - SUNRISE THEME
   ======================================== */

/* CSS Variables - Sunrise Palette */
:root {
    /* Sunrise Colors */
    --sunrise-orange: #FF6B35;
    --sunrise-gold: #FFD700;
    --sunrise-coral: #FF8C42;
    --sunrise-peach: #FFB88C;
    --sunrise-pink: #FF9A8B;
    --sunrise-green: #00C853;
    
    /* Backgrounds */
    --bg-dark: #0D1B2A;
    --bg-darker: #08101A;
    --bg-card: #1B2838;
    --bg-gradient-start: #1a1a2e;
    --bg-gradient-end: #16213e;
    
    /* Text */
    --text-white: #FFFFFF;
    --text-cream: #F5F5DC;
    --text-muted: #A0AEC0;
    --text-light: #E2E8F0;
    
    /* Borders */
    --border-light: rgba(255, 255, 255, 0.1);
    --border-orange: rgba(255, 107, 53, 0.3);
    
    /* Shadows */
    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(255, 107, 53, 0.3);
    
    /* Fonts */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

/* 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: var(--bg-darker);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: rgba(255, 107, 53, 0.3);
    color: var(--text-white);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--sunrise-orange);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--sunrise-coral);
}

/* ========================================
   GRAIN OVERLAY
   ======================================== */
.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 2rem;
    height: 80px;
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--text-white);
}

.btn-nav {
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--sunrise-orange);
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: var(--sunrise-orange);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-white);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-white);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(13, 27, 42, 0.98);
    backdrop-filter: blur(10px);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-link {
    font-size: 1.5rem;
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: var(--sunrise-orange);
}

.btn-mobile {
    margin-top: 1rem;
    padding: 1rem 2rem;
    border: 2px solid var(--sunrise-orange);
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
}

.sunrise-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(255, 215, 0, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 1rem 2rem;
    background: var(--sunrise-orange);
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid var(--sunrise-orange);
}

.btn-primary:hover {
    background: var(--sunrise-coral);
    border-color: var(--sunrise-coral);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
}

.btn-secondary {
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--sunrise-orange);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--sunrise-orange);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.4);
}

.hero-footer {
    position: absolute;
    bottom: 3rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 3rem;
    align-items: center;
}

.micro-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.pulse-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--sunrise-orange);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* ECG Line */
.ecg-line {
    position: absolute;
    bottom: 15%;
    left: 0;
    right: 0;
    width: 100%;
    height: 100px;
    opacity: 0.7;
    pointer-events: none;
}

.ecg-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawECG 2s ease-out forwards;
}

@keyframes drawECG {
    to { stroke-dashoffset: 0; }
}

/* ========================================
   SERVICE SECTIONS
   ======================================== */
.service-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 5rem 2rem;
    background: var(--bg-dark);
    overflow: hidden;
}

.service-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-reversed .service-container {
    direction: rtl;
}

.service-reversed .service-content {
    direction: ltr;
}

.service-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.service-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
    transition: transform 0.5s ease;
}

.service-image-wrapper:hover .service-image {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 27, 42, 0.5), transparent);
}

.service-content {
    padding: 2rem;
}

.service-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.accent-orange {
    color: var(--sunrise-orange);
}

.accent-green {
    color: var(--sunrise-green);
}

.service-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 500px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--sunrise-orange);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 1rem;
}

.service-link-green {
    color: var(--sunrise-green);
}

.arrow {
    transition: transform 0.3s ease;
}

.service-link:hover .arrow {
    transform: translateX(5px);
}

.section-ecg {
    position: absolute;
    bottom: 10%;
    left: 5%;
    right: 5%;
    width: 90%;
    height: 80px;
    pointer-events: none;
}

/* ========================================
   PROGRAMS SECTION
   ======================================== */
.programs-section {
    position: relative;
    padding: 8rem 2rem;
    background: var(--bg-darker);
    overflow: hidden;
}

.programs-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.programs-container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
}

.programs-header {
    text-align: center;
    margin-bottom: 4rem;
}

.programs-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

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

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.program-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s ease;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: var(--border-orange);
}

.card-green:hover {
    box-shadow: 0 0 40px rgba(0, 200, 83, 0.2);
    border-color: rgba(0, 200, 83, 0.3);
}

.card-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-price {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.card-features {
    list-style: none;
    margin-bottom: 2rem;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.check {
    color: var(--sunrise-orange);
    font-weight: bold;
}

.check-green {
    color: var(--sunrise-green);
}

.card-link {
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.card-link:hover {
    opacity: 0.8;
}

.programs-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
    position: relative;
    padding: 8rem 2rem 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

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

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 6rem;
}

.form-success {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 200, 83, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--sunrise-green);
    margin: 0 auto 1.5rem;
}

.form-success h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--text-muted);
}

.hidden {
    display: none !important;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.form-row .form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sunrise-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23A0AEC0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}

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

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--sunrise-orange);
    color: var(--text-white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--sunrise-coral);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.4);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    border-top: 1px solid var(--border-light);
    padding: 4rem 2rem 2rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--sunrise-orange);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--sunrise-orange);
    color: var(--text-white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.footer-bottom p {
    color: #666;
    font-size: 0.85rem;
}

.footer-bottom .tagline {
    margin-top: 0.5rem;
    color: #444;
    font-size: 0.75rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .service-container {
        gap: 2rem;
    }
    
    .service-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .btn-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-footer {
        padding: 0 1.5rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .service-container {
        grid-template-columns: 1fr;
    }
    
    .service-reversed .service-container {
        direction: ltr;
    }
    
    .service-image {
        height: 300px;
    }
    
    .service-content {
        padding: 1rem 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 1rem;
        height: 70px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}
