/* ===================================================================
   KOPYN HOMEPAGE STYLES - OPTIMIZED & CLEAN
   Version: 2.1 - Fixed cursor issues and checked for errors
=================================================================== */

/* ===================================================================
   HEADER STYLES
=================================================================== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 1.5rem;
    text-decoration: none;
    color: #333;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 10px;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

nav a:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.demo-btn, 
.login-btn {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.demo-btn:hover, 
.login-btn:hover {
    background: linear-gradient(135deg, #1e40af, #1d4ed8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* ===================================================================
   HERO SECTION
=================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding-top: 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    overflow: hidden;
}

/* Hero Content */
.hero-content {
    max-width: 600px;
}

.pre-heading {
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.hero-heading {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
}

.hero-subheading {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Button Styles */
.btn-primary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* ===================================================================
   HERO VISUAL EFFECTS - QUESTION CARDS
=================================================================== */
.hero-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px;
    align-content: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* Particle Effect Background */
.hero-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px, 60px 60px, 80px 80px;
    animation: sparkle 15s linear infinite;
    pointer-events: none;
}

@keyframes sparkle {
    from { transform: translateX(0); }
    to { transform: translateX(20px); }
}

/* Question Cards */
.visual-element {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 240px;
    position: relative;
}

.visual-element:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Staggered Animation */
.element-1 { animation-delay: 0.1s; }
.element-2 { animation-delay: 0.2s; }
.element-3 { animation-delay: 0.3s; }
.element-4 { animation-delay: 0.4s; }

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

/* Question Card Content */
.question-card {
    color: white;
    font-weight: 500;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    height: 100%;
    justify-content: center;
}

.question-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
}

.question-text {
    font-size: 1.1rem;
    line-height: 1.4;
    text-align: center;
    max-width: 95%;
    margin: 0 auto;
    font-weight: 500;
}

/* ===================================================================
   SERVICES SECTION
=================================================================== */
.services {
    padding: 80px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.service-description {
    color: #666;
    line-height: 1.6;
}

/* ===================================================================
   PROCESS SECTION
=================================================================== */
.process {
    padding: 80px 0;
    background: #f8fafc;
}

.process-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.process-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.process-description {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 40px;
}

.process-steps {
    list-style: none;
}

.process-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.step-number {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.step-content p {
    color: #666;
    line-height: 1.6;
}

/* Process Visual - Stairs Style */
.process-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.flow-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.stairs-container {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
    height: 280px;
    width: 400px;
}

.flow-node {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: stairFloat 3s ease-in-out infinite;
    transition: transform 0.3s ease;
    width: 80px;
    position: relative;
}

.flow-node:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
}

.node-1 { height: 70px; animation-delay: 0s; }
.node-2 { height: 120px; animation-delay: 0.3s; }
.node-3 { height: 170px; animation-delay: 0.6s; }
.node-4 { height: 220px; animation-delay: 0.9s; }

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

/* ===================================================================
   CTA SECTION
=================================================================== */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    text-align: center;
}

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

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.cta-description {
    font-size: 1.125rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.btn-light {
    background: white;
    color: #1e40af;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-light:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* ===================================================================
   FOOTER
=================================================================== */
footer {
    background: #1e293b;
    color: white;
    padding: 60px 0 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 12px;
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-description {
    color: #94a3b8;
    line-height: 1.6;
}

.footer-section h3 {
    color: #3b82f6;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
}

.contact-icon {
    color: #3b82f6;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #334155;
    text-align: center;
    color: #64748b;
}

/* ===================================================================
   CURSOR FIXES - Remove pointer from non-clickable elements
=================================================================== */

/* Fix for question cards in hero section */
.question-card,
.question-card *,
.visual-element,
.visual-element * {
    cursor: default !important;
}

/* Fix for process flow nodes */
.flow-node,
.flow-node *,
.stairs-container,
.stairs-container *,
.node-1,
.node-2, 
.node-3,
.node-4 {
    cursor: default !important;
}

/* Additional safety net for any other non-interactive elements */
.hero-visual,
.hero-visual *,
.process-visual,
.process-visual *,
.flow-container,
.flow-container * {
    cursor: default !important;
}

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

/* Large Tablets and Small Laptops (1024px and down) */
@media (max-width: 1024px) {
    .hero-visual {
        gap: 25px;
        padding: 25px;
        max-width: 100%;
    }
    
    .visual-element {
        height: 220px;
        padding: 35px 25px;
        width: 100%;
        max-width: 320px;
    }
    
    .question-text {
        font-size: 1rem;
        line-height: 1.35;
    }
    
    .question-icon {
        font-size: 2.2rem;
        width: 60px;
        height: 60px;
    }
    
    .stairs-container {
        width: 350px;
        height: 240px;
        gap: 18px;
    }
    
    .flow-node {
        width: 70px;
        font-size: 1.6rem;
    }
    
    .node-1 { height: 60px; }
    .node-2 { height: 100px; }
    .node-3 { height: 140px; }
    .node-4 { height: 180px; }
}

/* Standard iPads (768px to 900px) */
@media (max-width: 900px) and (min-width: 769px) {
    .hero-visual {
        gap: 20px;
        padding: 20px;
    }
    
    .visual-element {
        height: 200px;
        padding: 30px 20px;
        max-width: 280px;
    }
    
    .question-text {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .question-icon {
        font-size: 2rem;
        width: 55px;
        height: 55px;
    }
}

/* Mobile and Small Tablets (768px and down) */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-visual {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
        order: -1;
    }
    
    .visual-element {
        height: 180px;
        padding: 25px 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .question-text {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .question-icon {
        font-size: 1.8rem;
        width: 50px;
        height: 50px;
    }

    .hero-heading {
        font-size: 2.5rem;
    }
    
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .process-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }

    .stairs-container {
        width: 300px;
        height: 200px;
        gap: 15px;
    }
    
    .flow-node {
        width: 60px;
        font-size: 1.2rem;
    }
    
    .node-1 { height: 50px; }
    .node-2 { height: 80px; }
    .node-3 { height: 110px; }
    .node-4 { height: 140px; }
}

/* Small Mobile (480px and down) */
@media (max-width: 480px) {
    .visual-element {
        height: 160px;
        padding: 20px 15px;
    }
    
    .question-text {
        font-size: 0.85rem;
    }
    
    .question-icon {
        font-size: 1.6rem;
        width: 45px;
        height: 45px;
    }
    
    .hero-heading {
        font-size: 2rem;
    }
    
    .section-title,
    .cta-title {
        font-size: 1.75rem;
    }
}

/* ===================================================================
   PERFORMANCE OPTIMIZATIONS
=================================================================== */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* GPU acceleration for smooth animations */
.visual-element,
.flow-node,
.service-card {
    will-change: transform;
    transform: translateZ(0);
}

/* Optimize font loading */
.hero-heading,
.section-title,
.cta-title {
    font-display: swap;
}