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

:root {
    --navy: #21385c;
    --navy-light: #2a4570;
    --baby-blue: #00b4ff;
    --baby-blue-light: #4cc9ff;
    --trust-blue: #0090d4;
    --calm-green: #52c41a;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --text-gray: #666;
    --success: #52c41a;
    --error: #ff6b6b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--navy) 100%);
    min-height: 100vh;
    line-height: 1.6;
}

/* Animated Background - More subtle for professional look */
.bg-animation {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.2;
}

.bg-animation::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--baby-blue) 0%, transparent 70%);
    animation: rotate 45s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Messages */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    animation: slideIn 0.3s ease;
}

.alert-success {
    background: rgba(82, 196, 26, 0.15);
    border: 1px solid var(--calm-green);
    color: var(--white);
}

.alert-error {
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid var(--error);
    color: var(--white);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    background: rgba(33, 56, 92, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav.scrolled {
    padding: 1rem 5%;
    background: rgba(33, 56, 92, 0.98);
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--trust-blue), var(--baby-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.social-icon:hover {
    color: var(--baby-blue);
    opacity: 1;
    transform: translateY(-2px);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--baby-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 150px 5% 100px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease;
}

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

h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--baby-blue-light);
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--trust-blue), var(--baby-blue));
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 180, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 180, 255, 0.4);
}

/* About OCD Section */
.about-ocd {
    padding: 80px 5%;
    background: rgba(255, 255, 255, 0.02);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    text-align: center;
    color: var(--white);
}

.about-intro {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.stat-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
}

.about-message {
    font-size: 1.3rem;
    color: var(--baby-blue-light);
    font-weight: 600;
    margin-top: 3rem;
}

/* Doctor Section */
.doctor-section {
    padding: 80px 5%;
    background: rgba(255, 255, 255, 0.04);
}

.doctor-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.doctor-content {
    color: var(--white);
}

.doctor-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.doctor-subtitle {
    color: var(--baby-blue-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.doctor-bio {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.credentials-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.credential-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.check-icon {
    color: var(--calm-green);
    font-size: 1.2rem;
    font-weight: bold;
}

.doctor-quote {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    border-left: 4px solid var(--baby-blue);
}

.doctor-quote blockquote {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--white);
    margin: 0;
}

.doctor-quote cite {
    display: block;
    margin-top: 1rem;
    color: var(--baby-blue-light);
    font-style: normal;
    font-weight: 600;
}

/* Features Section */
.features {
    padding: 80px 5%;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--trust-blue), var(--baby-blue));
    border-radius: 2px;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 180, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--baby-blue);
}

.feature-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--navy-light), var(--baby-blue));
    border-radius: 15px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-image img {
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.feature-description {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

/* Contact Section */
.contact-section {
    padding: 150px 5% 100px;
    min-height: 100vh;
}

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

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

.contact-title {
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 1rem;
    position: relative;
}

.contact-subtitle {
    color: var(--baby-blue-light);
    font-size: 1.2rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

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

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--baby-blue);
    background: rgba(255, 255, 255, 0.1);
}

.form-select option {
    background: var(--navy);
    color: var(--white);
}

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

.submit-button {
    width: 100%;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, var(--trust-blue), var(--baby-blue));
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 180, 255, 0.4);
}

/* Testimonials Section */
.testimonials {
    padding: 80px 5%;
    background: rgba(255, 255, 255, 0.02);
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    color: var(--white);
    transition: transform 0.3s ease;
}

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

.stars {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.testimonial-card cite {
    color: var(--baby-blue-light);
    font-style: normal;
    font-weight: 600;
}

/* Newsletter Section */
.newsletter {
    padding: 100px 5% 120px;
    text-align: center;
}

.newsletter-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 4rem 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.newsletter-title {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.newsletter-subtitle {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.email-input {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.email-input:focus {
    outline: none;
    border-color: var(--baby-blue);
    background: rgba(255, 255, 255, 0.1);
}

.submit-button {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--trust-blue), var(--baby-blue));
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-button:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 180, 255, 0.4);
}

.privacy-note {
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.substack-note {
    margin-top: 1rem;
    color: var(--baby-blue-light);
    font-size: 0.95rem;
}

/* Footer */
footer {
    padding: 3rem 5%;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(33, 56, 92, 0.5);
}

.footer-contact {
    margin-top: 1rem;
}

.footer-contact a {
    color: var(--baby-blue-light);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }

    .social-icons {
        order: 2;
    }

    .nav-links {
        order: 1;
    }

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

    .newsletter-form {
        flex-direction: column;
    }

    .email-input {
        width: 100%;
    }

    h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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