/* DeepfakeRU.site - Russian Website Styles
   Crystal/Ice Theme with Blues */

:root {
    --primary: #7B1FA2;       /* Purple/violet as primary */
    --primary-light: #9C27B0;
    --primary-very-light: #CE93D8;
    --primary-ultra-light: #F3E5F5;
    --secondary: #263238;
    --accent: #E91E63;       /* Pink accent for highlights */
    --text-color: #263238;
    --text-light: #546E7A;
    --text-on-dark: #FFFFFF;
    --bg-color: #FFFFFF;
    --bg-alt: #F5F5F5;
    --bg-dark: #7B1FA2;
    --border-radius: 0;      /* Sharp crystal edges */
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.5rem;
}

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

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

ul {
    list-style: none;
}

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    clip-path: polygon(0 0, 100% 0, 90% 100%, 10% 100%);
}

/* Header & Navigation */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.crystal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-very-light) 25%, transparent 25%) -10px 0,
                linear-gradient(225deg, var(--primary-very-light) 25%, transparent 25%) -10px 0,
                linear-gradient(315deg, var(--primary-very-light) 25%, transparent 25%),
                linear-gradient(45deg, var(--primary-very-light) 25%, transparent 25%);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: -1;
}

.logo a {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.logo-icon {
    margin-right: 10px;
}

.desktop-nav ul {
    display: flex;
}

.desktop-nav li {
    margin-left: 30px;
}

.desktop-nav a {
    font-weight: 600;
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: var(--transition);
}

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

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.mobile-nav-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(13, 71, 161, 0.95);
    overflow: hidden;
    transition: var(--transition);
    z-index: 999;
}

.mobile-nav.active {
    height: auto;
    padding: 20px 0;
}

.mobile-nav ul {
    padding: 20px;
}

.mobile-nav li {
    margin-bottom: 15px;
}

.mobile-nav a {
    color: white;
    font-size: 1.2rem;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, var(--primary-ultra-light), var(--bg-color), var(--primary-ultra-light));
    position: relative;
    overflow: hidden;
}

.crystal-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.5) 25%, transparent 25%) -50px 0,
                linear-gradient(225deg, rgba(255,255,255,0.5) 25%, transparent 25%) -50px 0,
                linear-gradient(315deg, rgba(255,255,255,0.5) 25%, transparent 25%),
                linear-gradient(45deg, rgba(255,255,255,0.5) 25%, transparent 25%);
    background-size: 100px 100px;
    opacity: 0.3;
    z-index: 0;
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.hero h1 .highlight {
    color: var(--accent);
    position: relative;
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: var(--accent);
    opacity: 0.3;
    z-index: -1;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hero-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 15px 35px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;  /* Sharp crystal edges */
    clip-path: polygon(5% 0, 100% 0, 95% 100%, 0% 100%);
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(13, 71, 161, 0.3);
    color: white;
}

/* Features Section */
.features {
    padding: 100px 0;
    position: relative;
    background-color: var(--bg-alt);
}

.ice-divider {
    position: absolute;
    left: 0;
    width: 100%;
    height: 80px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.top-divider {
    top: -40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M1200 0L0 0 598.97 114.72 1200 0z' fill='%23FFFFFF'/%3E%3C/svg%3E");
}

.bottom-divider {
    bottom: -40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M1200 120L0 120 598.97 5.28 1200 120z' fill='%23FFFFFF'/%3E%3C/svg%3E");
    transform: rotate(180deg);
}

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

.feature-card {
    background-color: var(--bg-color);
    padding: 40px 30px;
    border-radius: 0;  /* Sharp crystal edges */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.feature-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.05) 25%, transparent 25%) -10px 0,
                linear-gradient(225deg, rgba(13, 71, 161, 0.05) 25%, transparent 25%) -10px 0;
    background-size: 20px 20px;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    margin-bottom: 25px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

/* Technology Section */
.technology {
    padding: 100px 0;
    position: relative;
    background-color: var(--bg-color);
}

.tech-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.tech-content {
    flex: 1;
    min-width: 300px;
}

.tech-content h3 {
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.tech-content h3:first-child {
    margin-top: 0;
}

.tech-graphic {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.tech-feature {
    padding: 25px;
    background-color: var(--bg-alt);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.tech-feature::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.tech-feature h4 {
    color: var(--primary);
    margin-bottom: 15px;
}

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

/* How It Works */
.how-it-works {
    padding: 100px 0;
    position: relative;
}

.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background-color: var(--bg-alt);
    border-radius: 0;  /* Sharp crystal edges */
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.crystal-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(144, 202, 249, 0.2) 25%, transparent 25%) -10px 0,
                linear-gradient(225deg, rgba(144, 202, 249, 0.2) 25%, transparent 25%) -10px 0;
    background-size: 20px 20px;
    z-index: -1;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.step-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.step-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-section {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-ultra-light), var(--bg-alt));
    border-radius: 0;  /* Sharp crystal edges */
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 25%, transparent 25%) -50px 0,
                linear-gradient(225deg, rgba(255, 255, 255, 0.5) 25%, transparent 25%) -50px 0;
    background-size: 100px 100px;
    opacity: 0.3;
    z-index: -1;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    background-color: var(--bg-color);
}

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

.faq-item {
    margin-bottom: 20px;
    border: 1px solid rgba(13, 71, 161, 0.2);
    border-radius: 0;  /* Sharp crystal edges */
}

.question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-alt);
    position: relative;
}

.question h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary);
}

.toggle-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: var(--bg-color);
}

.answer p {
    padding: 20px 0;
    margin: 0;
}

.faq-item.active .answer {
    max-height: 300px;
}

/* Footer */
.footer {
    background: linear-gradient(to right, var(--primary), var(--accent));
    color: white;
    padding-top: 70px;
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
    margin-top: -50px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand {
    flex: 2;
    min-width: 300px;
}

.footer-brand h3 {
    margin-top: 15px;
    color: white;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    flex: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-links-column {
    flex: 1;
    min-width: 150px;
}

.footer-links-column h4 {
    color: white;
    margin-bottom: 20px;
    position: relative;
}

.footer-links-column h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links-column ul li {
    margin-bottom: 10px;
}

.footer-links-column a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links-column a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Media Queries */
@media screen and (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 50px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
}

@media screen and (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin: 20px 0;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 30px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 576px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .tech-container {
        flex-direction: column;
    }
    
    .tech-graphic {
        margin-top: 30px;
    }
}
