/* MARSWAYS - Components CSS */

/* Footer */
.footer { background: #050505; border-top: 1px solid var(--border-color); padding: 4rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 3rem; margin-bottom: 3rem; }
.footer-brand { max-width: 280px; }
.footer-logo { height: 42px; margin-bottom: 1rem; }
.footer-tagline { color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.7; font-size: 0.95rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--bg-glass); border: 1px solid var(--border-color); border-radius: var(--radius-md); color: var(--text-secondary); transition: var(--transition); }
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: white; transform: translateY(-3px); }
.footer-column h4 { font-size: 1rem; margin-bottom: 1rem; color: var(--text-primary); }
.footer-column ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-column a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-column a:hover { color: var(--primary); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid var(--border-color); flex-wrap: wrap; gap: 1rem; }
.footer-copyright, .footer-made { color: var(--text-muted); font-size: 0.85rem; }
.footer-made .heart { color: var(--primary); }

@media (max-width: 968px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; max-width: 100%; text-align: center; }
    .footer-social { justify-content: center; }
}
@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-bottom { justify-content: center; text-align: center; }
}

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); width: calc(100% - 2rem); max-width: 750px; background: rgba(20, 20, 20, 0.95); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); border: 1px solid var(--border-glass); border-radius: var(--radius-xl); padding: 1.5rem; z-index: 10000; box-shadow: var(--shadow-lg); animation: slideUp 0.5s ease; }
.cookie-banner.hidden { display: none; }
@keyframes slideUp { from { opacity: 0; transform: translateX(-50%) translateY(100%); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.cookie-content { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cookie-text { flex: 1; min-width: 200px; }
.cookie-text h4 { font-size: 1.1rem; margin-bottom: 0.25rem; display: flex; align-items: center; gap: 0.5rem; }
.cookie-text h4 i { color: var(--primary); }
.cookie-text p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.5; }
.cookie-text a { color: var(--primary); }
.cookie-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cookie-actions .btn { padding: 0.6rem 1.25rem; font-size: 0.9rem; }
@media (max-width: 640px) {
    .cookie-banner { bottom: 0.75rem; padding: 1.25rem; }
    .cookie-content { flex-direction: column; text-align: center; }
    .cookie-actions { width: 100%; justify-content: center; }
}

/* Contact Form */
.contact-section { padding: 5rem 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.contact-info h2 { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; margin-bottom: 1rem; }
.contact-info > p { color: var(--text-secondary); margin-bottom: 2rem; line-height: 1.7; }
.contact-methods { display: flex; flex-direction: column; gap: 1rem; }
.contact-method { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem; background: var(--bg-glass); border: 1px solid var(--border-color); border-radius: var(--radius-lg); transition: var(--transition); }
.contact-method:hover { border-color: var(--primary); }
.method-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: rgba(255, 77, 77, 0.1); border-radius: var(--radius-md); flex-shrink: 0; }
.method-icon i { font-size: 1.25rem; color: var(--primary); }
.method-content h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.method-content p { color: var(--text-secondary); font-size: 0.9rem; }
.contact-form-wrapper { background: var(--bg-glass); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.form-group label .required { color: var(--primary); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.875rem; background: rgba(255,255,255,0.03); border: 1px solid var(--border-color); border-radius: var(--radius-md); color: var(--text-primary); font-family: inherit; font-size: 1rem; transition: var(--transition); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.1); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 968px) {
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
}

/* Legal Pages */
.legal-page { padding: calc(80px + 3rem) 0 4rem; }
.legal-header { text-align: center; margin-bottom: 2rem; }
.legal-header h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: 0.5rem; }
.last-updated { display: inline-block; padding: 0.4rem 1rem; background: rgba(255, 77, 77, 0.1); border-radius: var(--radius-full); color: var(--primary); font-size: 0.85rem; }
.legal-content { max-width: 850px; margin: 0 auto; padding: 2rem; background: var(--bg-glass); border: 1px solid var(--border-color); border-radius: var(--radius-xl); }
.legal-content h2, .legal-content h3 { font-family: 'Space Grotesk', sans-serif; margin: 2rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border-color); }
.legal-content h2 { font-size: 1.5rem; }
.legal-content h3 { font-size: 1.25rem; border-bottom: none; color: var(--primary); }
.legal-content p { color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.8; }
.legal-content ul { margin: 1rem 0; padding-left: 1.5rem; }
.legal-content ul li { color: var(--text-secondary); margin-bottom: 0.5rem; position: relative; padding-left: 1rem; }
.legal-content ul li::before { content: '•'; color: var(--primary); position: absolute; left: 0; }
.legal-content a { color: var(--primary); }
.legal-content a:hover { text-decoration: underline; }
.legal-content strong { color: var(--text-primary); }
.toc { background: rgba(255,255,255,0.02); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 2rem; }
.toc h4 { font-size: 1rem; margin-bottom: 1rem; color: var(--primary); }
.toc ol { padding-left: 1.25rem; columns: 2; column-gap: 2rem; }
.toc li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.toc a { color: var(--text-secondary); }
.toc a:hover { color: var(--primary); }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* About Page - New Design */
.about-hero-new {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(80px + 4rem) 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}

.about-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 77, 77, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.about-tagline {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.about-headline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.about-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Story Section */
.about-story {
    padding: 5rem 0;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 3rem;
}

.story-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.story-image img {
    width: 100%;
    height: auto;
    display: block;
}

.story-stats-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.story-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--primary);
    margin-bottom: 1rem;
}

.story-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.story-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.story-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--primary);
}

.stat-card .stat-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-card .stat-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Values Section */
.about-values {
    padding: 5rem 0;
    background: rgba(255, 255, 255, 0.01);
}

.values-header,
.skills-header {
    margin-bottom: 3rem;
}

.values-label,
.skills-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--primary);
    margin-bottom: 1rem;
}

.values-header h2,
.skills-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
}

.values-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.value-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.value-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.value-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 77, 77, 0.1);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.value-icon i {
    font-size: 1.25rem;
    color: var(--primary);
}

.value-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.value-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Skills Section */
.about-skills {
    padding: 5rem 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill-category {
    padding: 1.5rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.skill-category h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category h4 i {
    color: var(--primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tags span {
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.skill-tags span:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

/* CTA Section */
.about-cta {
    padding: 5rem 0;
}

.cta-box {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.1) 0%, rgba(255, 77, 77, 0.05) 100%);
    border: 1px solid rgba(255, 77, 77, 0.2);
    border-radius: var(--radius-xl);
}

.cta-box h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .story-image {
        order: -1;
    }
    
    .story-stats-row {
        flex-wrap: wrap;
    }
    
    .stat-card {
        flex: 1;
        min-width: 100px;
    }
    
    .values-list,
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .value-item {
        flex-direction: column;
        text-align: center;
    }
    
    .value-icon {
        margin: 0 auto;
    }
}

/* Legacy About Page Support */
.about-hero { padding: calc(80px + 3rem) 0 3rem; text-align: center; }
.about-hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2.5rem, 6vw, 3.5rem); margin-bottom: 1rem; }
.about-hero p { color: var(--text-secondary); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.about-content { padding: 3rem 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 4rem; }
.about-text h2 { font-family: 'Space Grotesk', sans-serif; font-size: 2rem; margin-bottom: 1rem; }
.about-text p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 1rem; }
.about-image { background: var(--bg-glass); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 2rem; display: flex; align-items: center; justify-content: center; min-height: 300px; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.value-card { background: var(--bg-glass); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 1.5rem; text-align: center; transition: var(--transition); }
.value-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.value-card i { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; }
.value-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.value-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* Careers Page */
.careers-hero { padding: calc(80px + 3rem) 0 3rem; text-align: center; }
.careers-hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2.5rem, 6vw, 3.5rem); margin-bottom: 1rem; }
.careers-hero p { color: var(--text-secondary); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-bottom: 4rem; }
.benefit-card { background: var(--bg-glass); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 1.5rem; text-align: center; transition: var(--transition); }
.benefit-card:hover { border-color: var(--primary); }
.benefit-card i { font-size: 2rem; color: var(--primary); margin-bottom: 1rem; display: block; }
.benefit-card h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.benefit-card p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; }
.job-card { background: var(--bg-glass); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 2rem; margin-bottom: 1.5rem; transition: var(--transition); }
.job-card:hover { border-color: var(--primary); }
.job-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.job-header h3 { font-size: 1.25rem; }
.job-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.job-tag { padding: 0.25rem 0.75rem; background: var(--bg-glass); border-radius: var(--radius-full); font-size: 0.8rem; color: var(--text-secondary); }
.job-tag.highlight { background: rgba(255, 77, 77, 0.1); color: var(--primary); }
.job-description { color: var(--text-secondary); margin-bottom: 1.5rem; line-height: 1.7; }
.job-details h4 { font-size: 0.95rem; margin-bottom: 0.75rem; color: var(--text-primary); }
.job-details ul { margin-bottom: 1.5rem; }
.job-details li { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 0.4rem; padding-left: 1rem; position: relative; }
.job-details li::before { content: '→'; color: var(--primary); position: absolute; left: 0; }

/* Scroll To Top */
.scroll-top { position: fixed; bottom: 2rem; right: 2rem; width: 48px; height: 48px; background: var(--primary-gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; cursor: pointer; opacity: 0; visibility: hidden; transition: var(--transition); z-index: 999; border: none; box-shadow: var(--shadow-glow); }
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-3px); }

/* Scroll Animations */
@keyframes fadeInUp { 
    from { opacity: 0; transform: translateY(40px); } 
    to { opacity: 1; transform: translateY(0); } 
}

@keyframes fadeInLeft { 
    from { opacity: 0; transform: translateX(-40px); } 
    to { opacity: 1; transform: translateX(0); } 
}

@keyframes fadeInRight { 
    from { opacity: 0; transform: translateX(40px); } 
    to { opacity: 1; transform: translateX(0); } 
}

@keyframes scaleIn { 
    from { opacity: 0; transform: scale(0.9); } 
    to { opacity: 1; transform: scale(1); } 
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Animation Classes */
.animate-fade-in { animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.animate-fade-left { animation: fadeInLeft 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.animate-fade-right { animation: fadeInRight 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.animate-scale-in { animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.animate-slide-up { animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* Scroll-triggered animation base state */
[data-animate] {
    opacity: 0;
}

[data-animate="fade-up"] {
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate="fade-left"] {
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate="fade-right"] {
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate="scale"] {
    transform: scale(0.95);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Stagger delays for children */
[data-animate-stagger] > *:nth-child(1) { transition-delay: 0.05s; }
[data-animate-stagger] > *:nth-child(2) { transition-delay: 0.1s; }
[data-animate-stagger] > *:nth-child(3) { transition-delay: 0.15s; }
[data-animate-stagger] > *:nth-child(4) { transition-delay: 0.2s; }
[data-animate-stagger] > *:nth-child(5) { transition-delay: 0.25s; }

/* Hero entrance animations */
.hero-content-side .hero-tagline {
    animation: fadeInUp 0.6s 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.hero-content-side .hero-headline {
    animation: fadeInUp 0.7s 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.hero-content-side .hero-description {
    animation: fadeInUp 0.7s 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.hero-content-side .hero-cta-group {
    animation: fadeInUp 0.7s 0.65s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.hero-visual {
    animation: scaleIn 1s 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.hero-brand-column {
    animation: fadeInUp 0.8s 0.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

/* Section entrance */
.projects-header {
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.project-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, border-color 0.3s ease;
}

.project-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}
