/* Home Page Specific Styles */

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-slide.active {
    display: flex;
    opacity: 1;
    z-index: 2;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 8rem 5%;
    position: relative;
    z-index: 10;
    color: var(--white);
    text-align: center;
    width: 100%;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInDown 1s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero .btn {
    animation: fadeInUp 1.5s ease;
}

/* Hero Slider Controls */
.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
    border: none;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.hero-slider-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.hero-slider-btn.prev {
    left: 2rem;
}

.hero-slider-btn.next {
    right: 2rem;
}

/* Hero Slider Indicators */
.hero-slider-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 100;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.hero-indicator.active {
    background-color: var(--white);
    width: 30px;
    border-radius: 6px;
}

/* Customers Section */
.customers-section {
    padding: 4rem 5%;
    background: var(--light-bg);
    overflow-x: hidden;
    width: 100%;
}

.customers-slider-container {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow: hidden;
    width: 100%;
}

.customers-slider-wrapper {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
    width: 100%;
}

.customers-slider {
    display: flex;
    gap: 3rem;
    width: fit-content;
}

.scroll-left {
    animation: scrollLeft 40s linear infinite;
}

.scroll-right {
    animation: scrollRight 40s linear infinite;
}

.customers-slider:hover {
    animation-play-state: paused;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.customer-logo {
    flex: 0 0 200px;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: 140px;
}

.customer-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.customer-logo img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Transforming Spaces Section */
.transforming-section {
    padding: 5rem 5%;
    background: var(--white);
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

.transforming-section::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(196, 181, 253, 0.15) 2px, transparent 2px);
    background-size: 20px 20px;
    transform: translateY(-50%);
    z-index: 0;
}

.transforming-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.transforming-images {
    position: relative;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    height: 650px;
}

.grid-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
}

.grid-item-1 {
    grid-column: 1;
    grid-row: 1;
}

.grid-item-2 {
    grid-column: 2;
    grid-row: 1;
}

.grid-item-2 {
    grid-column: 2;
    grid-row: 1 / 3;
}

.grid-item-3 {
    grid-column: 1;
    grid-row: 2;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.grid-item:hover img {
    transform: scale(1.1);
}

.grid-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
    height: 100%;
}

.grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.grid-image:hover img {
    transform: scale(1.05);
}

.transforming-text h2 {
    font-size: 3rem;
    color: var(--dark);
    margin-bottom: 2rem;
    line-height: 1.2;
    position: relative;
    padding-bottom: 1.5rem;
}

.transforming-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--dark);
}

.purple-text {
    color: #a78bfa;
}

.transforming-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: var(--gray);
}

.btn-dark {
    background: #3d4451;
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-dark:hover {
    background: #2a2f3a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(61, 68, 81, 0.3);
}

/* Services Preview Section */
.services-preview {
    padding: 5rem 5%;
    background: #f8f9fa;
    position: relative;
    overflow-x: hidden;
    width: 100%;
}

.decorative-pills {
    position: absolute;
    top: 100px;
    right: 100px;
    display: flex;
    gap: 15px;
    z-index: 2;
}

.pill {
    width: 100px;
    height: 40px;
    border-radius: 20px;
    opacity: 0.7;
}

.pill-1 {
    background: linear-gradient(135deg, rgba(196, 181, 253, 0.6), rgba(167, 139, 250, 0.6));
}

.pill-2 {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.5), rgba(196, 181, 253, 0.5));
}

.pill-3 {
    background: linear-gradient(135deg, rgba(196, 181, 253, 0.4), rgba(167, 139, 250, 0.4));
}

.services-preview::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.1) 2px, transparent 2px);
    background-size: 30px 30px;
    border-radius: 50%;
}

.services-preview::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 40%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(196, 181, 253, 0.3), rgba(167, 139, 250, 0.2));
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.services-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.services-text {
    padding-right: 2rem;
}

.services-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.services-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.services-image:hover img {
    transform: scale(1.05);
}

.services-text h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 2rem;
}

.section-title-underline {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--dark);
}

.services-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--gray);
}

.btn-primary {
    background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 100%);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(167, 139, 250, 0.4);
}

/* Projects Preview Section */
.projects-preview {
    padding: 5rem 5%;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Portfolio Gallery Section */
.portfolio-gallery-section {
    padding: 5rem 5%;
    background: var(--white);
    overflow-x: hidden;
    width: 100%;
}

.portfolio-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.portfolio-gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.portfolio-gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.portfolio-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-gallery-item:hover img {
    transform: scale(1.1);
}

.portfolio-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-gallery-item:hover .portfolio-gallery-overlay {
    transform: translateY(0);
}

.portfolio-gallery-overlay h3 {
    color: var(--white);
    font-size: 1rem;
    margin: 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-slider {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-slide {
        height: 70vh;
        min-height: 500px;
        background-attachment: scroll;
    }
    
    .hero-content {
        padding: 2rem 1rem;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        height: auto;
        width: 100%;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1.2rem;
        letter-spacing: 1px;
    }
    
    .hero p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        margin-top: 0.5rem;
    }
    
    /* Customers Section Mobile */
    .customers-section {
        padding: 3rem 3%;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .transforming-content,
    .services-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .transforming-section {
        padding: 3rem 5%;
    }
    
    .transforming-content {
        grid-template-columns: 1fr;
    }
    
    .transforming-text h2 {
        font-size: 1.8rem;
    }
    
    .transforming-text p {
        font-size: 0.95rem;
    }
    
    .image-grid {
        height: 400px;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .services-preview {
        padding: 3rem 5%;
    }
    
    .services-content {
        direction: ltr;
    }
    
    .services-text {
        order: 1;
        padding-right: 0;
    }
    
    .services-image {
        order: 2;
    }
    
    .section-title-underline {
        font-size: 1.8rem;
    }
    
    .services-text p {
        font-size: 0.95rem;
    }
    
    .decorative-pills {
        display: none;
    }
    
    .scroll-left,
    .scroll-right {
        animation-duration: 30s;
    }
    
    .customer-logo {
        flex: 0 0 140px;
        padding: 1.2rem;
        height: 110px;
    }
    
    .customer-logo img {
        max-height: 55px;
    }
    
    .customers-slider-container {
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .customers-slider {
        gap: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-gallery-section {
        padding: 3rem 5%;
    }
    
    .portfolio-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .portfolio-gallery-overlay h3 {
        font-size: 0.9rem;
    }
    
    /* Hero Slider Responsive */
    .hero-slider-btn {
        font-size: 1.8rem;
        padding: 1rem 1.4rem;
        background-color: rgba(0, 0, 0, 0.6);
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-slider-btn.prev {
        left: 1rem;
    }
    
    .hero-slider-btn.next {
        right: 1rem;
    }
    
    .hero-slider-indicators {
        bottom: 2rem;
        gap: 0.8rem;
    }
    
    .hero-indicator {
        width: 14px;
        height: 14px;
    }
    
    .hero-indicator.active {
        width: 32px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 60vh;
        min-height: 450px;
    }
    
    .hero-slider {
        height: 60vh;
        min-height: 450px;
    }
    
    .hero-slide {
        height: 60vh;
        min-height: 450px;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        height: auto;
        width: 100%;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }
    
    .customers-section {
        padding: 2.5rem 3%;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .customer-logo {
        flex: 0 0 120px;
        padding: 1rem;
        height: 100px;
    }
    
    .customer-logo img {
        max-height: 50px;
    }
    
    .customers-slider {
        gap: 1.5rem;
    }
    
    .transforming-section {
        padding: 2.5rem 4%;
    }
    
    .transforming-text h2 {
        font-size: 1.5rem;
    }
    
    .transforming-text p {
        font-size: 0.9rem;
    }
    
    .services-preview {
        padding: 2.5rem 4%;
    }
    
    .section-title-underline {
        font-size: 1.5rem;
    }
    
    .services-text p {
        font-size: 0.9rem;
    }
    
    .portfolio-gallery-section {
        padding: 2.5rem 4%;
    }
    
    .portfolio-gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .portfolio-gallery-overlay h3 {
        font-size: 0.85rem;
    }
    
    .image-grid {
        height: 400px;
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    /* Hero Slider Responsive */
    .hero {
        min-height: 50vh;
    }
    
    .hero-slide {
        min-height: 50vh;
    }
    
    .hero-content {
        padding: 5rem 4% 3rem 4%;
    }
    
    .hero-slider-btn {
        font-size: 1.5rem;
        padding: 0.8rem;
        background-color: rgba(0, 0, 0, 0.7);
        border-radius: 50%;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-slider-btn.prev {
        left: 0.5rem;
    }
    
    .hero-slider-btn.next {
        right: 0.5rem;
    }
    
    .hero-slider-indicators {
        bottom: 1.5rem;
        gap: 0.6rem;
    }
    
    .hero-indicator {
        width: 12px;
        height: 12px;
    }
    
    .hero-indicator.active {
        width: 28px;
        height: 12px;
    }
}
