/**
 * Custom Front Page Styles
 * 
 * @package Solaartech
 * @version 1.0
 */

/* ========================================
   Hero Section Styles
   ======================================== */

.hero-small {
    height: 900px;
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 120px;
    display: flex;
    align-items: center;
}

.hero-small .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-small .container {
    position: relative;
    z-index: 2;
}

/* ========================================
   Services Intro Section
   ======================================== */

.ftco-intro {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.services-1 {
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.services-1:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.services-1 .line {
    width: 50px;
    height: 3px;
    background: #007bff;
    margin-bottom: 20px;
}

.services-1.color-1 .line {
    background: #28a745;
}

.services-1.color-2 .line {
    background: #ffc107;
}

.services-1 .icon {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 20px;
}

.services-1.color-1 .icon {
    color: #28a745;
}

.services-1.color-2 .icon {
    color: #ffc107;
}

/* ========================================
   About Section
   ======================================== */

.services-2 {
    padding: 30px;
    transition: all 0.3s ease;
}

.services-2:hover {
    background: #f8f9fa;
    border-radius: 8px;
}

.services-2 .icon {
    font-size: 64px;
    color: #007bff;
    margin-bottom: 20px;
}

.services-2 .text h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* ========================================
   Counter Section
   ======================================== */

.ftco-counter {
    position: relative;
}

.ftco-counter .img {
    background-size: cover;
    background-position: center;
    min-height: 500px;
}

.counter-wrap {
    margin-bottom: 30px;
}

.block-18 .text {
    text-align: center;
}

.block-18 .number {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    display: block;
    line-height: 1;
    margin-bottom: 10px;
}

.block-18 span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

/* ========================================
   Services Grid Section
   ======================================== */

.services-section .media.block-6 {
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.services-section .media.block-6:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.services-section .media.block-6 .line {
    width: 50px;
    height: 3px;
    background: #007bff;
    margin-bottom: 20px;
}

.services-section .media.block-6 .icon {
    font-size: 48px;
    color: #007bff;
    margin-bottom: 20px;
}

.services-section .media.block-6 .heading {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* ========================================
   Portfolio Section
   ======================================== */

.project {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 30px;
}

.project .img {
    position: relative;
    overflow: hidden;
}

.project .img img {
    transition: transform 0.5s ease;
}

.project:hover .img img {
    transform: scale(1.1);
}

.project .text {
    background: #fff;
    padding: 20px;
}

.project .text span {
    color: #007bff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project .text h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 10px;
}

.project .text h3 a {
    color: #333;
    transition: color 0.3s ease;
}

.project .text h3 a:hover {
    color: #007bff;
}

.project .icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project:hover .icon {
    opacity: 1;
}

.project .icon span {
    color: #007bff;
}

/* ========================================
   FAQ Section
   ======================================== */

.ftco-faqs .img {
    background-size: cover;
    background-position: center;
    min-height: 300px;
    border-radius: 4px;
}

.ftco-faqs .img-2 {
    min-height: 200px;
}

.myaccordion .card {
    border: none;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0;
}

.myaccordion .card-header {
    background: transparent;
    border: none;
}

.myaccordion .btn-link {
    width: 100%;
    text-align: left;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
}

.myaccordion .btn-link:hover {
    color: #007bff;
}

.myaccordion .btn-link .fa::before {
    content: "\f067";
    font-family: FontAwesome;
    transition: transform 0.3s ease;
}

.myaccordion .btn-link[aria-expanded="true"] .fa::before {
    content: "\f068";
}

.myaccordion .card-body {
    padding-top: 0;
}

.myaccordion .card-body ol {
    padding-left: 20px;
}

.myaccordion .card-body ol li {
    margin-bottom: 10px;
    color: #666;
}

/* ========================================
   Testimonials Section
   ======================================== */

.testimony-section {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 80px 0;
}

.testimony-section .overlay-1 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.testimony-wrap {
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 40px;
    border-radius: 4px;
    overflow: hidden;
}

.testimony-wrap .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.testimony-wrap .text {
    position: relative;
    z-index: 2;
    color: #fff;
}

.testimony-wrap .line {
    width: 50px;
    height: 3px;
    background: #007bff;
    margin-bottom: 20px;
}

.testimony-wrap .name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

.testimony-wrap .position {
    font-size: 14px;
    opacity: 0.8;
}

/* ========================================
   Blog Section
   ======================================== */

.blog-entry {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.blog-entry:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.blog-entry .block-20 {
    display: block;
    height: 250px;
    background-size: cover;
    background-position: center;
}

.blog-entry .text {
    padding: 25px;
}

.blog-entry .topp {
    margin-bottom: 15px;
}

.blog-entry .topp .one {
    background: #007bff;
    color: #fff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.blog-entry .topp .day {
    font-size: 24px;
    font-weight: 700;
}

.blog-entry .topp .two {
    display: flex;
    flex-direction: column;
}

.blog-entry .topp .yr,
.blog-entry .topp .mos {
    font-size: 12px;
    text-transform: uppercase;
    color: #999;
}

.blog-entry .heading a {
    color: #333;
    font-size: 20px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-entry .heading a:hover {
    color: #007bff;
}

/* ========================================
   Contact Form Section
   ======================================== */

.ftco-appointment {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 80px 0;
}

.ftco-appointment .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.ftco-appointment .half {
    position: relative;
    z-index: 2;
}

.ftco-appointment h2 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
}

.appointment .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 15px;
    border-radius: 4px;
}

.appointment .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.appointment .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #007bff;
    color: #fff;
}

.appointment .select-wrap {
    position: relative;
}

.appointment .select-wrap .icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
}

.appointment select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* ========================================
   Responsive Styles
   ======================================== */

@media (max-width: 768px) {
    .hero-small {
        height: 400px;
        padding-top: 90px;
    }
    
    .hero-small h1 {
        font-size: 28px;
    }
    
    .services-1,
    .services-2 {
        margin-bottom: 20px;
    }
    
    .block-18 .number {
        font-size: 36px;
    }
    
    .project {
        margin-bottom: 20px;
    }
    
    .testimony-wrap {
        min-height: 300px;
        padding: 30px 20px;
    }
    
    .blog-entry .block-20 {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .hero-small {
        height: 350px;
        padding-top: 70px;
    }
    
    .hero-small h1 {
        font-size: 24px;
    }
    
    .services-1 .icon,
    .services-2 .icon {
        font-size: 40px;
    }
    
    .ftco-appointment h2 {
        font-size: 24px;
    }
}

/* ========================================
   Animation Classes
   ======================================== */

.ftco-animate {
    opacity: 0;
    visibility: hidden;
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Stagger animation delays */
.ftco-animate:nth-child(1) { animation-delay: 0.1s; }
.ftco-animate:nth-child(2) { animation-delay: 0.2s; }
.ftco-animate:nth-child(3) { animation-delay: 0.3s; }
.ftco-animate:nth-child(4) { animation-delay: 0.4s; }