/* Features Page Styles */
/* Navbar styling now handled by global navbar rules in style.css */

/* Features Hero Section */
.features-hero {
    min-height: 30vh;
    background-color: #1e293b;
    background-image: 
        linear-gradient(to bottom, rgba(30, 41, 59, 0.8) 0%, rgba(30, 41, 59, 0.9) 100%),
        url('assets/background.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.features-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(to bottom, rgba(30, 41, 59, 0.8) 0%, rgba(30, 41, 59, 0.9) 100%),
        url('assets/background.png');
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    z-index: -1;
}

.hero-layout-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4.6rem;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 6rem 0;
}

.hero-layout-container .hero-content {
    flex: 1.1;
}

.features-hero-title-main {
    font-size: 3.5rem;
    font-weight: 700;
    color: #000000;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.features-hero-subtitle-main {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-layout-container .hero-animation-wrapper {
    flex: 1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    text-align: left;
}

.hero-animation-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    position: relative;
}

#resizable-screen {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 570px;
    height: 400px;
    background: rgba(0, 150, 255, 0.4);
    border: 2px solid #0096ff;
    cursor: move;
}

.resize-handle {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 10px;
    height: 10px;
    background: #0096ff;
    cursor: nwse-resize;
}

/* Segmented Control Styles */
.segmented-control {
    display: flex;
    background-color: #f1f5f9;
    border-radius: 0.75rem;
    padding: 0.25rem;
    margin-bottom: 2rem;
    position: relative;
    width: fit-content;
    animation: spawn-effect 0.6s ease-out forwards;
    transform-origin: center;
}

.sg-glider {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    height: calc(100% - 0.5rem);
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.sg-control {
    padding: 0.75rem 1.5rem;
    border: none;
    background-color: transparent;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.sg-control.active {
    background-color: transparent;
    color: #1e293b;
    box-shadow: none;
}

#generate-code-btn {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

.features-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    /* text-align: center; */
    position: relative;
    z-index: 1;
}

.ipad-placeholder {
    animation: spawn-effect 0.6s ease-out forwards;
    transform-origin: center;
}

#ipad_body {
    stroke: #000;
    stroke-width: 1;
    fill: #000;
}

#ipad_screen {
    stroke: transparent;
    stroke-width: 1;
    fill: url(#screen-image);
}

#ipad_camera {
    stroke: #333333;
    stroke-width: 0.5;
    fill: #333333;
}

@keyframes spawn-effect {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.features-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.features-hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e0;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.company-input-container {
    position: relative;
    width: 72%;
}

.company-input-label {
    display: block;
    color: #000000;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.company-input-field {
    width: 100%;
    padding: 1rem 1.15rem;
    background-color: transparent;
    border: 1px solid #4b5563;
    border-radius: 0.5rem;
    color: #000000;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.company-input-field::placeholder {
    color: #9ca3af;
}

.company-input-field:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 1px #6366f1;
}

.suggestions-container {
    position: absolute;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    width: 100%;
    box-sizing: border-box;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    display: none; /* Hidden by default */
    margin-top: 0.5rem;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    color: #1e293b;
}

.suggestion-item:hover {
    background-color: #f8fafc;
}

.suggestion-item.active {
    background-color: #f1f5f9;
}

#screen-background,
#scan-id-rect,
#contactor_entry,
#member_join,
#manual-entry-rect,
#member-entry-rect,
#Welcome,
#please-select-a-sign-in-method {
    transition: fill 0.4s ease-in-out;
}

#venue-logo {
    transition: opacity 0.4s ease-in-out;
}

.animation-paused * {
    animation: none !important;
}

.features-hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

/* Features Grid Section */
.features-grid-section {
    padding: 6rem 0;
}

.features-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

/* Feature Cards */
.feature-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

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

.feature-icon i {
    color: #ffffff;
    width: 28px;
    height: 28px;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-description {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.feature-learn-more {
    color: #6366f1;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.feature-learn-more:hover {
    color: #4f46e5;
}

.feature-learn-more i {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-learn-more i {
    transform: translateX(4px);
}

/* Modal Styles */
.feature-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.feature-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #ffffff;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.feature-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-close i {
    width: 20px;
    height: 20px;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.modal-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.5;
}

.modal-body {
    padding: 2rem;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h4 {
    color: #1e293b;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-section h4 i {
    width: 20px;
    height: 20px;
    color: #6366f1;
}

.modal-section p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.modal-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-section li {
    color: #64748b;
    line-height: 1.6;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.modal-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 600;
}

.modal-cta {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.modal-cta h5 {
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.modal-cta .cta-button {
    margin-top: 1rem;
}

/* Features CTA Section */
.features-cta {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 4rem 0;
    text-align: center;
}

.features-cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.features-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.features-cta p {
    font-size: 1.25rem;
    color: #cbd5e0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.features-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

/* New Feature Card Styles */
.features-container {
    max-width: 1320px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    min-height: 360px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.image-placeholder {
    width: calc(100% - 8px);
    height: 140px;
    background-color: #e9ecef;
    margin: 4px;
    border-radius: 8px;
    flex-shrink: 0;
}

.content {
    padding: 16px 24px;
    background: white;
    transition: transform 0.3s ease;
    border-radius: 0 0 12px 12px;
    flex-grow: 1;
    padding-bottom: 50px;
}

.card:hover .content {
    transform: translateY(-50px);
}

.title {
    font-size: 28px;
    font-weight: 600;
    color: #1a1f36;
    line-height: 1.3;
    margin-bottom: 20px;
}

.description {
    font-size: 16px;
    line-height: 1.6;
    color: #6b7280;
    mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
    transition: mask-image 0.3s ease;
}

.card:hover .description {
    mask-image: linear-gradient(to bottom, black 100%, transparent 100%);
}

.link {
    color: #635bff;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.see-details {
    position: absolute;
    bottom: 20px;
    left: 24px;
    right: 24px;
    background: none;
    color: #635bff;
    border: none;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    text-decoration: none;
}

.see-details:hover {
    color: #000;
    text-decoration: none;
}

.see-details .svg-container {
    width: 10px;
    height: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: 1px;
    transition: transform 0.1s ease-in-out;
}

.see-details:hover .svg-container {
    transform: translateX(4px);
}

.see-details .svg-container svg {
    width: 100%;
    height: 100%;
}

.see-details .svg-container #stem {
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
}

.see-details:hover .svg-container #stem {
    opacity: 1;
}

.card:hover .see-details {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-layout-container {
        display: none;
    }

    .features-container {
        padding-top: 6rem;
    }

    .features-hero-title {
        font-size: 2.5rem;
    }
    
    .features-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .features-hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .features-cta h2 {
        font-size: 2rem;
    }
    
    .features-cta p {
        font-size: 1.1rem;
    }
    
    .features-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-content {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        height: 320px;
    }
    
    .content {
        padding: 12px 20px;
        top: 148px;
    }
    
    .title {
        font-size: 24px;
    }
    
    .see-details {
        left: 20px;
        right: auto;
    }
}

@media (max-width: 480px) {
    .features-hero-container {
        padding: 6rem 1rem 3rem;
    }
    
    .features-grid-container {
        padding: 0 1rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon i {
        width: 24px;
        height: 24px;
    }
    
    .feature-title {
        font-size: 1.25rem;
    }
    
    .modal-content {
        margin: 0.5rem;
        border-radius: 16px;
    }
    
    .modal-header {
        padding: 1.25rem;
        border-radius: 16px 16px 0 0;
    }
    
    .modal-body {
        padding: 1.25rem;
    }
} 