.hero-section {
    background: linear-gradient(45deg, #FFFFFF 0%, #d8d8d8 50%, #FFFFFF 100%), url('img/rock services.png');
    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
    background-blend-mode: multiply;
}

.projects-section--loading {
    visibility: hidden;
    opacity: 0;
}

.projects-section--loaded {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.projects-hero-content {
    text-align: center;
    color: white;
    z-index: 4;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    margin-top: 0;
    padding-top: 2rem;
}

.projects-hero-content h1 {
    font-size: 13rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.projects-hero-content p {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgb(255, 255, 255);
}


.projects-section {
    width: 100vw;
    min-height: 150vh;
    position: relative;
    margin-top: 70vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 3;
    padding: 5vh 2rem 15vh 2rem;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1200px;
    width: 100%;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: row;
    align-items: center;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.project-card--web-design {
    visibility: hidden;
    opacity: 0;
}

.project-card.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    border-color: rgba(12, 192, 223, 0.3);
    will-change: transform;
}

.project-card.animate:hover {
    will-change: transform;
}

.project-image {
    width: 40%;
    height: 250px;
    overflow: hidden;
    position: relative;
    order: 2;
    margin: 2rem;
    border-radius: 15px;
    transition: all 0.5s ease;
    cursor: pointer;
}

.project-image img,
.project-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 15px;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: all 0.5s ease;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

.main-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: all 0.5s ease;
}

.hover-video {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 15px 15px 0;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
}

/* Carousel styles */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-image:hover .carousel-indicators {
    opacity: 1;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-indicator.active {
    background: #0cc0df;
}

.project-card:hover .project-image {
    transform: scale(1.1);
    width: 100%;
    height: 300px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(12, 192, 223, 0.5);
    z-index: 10;
}

.project-card:hover .main-video {
    width: 50%;
    border-radius: 15px 0 0 15px;
}

.project-card:hover .hover-video {
    opacity: 1;
    transform: translateX(0);
}


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

.project-content {
    width: 60%;
    padding: 2rem;
    order: 1;
}

.project-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.project-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    transition: all 0.5s ease;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    transition: all 0.5s ease;
    margin-bottom: 1.5rem;
}

.tag {
    background: rgba(12, 192, 223, 0.2);
    color: #0cc0df;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(12, 192, 223, 0.3);
}

@media (max-width: 768px) {
    .projects-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .projects-hero-content p {
        font-size: 1.2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .project-card {
        flex-direction: column;
    }
    
    .project-image {
        width: 100%;
        height: 200px;
        order: 1;
    }
    
    .project-content {
        width: 100%;
        padding: 1.5rem;
        order: 2;
    }
}

/* Footer */
.about-footer {
    background: linear-gradient(45deg, #0b0b0b 0%, #242424 50%, #0e0d0d 100%);
    color: white;
    padding: 3rem 2rem 0rem;
    position: relative;
    width: 100vw;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #0cc0df;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #0cc0df;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsive Design for Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}