/* Hero Section */
#hero {
    background-image: url('/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 150px 0;
    position: relative;
}

/* #hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 50, 103, 0.6);
} */

#hero .container {
    position: relative;
    z-index: 1;
}

#hero h1 {
    font-size: 52px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    word-wrap: break-word;
    hyphens: auto;
}

#hero p {
    font-size: 26px;
    margin-bottom: 40px;
    word-wrap: break-word;
    hyphens: auto;
}

.cta-btn {
    background-color: #fff;
    color: #007bff;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cta-btn:hover {
    background-color: #d5d5d5;
    transform: translateY(-3px);
    text-decoration: none;
}

#hero-button:hover {
    background-color: #000000;
    color: white;
    border: 1px solid white;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

.cta-btn-orange {
    background-color: #ff6b00;
    color: #ffffff;
}

.cta-btn-orange:hover {
    background-color: #ff6b00;
}

.cta-btn-blue {
    background-color: #007bff;
    color: #ffffff;
}

.cta-btn-blue:hover {
    background-color: #3697ff;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 36px;
    }

    #hero p {
        font-size: 18px;
    }
}

/* Services Overview */
#services-overview {
    padding: 80px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 70px;
    position: relative;
    color: #0f1621;
    /* Second accent color */
}

.section-title.white-color {
    color: rgb(235, 235, 243);
}

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

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

.service-card {
    background-color: #f0f0f0;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid transparent;
}

.service-card:hover {
    border: 1px solid #4F46E5;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.service-card img {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #007bff;
}

.service-card p {
    margin-bottom: 20px;
}

.service-card .expanded-info {
    font-size: 14px;
    color: #666;
}

.read-more-services {
    display: inline-block;
    padding: 10px 15px;
    /* background: #ff6b00; */
    background: #ffae00;
    /* background: linear-gradient(135deg, #151b72, #ed863a); */
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    margin-top: 2rem;
    transition: 0.3s;
}

.read-more-services:hover {
    transition: 0.3s;
    transform: translateY(-4px);
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Web Development Details */
#web-dev-details {
    padding: 80px 0;
    background-color: #f9f9f9;
}

#web-dev-details .details-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

#web-dev-details p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Technologies */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
    margin-bottom: 100px;
}

.tech-item {
    text-align: center;
    background: #ffffff0d;
    border-radius: 12px;
    padding: 24px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.tech-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
    transition: transform 0.5s ease;
}

.tech-item:hover img {
    transform: rotate(15deg) scale(1.1);
}

.tech-item p {
    font-size: 16px;
    font-weight: 600;
    color: #d8e0ee;
}

/* agency-Style Services Section */
#agency-services {
    padding: 80px 0;
    background-color: white;
}

.agency-service {
    display: flex;
    align-items: center;
    margin-bottom: 160px;
    gap: 40px;
}

.agency-service:nth-child(even) {
    flex-direction: row-reverse;
}

.agency-service-img {
    flex: 1;
    max-width: 50%;
}

.agency-service-img img {
    width: 100%;
    border-radius: 15px;
    /* box-shadow: 0 4px 8px rgba(0,0,0,0.1); */
}

.agency-service-content {
    flex: 1;
}

.agency-service-content h3 {
    font-size: 32px;
    color: #007bff;
    margin-bottom: 20px;
}

.agency-service-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

.agency-service-content ul {
    list-style: none;
    padding: 0;
}

.agency-service-content li {
    font-size: 16px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.agency-service-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ff6b00;
    /* Second accent color */
}

.agency-service-content a {
    color: #ff6b00;
    /* Second accent color */
    font-weight: bold;
}

.agency-service-content a:hover {
    color: #d95a00;
}

/* Why Choose Us */
#why-us {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.why-item {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.why-item:hover {
    transform: translateY(-5px);
}

.why-item h3 {
    margin-bottom: 15px;
    color: #007bff;
}

.why-item img {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
}

/* Portfolio Teaser */
/* #portfolio-teaser {
    padding: 80px 0;
    background-color: white;
}

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

.portfolio-item {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
} */


/* Blog Teaser */
#blog-teaser {
    padding: 80px 0;
    background-color: white;
}

.blog-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    /* display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));*/
}

.blog-post {
    width: 450px;
    background-color: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.blog-post h3 {
    margin-bottom: 1rem;
}

.blog-post:hover {
    transform: translateY(-5px);
}

.blog-post img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.blog-post-content {
    padding: 20px;
}

.read-more {
    padding: 10px 15px;
    background-color: white;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    color: #007bff;
}

.blog-post-link {
    text-decoration: none;
    color: inherit;
    display: block; /* Делает ссылку блочным элементом, чтобы она занимала всю площадь */
}

.blog-post-link:hover {
    text-decoration: none;
}


/* FAQ */
#faq {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.faq-item {
    margin-bottom: 15px;
}

.faq-item input[type="checkbox"] {
    display: none;
}

.faq-item label {
    display: block;
    background-color: white;
    padding: 20px;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

.faq-item label:hover {
    background-color: #f0f0f0;
}

.faq-answer {
    display: none;
    padding: 20px;
    background-color: #f0f0f0;
    border-left: #3498db solid 4px;
    border-radius: 10px;
    margin-top: 10px;
}

.faq-item input:checked~.faq-answer {
    display: block;
}



@media (max-width: 768px) {
    #hero {
        padding: 80px 0;
    }

    .agency-service {
        flex-direction: column;
    }

    .agency-service:nth-child(even) {
        flex-direction: column;
    }

    .agency-service-img {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .section {
        padding: 50px 15px;
    }

    .blog-post {
        width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}
