/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

#preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading07 {
    display: flex;
    gap: 8px;
}

.loading07 span {
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    animation: loading07 1.4s infinite ease-in-out both;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.loading07 span:nth-child(1) { animation-delay: -1.32s; }
.loading07 span:nth-child(2) { animation-delay: -1.1s; }
.loading07 span:nth-child(3) { animation-delay: -0.88s; }
.loading07 span:nth-child(4) { animation-delay: -0.66s; }
.loading07 span:nth-child(5) { animation-delay: -0.44s; }
.loading07 span:nth-child(6) { animation-delay: -0.22s; }
.loading07 span:nth-child(7) { animation-delay: 0s; }
.loading07 span:nth-child(8) { animation-delay: 0.22s; }
.loading07 span:nth-child(9) { animation-delay: 0.44s; }
.loading07 span:nth-child(10) { animation-delay: 0.66s; }
.loading07 span:nth-child(11) { animation-delay: 0.88s; }
.loading07 span:nth-child(12) { animation-delay: 1.1s; }

@keyframes loading07 {
    0%, 80%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    40% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Header Styles */
.header {
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    transition: all 0.3s ease;
}

.topbar {
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 0;
}

.topbar-wrapper {
    padding: 0 15px;
}

.topbar .white {
    color: #fff !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.topbar .white:hover {
    color: #ffc107 !important;
}

.social-icon {
    display: flex;
    gap: 15px;
}

.social-icon a {
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-icon a:hover {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.2);
    transform: translateY(-2px);
}

/* Main Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand h2 {
    color: #007bff !important;
    text-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 8px 16px !important;
    margin: 0 5px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #007bff !important;
    background: rgba(0, 123, 255, 0.08);
}

.navbar-nav .nav-link.disabled {
    color: #6c757d !important;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(102, 126, 234, 0.6), rgba(118, 75, 162, 0.6)), url('images/28_sept_19_19.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    padding-top: 120px; /* Додаємо відступ зверху */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    margin-bottom: 3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-buttons .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    white-space: nowrap;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.hero-features .feature-item {
    padding: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.hero-features .feature-item:hover {
    transform: translateY(-5px);
}

.hero-image .placeholder-image {
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.hero-image img {
    max-width: 80%;
    height: auto;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                border-radius 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease;
    border-radius: 35px;
    aspect-ratio: 4/3;
    object-fit: cover;
    /* Контур 3мм */
    border: 3px solid rgba(255, 255, 255, 0.9);
    /* Об'ємна багатошарова тінь */
    box-shadow:
        /* Внутрішня тінь для глибини */
        inset 0 1px 0 rgba(255,255,255,0.2),
        inset 0 -2px 8px rgba(0,0,0,0.05),
        /* Додатковий контур тіні */
        0 0 0 6px rgba(200,200,200,0.4),
        /* Основна тінь - близька */
        0 8px 16px rgba(0,0,0,0.15),
        /* Додаткова тінь - далека */
        0 20px 40px rgba(0,0,0,0.2),
        /* Дифузна тінь для м'якості */
        0 40px 80px rgba(0,0,0,0.1);

    /* Додатковий 3D ефект */
    position: relative;
    z-index: 10;
}

.hero-image img:hover {
    transform: scale(1.03) translateY(-5px);
    border-radius: 45px;
    /* Посилений контур при hover */
    border: 3px solid rgba(255, 255, 255, 1);
    /* Посилена тінь при hover */
    box-shadow:
        inset 0 2px 0 rgba(255,255,255,0.3),
        inset 0 -3px 12px rgba(0,0,0,0.08),
        0 0 0 8px rgba(180,180,180,0.5),
        0 12px 24px rgba(0,0,0,0.2),
        0 30px 60px rgba(0,0,0,0.25),
        0 60px 120px rgba(0,0,0,0.15);
}

.hero-image .placeholder-image:hover {
    transform: scale(1.05);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

/* Services Section - reduced top padding */
#services.section {
    padding: 30px 0 80px 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #ffc107);
    border-radius: 2px;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* Service Cards */
.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f8f9fa;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.service-icon {
    margin-bottom: 25px;
}

.service-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.service-card p {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.service-list li {
    padding: 8px 0;
    color: #495057;
    border-bottom: 1px solid #f8f9fa;
}

.service-list li:last-child {
    border-bottom: none;
}

/* Portfolio Items */
.portfolio-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-image .placeholder-image {
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .placeholder-image {
    transform: scale(1.05);
}

.portfolio-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.portfolio-meta {
    margin-top: 15px;
}

.portfolio-meta .badge {
    font-size: 0.75rem;
    padding: 5px 10px;
}

/* Pricing Cards */
.pricing-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.pricing-card.featured {
    border-color: #ffc107;
    position: relative;
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffc107, #ff6b35);
}

.pricing-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid #dee2e6;
}

.pricing-header h4 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.pricing-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fa;
    font-size: 0.95rem;
}

.pricing-list li:last-child {
    border-bottom: none;
}

/* Contact Section */
.contact-item {
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.contact-item h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.contact-form {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form h4 {
    color: #2c3e50;
    font-weight: 600;
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    border: none;
    color: #212529;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800, #d39e00);
    color: #212529;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
}

.btn-outline-light:hover {
    background: #fff;
    color: #007bff;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50, #34495e) !important;
    border-top: 4px solid #007bff;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #007bff;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section {
        padding: 60px 0;
    }

    .hero-buttons .btn {
        display: block;
        margin-bottom: 15px;
        width: 100%;
    }

    .topbar .d-sm-block {
        display: none !important;
    }

    .social-icon {
        gap: 10px;
    }

    .social-icon a {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .service-card,
    .portfolio-item,
    .pricing-card {
        margin-bottom: 30px;
    }

    .hero-image .placeholder-image {
        height: 300px;
    }

    .topbar-wrapper {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Smooth Scroll */
.tt-smooth-scroll {
    scroll-behavior: smooth;
}

/* Animation Delays */
.animate__animated[data-wow-delay] {
    animation-delay: var(--animate-delay);
}

/* Custom Utilities */
.text-warning {
    color: #ffc107 !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
}

.shadow-lg {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}
