/* Color Palette 
 * Electric Coral: #FF6F61
 * Pale Aqua: #90E0EF
 * Graphite Blue: #3A506B
 * Papaya Cream: #FFF5E4
 * Midnight Ink: #1A1A2E
 */

/* === Reset & Base Styles === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --coral: #FF6F61;
    --aqua: #90E0EF;
    --blue: #3A506B;
    --cream: #FFF5E4;
    --ink: #1A1A2E;
    --shadow: rgba(26, 26, 46, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 80px; /* Adds padding for fixed header when scrolling to anchors */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--cream);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 4rem 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    background-color: var(--coral);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--coral);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, .cta-button {
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    display: inline-block;
    background-color: var(--coral);
    color: white;
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 10px var(--shadow);
}

button:hover, .cta-button:hover {
    background-color: var(--blue);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--shadow);
}

/* === Cookie Popup === */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: var(--ink);
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 -2px 10px var(--shadow);
    z-index: 1000;
    transition: bottom 0.5s ease-in-out;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-popup p {
    margin: 0;
}

.cookie-popup a {
    color: var(--aqua);
}

.cookie-popup button {
    margin-left: 1rem;
    background-color: var(--aqua);
    color: var(--ink);
}

.cookie-popup button:hover {
    background-color: var(--coral);
    color: white;
}

/* === Header & Navigation === */
.header {
    background-color: var(--ink);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px var(--shadow);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 15px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo a {
    color: var(--cream);
    letter-spacing: 1px;
}

.logo a:hover {
    color: var(--coral);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 1.5rem;
}

.main-nav a {
    color: var(--cream);
    position: relative;
    font-weight: 500;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--coral);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    color: var(--cream);
    font-size: 1.8rem;
}

/* === Hero Section === */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--blue), var(--ink));
    overflow: hidden;
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-content {
    color: var(--cream);
    max-width: 50%;
    position: relative;
    z-index: 1;
    animation: fadeSlideUp 1s ease forwards;
}

.hero-img {
    width: 45%;
    position: relative;
    z-index: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeSlideUp 1.2s ease forwards;
}

.hero-img img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.hero-img:hover img {
    transform: scale(1.05);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-svg-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%2390E0EF' d='M39.9,-65.7C52.3,-60,63.6,-51,69.7,-39.1C75.9,-27.1,76.8,-13.6,76.1,-0.4C75.5,12.8,73.2,25.6,66.9,36.8C60.5,48,50.1,57.5,38.2,63.4C26.2,69.3,13.1,71.5,-0.2,71.8C-13.5,72.1,-26.9,70.5,-38.3,64.6C-49.7,58.7,-59,48.6,-66.5,37.1C-74,25.5,-79.7,12.8,-79.9,-0.1C-80.1,-13,-74.8,-25.9,-67.2,-37.5C-59.6,-49.2,-49.6,-59.5,-37.9,-65.4C-26.1,-71.4,-13,-72.9,0.2,-73.2C13.4,-73.5,26.9,-72.7,39.9,-65.7Z' transform='translate(100 100)' /%3E%3C/svg%3E") no-repeat center center;
    animation: floatingBg 20s ease-in-out infinite;
    z-index: 0;
    opacity: 0.6;
}

@keyframes floatingBg {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === About Section === */
.about {
    background-color: white;
}

.about-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.about-text {
    flex: 1 1 300px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-text.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* === Services Section === */
.services {
    background-color: var(--cream);
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    perspective: 1000px;
    height: 300px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    border-radius: 10px;
    box-shadow: 0 8px 20px var(--shadow);
}

.service-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.card-front {
    background-color: white;
    color: var(--ink);
}

.card-front img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-top: 1rem;
}

.card-back {
    background-color: var(--blue);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

/* === Benefits Section === */
.benefits {
    background-color: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit {
    padding: 2rem;
    background-color: var(--cream);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.benefit:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* === Testimonials Section === */
.testimonials {
    background-color: var(--blue);
    color: white;
}

.testimonials h2 {
    color: white;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial {
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.client-name {
    font-style: italic;
    margin-top: 1rem;
    color: var(--aqua);
}

/* === Statistics Section === */
.statistics {
    background-color: var(--ink);
    color: white;
    text-align: center;
}

.stat-counters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat {
    padding: 2rem;
}

.counter {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--coral);
    position: relative;
}

.counter::after {
    content: '+';
    position: relative;
    font-size: 2rem;
    top: -10px;
    right: -5px;
}

/* === Contact Form Section === */
.contact {
    background-color: var(--cream);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 8px 20px var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

.submit-button {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
}

/* === FAQ Section === */
.faq {
    background-color: white;
}

.faq-container {
    max-width: 650px;
    margin: 0 auto;
    padding: 0 15px;
}

.faq-item {
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.faq-question {
    padding: 0.6rem 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.faq-question:after {
    content: '+';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question:after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-right: 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: left;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 0.75rem;
}

/* === Footer === */
.footer {
    background-color: var(--ink);
    color: var(--cream);
    padding: 4rem 0 2rem;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--coral);
}

.footer-section p {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--aqua);
}

.footer-section a:hover {
    color: var(--coral);
}

.legal-links ul {
    list-style: none;
}

.legal-links li {
    margin-bottom: 0.5rem;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* === Policy Pages === */
.policy-page {
    max-width: 900px;
    margin: 4rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 8px 20px var(--shadow);
}

.policy-page h1 {
    color: var(--blue);
    text-align: center;
    margin-bottom: 2rem;
}

.policy-page h2 {
    margin-top: 2rem;
    font-size: 1.5rem;
    text-align: left;
}

.policy-page h2::after {
    left: 0;
    transform: translateX(0);
    width: 60px;
}

.policy-page ul, 
.policy-page ol {
    margin: 1rem 0 1rem 2rem;
}

.policy-page li {
    margin-bottom: 0.5rem;
}

/* === Animations === */
@keyframes animateStatistic {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-svg-bg {
        opacity: 0.3;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--ink);
        padding: 5rem 2rem;
        transition: right 0.3s ease;
        flex-direction: column;
        z-index: 99;
    }
    
    .main-nav.open {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    .main-nav li {
        margin: 1.5rem 0;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content, .hero-img {
        max-width: 100%;
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .testimonial-grid {
        gap: 1rem;
    }
    
    .stat {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    
    .hero {
        min-height: 70vh;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .service-card {
        height: 250px;
    }
    
    .counter {
        font-size: 2.5rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
}