/* ==============================================================
   KONVERRA HOMEPAGE REDESIGN - LIGHT THEME
   ============================================================== */

/* ==============================================================
   NAVIGATION - LIGHT THEME UPDATES
   ============================================================== */

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar .logo-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.navbar .logo-text:hover {
    color: var(--accent-purple);
    transform: scale(1.02);
}

.navbar .nav-menu a {
    color: var(--text-secondary);
}

.navbar .nav-menu a:hover {
    color: var(--accent-purple);
}

/* Skip to Main Content (Accessibility) */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1rem 1.5rem;
    background: var(--accent-purple);
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.skip-to-main:focus {
    left: 1rem;
    top: 1rem;
}

/* ==============================================================
   HERO SECTION - VIDEO BACKGROUND
   ============================================================== */

.hero-video {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Video Background Container */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Fallback gradient until video is added */
    background: linear-gradient(
        135deg,
        rgba(151, 71, 255, 0.9) 0%,
        rgba(78, 205, 196, 0.8) 50%,
        rgba(255, 107, 107, 0.9) 100%
    );
}

/* Video Element */
.hero-video-element {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Dark Overlay for Text Readability */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    padding: 0 20px;
}

/* Hero Title */
.hero-title {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: #FFFFFF;
    margin: 0 0 24px 0;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 auto 32px;
    max-width: 700px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Hero CTA Buttons */
.hero-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Highlight Gradient for Text */
.highlight-gradient {
    background: linear-gradient(135deg, #9747FF 0%, #4ECDC4 50%, #FF6B6B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    filter: drop-shadow(0 2px 10px rgba(151, 71, 255, 0.8));
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
    animation: bounce 2s infinite;
    z-index: 3;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid #FFFFFF;
    border-bottom: 2px solid #FFFFFF;
    transform: rotate(-45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ==============================================================
   OFFERINGS PREVIEW SECTION
   ============================================================== */

.offerings-preview-section {
    padding: 120px 0;
    background: var(--primary-bg);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.capability-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    min-height: 400px;
}

.capability-icon {
    width: 200px;
    height: 200px;
    margin-bottom: 12px;
}

.capability-icon svg {
    width: 100%;
    height: 100%;
}

.capability-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.capability-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
}

.capability-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: auto;
}

.capability-tags .tag,
.work-tags .tag {
    font-size: 0.85rem;
    padding: 6px 14px;
    background: var(--secondary-bg);
    border-radius: 20px;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.capability-card:hover .capability-tags .tag {
    background: rgba(151, 71, 255, 0.1);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* ==============================================================
   WORK PREVIEW SECTION
   ============================================================== */

.work-preview-section {
    padding: 120px 0;
    background: var(--secondary-bg);
}

.work-preview-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
    margin-bottom: 60px;
}

.work-card-featured {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    border: 2px solid var(--border-light);
    background: var(--primary-bg);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card-featured:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--accent-purple);
}

.work-card-featured img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-card-content {
    position: relative;
    z-index: 2;
    padding: 32px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 70%, transparent 100%);
    width: 100%;
}

.work-category {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-purple);
    margin-bottom: 8px;
}

.work-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 8px 0;
}

.work-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 12px 0 16px;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Small Work Grid */
.work-grid-small {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.work-card-small {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 250px;
    display: flex;
    align-items: flex-end;
    border: 2px solid var(--border-light);
    background: var(--primary-bg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card-small:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-teal);
}

.work-card-small img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-card-content-compact {
    position: relative;
    z-index: 2;
    padding: 20px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 60%, transparent 100%);
    width: 100%;
}

.work-title-sm {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 8px 0;
}

.link-cta-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.link-cta-sm:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* ==============================================================
   ABOUT PREVIEW SECTION
   ============================================================== */

.about-preview-section {
    padding: 120px 0;
    background: var(--primary-bg);
}

.about-preview-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-story {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-title-left {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    text-align: left;
    margin: 0;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.about-stats-grid .stat-card:last-child {
    grid-column: 1 / -1;
}

.location-marker {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.pulse-ring {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid var(--accent-teal);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: scale(0.8);
        opacity: 1;
    }
}

/* ==============================================================
   CTA SECTION
   ============================================================== */

.cta-section-new {
    padding: 120px 0;
    background: var(--gradient-section);
}

.cta-content {
    text-align: center;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.cta-card-new {
    background: var(--primary-bg);
    border: 2px solid var(--border-light);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.cta-card-new:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.cta-card-new.primary {
    border-color: var(--accent-purple);
}

.cta-card-new.primary:hover {
    box-shadow: var(--shadow-purple);
}

.cta-card-new.secondary {
    border-color: var(--accent-teal);
}

.cta-card-new.secondary:hover {
    box-shadow: var(--shadow-teal);
}

.cta-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--secondary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cta-card-new.primary .cta-card-icon {
    color: var(--accent-purple);
}

.cta-card-new.secondary .cta-card-icon {
    color: var(--accent-teal);
}

.cta-card-new:hover .cta-card-icon {
    transform: scale(1.1);
}

.cta-card-icon svg {
    width: 28px;
    height: 28px;
}

.cta-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.cta-card-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
}

.cta-services-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    flex-grow: 1;
}

/* ==============================================================
   FOOTER
   ============================================================== */

.footer-new {
    background: var(--text-primary);
    color: var(--secondary-bg);
    padding: 60px 0 30px;
    margin-top: 120px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-tagline {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--secondary-bg);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==============================================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================================== */

/* Mobile (< 768px) - Base styles above */
@media (max-width: 767px) {
    .hero-video {
        min-height: 100vh;
        padding: 120px 20px 80px;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .hero-cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-cta-buttons .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    /* Disable video on mobile for performance */
    .hero-video-element {
        display: none;
    }

    /* Show gradient background on mobile */
    .video-background {
        background: linear-gradient(
            135deg,
            rgba(151, 71, 255, 0.95) 0%,
            rgba(78, 205, 196, 0.85) 50%,
            rgba(255, 107, 107, 0.95) 100%
        );
    }

    /* Sections */
    .offerings-preview-section,
    .work-preview-section,
    .about-preview-section,
    .cta-section-new {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .capability-card {
        min-height: auto;
        padding: 32px 20px;
    }

    .capability-icon {
        width: 150px;
        height: 150px;
    }

    /* Work Preview */
    .work-preview-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .work-card-featured {
        min-height: 400px;
    }

    .work-grid-small {
        gap: 16px;
    }

    .work-card-small {
        min-height: 200px;
    }

    /* About Preview */
    .about-preview-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-story {
        text-align: center;
        align-items: center;
    }

    .section-title-left {
        text-align: center;
    }

    .about-stats-grid {
        grid-template-columns: 1fr;
    }

    .about-stats-grid .stat-card:last-child {
        grid-column: 1;
    }

    /* CTA Section */
    .cta-cards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Footer */
    .footer-new {
        margin-top: 60px;
        padding: 40px 0 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-layout {
        gap: 60px;
        padding: 0 32px;
    }

    .hero-illustration {
        max-width: 450px;
    }

    .capabilities-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .work-preview-grid {
        grid-template-columns: 1fr;
    }

    .work-grid-small {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .work-card-small:last-child {
        grid-column: 1 / -1;
    }

    .about-preview-layout {
        gap: 60px;
    }
}

/* Desktop (1024px - 1439px) */
@media (min-width: 1024px) {
    .hero-layout {
        padding: 0 40px;
    }

    .work-grid-small {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .hero-layout {
        max-width: 1600px;
        gap: 100px;
    }

    .container {
        max-width: 1400px;
    }

    .capabilities-grid {
        gap: 40px;
    }

    .work-preview-grid {
        gap: 40px;
    }

    .about-preview-layout {
        gap: 100px;
    }
}

/* Ultra Wide (1920px+) */
@media (min-width: 1920px) {
    .hero-layout {
        max-width: 1800px;
    }

    .container {
        max-width: 1600px;
    }
}

/* Landscape Mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .hero-new {
        min-height: auto;
        padding: 80px 0 60px;
    }

    .hero-layout {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .hero-visual {
        order: 1;
    }

    .hero-content {
        order: 2;
    }
}
