/* ===== HOMEPAGE SPECIFIC STYLES ===== */

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 5;
    min-height: 100vh;
    padding: 120px 20px 80px;
}

.hero-content {
    padding: 60px 40px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 30px;
    background: var(--gradient-shimmer);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s infinite;
    background-size: 200% 100%;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 1)) drop-shadow(0 0 8px rgba(0, 0, 0, 1)) drop-shadow(0 0 12px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 20px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 30px rgba(0, 0, 0, 0.6));
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.5);
    position: relative;
    font-weight: 900;
    line-height: 1.2;
    /* GPU acceleration */
    transform: translateZ(0);
    will-change: background-position;
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 0 4px rgba(0, 0, 0, 1),
        0 0 8px rgba(0, 0, 0, 1),
        0 0 12px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(0, 0, 0, 0.6),
        0 2px 6px rgba(0, 0, 0, 0.9);
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.4);
    font-weight: 600;
    line-height: 1.6;
}

/* About Introduction Section */
.about-intro {
    padding: 100px 20px;
    background: var(--surface-alpha-05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 30px;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 4px 12px rgba(0, 0, 0, 0.8), 0 0 4px rgba(0, 0, 0, 1);
    -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.4);
}

.about-content p:last-of-type {
    margin-bottom: 40px;
}

/* Featured Services Section */
.featured-services {
    padding: 100px 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color-light);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
    /* GPU acceleration */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.service-card:hover {
    transform: translateY(-10px) translateZ(0);
    border-color: var(--border-color-strong);
    background: rgba(10, 10, 10, 0.85);
    box-shadow: 0 20px 60px var(--shadow-color-medium);
    will-change: transform, box-shadow;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(135, 206, 235, 0.3));
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-icon svg {
    width: 3rem;
    height: 3rem;
    stroke: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon svg {
    stroke: var(--secondary-color);
    filter: drop-shadow(0 0 15px rgba(135, 206, 235, 0.5));
    transform: scale(1.1);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 500;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 3px rgba(0, 0, 0, 0.9);
    -webkit-text-stroke: 0.2px rgba(0, 0, 0, 0.3);
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.service-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Portfolio Preview Section */
.portfolio-preview {
    padding: 100px 20px;
    background: var(--surface-alpha-05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-light);
    margin-top: -40px;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 600;
    line-height: 1.6;
    text-shadow: 0 0 4px rgba(0, 0, 0, 1),
        0 0 8px rgba(0, 0, 0, 1),
        0 0 12px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(0, 0, 0, 0.6),
        0 2px 6px rgba(0, 0, 0, 0.9);
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.4);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 1;
    background: var(--surface-alpha-08);
    border: 1px solid var(--border-color-light);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover {
    transform: scale(1.05);
    border-color: var(--border-color-strong);
    box-shadow: 0 15px 40px var(--shadow-color-medium);
}

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

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


.cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Contact CTA Section */
.contact-cta {
    padding: 100px 20px;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.05), rgba(30, 144, 255, 0.05));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 30px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.cta-content p {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 4px 12px rgba(0, 0, 0, 0.8), 0 0 4px rgba(0, 0, 0, 1);
    -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.4);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button.primary {
    background: var(--gradient);
    color: var(--background-dark);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: var(--background-dark);
}

/* Testimonials Section (slider) */
.testimonials {
    padding: 100px 20px;
}

/* Trusted Brands Image in Testimonials */
.testimonials .portfolio-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px auto 60px;
    /* max-width: 650px; */
}

.testimonials .portfolio-grid-image {
    width: 100%;
    max-width: 1200px;
    max-height: 600px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 50px var(--shadow-color-medium);
    border: 1px solid var(--border-color-light);
    transition: all 0.4s ease;
}

.testimonials .portfolio-grid-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px var(--shadow-color-medium);
    border-color: var(--border-color-medium);
}

.testimonials-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

/* Prevent button overlap with content */
.testimonials-viewport {
    overflow: hidden;
    border-radius: 20px;
}

.testimonials-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
    will-change: transform;
    padding: 0;
}

/* Adjusted shadows to match portfolio aesthetics */
.testimonial-card {
    flex: 0 0 100%;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color-light);
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Nav buttons styled like portfolio */
.testimonial-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--surface-alpha-10);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color-light);
    color: var(--text-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.testimonial-nav:hover {
    background: var(--surface-alpha-15);
    border-color: var(--border-color-medium);
    box-shadow: 0 8px 30px var(--shadow-color-medium);
    transform: translateY(-50%) scale(1.1);
}

.testimonial-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.testimonial-nav.prev {
    left: 10px;
}

.testimonial-nav.next {
    right: 10px;
}

.testimonial-text {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.15rem;
    margin-bottom: 16px;
    font-weight: 500;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 3px rgba(0, 0, 0, 0.9);
    -webkit-text-stroke: 0.2px rgba(0, 0, 0, 0.3);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color-light);
}

.author-name {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.2px;
}

.author-role {
    color: var(--text-muted);
    font-size: 0.95rem;
    opacity: 0.9;
}

@media (min-width: 900px) {
    .testimonial-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }
}

@media (max-width: 768px) {
    .testimonials {
        padding: 60px 20px;
    }

    .testimonial-card {
        padding: 30px 24px;
    }

    .testimonial-nav {
        width: 50px;
        height: 50px;
    }

    .testimonials .portfolio-grid {
        margin: 40px auto 50px;
        max-width: 100%;
    }

    .testimonials .portfolio-grid-image {
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .testimonial-nav {
        width: 44px;
        height: 44px;
    }

    .testimonial-nav.prev {
        left: 6px;
    }

    .testimonial-nav.next {
        right: 6px;
    }

    .testimonials .portfolio-grid {
        margin: 30px auto 40px;
    }

    .testimonials .portfolio-grid-image {
        border-radius: 12px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        padding: 40px 20px;
    }

    .hero h1 {
        margin-bottom: 32px;
    }

    .about-intro,
    .featured-services,
    .portfolio-preview,
    .contact-cta {
        padding: 60px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        /* Touch-friendly padding */
        padding: 35px 25px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .portfolio-item {
        /* Ensure images are touch-friendly */
        min-height: 150px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        /* Touch-friendly size */
        padding: 14px 35px;
    }

    .about-content p {
        font-size: 1.1rem;
        line-height: 1.7;
    }

    .section-subtitle {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .testimonials {
        padding: 60px 20px;
    }

    .testimonial-card {
        padding: 28px 24px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 15px 60px;
    }

    .hero-content {
        padding: 30px 15px;
    }

    .hero h1 {
        line-height: 1.3;
        margin-bottom: 40px;
    }

    .hero p {
        font-size: clamp(1rem, 3vw, 1.3rem);
        line-height: 1.5;
        margin-bottom: 30px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .about-intro,
    .featured-services,
    .portfolio-preview,
    .contact-cta {
        padding: 50px 15px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .service-card p {
        font-size: 0.95rem;
    }

    .about-content p {
        font-size: 1rem;
    }
}

/* Move testimonial nav buttons outside on desktop */
@media (min-width: 900px) {
    .testimonial-nav.prev {
        left: -60px;
    }

    .testimonial-nav.next {
        right: -60px;
    }
}

/* Keep buttons inside on tablets/phones */
@media (max-width: 899.98px) {
    .testimonial-nav.prev {
        left: 10px;
    }

    .testimonial-nav.next {
        right: 10px;
    }
}