/* Custom CSS для Digital Builder */

/* Основні змінні */
:root {
    --primary-bg: #fff;
    --header-footer-bg: #111a24;
    --accent-color: #8e04ef;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Загальні стилі */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PT Sans", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-bg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Merriweather", serif;
    font-weight: 400;
}

/* Header */
#mainHeader {
    background-color: var(--header-footer-bg) !important;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    color: white !important;
    font-family: "Merriweather", serif;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(17, 26, 36, 0.6), rgba(44, 2, 74, 0.6));
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-accent-line {
    width: 100px;
    height: 3px;
    background-color: var(--accent-color);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 600px;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 2rem;
}

/* Direction Cards */
.direction-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.direction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.direction-card .card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), #b847ef);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.direction-card .card-icon .material-icons-outlined {
    color: white;
    font-size: 2.5rem;
}

.direction-card h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.direction-card p {
    color: #666;
    line-height: 1.6;
}

/* Advantage Items */
.advantage-item h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.advantage-item p {
    color: #666;
    line-height: 1.6;
}

/* Learning Stages */
.learning-stages {
    padding-left: 0;
}

.stage-item {
    display: flex;
    align-items: flex-start;
    position: relative;
}

.stage-number {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.stage-content h5 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.stage-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Technology Items */
.tech-item {
    margin-bottom: 2rem;
}

.tech-item h5 {
    color: var(--accent-color);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.tech-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.tech-collage {
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 15px;
    text-align: center;
}

/* For Whom Items */
.for-whom-item {
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.for-whom-item:hover {
    transform: translateY(-3px);
}

.for-whom-item h5 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.for-whom-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Page Headers (для другорядних сторінок) */
.page-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 8rem 0 4rem;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.25rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
}

.content-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.content-card h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.content-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.content-card:last-child p:last-child {
    margin-bottom: 0;
}

/* Service Cards */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-3px);
}

.service-card h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Review Cards */
.review-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.review-text {
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.review-author {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.review-name {
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.review-details {
    color: #666;
    font-size: 0.9rem;
}

/* Success Story Cards */
.success-story {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.success-story h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.success-story p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Contact Info */
.contact-info {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-details h5 {
    margin-bottom: 0.25rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.contact-details p {
    margin: 0;
    color: #666;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(142, 4, 239, 0.25);
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #7803d1;
    border-color: #7803d1;
    transform: translateY(-2px);
}

/* Map Container */
.map-container {
    margin-top: 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Footer */
.footer-section {
    background-color: var(--header-footer-bg);
    padding: 3rem 0 1.5rem;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0 1rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--header-footer-bg);
    color: white;
    padding: 1rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-popup.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 300px;
}

.cookie-content a {
    color: var(--accent-color);
    text-decoration: none;
}

.cookie-content a:hover {
    text-decoration: underline;
}

.cookie-content .btn {
    flex-shrink: 0;
}

/* Thank You Page */
.thankyou-card {
    background: white;
    padding: 4rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    margin: 5rem auto;
}

.thankyou-icon {
    width: 100px;
    height: 100px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.thankyou-icon .material-icons {
    font-size: 3rem;
}

.thankyou-card h1 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.thankyou-card p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-header {
        padding: 8rem 0 3rem;
    }
    
    .direction-card,
    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
    
    .content-card {
        padding: 2rem;
    }
    
    .stage-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .thankyou-card {
        margin: 3rem auto;
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* Utilities */
.text-accent {
    color: var(--accent-color) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

.border-accent {
    border-color: var(--accent-color) !important;
}
