/* Reset & Global Styles */
:root {
    --bg-primary: #0f1c2e;
    --bg-secondary: #1a2639;
    --bg-tertiary: #24344d;
    --text-primary: #ffffff;
    --text-secondary: #b0c4de;
    --brand-color: #0095f6;
    --brand-hover: #007bb5;
    --accent-color: #ff4081;
    --border-color: #2c3e50;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: var(--brand-color);
    transition: var(--transition);
}

a:hover {
    color: var(--brand-hover);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; color: var(--text-primary); }
h2 { font-size: 2rem; color: var(--text-primary); margin-bottom: 1.5rem; text-align: center; }
h3 { font-size: 1.5rem; color: var(--text-primary); margin-bottom: 1rem; }
h4 { font-size: 1.2rem; color: var(--text-primary); margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); }

/* Header */
header {
    background-color: var(--bg-secondary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
}

.logo img {
    height: 40px;
    border-radius: 5px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--brand-color);
}

.btn-primary {
    background-color: var(--brand-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--brand-hover);
    transform: translateY(-2px);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--text-primary);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(15, 28, 46, 0.8), rgba(15, 28, 46, 0.8)), url('images/home.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    text-align: center;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-cta {
    min-height: 400px; 
    background-image: linear-gradient(rgba(0, 150, 199, 0.9), rgba(15, 28, 46, 0.9));
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: #e0e1dd;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-white-primary {
    background-color: white; 
    color: var(--brand-color);
}

.btn-white-outline {
    border-color: white; 
    color: white;
}

/* Sections General */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: var(--bg-secondary);
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-tertiary);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    fill: var(--brand-color);
}

/* Audience Images */
.audience-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 3px solid var(--brand-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.profile-card {
    background-color: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.profile-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.profile-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

.profile-info {
    padding: 15px;
}

.profile-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.profile-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* How It Works */
.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    counter-reset: step-counter;
}

.step-card {
    flex: 1;
    min-width: 250px;
    background-color: var(--bg-tertiary);
    padding: 30px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 150px;
    font-weight: 900;
    color: rgba(255,255,255,0.05);
    line-height: 1;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-date {
    font-size: 0.85rem;
    color: var(--brand-color);
    margin-bottom: 10px;
    display: block;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.blog-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: #0a121f;
    padding: 60px 0 20px;
    color: #b0c4de;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #b0c4de;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #b0c4de;
}

.footer-links a:hover {
    color: var(--brand-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* Membership Plans */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.plan-card {
    background-color: var(--bg-tertiary);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.plan-card.featured {
    border-color: var(--brand-color);
    background-color: rgba(0, 149, 246, 0.1);
    transform: scale(1.05);
}

.plan-price {
    font-size: 3rem;
    font-weight: bold;
    color: var(--text-primary);
    margin: 20px 0;
}

.plan-period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.plan-features {
    text-align: left;
    margin-bottom: 30px;
}

.plan-features li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--brand-color);
    font-weight: bold;
}

.plan-btn {
    width: 100%;
    display: block;
    text-align: center;
}

/* Tips Grid */
.tips-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

/* Icons */
.icon-svg {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    fill: var(--brand-color);
    margin-right: 10px;
}

.tip-title, .tip-title-secondary {
    display: flex;
    align-items: center;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-tertiary);
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item[open] {
    border-color: var(--brand-color);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    position: relative;
    list-style: none; /* Hide default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
}

/* Hide default marker for webkit */
.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--brand-color);
    transition: transform 0.3s ease;
    line-height: 1;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    border-top: 1px solid transparent;
}

.faq-item[open] .faq-answer {
    border-top-color: rgba(255, 255, 255, 0.05);
    padding-top: 20px; /* Add padding when open */
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
