:root {
    --primary: #e83e8c;
    --primary-light: #f8c6d0;
    --primary-dark: #c2185b;
    --secondary: #6ab7ff;
    --secondary-light: #c6e2f8;
    --secondary-dark: #1976d2;
    --accent: #ff9eb5;
    --light: #fdf6f0;
    --dark: #2a2a2a;
    --text-dark: #5a5a5a;
    --text-light: #7a7a7a;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--primary-dark);
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.logo i {
    color: var(--secondary);
    font-size: 2rem;
    transition: var(--transition);
}

.logo:hover i {
    transform: rotate(15deg);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    padding: 8px 15px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

nav a:hover, nav a.active {
    color: var(--primary);
}

nav a:hover::before, nav a.active::before {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary);
    z-index: 1001;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(232, 62, 140, 0.1) 0%, rgba(106, 183, 255, 0.1) 100%);
    padding: 120px 0 100px;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="%23e83e8c" opacity="0.03" d="M0,0 L100,0 L100,100 Q50,80 0,100"></path></svg>');
    background-size: cover;
    background-position: bottom;
    z-index: 0;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
    line-height: 1.2;
    animation: fadeInDown 1s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--text-dark);
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(232, 62, 140, 0.3);
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease 0.4s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232, 62, 140, 0.4);
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    opacity: 0;
    transition: var(--transition);
}

.cta-button:hover::after {
    opacity: 1;
}

.cta-button span {
    position: relative;
    z-index: 1;
}

/* Floating Elements */
.floating-element {
    position: absolute;
    opacity: 0.1;
    z-index: 0;
}

.floating-element-1 {
    top: 20%;
    left: 5%;
    font-size: 5rem;
    color: var(--primary);
    animation: float 6s ease-in-out infinite;
}

.floating-element-2 {
    bottom: 15%;
    right: 8%;
    font-size: 4rem;
    color: var(--secondary);
    animation: float 7s ease-in-out infinite 1s;
}

/* Section Styling */
section {
    padding: 100px 0;
    display: none;
    position: relative;
}

section.active {
    display: block;
    animation: fadeIn 0.8s ease-in;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.section-header p {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

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

.card-img {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.card-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
}

.card-img i {
    position: relative;
    z-index: 1;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.card-content {
    padding: 30px;
}

.card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.card p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.card-button {
    display: inline-block;
    padding: 10px 25px;
    background: var(--white);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.card-button:hover {
    background: var(--primary);
    color: var(--white);
}

/* Feature Cards */
.feature-card {
    display: flex;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.feature-icon {
    flex: 0 0 80px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
}

.feature-content {
    padding: 25px;
    flex: 1;
}

/* Accordion */
.accordion {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    transition: var(--transition);
}

.accordion:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.accordion-header {
    padding: 25px;
    background-color: var(--primary);
    color: var(--white);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.accordion-header:hover {
    background-color: var(--primary-dark);
}

.accordion-content {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-content.open {
    padding: 25px;
    max-height: 1000px;
}

.accordion-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.accordion-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.accordion-content li {
    margin-bottom: 10px;
}

/* Form Styling */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--primary-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 62, 140, 0.1);
}

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

/* Testimonials */
.testimonials {
    background: linear-gradient(135deg, rgba(232, 62, 140, 0.05) 0%, rgba(106, 183, 255, 0.05) 100%);
    padding: 100px 0;
    position: relative;
}

.testimonial-slider {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow);
    margin: 20px;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.testimonial.active {
    opacity: 1;
}

.testimonial::before {
    content: '\201C';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: var(--primary-light);
    font-family: serif;
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid var(--primary-light);
}

.author-info h4 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 10px;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-light);
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Pregnancy Tracker */
.tracker-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tracker-header {
    background: var(--primary);
    color: var(--white);
    padding: 20px;
    text-align: center;
}

.tracker-body {
    display: flex;
    flex-direction: column;
    padding: 30px;
}

.tracker-progress {
    width: 100%;
    height: 10px;
    background: var(--primary-light);
    border-radius: 5px;
    margin-bottom: 30px;
    overflow: hidden;
}

.tracker-progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.tracker-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.tracker-week {
    text-align: center;
}

.tracker-week h3 {
    font-size: 2.5rem;
    color: var(--primary);
}

.tracker-week p {
    color: var(--text-light);
}

.tracker-details {
    display: flex;
    gap: 30px;
}

.tracker-baby, .tracker-mom {
    flex: 1;
}

.tracker-baby h4, .tracker-mom h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--primary-dark);
}

.tracker-baby ul, .tracker-mom ul {
    padding-left: 20px;
}

.tracker-baby li, .tracker-mom li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.tracker-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

/* Daily Tips */
.daily-tip {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    margin-top: 50px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.daily-tip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary);
}

.daily-tip h3 {
    margin-bottom: 15px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.daily-tip h3 i {
    color: var(--primary);
}

.daily-tip p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Video Gallery */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.video-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.video-thumbnail {
    position: relative;
    height: 180px;
    background: var(--dark);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: var(--transition);
}

.video-card:hover .video-thumbnail img {
    opacity: 1;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.video-card:hover .play-button {
    background: var(--primary);
    color: var(--white);
}

.video-info {
    padding: 20px;
}

.video-info h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.video-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 80px 0 30px;
    color: var(--white);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="%23fdf6f0" d="M0,0 L100,0 L100,100 Q50,80 0,100"></path></svg>');
    background-size: cover;
}

.dark-mode footer::before {
     background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="%231a1a1a" d="M0,0 L100,0 L100,100 Q50,80 0,100"></path></svg>');
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--white);
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--white);
}

.footer-column p {
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.8;
}

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

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    display: inline-block;
    padding: 5px 0;
}

.footer-column a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
}

.newsletter-form {
    margin-top: 20px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 30px;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.newsletter-form button {
    width: 100%;
    padding: 12px;
    background: var(--white);
    color: var(--primary);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--secondary);
    color: var(--white);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(232, 62, 140, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Dark Mode */
body.dark-mode {
    --light: #1a1a1a;
    --white: #2a2a2a;
    --text-dark: #e0e0e0;
    --text-light: #b0b0b0;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dark-mode .hero {
    background: linear-gradient(135deg, rgba(25, 25, 25, 0.8) 0%, rgba(40, 40, 40, 0.8) 100%);
}

.dark-mode .card,
.dark-mode .form-container,
.dark-mode .daily-tip,
.dark-mode .accordion,
.dark-mode .testimonial {
    background: var(--white);
}

.dark-mode .form-group input,
.dark-mode .form-group textarea,
.dark-mode .form-group select {
    background: #333;
    border-color: #444;
    color: var(--text-dark);
}

.dark-mode .testimonials {
    background: linear-gradient(135deg, rgba(25, 25, 25, 0.8) 0%, rgba(40, 40, 40, 0.8) 100%);
}

.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 1001;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 992px) {
    .hero {
        padding: 100px 0 80px;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2.3rem;
    }
    
    .tracker-details {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 15px;
    }

    nav ul {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        z-index: 1000;
        transition: var(--transition);
        opacity: 0;
        pointer-events: none;
    }

    nav ul.show {
        display: flex;
        opacity: 1;
        pointer-events: all;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 80px 0 60px;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-element {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .testimonial {
        padding: 30px 20px;
    }
}
