/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-primary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
}

/* Buttons */
.cta-button, .secondary-button, .submit-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.cta-button {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(232, 62, 140, 0.3);
}

.cta-button:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(232, 62, 140, 0.4);
}

.secondary-button {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.secondary-button:hover {
    background-color: var(--primary);
    color: white;
}

.submit-button {
    background-color: var(--primary);
    color: white;
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(232, 62, 140, 0.3);
}

.submit-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(232, 62, 140, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(232, 62, 140, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(232, 62, 140, 0);
    }
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text {
    color: var(--text-primary);
}

.logo-accent {
    color: var(--primary);
}

.main-nav {
    position: relative;
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--bg-secondary);
    padding: 5rem 1.5rem 2rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 1000;
}

.nav-menu.active {
    right: 0;
}

.nav-menu li {
    margin-bottom: 1rem;
}

.nav-menu a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary);
}

.theme-toggle-container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.sun-icon, .moon-icon {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dark-mode .sun-icon {
    opacity: 1;
    transform: rotate(0);
}

.dark-mode .moon-icon {
    opacity: 0;
    transform: rotate(90deg);
    position: absolute;
}

.sun-icon {
    opacity: 0;
    transform: rotate(-90deg);
    position: absolute;
}

.moon-icon {
    opacity: 1;
    transform: rotate(0);
}

.dark-mode .sun-icon {
    opacity: 1;
    transform: rotate(0);
    position: static;
}

.dark-mode .moon-icon {
    opacity: 0;
    transform: rotate(90deg);
    position: absolute;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 4rem 0;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://vsesvit-ai.ams3.cdn.digitaloceanspaces.com/files/6/8/9/689c681e6fc2c324098740.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.badge svg {
    color: var(--primary);
}

/* How It Works Section */
.how-it-works-section {
    padding: 4rem 0;
    background-color: var(--bg-secondary);
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.step {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--bg-primary);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.step-icon {
    margin-bottom: 1rem;
    color: var(--primary);
}

.step-title {
    margin-bottom: 0.5rem;
}

.step-description {
    color: var(--text-secondary);
}

.secondary-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-card {
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-title {
    margin-bottom: 0.5rem;
}

.feature-description {
    color: var(--text-secondary);
}

.features-footer {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
}

/* Success Stories Section */
.success-stories-section {
    padding: 4rem 0;
    background-color: var(--bg-secondary);
}

.stories-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.story-card {
    background-color: var(--bg-primary);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.story-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.story-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.story-name {
    margin-bottom: 0.25rem;
}

.story-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.story-rating {
    color: var(--accent-3);
}

.story-quote {
    font-style: italic;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.story-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 2rem;
    color: var(--primary-light);
    line-height: 1;
}

.story-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Safety Section */
.safety-section {
    padding: 4rem 0;
}

.safety-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.safety-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.safety-feature .feature-icon {
    color: var(--primary);
    flex-shrink: 0;
}

.feature-content h3 {
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.safety-footer {
    margin-top: 2rem;
    text-align: center;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.security-badge svg {
    color: var(--success);
}

.admin-testimonial {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    font-style: italic;
    color: var(--text-secondary);
}

.admin-testimonial span {
    display: block;
    font-weight: 600;
    margin-top: 0.5rem;
    color: var(--text-primary);
}

.privacy-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary);
    text-decoration: underline;
}

/* Matchmaking Section */
.matchmaking-section {
    padding: 4rem 0;
    background-color: var(--bg-secondary);
}

.matchmaking-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.matchmaking-visual {
    text-align: center;
}

.matchmaking-visual img {
    border-radius: 10px;
    max-width: 100%;
    margin: 0 auto;
}

.matchmaking-info h3 {
    margin-bottom: 1rem;
}

.matching-features {
    margin-top: 1.5rem;
}

.matching-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.matching-features li svg {
    color: var(--primary);
    flex-shrink: 0;
}

.comparison-table {
    margin: 2rem 0;
}

.comparison-table h3 {
    text-align: center;
    margin-bottom: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-primary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--primary);
    color: white;
}

tr:last-child td {
    border-bottom: none;
}

.matchmaking-cta {
    text-align: center;
}

/* Signup Section */
.signup-section {
    padding: 4rem 0;
}

.signup-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.signup-form {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

input, select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(232, 62, 140, 0.2);
}

.signup-benefits {
    padding: 1.5rem;
}

.benefits-list {
    margin-bottom: 2rem;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.benefits-list li svg {
    color: var(--primary);
    flex-shrink: 0;
}

.urgency-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: 5px;
    border-left: 3px solid var(--primary);
}

.urgency-trigger svg {
    color: var(--primary);
}

/* Profiles Section */
.profiles-section {
    padding: 4rem 0;
    background-color: var(--bg-secondary);
}

.profiles-slider {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-card {
    background-color: var(--bg-primary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.profile-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.profile-info {
    padding: 1.5rem;
}

.profile-info h3 {
    margin-bottom: 0.25rem;
}

.profile-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.profile-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.profile-interests span {
    background-color: var(--primary-light);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
}

.profile-bio {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.profiles-cta {
    text-align: center;
}

/* Reviews Section */
.reviews-section {
    padding: 4rem 0;
}

.reviews-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.review-card {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-info h3 {
    margin-bottom: 0.25rem;
}

.review-rating {
    color: var(--accent-3);
}

.review-text {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0;
}

.trust-platforms {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.trust-badge svg {
    color: var(--primary);
}

.reviews-cta {
    text-align: center;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background-color: var(--bg-secondary);
}

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

.faq-item {
    background-color: var(--bg-primary);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 1.5rem;
    margin: 0;
    cursor: pointer;
    position: relative;
    padding-right: 3rem;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 1000px;
}

.faq-cta {
    text-align: center;
}

/* Footer */
.site-footer {
    padding: 4rem 0 2rem;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-about h3 {
    margin-bottom: 1rem;
}

.footer-badges {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.link-group h4 {
    margin-bottom: 1rem;
}

.link-group ul li {
    margin-bottom: 0.5rem;
}

.footer-cta {
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.copyright {
    margin-bottom: 0.5rem;
}

.disclaimer {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background-color: var(--bg-primary);
    margin: 2rem auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

/* Media Queries */
@media (min-width: 576px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    h3 {
        font-size: 1.75rem;
    }
    
    .steps-container {
        flex-direction: row;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .safety-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .matchmaking-content {
        flex-direction: row;
        align-items: center;
    }
    
    .matchmaking-visual, .matchmaking-info {
        flex: 1;
    }
    
    .profiles-slider {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .reviews-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }
    
    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        padding: 0;
        box-shadow: none;
        display: flex;
        align-items: center;
        gap: 1.5rem;
        overflow: visible;
    }
    
    .nav-menu li {
        margin-bottom: 0;
    }
    
    .theme-toggle-container {
        margin-top: 0;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .stories-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .safety-features {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .signup-container {
        flex-direction: row;
    }
    
    .signup-form, .signup-benefits {
        flex: 1;
    }
    
    .profiles-slider {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .reviews-container {
        grid-template-columns: repeat(4, 1fr);
    }
}