/**
 * DeediX Technologies - Home Page Styles
 */

/* ========================================
   Page-Level Navbar Integration
======================================== */
.home-page .navbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.home-page .navbar.scrolled {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ========================================
   Hero Section - Responsive Layout
======================================== */
.home-page .hero {
    background: #ffffff;
    padding: 6rem 0 3rem;
    position: relative;
    min-height: auto;
}

.home-page .hero-background {
    display: none;
}

.home-page .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.home-page .hero-text {
    text-align: left;
}

.home-page .hero-title {
    font-size: clamp(1.2rem, 4.5vw, 3.5rem);  /* Reduced to 1.2rem minimum for complete mobile display */
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.4;  /* Increased for better text wrapping and preventing cutoff */
    color: #1e293b;
}

.home-page .gradient-text {
    color: #0078d4;
    font-weight: 700;
}

.home-page .highlight {
    color: #1e293b;
}

.home-page .hero-description {
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #64748b;
}

.home-page .hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

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

.home-page .stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.home-page .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0078d4;
    line-height: 1;
}

.home-page .stat-plus {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0078d4;
}

.home-page .stat-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.5rem;
    font-weight: 500;
}

.home-page .hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
}

.home-page .hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home-page .hero-image {
    display: none;
}

.home-page .hero-image.active {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 120, 212, 0.15);
    position: relative;
    z-index: 1;
}

.home-page .floating-card {
    position: absolute;
    background: #ffffff;
    border-radius: 8px;
    padding: 0.5rem 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.12);
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.home-page .floating-card i {
    font-size: 1.125rem;
    color: #0078d4;
}

.home-page .floating-card span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
}

.home-page .card-1 {
    top: 5%;
    right: -2%;
    animation-delay: 0s;
}

.home-page .card-2 {
    bottom: 8%;
    left: -3%;
    animation-delay: 1s;
}

.home-page .card-3 {
    top: 45%;
    right: -3%;
    animation-delay: 2s;
}

.home-page .card-4 {
    bottom: 35%;
    left: -2%;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.home-page .scroll-indicator {
    display: none;
}

/* ========================================
   Services Section
======================================== */
.home-page .services {
    padding: 5rem 0;
    background: #ffffff;
}

.home-page .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.home-page .section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.home-page .section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.6;
}

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

.home-page .service-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 3rem 2rem 2rem;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.home-page .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 120, 212, 0.12);
    border-color: #0078d4;
}

.home-page .service-card.featured {
    border-color: #0078d4;
}

.home-page .featured-badge {
    position: absolute;
    top: -0.625rem;
    right: 1.5rem;
    background: #0078d4;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.25);
}

.home-page .service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    flex-shrink: 0;
}

.home-page .service-icon i {
    font-size: 2.5rem;
    color: #0078d4;
}

.home-page .service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.home-page .service-description {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.home-page .service-link {
    color: #0078d4;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    margin-top: auto;
}

.home-page .service-link:hover {
    gap: 0.75rem;
}

/* ========================================
   Technology Partners Section
   (Styles now in pages.css)
======================================== */

/* ========================
   CLIENT LOGOS SLIDER -
   ======================== */
.client-icons {
    margin-top: 14px;
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
}

.client-icons i {
    font-size: 40px;          /* bigger */
    color: #1e375e;           /* brand color (change if needed) */
    transition: transform .3s ease, color .3s ease;
    animation: softPulse 2.5s infinite ease-in-out;
    cursor: default;
}

.c-f {
    display: flex;
    gap: 25px;     
    justify-content: left;
    align-items: center;
}

/* Slight hover movement */
.client-icons i:hover {
    transform: scale(1.2) rotate(-2deg);
    color: #0b5ed7;
}

/* Continuous soft pulse */
@keyframes softPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}


.clients {
    padding: 80px 0 20px 0; /* Balanced top/bottom padding, no extra space */
    background: #ffffff;
}

.client-logos-slider {
    overflow: hidden;
    padding: 20px 0; /* Minimal vertical padding */
}

.slider-track {
    display: flex;
    gap: 30px; /* Wider gap for breathing room */
    align-items: center;
    animation: scroll-logos 40s linear infinite;
}

/* Uniform height - all logos same size */
.logo-slide {
    flex: 0 0 auto;
    height: 95px; /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-slide img {
    height: 100%; /* Fill the fixed height */
    width: auto;
    max-width: none; /* Allow wider logos if needed */
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.5s ease, opacity 0.5s ease;
}

/* Full color on hover */
.logo-slide img:hover {
    filter: grayscale(0%) opacity(1);
}

/* Pause on hover */
.client-logos-slider:hover .slider-track {
    animation-play-state: paused;
}

/* Infinite scroll */
@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .slider-track { animation: none; }
}

/* Responsive */
@media (max-width: 1200px) {
    .slider-track { gap: 60px; }
    .logo-slide { height: 70px; }
}

@media (max-width: 992px) {
    .slider-track { gap: 50px; }
    .logo-slide { height: 65px; }
}

@media (max-width: 768px) {
    .clients { padding: 70px 0; }
    .slider-track { gap: 40px; }
    .logo-slide { height: 60px; }
}

@media (max-width: 480px) {
    .slider-track { gap: 30px; }
    .logo-slide { height: 55px; }
    .slider-track { animation-duration: 30s; }
}

/* ========================================
   CTA Section - Modern 3 Column Layout
======================================== */
.home-page .testimonials {
    padding: 5rem 0;
    background: #ffffff;
}

.home-page .cta-banner {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 4rem 0;
    margin: 3rem 0;
}

.home-page .cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.home-page .cta-text {
    flex: 1;
    text-align: left;
}

.home-page .cta-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.2;
    color: #1e293b;
    letter-spacing: -0.02em;
    margin: 0 0 1rem 0;
}

.home-page .cta-description {
    font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
    line-height: 1.6;
    color: #64748b;
    font-weight: 400;
    margin: 0;
}

.home-page .cta-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-page .cta-icon-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse-subtle 3s ease-in-out infinite;
}

.home-page .cta-icon-circle::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 2px solid #e0f2fe;
    opacity: 0.4;
}

.home-page .cta-icon-circle i {
    font-size: 3rem;
    color: #0078d4;
}

@keyframes pulse-subtle {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.home-page .cta-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.home-page .cta-actions .btn {
    min-width: 180px;
}

.home-page .cta-actions .btn i {
    margin-left: 0.5rem;
}

/* ========================================
   Button Styles
======================================== */
.btn-secondary {
    background: transparent;
    border: 2px solid #0078d4;
    color: #0078d4;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #0078d4;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 120, 212, 0.2);
}

.btn i {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.btn:hover i {
    transform: translateX(4px);
}

/* ========================================
   Footer Integration
======================================== */
.home-page .footer {
    background: #101b2e;
    color: #e2e8f0;
    border-top: none;
}

.home-page .footer-title {
    color: #ffffff;
}

.home-page .footer-text,
.home-page .footer-links a,
.home-page .footer-contact li {
    color: #cbd5e1;
}

.home-page .footer-links a:hover {
    color: #0078d4;
}

.home-page .social-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.home-page .social-link:hover {
    background: #0078d4;
    border-color: #0078d4;
}

.home-page .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 968px) {
    .home-page .hero-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .home-page .hero-text {
        text-align: center;
    }

    .home-page .hero-buttons {
        justify-content: center;
    }

    .home-page .hero-stats {
        justify-content: center;
    }

    .home-page .cta-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .home-page .hero {
        padding: 1.5rem 0 1rem;  /* Moderate top padding since text card comes first */
        margin-top: 70px;  /* Push content below fixed navbar */
    }

    .home-page .hero-content {
        grid-template-columns: 1fr;  /* Single column on mobile */
        gap: 1.5rem;
    }

    /* Card-based design for mobile hero text */
    .home-page .hero-text {
        background: #ffffff;
        border-radius: 16px;
        padding: 1.5rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        border: 1px solid #e5e7eb;
    }

    .home-page .hero-title {
        font-size: 1.375rem;  /* Slightly larger in card */
        line-height: 1.4;
        margin-bottom: 1rem;
    }

    .home-page .hero-description {
        font-size: 0.9375rem;  /* 15px */
        line-height: 1.6;
        margin-bottom: 1.25rem;
        color: #4b5563;
    }

    .home-page .hero-buttons {
        margin-bottom: 1.25rem;
    }

    .home-page .hero-visual {
        min-height: 300px;
        order: 2;  /* Move visual below text on mobile */
    }

    .home-page .hero-text {
        order: 1;  /* Text card comes first after nav */
    }

    .home-page .hero-image-wrapper {
        padding: 1.5rem;
    }

    .home-page .floating-card {
        padding: 0.75rem 1rem;
    }

    .home-page .floating-card i {
        font-size: 1.25rem;
    }

    .home-page .floating-card span {
        font-size: 0.75rem;
    }

    /* Stats card on mobile */
    .home-page .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        background: linear-gradient(135deg, #0078d4 0%, #0056a3 100%);
        padding: 1rem 0.75rem;
        border-radius: 12px;
        margin-top: 1rem;
        box-shadow: 0 4px 6px -1px rgba(0, 120, 212, 0.15);
    }

    .home-page .stat-item {
        align-items: center;
        text-align: center;
        padding: 0.375rem 0;
        display: flex;
        flex-direction: column;
        gap: 0.375rem;
    }

    .home-page .stat-number {
        font-size: 1.75rem;
        color: #ffffff;
        font-weight: 700;
        display: inline;
    }

    .home-page .stat-plus {
        font-size: 1.125rem;  /* Much smaller than number */
        color: #ffffff;
        font-weight: 600;
        display: inline;
        vertical-align: top;
        margin-left: 2px;
    }

    .home-page .stat-label {
        font-size: 0.6875rem;  /* 11px */
        color: rgba(255, 255, 255, 0.95);
        font-weight: 500;
        display: block;  /* Label on its own line */
        margin-top: 0.25rem;
    }

    .home-page .services {
        padding: 3.5rem 0;  /* Increased padding */
    }

    .home-page .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;  /* Tighter gap on mobile */
    }

    .home-page .clients {
        padding: 3.5rem 0;  /* Increased padding */
    }

    .home-page .clients-grid {
        animation: scrollClients 15s linear infinite;
    }

    .home-page .client-card {
        min-width: 180px;
        max-width: 180px;
        padding: 0.875rem 1.25rem;
    }

    .home-page .testimonials {
        padding: 3.5rem 0;  /* Increased padding */
    }

    .home-page .cta-banner {
        padding: 3rem 0;  /* Increased padding */
        margin: 2rem 0;
    }

    .home-page .section-header {
        margin-bottom: 2.5rem;  /* More space after headers */
    }

    .home-page .cta-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .home-page .cta-text {
        text-align: center;
    }

    .home-page .cta-visual {
        order: -1;
    }

    .home-page .cta-icon-circle {
        width: 100px;
        height: 100px;
    }

    .home-page .cta-icon-circle::before {
        width: 120px;
        height: 120px;
    }

    .home-page .cta-icon-circle i {
        font-size: 2.5rem;
    }

    .home-page .cta-actions {
        width: 100%;
        justify-content: center;
    }

    .home-page .cta-actions .btn {
        width: 100%;
    }

    .home-page .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1.25rem;  /* Increased gap between buttons */
    }

    .home-page .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        min-height: 50px;  /* Larger touch target */
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .home-page .hero {
        padding: 1rem 0 1rem;  /* Moderate spacing since text card comes first */
        margin-top: 60px;  /* Push content below fixed navbar on small mobile */
    }

    /* Compact card design for small mobile */
    .home-page .hero-text {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .home-page .hero-title {
        font-size: 1.25rem;  /* Comfortable size in card */
        line-height: 1.4;
        margin-bottom: 0.875rem;
    }

    .home-page .hero-description {
        font-size: 0.875rem;  /* 14px */
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .home-page .hero-visual {
        min-height: 250px;
    }

    .home-page .hero-image-wrapper {
        padding: 1rem;
    }

    /* Compact stats card for small mobile */
    .home-page .hero-stats {
        gap: 0.5rem;
        padding: 0.875rem 0.5rem;
        border-radius: 10px;
    }

    .home-page .stat-number {
        font-size: 1.5rem;
    }

    .home-page .stat-plus {
        font-size: 1rem;  /* Much smaller than number */
        vertical-align: top;
    }

    .home-page .stat-label {
        font-size: 0.625rem;  /* 10px */
    }

    .home-page .floating-card {
        padding: 0.5rem 0.75rem;
    }

    .home-page .cta-visual {
        grid-template-columns: 1fr;
    }

    .home-page .service-card {
        padding: 1.5rem;
    }

    .home-page .client-card {
        padding: 1.5rem;
    }
}

/* CTA Section optimization for very small screens */
@media (max-width: 400px) {
    .home-page .cta-icon-circle {
        width: 80px;
        height: 80px;
    }

    .home-page .cta-icon-circle::before {
        width: 100px;
        height: 100px;
    }

    .home-page .cta-icon-circle i {
        font-size: 2rem;
    }

    .home-page .cta-title {
        font-size: 1.75rem;
    }

    .home-page .cta-description {
        font-size: 1rem;
    }

    .home-page .cta-actions .btn {
        min-width: 160px;
        padding: 0.875rem 1.5rem;
    }
}

/* ========================================
   Print Styles
======================================== */
@media print {
    .home-page .navbar,
    .home-page .footer,
    .home-page .scroll-indicator,
    .back-to-top,
    .whatsapp-float,
    .floating-card {
        display: none;
    }

    .home-page .hero,
    .home-page .services,
    .home-page .clients,
    .home-page .cta {
        page-break-inside: avoid;
    }
}

.footer-legal-links {
    margin-top: 8px;
    font-size: 14px;
    text-align: center;
}

.footer-legal-links a {
    color: #ccc;
    text-decoration: none;
}

.footer-legal-links a:hover {
    text-decoration: underline;
}

