/* ============================================================================
   HOME THEME - SCOPED STYLES FOR HOMEPAGE ONLY
   ============================================================================
   This file contains color overrides that ONLY apply to the homepage.
   All selectors are scoped under .home-theme to prevent affecting other pages.
   
   IMPORTANT: Do NOT modify global styles, layout, spacing, or fonts here.
   Only color-related properties are overridden.
   ============================================================================ */

/* Homepage Color Variables */
.home-theme {
    /* Primary Colors */
    --home-primary-color: #1e293b;
    /* Darker slate for header/sections */
    --home-secondary-color: #0ea5e9;
    /* Sky blue accent */
    --home-text-color: #334155;
    /* Slate text */
    --home-background-light: #f8fafc;
    /* Light slate background */
    --home-accent-yellow: #fbbf24;
    /* Amber/yellow for CTAs */
    --home-accent-orange: #f97316;
    /* Orange accent */
}

/* ============================================================================
   HEADER OVERRIDES (Homepage Only)
   ============================================================================ */

/* Header Background - Homepage (Matches Global Now) */
.home-theme .header.scrolled {
    background-color: rgba(212, 213, 224, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Navigation Links - Homepage */
@media (min-width: 993px) {
    .home-theme .nav-link {
        color: #2d3748;
    }
}

/* Ensure mobile menu links are visible on dark background */
@media (max-width: 992px) {
    .home-theme .nav-link {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .home-theme .nav-item.active>.nav-link {
        color: #b19cd9 !important;
        /* Light purple for active mobile items */
    }
}

.home-theme .nav-item:hover .nav-link {
    color: #6633d7;
}

/* Logo - Homepage Styles handled by global header.css */

/* ============================================================================
   HERO SECTION OVERRIDES (Homepage Only)
   ============================================================================ */

/* Video Overlay - Homepage */
.home-theme .video-overlay {
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.4) 0%, rgba(15, 23, 42, 0.85) 100%);
}

/* Hero Buttons - Homepage */
.home-theme .btn.primary {
    background: #6633d7;
    color: #ffffff;
}

.home-theme .btn.primary:hover {
    background: #6633d7;
}

.home-theme .btn.outline {
    border-color: #b9bcc1;
    color: #b8bbc0;
}

.home-theme .btn.outline:hover {
    background-color: grey;
    color: #ffffff;
}

/* Hero Excellence Text - Purple/Lavender */
.home-theme .hero-excellence {
    color: #b19cd9;
}

/* ============================================================================
   BUTTON OVERRIDES (Homepage Only)
   ============================================================================ */

/* Primary Button - Homepage */
.home-theme .btn-primary {
    background-color: var(--home-accent-yellow);
    color: #000000;
}

.home-theme .btn-primary:hover {
    background-color: var(--home-accent-orange);
}

/* Company Read More Button - Purple */
.home-theme .company-read-more {
    background-color: #6633d7 !important;
    color: #ffffff !important;
}

.home-theme .company-read-more:hover {
    background-color: #5528c0 !important;
    color: #ffffff !important;
}

/* Header CTA Button - Homepage */
.home-theme .header-cta .btn {
    background-color: #6633d7;
    color: #ffffff;
}

.home-theme .header-cta .btn:hover {
    background-color: #5528c0;
}

/* ============================================================================
   SECTION OVERRIDES (Homepage Only)
   ============================================================================ */

/* Section Backgrounds - Homepage */
.home-theme .section {
    background-color: var(--home-background-light);
}

/* Section Titles - Homepage */
.home-theme .section-title {
    color: var(--home-primary-color);
}

.home-theme .section-title::after {
    background-color: #6633d7;
}

/* ============================================================================
   SERVICE CARDS OVERRIDES (Homepage Only)
   ============================================================================ */

/* Service Card Accents - Homepage */
.home-theme .cv-btn {
    background: var(--home-accent-yellow);
}

.home-theme .cv-btn:hover {
    background: var(--home-accent-orange);
}

/* Service Tabs - Pill Style */
.home-theme .service-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 5px;
    /* Scrollbar space */
    margin-bottom: 45px;
}

.home-theme .service-tabs li {
    padding: 10px 24px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    border: none;
}

.home-theme .service-tabs li:hover {
    background: #e5e7eb;
    color: #374151;
}

.home-theme .service-tabs li.active {
    background: #6633d7;
    color: #ffffff;
    font-weight: 600;
}

.home-theme .service-tabs li.active::after {
    display: none;
}

/* Tech Tabs - Same Style */
.home-theme .tech-tabs {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.home-theme .tech-tabs li {
    padding: 10px 24px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.home-theme .tech-tabs li:hover {
    background: #e5e7eb;
    color: #374151;
}

.home-theme .tech-tabs li.active {
    background: #6633d7;
    color: #ffffff;
    font-weight: 600;
}

.home-theme .tech-tabs li.active::after {
    display: none;
}

/* ============================================================================
   TECH SECTION OVERRIDES (Homepage Only)
   ============================================================================ */

/* Tech Card Hover - Homepage */
.home-theme .tech-card:hover {
    box-shadow: 0 20px 50px rgba(251, 191, 36, 0.15);
}

/* ============================================================================
   DYNAMIC SERVICES SECTION OVERRIDES (Homepage Only)
   ============================================================================ */

/* Explore Button - Purple */
.home-theme .explore-btn {
    background-color: #6633d7 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
}

.home-theme .explore-btn:hover {
    background-color: #5528c0 !important;
    color: #ffffff !important;
}

/* ============================================================================
   FOOTER OVERRIDES (Homepage Only)
   ============================================================================ */

/* Footer Background - Homepage (if needed) */
.home-theme .footer {
    background-color: var(--home-primary-color);
}

/* Footer Logo - ITES Purple */
.home-theme .footer-ites {
    color: #6633d7;
}

/* ============================================================================
   FAQ SECTION OVERRIDES (Homepage Only)
   ============================================================================ */

/* FAQ Numbers - Purple */
.home-theme .faq-number {
    color: #6633d7 !important;
}

/* FAQ Active Icon - Purple */
.home-theme .faq-item.active .faq-icon {
    color: #6633d7 !important;
}

/* ============================================================================
   CTA BANNER OVERRIDES (Homepage Only)
   ============================================================================ */

/* CTA Banner - Purple Gradient Background */
.home-theme .cta-banner {
    background: linear-gradient(135deg, #6633d7 0%, #4a5fc1 50%, #5b4fb8 100%) !important;
}

/* CTA Banner Button - White */
.home-theme .cta-banner .btn {
    background-color: #ffffff !important;
    color: #6633d7 !important;
}

.home-theme .cta-banner .btn:hover {
    background-color: #f0f0f0 !important;
    color: #5528c0 !important;
}

/* ============================================================================
   WHY CHOOSE SECTION OVERRIDES (Homepage Only)
   ============================================================================ */

/* Why Choose Section - Purple Gradient Background */
.home-theme .why-choose-section {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #5b21b6 100%) !important;
    padding: 80px 0;
    border-radius: 24px;
    margin: 60px 0;
}

/* Why Choose Grid - Two Column Layout */
.home-theme .why-choose-section .why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Why Choose Section - White Text */
.home-theme .why-choose-section h2 {
    color: #ffffff !important;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: left;
}

.home-theme .why-choose-section p {
    color: #ffffff !important;
    font-size: 18px;
    opacity: 0.95;
    text-align: left;
    line-height: 1.6;
}

/* Why Choose Section - Content Alignment */
.home-theme .why-choose-section .why-us-content {
    text-align: left;
}

/* Why Choose Section - List Items */
.home-theme .why-choose-section ul {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.home-theme .why-choose-section ul li {
    color: #ffffff !important;
    font-size: 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.home-theme .why-choose-section ul li span {
    color: #fbbf24;
    margin-right: 12px;
    font-size: 20px;
    font-weight: 700;
}

/* Why Choose Section - Image Styling */
.home-theme .why-choose-section .why-us-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.2);
}

/* Responsive - Mobile */
@media (max-width: 968px) {
    .home-theme .why-choose-section .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .home-theme .why-choose-section h2 {
        font-size: 32px;
        text-align: center;
    }

    .home-theme .why-choose-section p {
        text-align: center;
    }

    .home-theme .why-choose-section .why-us-content {
        text-align: center;
    }

    .home-theme .why-choose-section ul li {
        justify-content: center;
    }

    .home-theme .why-choose-section .why-us-image img {
        max-height: 300px;
    }
}

/* ============================================================================
   SERVICES SECTION OVERRIDES (Homepage Only)
   - Developer profile cards (slider)
   - Optimized for long profile text from CV-style content
   ============================================================================ */

.home-theme .servicesSwiper .swiper-slide {
    height: auto !important;
}

.home-theme .service-card-rich {
    /* Card layout */
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;

    /* Visual style */
    background: #ffffff !important;
    border-radius: 24px !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08) !important;

    /* Sizing (desktop slider) */
    padding: 28px 26px 22px 26px !important;
    gap: 18px !important;
    height: 100% !important;
    /* Force card to fill swiper-slide height */
}

.home-theme .card-icon-col {
    margin-bottom: 16px !important;
    display: flex !important;
    justify-content: flex-start !important;
    width: auto !important;
}

.home-theme .service-icon-img {
    background: #ffffff !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12) !important;
    border-radius: 18px !important;
    padding: 10px !important;
    width: 64px !important;
    height: 64px !important;
    display: block !important;
    margin: 0 !important;
}

.home-theme .card-content-col {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    /* Ensure content column pushes footer to bottom */
    align-items: flex-start !important;
    gap: 10px !important;
}

.home-theme .card-content-col h3 {
    font-size: 18px !important;
    line-height: 1.3 !important;
    color: #0f172a !important;
    margin-bottom: 4px !important;
}

.home-theme .card-content-col p {
    text-align: left !important;
    margin-bottom: 18px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #4b5563 !important;
}

.home-theme .card-footer {
    width: 100%;
    margin-top: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
}

.home-theme .skills-section {
    width: 100%;
}

.home-theme .skills-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    display: block;
}

.home-theme .skills-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    align-items: center !important;
}

.home-theme .skill-tag {
    background: #f0fdf4 !important;
    color: #166534 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
    display: inline-flex;
    transition: all 0.3s ease;
}

/* STRICT LIMIT: Hide tags beyond the first 2 by default */
.home-theme .skill-tag:nth-child(n+3) {
    display: none !important;
}

/* Show all tags on hover of the list */
.home-theme .skills-list:hover .skill-tag:nth-child(n+3) {
    display: inline-flex !important;
    animation: fadeInScale 0.3s ease forwards;
}

.home-theme .skill-more {
    display: inline-flex !important;
    background: #f1f5f9 !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

.home-theme .skills-list:hover .skill-more {
    display: none !important;
}

.home-theme .cv-btn {
    background: #6633d7 !important;
    box-shadow: 0 4px 12px rgba(102, 51, 215, 0.4) !important;
}

.home-theme .cv-btn-wrapper:hover .cv-btn {
    background: #5528c0 !important;
    box-shadow: 0 6px 18px rgba(102, 51, 215, 0.55) !important;
}



/* Removed duplicate tab styles - using pill-style tabs defined above */

/* Left Aligned Card Override (e.g. for Backend Developer Card with long text) */
.home-theme .service-card-rich.card-left-align {
    text-align: left !important;
    align-items: flex-start !important;
}

.home-theme .service-card-rich.card-left-align .card-content-col {
    align-items: flex-start !important;
}

.home-theme .service-card-rich.card-left-align .card-content-col p {
    text-align: justify !important;
    hyphens: auto;
    text-justify: inter-word;
    line-height: 1.5 !important;
    letter-spacing: -0.2px;
    word-spacing: -1px;
}

.home-theme .service-card-rich.card-left-align .card-icon-col {
    justify-content: flex-start !important;
}

.home-theme .service-card-rich.card-left-align .card-footer {
    justify-content: flex-start !important;
}

/* Slider Arrows - Expertise Section */
.home-theme .arrow-nav-btn {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
}

.home-theme .arrow-nav-btn:hover {
    background: #f8fafc !important;
    color: #1e293b !important;
    border-color: #cbd5e1 !important;
}

/* ============================================================================
   END OF HOME THEME
   ============================================================================ */

/* Widen Services Swiper Container to fit exactly 5 cards on Large Laptop / 3 on Tablet */
.home-theme .services-section .container {
    max-width: 1440px !important;
}

/* ============================================================================
   RESPONSIVENESS FOR EXPERTISE SECTION
   ============================================================================ */

/* 4K and Laptop L (1440px, 2560px) */
@media (min-width: 2560px) {
    .home-theme .services-section .container {
        max-width: 2000px !important;
        padding-left: 60px !important;
        padding-right: 60px !important;
    }

    .home-theme .service-card-rich {
        padding: 50px !important;
    }

    .home-theme .service-tabs {
        justify-content: center !important;
    }
}

@media (min-width: 1440px) {
    .home-theme .services-section .container {
        max-width: 1600px !important;
    }

    .home-theme .service-tabs {
        justify-content: center !important;
    }
}

/* Laptop (1024px) */
@media (max-width: 1024px) {
    .home-theme .service-card-rich {
        padding: 32px !important;
    }
}

/* Tablet (768px) */
@media (max-width: 768px) {
    .home-theme .service-tabs li {
        font-size: 13px !important;
        padding: 8px 16px !important;
    }

    .home-theme .services-section .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .home-theme .service-card-rich {
        padding: 28px !important;
    }

    .home-theme .card-content-col h3 {
        font-size: 18px !important;
    }

    .home-theme .card-content-col p {
        font-size: 13.5px !important;
    }
}

/* Mobile Large (425px) */
@media (max-width: 425px) {
    .home-theme .service-card-rich {
        padding: 18px !important;
        gap: 12px !important;
    }

    .home-theme .card-content-col h3 {
        font-size: 17px !important;
    }

    .home-theme .experience {
        font-size: 11px !important;
        margin-bottom: 10px !important;
    }

    .home-theme .card-content-col p {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 15px !important;
    }

    .home-theme .skill-tag {
        font-size: 10px !important;
        padding: 2px 8px !important;
    }
}

/* Mobile Medium (375px) */
@media (max-width: 375px) {
    .home-theme .service-card-rich {
        padding: 16px !important;
    }

    .home-theme .card-content-col h3 {
        font-size: 16px !important;
    }
}

/* Mobile Small (320px) */
@media (max-width: 320px) {
    .home-theme .service-card-rich {
        padding: 14px !important;
        gap: 10px !important;
    }

    .home-theme .service-icon-img {
        width: 48px !important;
        height: 48px !important;
        padding: 8px !important;
    }

    .home-theme .card-content-col h3 {
        font-size: 15px !important;
        letter-spacing: 0 !important;
    }

    .home-theme .experience {
        font-size: 10px !important;
    }

    .home-theme .card-content-col p {
        font-size: 12.5px !important;
    }

    .home-theme .whatsapp-sticky {
        width: 50px !important;
        height: 50px !important;
        font-size: 28px !important;
        bottom: 15px !important;
        right: 15px !important;
    }
}