/* Main styles for domain astrology website */

/* CSS Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #1D2236;
    color: #FFF6E6;
    line-height: 1.6;
}

section[id] {
    scroll-margin-top: 40px;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: #A9FFF7;
    transition: all 0.3s ease;
}

a:hover {
    color: #A9FFF7;
    text-shadow: 0 0 5px rgba(169, 255, 247, 0.5);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.container > h2, 
.container > p {
    text-align: center;
}

.container > h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #E055DE;
}

.container > p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.btn {
    background: linear-gradient(135deg, #E055DE, #FF7733);
    color: #FFF6E6;
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-align: center;
    margin: auto;
    max-width: max-content;
    display: block;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    color: #FFF6E6;
}

/* Header Styles */
header {
    background-color: #171b2c;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFF6E6;
}

/* Navigation */
nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    padding: 0.5rem;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #A9FFF7;
    transition: width 0.3s;
}

nav ul li a:hover:after {
    width: 100%;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
}

.menu-checkbox {
    display: none;
}

.menu-label {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    background-image: url('../img/B6Clt.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29, 34, 54, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #A9FFF7;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Services Section */
.services-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    padding: 1rem 0;
    background: linear-gradient(145deg, #222a43, #1d2236);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card-content {
    padding: 1.5rem;
}

.service-card h3 {
    color: #E055DE;
    margin-bottom: 1rem;
}

/* Advantages Section */
.advantages-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.advantage-item {
    background: linear-gradient(145deg, #222a43, #1d2236);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border-left: 4px solid #E055DE;
}

.advantage-item h3 {
    color: #FF7733;
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
    gap: 20px;
}

.testimonial {
    background: linear-gradient(145deg, #222a43, #1d2236);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.testimonial:before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 3rem;
    color: rgba(224, 85, 222, 0.3);
    font-family: serif;
}

.testimonial-author {
    margin-top: 1rem;
    font-weight: bold;
    color: #A9FFF7;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: linear-gradient(145deg, #222a43, #1d2236);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-checkbox {
    display: none;
}

.faq-question {
    padding: 1rem;
    cursor: pointer;
    display: block;
    position: relative;
    font-weight: bold;
    color: #A9FFF7;
}

.faq-question:after {
    content: '+';
    position: absolute;
    right: 1rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
}

.faq-checkbox:checked ~ .faq-question:after {
    transform: rotate(45deg);
}

.faq-checkbox:checked ~ .faq-answer {
    max-height: 500px;
    padding: 0 1rem 1rem;
}

/* How We Work */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
    gap: 20px;
    counter-reset: step-counter;
}

.step-item {
    background: linear-gradient(145deg, #222a43, #1d2236);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    padding-left: 3rem;
}

.step-item:before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #E055DE, #FF7733);
    color: #FFF6E6;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
}

.step-item h3 {
    color: #FF7733;
    margin-bottom: 1rem;
}

/* Form Section */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(145deg, #222a43, #1d2236);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-weight: 500;
}

input, select, textarea {
    padding: 0.8rem;
    border-radius: 4px;
    border: 1px solid #343b58;
    background-color: #1a1e30;
    color: #FFF6E6;
}

select option {
    color: black;
    background-color: white;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input {
    margin-top: 0.3rem;
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.contact-item {
    padding: 1.5rem;
    background: linear-gradient(145deg, #222a43, #1d2236);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.contact-item h3 {
    color: #E055DE;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: #171b2c;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-column h3 {
    color: #E055DE;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #343b58;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(145deg, #222a43, #1d2236);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    max-width: 90%;
    width: 400px;
    min-width: 300px;
    display: none;
}

.cookie-content h3 {
    color: #E055DE;
    margin-bottom: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.cookie-accept {
    background-color: #E055DE;
    color: #FFF6E6;
}

.cookie-decline {
    background-color: transparent;
    border: 1px solid #FFF6E6;
    color: #FFF6E6;
}

/* Policy Pages */
.policy-container {
    max-width: 800px;
    margin: 2rem auto;
    background: linear-gradient(145deg, #222a43, #1d2236);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.policy-container h1 {
    color: #E055DE;
    margin-bottom: 1.5rem;
    text-align: center;
}

.policy-container h2 {
    color: #A9FFF7;
    margin: 1.5rem 0 1rem;
}

.policy-container p {
    margin-bottom: 1rem;
}

.policy-container ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Thank You Page */
.thanks-section {
    min-height: 100vh;
    display: grid;
    align-items: center;
}

.thanks-container {
    margin: 5rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #E055DE;
    padding: 2rem;
    text-align: center;
    background: linear-gradient(145deg, #222a43, #1d2236);
    border-radius: 8px;
    max-width: 600px;
    display: grid;
        gap: 1rem;
}

/* Media Queries */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 1rem;
    }
    
    .menu-label {
        display: flex;
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 30px;
        height: 21px;
    }
    
    .menu-label span,
    .menu-label span:before,
    .menu-label span:after {
        position: absolute;
        height: 3px;
        width: 100%;
        background-color: #FFF6E6;
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    
    .menu-label span {
        top: 9px;
    }
    
    .menu-label span:before {
        content: '';
        top: -9px;
    }
    
    .menu-label span:after {
        content: '';
        top: 9px;
    }
    
    nav {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
        width: 100%;
    }
    
    nav ul {
        flex-direction: column;
        gap: 5px;
    }
    
    .menu-checkbox:checked ~ nav {
        max-height: 100vh;
    }
    
    .menu-checkbox:checked ~ .menu-label span {
        background: transparent;
    }
    
    .menu-checkbox:checked ~ .menu-label span:before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .menu-checkbox:checked ~ .menu-label span:after {
        transform: rotate(-45deg);
        top: 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .thanks-section {
        height: auto;
    }

    body:has(#menu-toggle:checked) {
        overflow: hidden;
    }
}

/* Other Page Styles */
.blog-post, .advice-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(145deg, #222a43, #1d2236);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.blog-post h1, .advice-content h1 {
    color: #E055DE;
    margin-bottom: 1.5rem;
}

.blog-post img, .advice-content img {
    margin: 1.5rem 0;
    border-radius: 8px;
}

.about-us-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(145deg, #222a43, #1d2236);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.about-us-content h1 {
    color: #E055DE;
    margin-bottom: 1.5rem;
}

.about-us-content p {
    margin-bottom: 1.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.value-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 3px solid #E055DE;
}

.value-item h3 {
    color: #A9FFF7;
    margin-bottom: 1rem;
}
