/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    background-image: url('12.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    margin-top: -6rem; /* To offset the fixed header padding */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.8s;
}

/* Featured Works Section */
.featured-works {
    padding: 2rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #666;
    margin: 0.5rem auto;
    transition: width 0.5s ease;
}

.section-title:hover::after {
    width: 100px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 5%;
}

.featured-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    height: 350px;
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.featured-item.visible {
    transform: translateY(0);
    opacity: 1;
}

.featured-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.featured-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-item:hover img {
    transform: scale(1.1);
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 2rem 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.featured-item:hover .featured-overlay {
    opacity: 1;
    transform: translateY(0);
}

.featured-overlay h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

/* Parallax Section */
.parallax-section {
    margin-top: 7rem;
    position: relative;
    height: 60vh;
    overflow: hidden;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('5.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.7);
    z-index: -1;
}

.parallax-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.parallax-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.parallax-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Preview */
.services-preview {
    padding: 5rem 5%;
    background-color: #f9f9f9;
}

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

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

.learn-more {
    display: inline-block;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    position: relative;
}

.learn-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #333;
    transition: width 0.3s ease;
}

.learn-more:hover::after {
    width: 100%;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 5%;
    text-align: center;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    height: 200px;
    overflow: hidden;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-slide p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.client-info h4 {
    margin-bottom: 0.3rem;
}

.client-info p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.slider-controls {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.slider-dot.active {
    background-color: #333;
    transform: scale(1.2);
}

/* Instagram Feed */
.instagram-feed {
    padding: 5rem 5%;
    background-color: #f9f9f9;
}

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

.instagram-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.instagram-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-item:hover .instagram-hover {
    opacity: 1;
}

.instagram-item:hover img {
    transform: scale(1.1);
}

.insta-button {
    margin: 2rem auto 0;
    display: block;
    width: fit-content;
}

/* Contact Preview */
.contact-preview {
    padding: 5rem 5%;
    background-color: #333;
    color: white;
    text-align: center;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Footer Enhancements */
.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 5%;
    background-color: #f4f4f4;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-links h4, .footer-social h4 {
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #666;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
    background-color: #666;
}

.copyright {
    text-align: center;
    padding: 1rem;
    background-color: #eee;
    margin: 0;
}

/* Buttons */
.cta-button {
    display: inline-block;
    background-color: #e9e9e9;
    color: #181818;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid #e9e9e9;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.1s;
}

.cta-button:hover {
    background-color: transparent;
    color: #e9e9e9;
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.secondary-button {
    display: inline-block;
    background-color: transparent;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid white;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.secondary-button:hover {
    background-color: white;
    color: #333;
    transform: translateY(-5px);
}

.insta-button {
    color: #333;
    border-color: #333;
}

.insta-button:hover {
    background-color: #333;
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Dark mode enhancement - adding subtle dark overlay to images */
.featured-item img, .instagram-item img {
    filter: brightness(0.9);
}

/* Responsive Adjustments */
@media screen and (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
        margin-top: 5rem;
    }
    
    .featured-grid, .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-logo {
        grid-column: span 2;
    }
}

@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .featured-grid, .services-grid {
        grid-template-columns: 1fr;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-logo {
        grid-column: span 1;
    }
    
    .parallax-content h2 {
        font-size: 2.2rem;
    }
    
    .featured-overlay {
    opacity: 1;
    }
    
}

@media screen and (max-width: 480px) {
    .instagram-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-button, .secondary-button {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* Active Navigation Link Style (Optional) */
.nav-links a.active-nav {
    color: #666; /* Or a more distinct color/underline */
    font-weight: bold;
}
