/* Portfolio Slider Fixes */
.portfolio-slider-container {
    position: relative;
    max-width: 1000px;
    margin: 2rem auto;
    overflow: hidden;
    padding: 3rem 0;
}

.portfolio-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.215, 0.610, 0.355, 1.000);
    height: 600px;
}

.portfolio-slide {
    min-width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* iPhone Frame Styling */
.device-mockup {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.iphone-frame {
    position: relative;
    height: 100%;
    width: 100%;
    border-radius: 38px;
    overflow: hidden;
    background-color: #111;
    box-shadow: 
        0 0 0 2px #444, 
        inset 0 0 5px rgba(0, 0, 0, 0.5);
    padding: 8px;
}

.iphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 30px;
    background-color: #111;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 10;
}

.iphone-home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.35);
    border-radius: 3px;
    z-index: 10;
}

.app-screenshot {
    position: relative;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 30px;
    z-index: 1;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.8) 30%, rgba(0, 0, 0, 0) 100%);
    color: var(--light-text);
    padding: 2rem;
    transform: translateY(75%);
    transition: transform 0.5s cubic-bezier(0.215, 0.610, 0.355, 1.000);
    z-index: 3;
    border-radius: 0 0 38px 38px;
}

.portfolio-item.mobile-app:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    margin-bottom: 0.5rem;
    color: var(--light-text);
    font-size: 1.4rem;
}

.portfolio-overlay p {
    margin-bottom: 1rem;
    opacity: 0.9;
    font-size: 0.9rem;
    line-height: 1.4;
}

.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.app-features span {
    background-color: rgba(58, 123, 219, 0.8);
    color: var(--light-text);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    transition-delay: 0.1s;
    display: flex;
    align-items: center;
    backdrop-filter: blur(5px);
}

.app-features span i {
    margin-right: 5px;
}

.portfolio-item.mobile-app:hover .app-features span {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-item.mobile-app:hover .app-features span:nth-child(2) {
    transition-delay: 0.2s;
}

.portfolio-item.mobile-app:hover .app-features span:nth-child(3) {
    transition-delay: 0.3s;
}

/* Portfolio Navigation Buttons */
.portfolio-nav {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 4;
    padding: 0 30px;
}

.portfolio-nav button {
    background-color: var(--primary-color);
    color: var(--light-text);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0.9;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.portfolio-nav button i {
    font-size: 1rem;
}

.portfolio-nav button:hover {
    opacity: 1;
    background-color: var(--deep-purple-color);
    transform: scale(1.1);
}

/* Portfolio Dots */
.portfolio-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 0.8rem;
}

.portfolio-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(58, 123, 219, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

.text-center {
    text-align: center;
    margin-top: 2rem;
}

/* Services Background Animation */
.services-bg-hue {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        rgba(44, 107, 237, 0.03),
        rgba(255, 154, 60, 0.03),
        rgba(76, 175, 120, 0.03),
        rgba(169, 77, 171, 0.03),
        rgba(90, 85, 201, 0.03),
        rgba(44, 107, 237, 0.03)
    );
    background-size: 400% 400%;
    z-index: -1;
    animation: hueRotate 15s ease infinite, rotateBg 120s linear infinite;
}

@keyframes hueRotate {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

@keyframes rotateBg {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Testimonials Section Enhancements */
.testimonials {
    padding: 6rem 0;
    background-color: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-color) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.1;
    border-radius: 50%;
}

.testimonials::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--deep-purple-color) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.1;
    border-radius: 50%;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Footer Enhancements */
footer {
    background-color: var(--dark-background);
    color: var(--light-text);
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
    margin-bottom: 3rem;
}

.footer-column h3 {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-links {
    margin: 1.5rem 0;
}

.social-links a {
    color: var(--light-text);
    font-size: 1.5rem;
    margin: 0 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.copyright {
    margin-top: 2rem;
    font-size: 0.875rem;
    opacity: 0.8;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
