/* Base styles */
:root {
    --primary: #1E3F66;
    --accent: #D4E157;
    --dark-bg: #2B2B2B;
    --text-white: #FFFFFF;
    --text-light: #B0BEC5;
    --secondary-accent: #FF6F61;
    --max-width: 1200px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-white);
    background-color: var(--dark-bg);
}

section[id] {
    scroll-margin-top: 40px;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 2rem;
}

h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 80px;
    height: 4px;
    background-color: var(--accent);
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-accent);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent);
    color: var(--dark-bg);
    border: none;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-accent);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Header */
header {
    background-color: var(--primary);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-white);
    text-transform: lowercase;
    /* Neon glow effect */
    text-shadow: 0 0 5px rgba(212, 225, 87, 0.5),
                 0 0 10px rgba(212, 225, 87, 0.3),
                 0 0 15px rgba(212, 225, 87, 0.2);
}

.logo:hover {
    color: var(--text-white);
}

/* Navigation */
nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

nav a {
    color: var(--text-white);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
}

nav a:hover, nav a.active {
    background-color: rgba(212, 225, 87, 0.2);
}

/* Mobile menu */
.menu-checkbox {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: var(--text-white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Sections common styles */
section {
    padding: 5rem 0;
}

section:nth-child(odd) {
    background-color: var(--dark-bg);
}

section:nth-child(even) {
    background-color: var(--primary);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Grid layouts */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

/* Hero Section */
#hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-image: url('./img/cePWI.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 63, 102, 0.8);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* About Us Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Services Section */
.service-card {
    background-color: var(--primary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    color: var(--accent);
}

/* Advantages Section */
.advantage-item {
    display: flex;
    margin-bottom: 2rem;
    align-items: center;
}

.advantage-icon {
    font-size: 2.5rem;
    margin-right: 20px;
    color: var(--accent);
    min-width: 50px;
    text-align: center;
}

/* Steps Section */
.step-card {
    background-color: var(--primary);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
}

.step-number {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 40px;
    height: 40px;
    background-color: var(--accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: var(--primary);
}

.step-image {
    height: 150px;
    margin-bottom: 20px;
}

.step-image img {
    max-width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Testimonials Section */
.testimonial-card {
    background-color: var(--primary);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    text-align: center;
}

.testimonial-quote {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: bold;
    color: var(--accent);
}

/* Contact Form Section */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--dark-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(176, 190, 197, 0.3);
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(212, 225, 87, 0.2);
}

select.form-control option {
    background-color: #FFFFFF;
    color: var(--primary);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 5px;
}

.form-submit {
    background-color: var(--accent);
    color: var(--dark-bg);
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    width: 100%;
}

.form-submit:hover {
    background-color: var(--secondary-accent);
    color: var(--text-white);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background-color: var(--primary);
    padding: 15px 20px;
    cursor: pointer;
    font-weight: bold;
    display: block;
    position: relative;
}

.faq-question:after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.faq-checkbox {
    display: none;
}

.faq-answer {
    background-color: rgba(30, 63, 102, 0.5);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 20px;
}

.faq-checkbox:checked + .faq-question:after {
    content: '-';
}

.faq-checkbox:checked ~ .faq-answer {
    max-height: 500px;
}

/* Footer */
footer {
    background-color: var(--primary);
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 2rem;
}

.footer-company h3,
.footer-contact h3,
.footer-legal h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.footer-legal ul {
    list-style: none;
}

.footer-legal li {
    margin-bottom: 10px;
}

address {
    font-style: normal;
    line-height: 1.8;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(176, 190, 197, 0.2);
    color: var(--text-light);
}

/* Thank you page */
.thank-you {
    max-width: 600px;
    margin: 8rem auto 5rem;
    text-align: center;
    padding: 40px;
    border: 2px solid var(--accent);
    border-radius: 8px;
}

.thank-you h1 {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

/* Cookie popup */
.cookie-popup {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--primary);
    max-width: 400px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

.cookie-popup h3 {
    color: var(--accent);
}

.cookie-popup button {
    background-color: var(--accent);
    color: var(--dark-bg);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.cookie-popup button:hover {
    background-color: var(--secondary-accent);
    color: var(--text-white);
}

/* Policy pages */
.policy-container {
    max-width: 900px;
    margin: 120px auto 50px;
    background-color: var(--dark-bg);
    padding: 40px;
    border: 2px solid var(--accent);
    border-radius: 8px;
}

.policy-container h1 {
    color: var(--accent);
    margin-bottom: 2rem;
}

.policy-container h2 {
    margin-top: 2rem;
}

.policy-date {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--primary);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    nav ul {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }
    
    nav li {
        width: 100%;
    }
    
    nav a {
        display: block;
        padding: 15px 20px;
        border-radius: 0;
    }
    
    .menu-checkbox:checked ~ nav {
        max-height: 300px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    
    .menu-checkbox:checked + .menu-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .menu-checkbox:checked + .menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-checkbox:checked + .menu-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 3rem 0;
    }
    
    .policy-container {
        padding: 20px;
        margin: 100px auto 30px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
}
