/* Homepage Specific Styles */

/* Homepage container override to match hero width */
.container {
    width: 80%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    padding-left: 10%;
}

/* Hero Carousel */
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 10%;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-background img {
    width: 100%;
    height: 120%;
    object-fit: cover;
    transform: translateY(0);
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    z-index: -1;
}

.hero-stats {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    background: var(--primary-color);
    display: flex;
    justify-content: space-around;
    padding: 1.5rem 0;
    z-index: 1;
    border-radius: 0;
}

.stat-item {
    text-align: center;
    color: var(--white);
    flex: 1;
}

.stat-number {
    font-size: 48px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 0;
}

.stat-label {
    font-size: 16px;
    color: #9ca9c1;
    font-weight: 300;
}

/* Hero Services */
.hero-services {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100vw;
    background: var(--primary-color);
    z-index: 1;
    border-radius: 0;
}

.service-row {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 0;
    padding: 0 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.service-row:last-child {
    border-bottom: none;
}

.service-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
    text-decoration: none;
    padding: 1.5rem 1rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border-radius: 0;
    flex: 1;
    justify-content: center;
    background: transparent;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 100px;
}

.service-box:last-child {
    border-right: none;
}

.service-box:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    text-decoration: none;
    transform: scale(1.05);
}

.service-box.active {
    background-color: rgba(255, 255, 255, 0.2);
}


.hero-services .service-icon {
    font-size: 32px;
    flex-shrink: 0;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
    display: inline !important;
    margin: 0 !important;
}

.service-name {
    font-size: 16px;
    font-weight: 400;
    color: var(--white);
    line-height: 1.3;
    text-align: left;
}

.hero-content {
    width: 55%;
    color: var(--white);
    margin-bottom: 8rem;
    text-align: left;
}

.hero-text h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: clamp(3.5rem, 6vw, 5rem);
    line-height: 1.1;
    font-weight: 400;
}

.hero-text p {
    font-size: 16px;
    color: var(--white);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Services */
.hero-services {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100vw;
    background: var(--primary-color);
    z-index: 1;
}

.service-row {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 0;
    padding: 0 10%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.service-row:last-child {
    border-bottom: none;
}


.hero-services .service-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: none;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: var(--white);
}

.hero-services .service-icon svg {
    width: 40px;
    height: 40px;
    color: var(--white);
}

.hero-services .service-name {
    font-family: var(--font-family-serif);
    font-size: 18px;
    font-weight: 400;
    color: var(--white);
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
}

.service-name {
    font-size: 16px;
    font-weight: 400;
    color: var(--white);
    line-height: 1.3;
    text-align: left;
}

/* About Section */
.about {
    padding: 6rem 0;
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 16px;
    line-height: 1.7;
}

.about-founder {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.about-founder h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.about-founder p {
    color: var(--gray);
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.6;
}

.about-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.about-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    bottom: 20px;
    left: 20px;
    border: 3px solid var(--secondary-color);
    border-radius: 15px;
    pointer-events: none;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background-color: var(--white);
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.services-text {
    max-width: 65%;
}

.services-text h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.services-text p {
    color: var(--gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}


.service-card {
    display: block;
    text-decoration: none;
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 10px rgba(33, 55, 83, 0.05);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(33, 55, 83, 0.1);
    text-decoration: none;
}

.service-card:hover .service-content h6,
.service-card:hover .service-content p {
    color: inherit;
}

.service-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 1.5rem;
}

.service-content h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.service-content p {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 16px;
    line-height: 1.6;
}


.service-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Process Section */
.process {
    padding: 6rem 0;
    background-color: var(--white);
}

.process-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.process-text h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.process-text p {
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 16px;
    line-height: 1.7;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step-item {
    padding: 2rem;
    border-radius: 0;
    transition: transform 0.3s ease;
    margin-bottom: 1rem;
}

.step-item:hover {
    transform: translateX(10px);
}

.step-item.light {
    background-color: var(--light-blue);
}

.step-item.dark {
    background-color: var(--primary-color);
    color: var(--white);
    margin-left: 50px;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.step-header h5 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.step-item.light .step-header h5 {
    color: var(--primary-color);
}

.step-item.dark .step-header h5 {
    color: var(--white);
}

.step-number {
    font-size: 1.1rem;
    font-weight: 600;
}

.step-item.light p {
    color: var(--gray);
}

.step-item.dark p {
    color: var(--white);
}

/* Video Section */
.video-section {
    position: relative;
    padding: 6rem 0;
    text-align: center;
    color: var(--white);
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.video-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 80%;
    margin: 0 auto;
    padding: 3rem 2rem;
    height: 100%;
}

.video-text {
    max-width: 500px;
    text-align: left;
}

.video-text h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
    text-align: left;
}

.video-text p {
    color: var(--white);
    margin-bottom: 0;
    text-align: left;
}

.vision-values {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    font-size: 1rem;
    font-weight: 400;
}

.check-icon {
    color: var(--primary-color);
    flex-shrink: 0;
    background-color: var(--white);
    border-radius: 50%;
    padding: 4px;
    width: 28px;
    height: 28px;
}

.value-item span {
    color: var(--white);
    line-height: 1.4;
}

/* Blog Section */
.blog {
    padding: 6rem 0 6rem 0;
    background-color: var(--white);
    position: relative;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.blog-text h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.blog-text p {
    color: var(--gray);
    font-size: 16px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    background-color: var(--white);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 10px rgba(33, 55, 83, 0.05);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(33, 55, 83, 0.1);
}

.blog-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h6 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.blog-content p {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 16px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.8em; /* 3 lines * 1.6 line-height */
}

.blog-link {
    color: var(--dark-gray);
    text-decoration: none;
    border-bottom: 1px solid rgba(33, 55, 83, 0.5);
    display: inline-block;
    padding-bottom: 2px;
    font-size: 0.9rem;
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}


/* Homepage Mobile Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        width: 90vw;
        padding: 0;
        margin: 0 auto;
    }
    
    .about-image img {
        height: 270px;
    }
    
    /* Hero Section */
    .hero {
        padding: 0 5%;
        text-align: left;
        align-items: center;
        flex-direction: column;
        justify-content: center;
        padding-bottom: 2rem;
        padding-top: 100px;
    }
    
    .hero-slide {
        padding-left: 0;
        align-items: center;
    }
    
    .hero-content {
        width: 90vw;
        margin-bottom: 3rem;
        text-align: left;
    }
    
    .hero-text h1 {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .hero-text p {
        font-size: 18px;
        margin-bottom: 2rem;
    }
    
    .hero-services {
        display: none;
    }
    
    .service-row {
        gap: 1rem;
        padding: 0 5%;
        flex-wrap: wrap;
        justify-content: center;
        max-width: none;
    }
    
    .service-box {
        min-width: 160px;
        padding: 0.75rem 1rem;
        flex: 1;
        text-align: center;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        margin-bottom: 0.5rem;
    }
    
    .service-box:last-child {
        border-bottom: none;
    }
    
    .hero-stats {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        width: 100%;
        display: flex;
        flex-direction: row;
        gap: 1rem;
        padding: 2rem 1rem;
        margin-top: 0;
        order: 3;
        justify-content: flex-start;
        background: transparent;
    }
    
    .stat-item {
        min-width: auto;
        flex: 1;
        padding: 1rem;
        background-color: var(--primary-color);
        border-radius: 10px;
        text-align: center;
    }
    
    .stat-item:nth-child(3),
    .stat-item:nth-child(4) {
        display: none;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 80%;
        text-align: center;
        padding: 15px 20px;
    }
    
    .hero-buttons .btn-primary {
        display: none;
    }
    
    .about-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .about-buttons .btn {
        text-align: center;
        padding: 15px 20px;
    }
    
    .about-content,
    .process-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .process-content {
        display: flex;
        flex-direction: column-reverse;
    }
    
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-header,
    .blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .services-text {
        max-width: 100%;
    }
    
    .video-content {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
        width: 90vw;
        padding: 2rem 0;
        margin: 0 auto;
    }
    
    .video-text {
        max-width: 100%;
        text-align: left;
    }
    
    .video-text h2 {
        text-align: left;
    }
    
    .video-text p {
        text-align: left;
    }
    
    .vision-values {
        max-width: 100%;
        align-items: flex-start;
    }
    
    .value-item {
        justify-content: flex-start;
        align-items: flex-start;
    }
    
    .value-item span {
        text-align: left;
    }
    
    .step-item.dark {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .container {
        width: 90vw;
        padding: 0;
        margin: 0 auto;
    }
    
    .hero {
        padding: 0 5%;
        flex-direction: column;
        justify-content: center;
        padding-bottom: 2rem;
        padding-top: 100px;
        text-align: left;
        align-items: center;
    }
    
    .hero-slide {
        padding-left: 0;
        align-items: center;
    }
    
    .hero-content {
        width: 90vw;
        margin-bottom: 3rem;
        text-align: left;
    }
    
    .hero-text h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }
    
    .hero-text p {
        font-size: 16px;
    }
    
    .hero-services {
        display: none;
    }
    
    .hero-buttons .btn {
        width: 100%;
        font-size: 16px;
    }
    
    .hero-buttons .btn-primary {
        display: none;
    }
    
    .hero-stats {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        display: flex;
        flex-direction: row;
        gap: 1rem;
        padding: 1.5rem 1rem;
        margin-top: 0;
        order: 3;
        width: 100%;
        justify-content: flex-start;
        background: transparent;
    }
    
    .stat-item {
        flex: 1;
        text-align: center;
        padding: 1rem;
        background-color: var(--primary-color);
        border-radius: 10px;
    }
    
    .stat-item:nth-child(3),
    .stat-item:nth-child(4) {
        display: none;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .service-row {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 3%;
    }
    
    .service-box {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        text-align: left;
        min-width: auto;
        flex: none;
    }
    
    .service-box:last-child {
        border-bottom: none;
    }
    
    .about,
    .services,
    .process,
    .video-section {
        padding: 4rem 0;
    }
    
    .blog {
        padding: 4rem 0 6rem 0;
    }
}