/* Computer Vision Page Enhancements */

/* Hero Section Enhancements */
.hero-section.hero-3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section.hero-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-section.hero-3 .hero-content h1 {
    color: white;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section.hero-3 .hero-content h1 span {
    background: linear-gradient(90deg, #6A47ED, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section.hero-3 .hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Service Box Enhancements */
.single-service-box {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.single-service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.single-service-box:hover::before {
    transform: scaleX(1);
}

.single-service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.single-service-box .service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.single-service-box:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.single-service-box .service-icon i {
    font-size: 2rem;
    color: white;
}

.single-service-box .service-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.single-service-box .service-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-service-box:hover .service-content h3 a {
    color: #667eea;
}

.single-service-box .service-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.95rem;
}

.service-features li i {
    color: #667eea;
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

/* Technology Stack Section */
.tech-stack-section {
    background: #f8f9fa;
    padding: 4rem 0;
}

.tech-item {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.tech-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.tech-item:hover .tech-icon {
    transform: scale(1.1);
}

.tech-icon i {
    font-size: 1.5rem;
    color: white;
}

.tech-name {
    font-weight: 600;
    color: #333;
    margin: 0;
    font-size: 0.9rem;
}

/* Video Section */
.video-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain2" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain2)"/></svg>');
    opacity: 0.3;
}

.video-section .section-title h2,
.video-section .section-title p {
    color: white;
}

.video-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.youtube-subscribe-btn {
    display: inline-flex;
    align-items: center;
    background: #ff0000;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.youtube-subscribe-btn:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
    color: white;
    text-decoration: none;
}

.youtube-subscribe-btn i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Applications Section */
.applications-section {
    background: #f8f9fa;
}

.application-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.application-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.app-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.application-card:hover .app-icon {
    transform: scale(1.1) rotate(5deg);
}

.app-icon i {
    font-size: 1.8rem;
    color: white;
}

.application-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.application-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* --- Phone Mockup for Hero Section --- */
.phone-mockup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 350px;
}

.phone-mockup {
    width: 320px;
    height: 640px;
    background: #222;
    border-radius: 40px;
    box-shadow: 0 8px 32px rgba(106,71,237,0.15), 0 1.5px 8px rgba(0,0,0,0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 0;
}

.phone-mockup::before {
    content: '';
    display: block;
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #444;
    border-radius: 3px;
    opacity: 0.4;
}

.phone-screen {
    width: 288px;
    height: 512px;
    background: #000;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.youtube-short {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 32px;
    background: #000;
}

@media (max-width: 991px) {
    .phone-mockup {
        width: 220px;
        height: 440px;
        border-radius: 28px;
    }
    .phone-screen {
        width: 196px;
        height: 320px;
        border-radius: 20px;
    }
}

@media (max-width: 575px) {
    .phone-mockup {
        width: 140px;
        height: 280px;
        border-radius: 16px;
        padding: 8px 0;
    }
    .phone-screen {
        width: 120px;
        height: 200px;
        border-radius: 10px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section.hero-3 .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .single-service-box {
        padding: 2rem;
    }
    
    .video-container iframe {
        height: 250px;
    }
    
    .tech-item {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section.hero-3 .hero-content h1 {
        font-size: 2rem;
    }
    
    .single-service-box {
        padding: 1.5rem;
    }
    
    .video-container iframe {
        height: 200px;
    }
}

/* Animation Enhancements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-section.hero-3 .hero-image {
    animation: float 3s ease-in-out infinite;
}

/* Loading Animation */
.tech-item,
.application-card,
.single-service-box {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger Animation */
.tech-item:nth-child(1) { animation-delay: 0.1s; }
.tech-item:nth-child(2) { animation-delay: 0.2s; }
.tech-item:nth-child(3) { animation-delay: 0.3s; }
.tech-item:nth-child(4) { animation-delay: 0.4s; }
.tech-item:nth-child(5) { animation-delay: 0.5s; }
.tech-item:nth-child(6) { animation-delay: 0.6s; }

.application-card:nth-child(1) { animation-delay: 0.1s; }
.application-card:nth-child(2) { animation-delay: 0.2s; }
.application-card:nth-child(3) { animation-delay: 0.3s; }
.application-card:nth-child(4) { animation-delay: 0.4s; }
.application-card:nth-child(5) { animation-delay: 0.5s; }
.application-card:nth-child(6) { animation-delay: 0.6s; } 