/* ======== BASE STYLES ======== */
:root {
    --primary-color: #6e48aa;
    --secondary-color: #9d50bb;
    --accent-color: #70c1ff;
    --dark-color: #2a2d3e;
    --light-color: #f8f9fa;
    --text-color: #333;
    --light-text: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, #70c1ff, #439cfb);
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

section {
    padding: 100px 0;
    position: relative;
}

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

.section-header h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

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

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.primary-btn {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(110, 72, 170, 0.2);
}

.primary-btn:hover {
    box-shadow: 0 6px 25px rgba(110, 72, 170, 0.3);
    transform: translateY(-3px);
}

.secondary-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.secondary-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.wave-divider {
    position: absolute;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.wave-divider.top-wave {
    top: 0;
}

.wave-divider.bottom-wave {
    bottom: 0;
}

/* ======== NAVBAR ======== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.logo h1 {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

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

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-btn {
    background: var(--gradient-primary);
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    margin-left: 15px;
}

.nav-btn:hover {
    box-shadow: 0 4px 15px rgba(110, 72, 170, 0.3);
    transform: translateY(-3px);
}

.nav-toggle {
    display: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    border-radius: 3px;
    transition: var(--transition);
}

/* ======== HERO SECTION ======== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #8860d0, #5680e9);
    color: #fff;
    overflow: hidden;
    padding-top: 80px;
    padding-bottom: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/3.png') no-repeat center center;
    background-size: cover;
    opacity: 0.05;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    padding-right: 30px;
}

.hero-text h2 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 700;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-btns .primary-btn {
    background: #fff;
    color: var(--primary-color);
}

.hero-btns .primary-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.3);
}

.hero-btns .secondary-btn {
    border-color: #fff;
    color: #fff;
}

.hero-btns .secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-image {
    flex: 1;
    position: relative;
    height: 500px;
}

.image-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 8s infinite alternate;
}

.moon-overlay {
    width: 250px;
    height: 250px;
    background: #fff;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.6);
}

.moon-overlay::before {
    content: '';
    position: absolute;
    top: 45px;
    left: 45px;
    width: 40px;
    height: 40px;
    background: rgba(229, 229, 229, 0.3);
    border-radius: 50%;
}

.moon-overlay::after {
    content: '';
    position: absolute;
    bottom: 65px;
    right: 60px;
    width: 70px;
    height: 70px;
    background: rgba(229, 229, 229, 0.3);
    border-radius: 50%;
}

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

/* ======== FEATURES SECTION ======== */
.features {
    background-color: #fff;
    position: relative;
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

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

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

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
}

.feature-icon i {
    font-size: 32px;
    color: #fff;
}

.feature-card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-card p {
    color: #666;
}

/* ======== BENEFITS SECTION ======== */
.benefits {
    background: linear-gradient(135deg, #8860d0, #5680e9);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.benefits .section-header h3 {
    color: #fff;
}

.benefits .section-header h3::after {
    background: #fff;
}

.benefits .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.benefits-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.benefits-text {
    flex: 1;
}

.benefit-item {
    margin-bottom: 25px;
}

.benefit-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.benefit-item h4 i {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 1.1rem;
}

.benefit-item p {
    color: rgba(255, 255, 255, 0.8);
}

.benefits-image {
    flex: 1;
    max-width: 450px;
}

.sleep-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.stat-item:nth-child(1) {
    grid-column: 1 / 3;
}

.stat-item h5 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--accent-color);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.stat-item p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.stat-item.animate h5 {
    opacity: 1;
    transform: translateY(0);
}

/* ======== ABOUT SECTION ======== */
.about {
    background-color: #fff;
    position: relative;
    z-index: 2;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    position: relative;
    height: 450px;
}

.image-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48Y2lyY2xlIGN4PSIxNTAiIGN5PSIxNTAiIHI9IjEwMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjODg2MGQwIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1kYXNoYXJyYXk9IjEwLDEwIiAvPjxjaXJjbGUgY3g9IjE1MCIgY3k9IjE1MCIgcj0iMTIwIiBmaWxsPSJub25lIiBzdHJva2U9IiM4ODYwZDAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWRhc2hhcnJheT0iMTAsMTAiIHN0cm9rZS1kYXNob2Zmc2V0PSI1IiAvPjxjaXJjbGUgY3g9IjE1MCIgY3k9IjE1MCIgcj0iMTQwIiBmaWxsPSJub25lIiBzdHJva2U9IiM4ODYwZDAiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWRhc2hhcnJheT0iMTAsMTAiIHN0cm9rZS1kYXNob2Zmc2V0PSIxMCIgLz48L3N2Zz4=') no-repeat center center;
    background-size: contain;
    border-radius: 50%;
}

.image-decoration::before {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48Y2lyY2xlIGN4PSIxMDAiIGN5PSIxMDAiIHI9Ijk4IiBmaWxsPSJub25lIiBzdHJva2U9IiM4ODYwZDAiIHN0cm9rZS13aWR0aD0iNCIgLz48L3N2Zz4=') no-repeat center center;
    background-size: contain;
    border-radius: 50%;
    opacity: 0.1;
    animation: rotate 30s linear infinite;
}

.image-decoration::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.7;
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.about-text p {
    margin-bottom: 20px;
    color: #666;
}

.about-cta {
    margin-top: 30px;
}

/* ======== TESTIMONIALS SECTION ======== */
.testimonials {
    background: linear-gradient(135deg, #8860d0, #5680e9);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.testimonials .section-header h3 {
    color: #fff;
}

.testimonials .section-header h3::after {
    background: #fff;
}

.testimonials .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

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

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    padding: 20px;
}

.testimonial-content {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    position: relative;
    backdrop-filter: blur(5px);
}

.testimonial-content::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

.testimonial-content p {
    font-style: italic;
    line-height: 1.7;
    position: relative;
}

.testimonial-content p::before {
    content: '\201C';
    font-size: 50px;
    position: absolute;
    top: -20px;
    left: -15px;
    color: rgba(255, 255, 255, 0.1);
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 24px;
}

.author-info h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.author-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}

.prev-btn, .next-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.slider-dots {
    display: flex;
    margin: 0 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* ======== CONTACT SECTION ======== */
.contact {
    background: #fff;
    position: relative;
    z-index: 2;
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.info-item {
    display: flex;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(110, 72, 170, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.info-item p {
    color: #666;
}

.contact-form {
    flex: 1;
    background: #fff;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
}

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

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

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

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

.form-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.form-checkbox input {
    margin-right: 10px;
}

.form-checkbox label {
    font-size: 0.9rem;
    color: #666;
}

.form-checkbox a {
    color: var(--primary-color);
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
}

/* ======== FOOTER ======== */
footer {
    background: var(--dark-color);
    color: #fff;
    padding: 80px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-logo h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.footer-logo p {
    max-width: 300px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

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

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

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

.footer-links {
    display: flex;
    gap: 50px;
}

.link-column h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.link-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.link-column ul li {
    margin-bottom: 10px;
}

.link-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.link-column ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ======== RESPONSIVE DESIGN ======== */
@media (max-width: 1024px) {
    .hero-text h2 {
        font-size: 3rem;
    }
    
    .section-header h3 {
        font-size: 2.2rem;
    }
    
    .about-content, 
    .benefits-content,
    .contact-content {
        flex-direction: column;
    }
    
    .about-image,
    .benefits-image {
        margin-bottom: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .hero-text h2 {
        font-size: 2.5rem;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .section-header h3 {
        font-size: 1.8rem;
    }
    
    .stat-item {
        grid-column: auto;
    }
    
    .sleep-stats {
        grid-template-columns: 1fr;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}
