/* Home Page Specific Styles */

/* Three Column Hero Section */
.hero {
    background: var(--gradient); /* Fallback background */
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 5rem 2rem 3rem;
    position: relative;
    overflow: hidden;
}

/* Video Background */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Slight Tint Overlay - allows video to be visible */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(135deg, rgba(0, 5, 41, 0.6) 0%, rgba(0, 26, 61, 0.5) 100%); */
    background-color: #000000;
    z-index: 1;
    pointer-events: none;
}

/* Optional: Add subtle grain texture on top of video */
.hero::after {
    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="50" cy="50" r="1" fill="%23c1f744" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 1.15;
    z-index: 1;
    pointer-events: none;
    background-color: #0000007c;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 70vh;
}

/* Left Column - CV Mockup */
.hero-visual {
    position: relative;
    display: flex;
    top: 20%;
    align-items: center;
    order: 1;
}

.cv-mockup {
    width: 280px;
    height: 380px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateY(15deg) rotateX(5deg);
    animation: float 6s ease-in-out infinite;
    cursor: pointer;
    transition: var(--transition);
}

.cv-mockup:hover {
    transform: perspective(1000px) rotateY(10deg) rotateX(0deg) translateY(-10px) scale(1.02);
    animation-play-state: paused;
}

@keyframes float {
    0%, 100% { 
        transform: perspective(1000px) rotateY(15deg) rotateX(5deg) translateY(0px); 
    }
    50% { 
        transform: perspective(1000px) rotateY(15deg) rotateX(5deg) translateY(-20px); 
    }
}

.cv-header {
    height: 70px;
    background: var(--primary-green);
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: var(--dark-blue);
    font-weight: bold;
    font-size: 1rem;
    gap: 8px;
}

.cv-logo {
    height: 35px;
    width: auto;
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(100%) hue-rotate(0deg) brightness(0%);
}

.cv-content {
    padding: 15px;
    height: calc(100% - 70px);
    background: linear-gradient(to bottom, #f8f9fa 0%, #fff 100%);
}

.cv-line {
    height: 10px;
    background: #e9ecef;
    margin-bottom: 10px;
    border-radius: 5px;
    animation: shimmer 2s infinite;
}

.cv-line:nth-child(1) { width: 80%; animation-delay: 0s; }
.cv-line:nth-child(2) { width: 60%; animation-delay: 0.2s; }
.cv-line:nth-child(3) { width: 90%; animation-delay: 0.4s; }
.cv-line:nth-child(4) { width: 70%; animation-delay: 0.6s; }
.cv-line:nth-child(5) { width: 85%; animation-delay: 0.8s; }
.cv-line:nth-child(6) { width: 65%; animation-delay: 1s; }

@keyframes shimmer {
    0% { opacity: 0.6; background: #e9ecef; }
    50% { opacity: 1; background: var(--primary-green); }
    100% { opacity: 0.6; background: #e9ecef; }
}

/* Middle Column - Logo Section */
.hero-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    top: 30%;
    text-align: center;
    order: 2;
    padding: 2rem 1rem;
    position: relative;
}

.hero-logo-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(193, 247, 68, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.2;
    }
}

.hero-main-logo {
    height: 200px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
    transition: var(--transition);
    animation: logoGlow 3s ease-in-out infinite alternate;
}

.hero-main-logo:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 30px var(--primary-green));
}

@keyframes logoGlow {
    0% { 
        filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(193, 247, 68, 0.3)); 
    }
    100% { 
        filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(193, 247, 68, 0.6)); 
    }
}

.hero-tagline {
    color: var(--primary-green);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.95;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-brand-text {
    color: var(--white);
    font-size: 1.1rem;
    opacity: 0.8;
    line-height: 1.6;
    max-width: 300px;
}

/* Right Column - Description & CTA */
.hero-text {
    color: var(--white);
    order: 3;
    padding: 2rem 1rem;
}

.hero-text h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
}

.hero-text .highlight {
    color: var(--primary-green);
    position: relative;
}

.hero-text .highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-green);
    opacity: 0.4;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.7;
}

/* Stats Section */
.hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.stat {
    text-align: center;
    color: var(--white);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-green);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Services Section */
.services {
    padding: 6rem 2rem;
    background: var(--gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-green), transparent);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
    box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
    left: 100%;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green), #a8e63a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--dark-blue);
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.service-card h3 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

/* Reviews Carousel Section */
.testimonials {
    padding: 6rem 2rem;
    background: var(--gradient);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.testimonials::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><radialGradient id="spotlight"><stop offset="0%" stop-color="%23c1f744" stop-opacity="0.1"/><stop offset="100%" stop-color="transparent"/></radialGradient></defs><circle cx="20" cy="30" r="30" fill="url(%23spotlight)"/><circle cx="80" cy="70" r="40" fill="url(%23spotlight)"/></svg>');
    opacity: 0.3;
}

.testimonials .container {
    position: relative;
    z-index: 1;
}

.testimonials .section-title {
    color: var(--white);
}

.testimonials .section-subtitle {
    color: var(--white);
    opacity: 0.8;
}

.reviews-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Reviews Carousel Container */
.reviews-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
}

/* Reviews Track */
.reviews-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    align-items: center;
}

/* Individual Review Slide */
.review-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

/* Review Image */
.review-image {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    object-fit: contain;
    background: white;
    transition: var(--transition);
}

.review-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

/* Carousel Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(193, 247, 68, 0.9);
    color: var(--dark-blue);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: bold;
}

.carousel-nav:hover {
    background: var(--primary-green);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(193, 247, 68, 0.4);
}

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

.carousel-nav.prev {
    left: -25px;
}

.carousel-nav.next {
    right: -25px;
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-nav:disabled:hover {
    transform: translateY(-50%) scale(1);
    background: rgba(193, 247, 68, 0.9);
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.carousel-indicator.active {
    background: var(--primary-green);
    box-shadow: 0 0 15px rgba(193, 247, 68, 0.5);
    transform: scale(1.3);
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* Carousel Counter */
.carousel-counter {
    text-align: center;
    margin-top: 1rem;
    color: var(--white);
    font-size: 1rem;
    opacity: 0.8;
}

.carousel-counter span {
    color: var(--primary-green);
    font-weight: bold;
}

/* Loading State */
.reviews-loading {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--white);
}

.reviews-loading::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-top: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* No Reviews State */
.no-reviews {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--white);
}

.no-reviews p {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Carousel Controls Container */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-play-pause {
    background: rgba(193, 247, 68, 0.9);
    color: var(--dark-blue);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-play-pause:hover {
    background: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(193, 247, 68, 0.4);
}

/* CTA Section */
.cta-section {
    padding: 6rem 2rem;
    background: var(--white);
    text-align: center;
}

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

.cta-content h2 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Responsive Design for Home Page */
@media (max-width: 1200px) {
    .hero-content {
        gap: 2rem;
    }
    
    .hero-main-logo {
        height: 160px;
    }
    
    .cv-mockup {
        width: 240px;
        height: 320px;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
    }
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        min-height: auto;
    }
    
    .hero-visual {
        order: 1;
    }
    
    .hero-logo-section {
        order: 2;
        padding: 1rem;
    }
    
    .hero-text {
        order: 3;
        padding: 1rem;
        text-align: center;
    }
    
    .hero {
        padding: 4rem 1rem 2rem;
    }
    
    .hero-main-logo {
        height: 140px;
    }
    
    .cv-mockup {
        width: 280px;
        height: 380px;
        transform: perspective(800px) rotateY(0deg) rotateX(5deg);
    }
    
    .cv-mockup:hover {
        transform: perspective(800px) rotateY(0deg) rotateX(0deg) translateY(-10px) scale(1.02);
    }
    
    @keyframes float {
        0%, 100% { 
            transform: perspective(800px) rotateY(0deg) rotateX(5deg) translateY(0px); 
        }
        50% { 
            transform: perspective(800px) rotateY(0deg) rotateX(5deg) translateY(-15px); 
        }
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        padding: 3rem 1rem 2rem;
    }
    
    .hero-main-logo {
        height: 120px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
    }
    
    .cv-mockup {
        width: 250px;
        height: 340px;
    }
    
    .cv-header {
        height: 60px;
        padding: 0 12px;
        font-size: 0.9rem;
    }
    
    .cv-logo {
        height: 30px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .services {
        padding: 4rem 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .testimonials {
        padding: 4rem 1rem;
    }
    
    .reviews-carousel {
        padding: 1rem;
    }

    .review-image {
        max-height: 400px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-nav.prev {
        left: -20px;
    }

    .carousel-nav.next {
        right: -20px;
    }

    .carousel-indicators {
        gap: 0.4rem;
    }

    .carousel-indicator {
        width: 10px;
        height: 10px;
    }
    
    .cta-section {
        padding: 4rem 1rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0.5rem 2rem;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .hero-main-logo {
        height: 100px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .cv-mockup {
        width: 220px;
        height: 300px;
    }
    
    .stat {
        padding: 0.8rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .hero-brand-text {
        font-size: 1rem;
    }
    
    .reviews-carousel-container {
        padding: 1rem 0;
    }

    .review-image {
        max-height: 300px;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .carousel-nav.prev {
        left: 5px;
    }

    .carousel-nav.next {
        right: 5px;
    }

    .carousel-play-pause {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Animation delays for staggered loading */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

/* Hover effects for better interactivity */
.hero-visual:hover .cv-mockup {
    animation-play-state: paused;
    transform: perspective(1000px) rotateY(-10deg) rotateX(0deg) translateY(-10px);
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .cv-mockup {
        animation: none;
        transform: perspective(1000px) rotateY(15deg) rotateX(5deg);
    }
    
    .cv-line {
        animation: none;
        opacity: 0.8;
    }
    
    .service-icon::before {
        animation: none;
    }
    
    .hero-main-logo {
        animation: none;
        filter: brightness(0) invert(1);
    }
    
    /* Pause video for users who prefer reduced motion */
    .hero-video {
        animation-play-state: paused;
    }
}

/* Performance optimization for mobile devices */
@media (max-width: 768px) {
    /* Optionally hide video on mobile for better performance */
    /* Uncomment if video impacts mobile performance */
    /*
    .hero-video {
        display: none;
    }
    */
}