/* Main CSS Styles for domain.com */

/* Base styles and variables */
:root {
    --bg-color: #2B2D42;
    --accent-coral: #FF6B6B;
    --accent-yellow: #FFD93D;
    --text-light: #F8F9FA;
    --text-dark: #1A1A1A;
    --gradient-start: #F72585;
    --gradient-end: #3AB795;
}

/* Global Styles */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%;
    max-width: 100vw;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%;
    max-width: 100%;
    position: relative;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

section[id] {
    scroll-margin-top: 40px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--accent-coral);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-yellow);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-gradient {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-light);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-coral);
    color: var(--accent-coral);
}

.btn-outline:hover {
    color: var(--text-light);
    background-color: var(--accent-coral);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(43, 45, 66, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: lowercase;
    color: var(--text-light);
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav li {
    margin-left: 1.5rem;
}

.main-nav a {
    color: var(--text-light);
    font-weight: 500;
    padding: 0.5rem;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
.menu-toggle {
    display: none;
}

.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Main Content */
main {
    margin-top: 70px;
}

section {
    padding: 4rem 0;
}

/* Hero Section */
.hero {
    background-image: url('../img/OEi1rC.jpg');
    background-size: cover;
    background-position: center;
    height: 70vh; /* Smaller hero section */
    min-height: 400px; /* Ensure minimum height on small screens */
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 30, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Services Section */
.services {
    background-color: rgba(20, 20, 30, 0.7);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    margin: 1rem auto 0;
    border-radius: 2px;
}

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

.service-card {
    background: rgba(43, 45, 66, 0.8);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--accent-yellow);
    margin-bottom: 1rem;
}

.service-card .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-coral);
    margin-bottom: 1rem;
}

.service-card .btn {
    margin-top: auto;
    align-self: center;
}

/* How It Works Section */
.how-it-works {
    background-color: rgba(40, 42, 58, 0.7);
}

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

.step {
    text-align: center;
    padding: 2rem;
    background: rgba(43, 45, 66, 0.5);
    border-radius: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-yellow);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(43, 45, 66, 0.8);
    margin: 0 auto 1.5rem;
    position: relative;
}

.step-icon::after {
    content: attr(data-step);
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    font-weight: 700;
}

/* Testimonials Section */
.testimonials {
    background-color: rgba(20, 20, 30, 0.7);
}

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

.testimonial-card {
    background: rgba(43, 45, 66, 0.8);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.testimonial-card::before {
    content: """;
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 5rem;
    line-height: 1;
    color: rgba(255, 107, 107, 0.2);
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
}

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

.testimonial-author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
}

.testimonial-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-info h4 {
    margin: 0;
    color: var(--accent-yellow);
}

.testimonial-author-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* FAQ Section */
.faq {
    background-color: rgba(40, 42, 58, 0.7);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

details {
    margin-bottom: 1rem;
    background: rgba(43, 45, 66, 0.8);
    border-radius: 1rem;
    overflow: hidden;
}

summary {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    outline: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

details[open] summary::after {
    content: '−';
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
}

/* Privacy & Disclaimer Section */
.privacy-disclaimer {
    background-color: rgba(20, 20, 30, 0.7);
    text-align: center;
}

.privacy-disclaimer-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-disclaimer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.privacy-disclaimer-links a {
    padding: 0.5rem 1rem;
    background: rgba(43, 45, 66, 0.8);
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

/* Order Form Section */
.order {
    background-color: rgba(40, 42, 58, 0.7);
}

.order-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(43, 45, 66, 0.8);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input[type="text"],
input[type="tel"],
select,
textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box; /* Ensure padding doesn't affect width */
    padding: 0.8rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(20, 20, 30, 0.8);
    border-radius: 0.5rem;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
}

select option {
    color: black;
    background: white;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    margin-right: 0.5rem;
}

.form-submit {
    text-align: center;
}

/* Footer */
footer {
    background-color: rgba(20, 20, 30, 0.9);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-col h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--accent-yellow);
}

.contact-list,
.legal-links,
.more-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li,
.legal-links li,
.more-links li {
    margin-bottom: 0.8rem;
}

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

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(20, 20, 30, 0.98);
    padding: 1.2rem;
    box-sizing: border-box;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    border-top: 2px solid var(--accent-coral);
}

.cookie-popup.show {
    display: block;
    animation: slideUp 0.5s forwards;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 0.5rem;
}

.cookie-content h4 {
    margin: 0;
    flex-basis: 100%;
    color: var(--accent-yellow);
}

.cookie-content p {
    margin: 0.5rem 0 0;
    flex: 1;
    font-size: 0.95rem;
}

#accept-cookies {
    white-space: nowrap;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    border: none;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#accept-cookies:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Policy pages */
.policy-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(43, 45, 66, 0.8);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.policy-content h1 {
    margin-bottom: 2rem;
    text-align: center;
}

.policy-content h2 {
    margin-top: 2rem;
    font-size: 1.5rem;
    color: var(--accent-yellow);
}

/* Thanks page styling */
.thanks-container {
    max-width: 800px;
    margin: 3rem auto;
    background: rgba(43, 45, 66, 0.8);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    border: 2px solid;
    border-image: linear-gradient(45deg, var(--gradient-start), var(--gradient-end)) 1;
}

.thanks-content {
    position: relative;
    padding: 1rem;
}

.thanks-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

.thanks-content h1 {
    color: var(--accent-coral);
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.thanks-message {
    font-size: 1.1rem;
    line-height: 1.8;
    background: rgba(20, 20, 30, 0.5);
    padding: 2rem;
    border-radius: 0.8rem;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
}

.thanks-cta {
    margin-top: 2rem;
}

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

/* Animations */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Card Image Styles */
.card-image-container {
    overflow: hidden;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card-image-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-4 { margin-top: 4rem; }
.mb-4 { margin-bottom: 4rem; }

/* Media Queries */
@media screen and (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    .hero h1 { font-size: 3rem; }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    #accept-cookies {
        align-self: center;
        margin-top: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .menu-btn {
        display: flex;
    }
    
    header {
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: 0;
        background-color: rgba(20, 20, 30, 0.98);
        overflow: hidden;
        transition: height 0.3s ease;
        z-index: 99;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        border-top: 1px solid rgba(255, 107, 107, 0.3);
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 1rem 0;
        margin: 0;
    }
    
    .main-nav li {
        margin: 0;
        width: 100%;
    }
    
    .main-nav a {
        display: block;
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .main-nav li:last-child a {
        border-bottom: none;
    }
    
    .menu-toggle:checked ~ .main-nav {
        height: auto;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    
    .services-grid,
    .steps,
    .testimonials-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .testimonial-author-avatar {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        margin-bottom: 1rem;
    }
    
    section {
        padding: 3rem 1rem;
    }
    
    .order-form-container {
        padding: 1.5rem;
    }
    
    .footer-col {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .hero {
        min-height: 350px;
    }
}

@media screen and (max-width: 576px) {
    section {
        padding: 2.5rem 0.75rem;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 0.95rem; }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .card-image-container img {
        height: 160px;
    }
    
    .step {
        padding: 1.5rem;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-author-avatar {
        width: 50px;
        height: 50px;
    }
    
    details summary {
        padding: 1.2rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 1.2rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .footer-col h3 {
        margin-bottom: 1rem;
    }
    
    .copyright {
        margin-top: 2rem;
        font-size: 0.8rem;
    }
    
    input[type="text"],
    input[type="tel"],
    select {
        padding: 0.7rem 0.9rem;
        font-size: 0.95rem;
    }
    
    .policy-content,
    .thanks-container {
        padding: 1.5rem;
    }
    
    .thanks-message {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 400px) {
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    section {
        padding: 2rem 0.5rem;
    }
    
    .header-content {
        padding: 0.8rem 0;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .service-card,
    .testimonial-card,
    .step,
    .order-form-container,
    .policy-content,
    .thanks-container {
        padding: 1.2rem;
    }
    
    .thanks-message {
        padding: 1rem;
    }
    
    .thanks-content h1 {
        font-size: 1.7rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .checkbox-group {
        font-size: 0.9rem;
    }
    
    /* Enhanced mobile styles */
    .section-title::after {
        width: 60px;
        height: 3px;
    }
    
    .cookie-popup {
        padding: 1rem;
    }
    
    .cookie-content h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .cookie-content p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }
    
    #accept-cookies {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        width: 100%;
    }
    
    /* Fix any potential scrolling issues */
    .description-content,
    .policy-content,
    .about-content,
    .blog-content,
    .tips-content,
    .thanks-content {
        max-width: 100%;
        overflow-x: hidden;
    }
}
