/* 
* Main stylesheet for domain website
* Colors:
* - Primary: #635DFF (lavender-blue)
* - Accent: #FFA53B (amber-orange)
* - Background: #F7F8FA (soft gray-white)
* - Text: #1E1E1E (deep graphite)
*/

/* --- Base Styles --- */
:root {
    --color-primary: #635DFF;
    --color-accent: #FFA53B;
    --color-background: #F7F8FA;
    --color-text: #1E1E1E;
    --color-light-text: #666666;
    --color-white: #FFFFFF;
    --gradient-primary: linear-gradient(45deg, #635DFF, #8E8AFF);
    --gradient-accent: linear-gradient(45deg, #FFA53B, #FFD700);
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 80px 0;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border: none;
    outline: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(99, 93, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 93, 255, 0.6);
    color: var(--color-white);
}

.btn-secondary {
    background: var(--gradient-accent);
    color: var(--color-text);
    box-shadow: 0 4px 15px rgba(255, 165, 59, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 165, 59, 0.6);
    color: var(--color-text);
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.mobile-menu-toggle {
    display: none;
}

.menu-icon {
    position: relative;
    width: 30px;
    height: 3px;
    background-color: var(--color-text);
    display: block;
    transition: var(--transition);
}

.menu-icon::before,
.menu-icon::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--color-text);
    transition: var(--transition);
}

.menu-icon::before {
    transform: translateY(-8px);
}

.menu-icon::after {
    transform: translateY(8px);
}

.menu-icon.open {
    background-color: transparent;
}

.menu-icon.open::before {
    transform: rotate(45deg);
}

.menu-icon.open::after {
    transform: rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, rgba(247, 248, 250, 0.9), rgba(255, 255, 255, 0.9)), url('./img/VNJA1G.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 93, 255, 0.1) 0%, rgba(99, 93, 255, 0) 70%);
    animation: pulse 15s infinite linear;
    z-index: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--color-light-text);
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
}

.hero-image::before {
    content: "";
    position: absolute;
    top: -15px;
    left: -15px;
    width: calc(100% + 30px);
    height: calc(100% + 30px);
    border: 2px dashed var(--color-accent);
    border-radius: var(--border-radius);
    z-index: -1;
}

/* --- Services Section --- */
.services {
    background-color: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 100%;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.service-card:hover .service-icon img {
    transform: scale(1.05);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* --- About Section --- */
.about {
    position: relative;
    overflow: hidden;
}

.about::before {
    content: "";
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background-color: rgba(99, 93, 255, 0.05);
    border-radius: 50%;
    z-index: -1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.about-image img {
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* --- Benefits Section --- */
.benefits {
    background-color: var(--color-white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.benefit-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--color-white);
    font-size: 1.8rem;
}

/* --- Testimonials Section --- */
.testimonials {
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background-color: rgba(255, 165, 59, 0.05);
    border-radius: 50%;
    z-index: -1;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-content {
    position: relative;
    padding-left: 30px;
}

.testimonial-content::before {
    content: """;
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 5rem;
    color: rgba(99, 93, 255, 0.2);
    font-family: serif;
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.client-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-name {
    font-weight: 600;
    margin-bottom: 0;
}

.client-role {
    font-size: 0.9rem;
    color: var(--color-light-text);
}

/* --- FAQ Section --- */
.faq {
    background-color: var(--color-white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    background-color: var(--color-white);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    position: relative;
}

.faq-answer {
    background-color: rgba(99, 93, 255, 0.03);
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.open {
    max-height: 1000px;
    padding: 20px;
}

.faq-toggle {
    position: relative;
    width: 20px;
    height: 20px;
}

.faq-toggle::before,
.faq-toggle::after {
    content: "";
    position: absolute;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.faq-toggle::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.faq-toggle::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.faq-toggle.active::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

/* --- Contact Form --- */
.contact {
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: "";
    position: absolute;
    top: 20%;
    right: -15%;
    width: 400px;
    height: 400px;
    background-color: rgba(99, 93, 255, 0.05);
    border-radius: 50%;
    z-index: -1;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(99, 93, 255, 0.2);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-input {
    margin-right: 10px;
    margin-top: 5px;
}

.checkbox-label {
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-label a {
    font-weight: 600;
}

/* --- Footer --- */
.footer {
    background-color: #1A1A2E;
    color: #fff;
    padding: 80px 0 30px;
}

.footer a {
    color: #fff;
    opacity: 0.8;
}

.footer a:hover {
    color: var(--color-accent);
    opacity: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo a {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-description {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer h3 {
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* --- Cookie Popup --- */
.cookie-popup {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 20px;
    max-width: 400px;
    width: calc(100% - 40px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cookie-popup p {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* --- Policy Pages --- */
.policy-page {
    padding: 160px 0 80px;
}

.policy-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    position: relative;
}

.policy-container::before {
    content: "";
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23635DFF' stroke-width='0.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='16' y1='13' x2='8' y2='13'%3E%3C/line%3E%3Cline x1='16' y1='17' x2='8' y2='17'%3E%3C/line%3E%3Cpolyline points='10 9 9 9 8 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: cover;
    opacity: 0.07;
    z-index: 0;
}

.policy-title {
    margin-bottom: 30px;
    position: relative;
    text-align: center;
    z-index: 1;
}

.policy-content {
    position: relative;
    z-index: 1;
}

.policy-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.policy-content p,
.policy-content ul {
    margin-bottom: 20px;
}

.policy-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

.policy-content ul li {
    margin-bottom: 10px;
}

/* --- Media Queries --- */
@media (max-width: 991px) {
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding-top: 140px;
        padding-bottom: 80px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-image {
        order: -1;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .header-content {
        height: 70px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
    }
    
    .main-nav.open {
        max-height: 500px;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }
    
    .main-nav ul li {
        width: 100%;
        text-align: center;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .testimonials-grid,
    .benefits-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .policy-container {
        padding: 30px 20px;
    }
}
