@layer legacy{/* 
   Asfan Company Mixed Reality Landing Page
   Main Stylesheet (With Email Form Integration)
*/

/* ===== Base Styles ===== */
.legacy {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #d946ef;
    --dark: #1e1b4b;
    --light: #f8fafc;
    --gray: #64748b;
    --gradient: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.legacy * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.legacy {
    scroll-behavior: smooth;
}


.legacy h6, .legacy .h6, .legacy h5, .legacy .h5, .legacy h4, .legacy .h4, .legacy h3, .legacy .h3, .legacy h2, .legacy .h2, .legacy h1, .legacy .h1 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--si-heading-color);
}

.legacy h1, .legacy .h1 {
  font-size: calc(1.375rem + 1.5vw);
}
@media (min-width: 1200px) {
  .legacy h1, .legacy .h1 {
    font-size: 2.5rem;
  }
}

.legacy h2, .legacy .h2 {
  font-size: calc(1.325rem + 0.9vw);
}
@media (min-width: 1200px) {
  .legacy h2, .legacy .h2 {
    font-size: 2rem;
  }
}

.legacy h3, .legacy .h3 {
  font-size: calc(1.3rem + 0.6vw);
}
@media (min-width: 1200px) {
  .legacy h3, .legacy .h3 {
    font-size: 1.75rem;
  }
}

.legacy h4, .legacy .h4 {
  font-size: calc(1.275rem + 0.3vw);
}
@media (min-width: 1200px) {
  .legacy h4, .legacy .h4 {
    font-size: 1.5rem;
  }
}

.legacy h5, .legacy .h5 {
  font-size: 1.25rem;
}

.legacy h6, .legacy .h6 {
  font-size: 1rem;
}

.legacy p {
    margin-bottom: 1rem;
}

.legacy a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

.legacy a:hover {
    color: var(--accent);
}

.legacy img {
    max-width: 100%;
    height: auto;
    display: block;
}



.legacy section {
    padding: 2rem 0;
}

.legacy .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.legacy .section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.legacy .section-header p {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

.legacy .gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.legacy .btn-primary1, .legacy .btn-secondary2 {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.legacy .btn-primary1 {
    background: var(--gradient);
    color: white;
    border: none;
}

.legacy .btn-primary1:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    color: white;
}

.legacy .btn-secondary2 {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.legacy .btn-secondary2:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

/* ===== Hero Section ===== */
.legacy .hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1), rgba(217, 70, 239, 0.1));
    overflow: hidden;
    padding-top: 2rem; /* Reduced padding since no navbar */
}

.legacy .hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.legacy .hero-content {
    flex: 1;
    max-width: 600px;
}

.legacy .hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.legacy .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--gray);
}

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

.legacy .hero-image {
    flex: 1;
    max-width: 600px;
    animation: float 6s ease-in-out infinite;
}

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

.legacy .particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ===== About Section ===== */
.legacy .about {
    background-color: white;
}

.legacy .about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.legacy .about-text {
    flex: 1;
}

.legacy .about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
    transition: transform 0.3s ease;
}

.legacy .about-image:hover {
    transform: scale(1.02);
}

/* ===== Services Section ===== */
.legacy .services {
    background-color: #f8f9ff;
}

.legacy .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.legacy .service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.legacy .service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.legacy .service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: 50%;
    font-size: 2rem;
    color: var(--primary);
}

.legacy .service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legacy .services-showcase {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

/* ===== Case Study Section ===== */
.legacy .case-study {
    background-color: white;
}

.legacy .case-study-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.legacy .case-study-text {
    flex: 1;
}

.legacy .case-study-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.legacy blockquote {
    font-style: italic;
    padding: 1rem 2rem;
    margin: 2rem 0;
    border-left: 4px solid var(--primary);
    background-color: rgba(99, 102, 241, 0.05);
    border-radius: 0 10px 10px 0;
}

.legacy .video-container {
    max-width: 800px;
    margin: 0 auto;
}

.legacy .video-player {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.legacy .video-player video {
    width: 100%;
    display: block;
    border-radius: 10px;
}

.legacy .video-caption {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: var(--gray);
    font-style: italic;
}

/* ===== Tech Section ===== */
.legacy .tech {
    background-color: #f8f9ff;
}

.legacy .tech-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.legacy .tech-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.legacy .tech-specs {
    flex: 1;
}

.legacy .tech-spec {
    margin-bottom: 2rem;
}

.legacy .tech-spec h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.legacy .spec-bar {
    height: 10px;
    background-color: rgba(99, 102, 241, 0.1);
    border-radius: 5px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.legacy .spec-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 5px;
    transition: width 1.5s ease;
}

.legacy .tech-spec p {
    font-size: 0.9rem;
    color: var(--gray);
}

/* ===== Portfolio Section ===== */
.legacy .portfolio {
    background-color: white;
}

.legacy .portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.legacy .filter-btn {
    padding: 0.5rem 1.5rem;
    background-color: transparent;
    border: 1px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.legacy .filter-btn:hover,
.legacy .filter-btn.active {
    background-color: var(--primary);
    color: white;
}

.legacy .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.legacy .portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.legacy .portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.legacy .portfolio-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.legacy .portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.legacy .portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.legacy .portfolio-overlay h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.legacy .portfolio-overlay p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* ===== CTA Section ===== */
.legacy .cta {
    position: relative;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 3rem 0;
}

.legacy .cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 27, 75, 0.8);
    z-index: 1;
}

.legacy .cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.legacy .cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #f8f9ff;
}

.legacy .cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.legacy .contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.legacy .form-group {
    margin-bottom: 1rem;
}

.legacy .form-group:nth-child(3),
.legacy .form-group:nth-child(4),
.legacy .contact-form button {
    grid-column: span 2;
}

.legacy .contact-form input,
.legacy .contact-form select,
.legacy .contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Inter', sans-serif;
}

.legacy .contact-form input::placeholder,
.legacy .contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.legacy .contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

.legacy .contact-form select option {
    background-color: var(--dark);
    color: white;
}

.legacy .contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.legacy .contact-form button {
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1rem;
}

/* Form submission styles */
.legacy .contact-form.submitting button {
    position: relative;
    color: transparent;
}

.legacy .loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
    left: calc(50% - 10px);
    top: calc(50% - 10px);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Animations ===== */
.legacy .animate-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.5s;
}

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

/* ===== Responsive Styles ===== */
@media (max-width: 1024px) {
    .legacy .section-header h2 {
        font-size: 2.2rem;
    }
    
    .legacy .hero-content h1 {
        font-size: 3rem;
    }
    
    .legacy .about-content,
    .legacy .case-study-content,
    .legacy .tech-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .legacy .about-image,
    .legacy .case-study-image,
    .legacy .tech-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .legacy section {
        padding: 4rem 0;
    }
    
    .legacy .section-header {
        margin-bottom: 3rem;
    }
    
    .legacy .section-header h2 {
        font-size: 2rem;
    }
    
    .legacy .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .legacy .hero-content {
        margin-bottom: 3rem;
    }
    
    .legacy .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .legacy .section-header h2 {
        font-size: 1.8rem;
    }
    
    .legacy .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .legacy .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .legacy .contact-form {
        grid-template-columns: 1fr;
    }
    
    .legacy .form-group:nth-child(3),
    .legacy .form-group:nth-child(4),
    .legacy .contact-form button {
        grid-column: span 1;
    }
    
    .legacy .portfolio-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .legacy .filter-btn {
        width: 100%;
        text-align: center;
    }
}
}