/* /css/home-style.css */

/* --- Full Window Hero Layout Override --- */
body.page-template-template-pages-template-home-php {
    padding-top: 0;
}

/* --- Homepage Hero Section --- */
.hero-section.full-screen-slider {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Background Slider Styles */
#homepageHeroSlider, .carousel-inner, .carousel-item {
    height: 100%;
}
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    z-index: 0;
}
.hero-background .hero-image, .hero-background .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-background .hero-image {
    background-size: cover;
    background-position: center center;
}

/* Gradient Overlay for text readability */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(85, 64, 155, 0.85), rgba(85, 64, 155, 0.1));
    z-index: 1;
}

/* Unified Text Content Layer */
.hero-text-content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    z-index: 3;
    padding: 2rem;
}
.hero-text-content .container {
    width: 45%;
    margin-left: 10%;
    margin-right: auto;
    text-align: left;
}

/* Heading Styling */
.hero-text-content h2 {
    color: #f8f9fa;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    font-size: 1.375rem;
    font-weight: 900;
}

/* Subheading Styling (for typewriter) */
.hero-text-content h3 {
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    display: inline-block;
    font-size: 4.5rem;
    opacity: 0;
    color: #fff;
    margin: 1rem 0;
    min-height: 120px;
}
.hero-text-content h3:after {
    content: '_';
    animation: blink 1s infinite;
    font-weight: 100;
    opacity: 0;
}
.hero-text-content h3.typing:after {
    opacity: 1;
}
@keyframes blink {
    50% { opacity: 0; }
}

/* Paragraph Styling */
.hero-text-content p {
    color: #f8f9fa;
}

/* Hero Button Styling */
.hero-button {
    background-color: #55409b;
    border-color: #55409b;
    font-weight: bold;
    padding: 0.75rem 2.5rem 0.75rem 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    color: #ffffff !important;
    text-decoration: none;
    display: inline-block;
}
.hero-button:hover {
    background-color: #44337a;
    border-color: #44337a;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hero-button a:visited {
    color: #FECF0A;
}

/* Animated Button Icon */
.hero-button::after {
    content: '';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='9 18 15 12 9 6'%3e%3c/polyline%3e%3c/svg%3e");
    background-size: contain;
    background-repeat: no-repeat;
    animation: button-icon-pulse 2s infinite ease-in-out;
}

@keyframes button-icon-pulse {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(5px);
    }
}


/* --- Mobile Responsiveness for Hero Content --- */
@media (max-width: 991.98px) {
    .hero-text-content .container {
        width: 80%;
        margin-left: 5%;
        margin-right: 5%;
    }

    .hero-text-content h3 {
        font-size: 3.15rem;
        min-height: 90px;
    }
}

@media (max-width: 576px) {
    .hero-text-content .container {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        padding: 0 1rem;
    }

    .hero-text-content h2 {
        font-size: 1.25rem;
    }

    .hero-text-content h3 {
        font-size: 2.25rem;
        min-height: 70px;
    }
    
    .hero-text-content p.lead {
        font-size: 1rem;
    }
}

/* --- Tech Logos Section --- */
.tech-logos-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
    text-align: center;
}

.tech-logos-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tech-logos-section .section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 3rem;
}

.logo-carousel .logo-slide {
    width: 250px;
    margin: 0 15px;
}

.logo-carousel .logo-slide img {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease-in-out;
}

.logo-carousel .logo-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* --- Two Column Section --- */
.two-column-section {
    background-color: #6221D9;
    background-image: url('../img/innovative-heading.svg');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: contain;
    padding: 12rem 0 6rem 0;
    color: #ffffff;
    overflow-x: hidden; /* Added for animation fix */
}

.two-column-section .tc-text-col {
    padding-right: 3rem;
}
.two-column-section .tc-media {
    width: 100%;
    height: auto;
    border-radius: 15px;
}
.two-column-section .tc-heading {
    font-size: 1.5rem;
}
.two-column-section .tc-subheading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (max-width: 991.98px) {
    .two-column-section .row {
        flex-direction: column-reverse;
    }
    .two-column-section .tc-text-col {
        padding-right: 0;
        padding-top: 3rem;
        text-align: center;
    }
}


/* --- Features List Section --- */
.features-section {
    background-color: #00042A;
    padding: 6rem 0;
    color: #ffffff;
}

.feature-item {
    text-align: left;
}

.feature-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1.5rem;
}

.feature-icon svg {
    width: 40px;
    height: 40px;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.feature-subtitle {
    font-size: 1rem;
    color: #ffffff;
    opacity: 0.8;
}

/* --- Contact Info Section --- */
.contact-info-section {
    background-color: #ffffff;
    background-image: url('../img/cta-bg3.webp');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100%;
    padding: 10rem 0 5rem 0;
    color: #000000;
}
.contact-info-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.contact-info-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}
.contact-list .contact-item a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000000;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}
.contact-list .contact-item a:hover {
    color: #55409b;
}
.contact-list .contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
}
.contact-form-wrapper {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.contact-form-title {
    font-size: 2rem;
    font-weight: 700;
}
.contact-form-subtitle {
    margin-bottom: 2rem;
}

/* --- Contact Form 7 Styles --- */
.contact-form-wrapper .wpcf7-form {
    text-align: left;
}
.contact-form-wrapper .form-control {
    border-radius: 15px;
    padding: 0.85rem 1.5rem;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}
.contact-form-wrapper .form-control:focus {
    border-color: #55409b;
    box-shadow: 0 0 0 0.25rem rgba(85, 64, 155, 0.25);
}
.contact-form-wrapper .wpcf7-submit.hero-button {
    width: 100%;
    background-color: #55409b;
    border: 1px solid #55409b;
    color: #ffffff;
    font-weight: bold;
    padding: 1.5rem 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    padding-right: 2.5rem;
}
.contact-form-wrapper .wpcf7-submit.hero-button:hover {
    background-color: #44337a;
    border-color: #44337a;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.contact-form-wrapper .wpcf7-radio {
    display: flex;
    gap: 1.5rem;
}

.contact-form-wrapper .wpcf7-list-item {
    margin: 0;
}

.contact-form-wrapper .wpcf7-list-item-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* --- Showcase and Portfolio Section --- */
.showcase-section {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.showcase-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/showcase-bg.webp');
    background-size: cover;
    background-position: center center;
    z-index: -2;
    transform: translateY(var(--parallax-y, 0px));
}

.showcase-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/texture-overlay.svg');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100%;
    z-index: -1;
}

.showcase-content-row {
    margin-bottom: 6em;
}

.showcase-text-col {
    color: #000000;
}

.showcase-text-col h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.showcase-media-col img,
.showcase-media-col video {
    border-radius: 15px;
}

.showcase-portfolio-row {
    padding: 0;
    border-radius: 0;
    margin-top: 5rem;
}

.showcase-portfolio-row h2,
.showcase-portfolio-row .lead {
    color: #000000;
}

.showcase-portfolio-row h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.showcase-portfolio-row .lead {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    perspective: 1500px;
    margin-bottom: 3rem;
}

@media (max-width: 991.98px) {
    .portfolio-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .portfolio-gallery {
        grid-template-columns: 1fr;
    }
}

.portfolio-item {
    aspect-ratio: 1 / 1;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: rotateY(0deg) scale(1);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-gallery.in-view .portfolio-item:nth-child(1) {
    transform: rotateY(-15deg) scale(1.05) translateX(-5%);
}
.portfolio-gallery.in-view .portfolio-item:nth-child(2) {
    transform: rotateY(0deg) scale(1.05) translateY(-5%);
}
.portfolio-gallery.in-view .portfolio-item:nth-child(3) {
    transform: rotateY(15deg) scale(1.05) translateX(5%);
}
.portfolio-gallery.in-view .portfolio-item:nth-child(4) {
    transform: rotateY(-15deg) scale(1.05) translateX(-5%);
}
.portfolio-gallery.in-view .portfolio-item:nth-child(5) {
    transform: rotateY(0deg) scale(1.05) translateY(5%);
}
.portfolio-gallery.in-view .portfolio-item:nth-child(6) {
    transform: rotateY(15deg) scale(1.05) translateX(5%);
}


.portfolio-item-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1; /* Add z-index */
    transition: transform 0.5s ease; /* Add transition for hover effect */
}

.portfolio-item-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2; /* Add z-index */
}

.portfolio-item:hover .portfolio-item-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-item-bg {
    transform: scale(1.1); /* Add hover effect for the image */
}

.portfolio-item-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.portfolio-item-content .project-link {
    color: #fecf0a;
    text-decoration: none;
    margin-bottom: 1rem;
    display: inline-block;
}
.portfolio-item-content .project-tech {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- Services Section --- */
.services-section {
    background-color: #6221DB;
    padding: 6rem 0;
}

.services-section .services-main-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 3rem;
}

.service-card {
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    height: 100%;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #55409b;
}

.service-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: left;
}

.service-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.service-checklist li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.service-checklist svg {
    flex-shrink: 0;
    color: #6221DB; /* Updated purple checkmark */
}

.service-button-container {
    text-align: center;
    margin-top: 2rem; /* Added more space */
}

.service-button {
    display: inline-block;
    background-color: #55409b;
    border: 1px solid #55409b;
    color: #ffffff !important;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.service-button:hover {
    background-color: #44337a;
    border-color: #44337a;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}


/* --- Two Column Section Animation --- */
/* Initial state for all animated elements in the section */
.two-column-section .tc-heading,
.two-column-section .tc-subheading,
.two-column-section .tc-paragraph,
.two-column-section .tc-media {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Define initial positions */
.two-column-section .tc-heading,
.two-column-section .tc-paragraph {
    transform: translateX(-50px);
}

.two-column-section .tc-subheading {
    transform: translateX(50px);
}

/* Active animation states triggered by JavaScript */
.two-column-section .slide-in-left,
.two-column-section .slide-in-right {
    opacity: 1;
    transform: translateX(0);
}

.two-column-section .fade-in {
    opacity: 1;
}