/* MARSWAYS DIGITAL STUDIOS - Main Styles */
:root {
    --primary: #ff4d4d;
    --primary-light: #ff6b6b;
    --primary-gradient: linear-gradient(135deg, #ff4d4d 0%, #ff8f8f 100%);
    --bg-dark: #0a0a0a;
    --bg-light: #141414;
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-strong: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-glass: rgba(255, 255, 255, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(255, 77, 77, 0.3);
    --transition: 0.3s ease;
    --max-width: 1200px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg-dark); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; }

::selection { background: var(--primary); color: white; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.text-gradient { background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent; display: inline; }
.glass { background: var(--bg-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border-glass); }

/* Navigation */
.navbar { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 1000; 
    padding: 1rem 0; 
    transition: var(--transition); 
}

.navbar.scrolled { 
    background: rgba(10, 10, 10, 0.95); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color); 
}

.navbar-container { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    max-width: var(--max-width); 
    margin: 0 auto; 
    padding: 0 1.5rem; 
}

.navbar-brand { 
    display: flex; 
    align-items: center; 
}

.navbar-logo { 
    height: 36px; 
    width: auto; 
    opacity: 0;
    transform: translateY(-20px) scale(0.8);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.navbar.scrolled .navbar-logo {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.navbar-menu { 
    display: flex; 
    align-items: center; 
    gap: 2rem; 
}

.nav-link { 
    color: var(--text-secondary); 
    font-weight: 500; 
    font-size: 0.9rem; 
    transition: var(--transition); 
}

.nav-link:hover,
.nav-link.active { 
    color: var(--text-primary); 
}

/* Language Switcher */
.lang-switcher { 
    display: flex; 
    gap: 0.25rem; 
    padding: 4px; 
    background: var(--bg-glass); 
    border-radius: var(--radius-full); 
    border: 1px solid var(--border-color); 
    margin-left: 0.5rem;
}

.lang-btn { 
    padding: 6px 12px; 
    font-size: 0.8rem; 
    font-weight: 500; 
    color: var(--text-secondary); 
    border-radius: var(--radius-full); 
    transition: 0.2s ease; 
}

.lang-btn.active { 
    background: var(--primary); 
    color: white; 
}

.lang-btn:hover:not(.active) { 
    color: var(--text-primary); 
}

/* Mobile Toggle */
.navbar-toggle { 
    display: none; 
    flex-direction: column; 
    gap: 5px; 
    padding: 10px; 
    cursor: pointer;
    z-index: 1001;
}

.navbar-toggle span { 
    width: 24px; 
    height: 2px; 
    background: var(--text-primary); 
    border-radius: 2px; 
    transition: var(--transition); 
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .navbar-menu { 
        position: fixed; 
        top: 0; 
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-dark); 
        flex-direction: column; 
        justify-content: center; 
        align-items: center;
        gap: 2rem; 
        opacity: 0;
        visibility: hidden;
        transition: var(--transition); 
    }
    
    .navbar-menu.active { 
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link { 
        font-size: 1.5rem; 
    }
    
    .navbar-toggle { 
        display: flex;
    }
    
    .navbar-toggle.active span:nth-child(1) { 
        transform: rotate(45deg) translate(5px, 5px); 
    }
    
    .navbar-toggle.active span:nth-child(2) { 
        opacity: 0; 
    }
    
    .navbar-toggle.active span:nth-child(3) { 
        transform: rotate(-45deg) translate(5px, -5px); 
    }
    
    .lang-switcher { 
        margin: 1rem 0 0; 
    }
}

/* Hero Section - Moonsworth Style */
.hero { 
    min-height: 100vh; 
    display: flex; 
    position: relative; 
    overflow: hidden; 
    background: var(--bg-dark);
}

/* Center Brand Column (Logo + Vertical Text) */
.hero-brand-column {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1.5rem;
    z-index: 10;
    pointer-events: none;
}

.hero-center-logo {
    width: 40px;
    height: auto;
    margin-bottom: 2rem;
    opacity: 0.9;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Hide center logo when navbar is scrolled */
body.scrolled .hero-center-logo {
    opacity: 0;
    transform: translateY(-50px) scale(0.5);
}

/* Vertical Brand Text */
.hero-vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.06);
    white-space: nowrap;
    text-transform: uppercase;
}

/* Stars Background */
.hero-stars {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 200px 50px, rgba(255,255,255,0.15), transparent),
        radial-gradient(1px 1px at 250px 100px, rgba(255,255,255,0.25), transparent),
        radial-gradient(2px 2px at 300px 70px, rgba(255,255,255,0.2), transparent);
    background-size: 350px 150px;
    animation: twinkle 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Split Layout */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 100vh;
}

/* Left Side - Image */
.hero-image-side {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

.hero-image-side::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, var(--bg-dark));
    pointer-events: none;
}

.hero-visual {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    filter: brightness(0.9);
    transform: translateX(-10%);
}

/* Right Side - Content */
.hero-content-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 4rem 4rem 2rem;
    position: relative;
    z-index: 1;
}

.hero-tagline {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-headline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.btn-explore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.btn-explore:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.btn-ghost i {
    font-size: 0.7rem;
    transition: var(--transition);
}

.btn-ghost:hover i {
    transform: translateX(4px);
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .hero-brand-column {
        display: none;
    }
    
    .hero-split {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    
    .hero-image-side {
        height: 50vh;
        padding-top: calc(80px + 2rem);
    }
    
    .hero-image-side::after {
        width: 100%;
        height: 50%;
        top: auto;
        bottom: 0;
        right: 0;
        background: linear-gradient(to bottom, transparent, var(--bg-dark));
    }
    
    .hero-visual {
        transform: none;
        max-height: 60vh;
    }
    
    .hero-content-side {
        padding: 2rem 1.5rem 4rem;
        text-align: center;
        align-items: center;
    }
    
    .hero-description {
        max-width: 100%;
    }
}

/* Legacy support for other pages */
.hero-content { max-width: 700px; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: var(--bg-glass); border: 1px solid var(--border-color); border-radius: var(--radius-full); margin-bottom: 1.5rem; font-size: 0.9rem; color: var(--text-secondary); }
.hero-badge i { color: var(--primary); }
.hero-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2.5rem, 7vw, 4.5rem); font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.875rem 1.75rem; font-size: 1rem; font-weight: 600; border-radius: var(--radius-lg); transition: var(--transition); cursor: pointer; }
.btn-primary { background: var(--primary-gradient); color: white; border: none; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.btn-secondary { background: var(--bg-glass); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: var(--bg-glass-strong); border-color: var(--primary); }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }

/* Section Headers */
.section-header { text-align: center; max-width: 650px; margin: 0 auto 3rem; }
.section-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: rgba(255, 77, 77, 0.1); border: 1px solid rgba(255, 77, 77, 0.3); border-radius: var(--radius-full); color: var(--primary); font-size: 0.85rem; font-weight: 500; margin-bottom: 1rem; }
.section-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 5vw, 2.5rem); font-weight: 700; margin-bottom: 1rem; }
.section-description { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.7; }

/* Services Grid */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.service-card { background: var(--bg-glass); border: 1px solid var(--border-color); border-radius: var(--radius-xl); padding: 2rem; transition: var(--transition); position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--primary-gradient); transform: scaleX(0); transform-origin: left; transition: var(--transition); }
.service-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: rgba(255, 77, 77, 0.1); border-radius: var(--radius-lg); margin-bottom: 1rem; }
.service-icon i { font-size: 1.5rem; color: var(--primary); }
.service-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.service-card p { color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.7; }
.service-features { display: flex; flex-direction: column; gap: 0.5rem; }
.service-features li { display: flex; align-items: center; gap: 0.5rem; color: var(--text-muted); font-size: 0.9rem; }
.service-features li::before { content: '→'; color: var(--primary); }

/* Projects Section - Moonsworth Style */
.projects-section {
    padding: 6rem 0;
    background: var(--bg-dark);
    position: relative;
}

.projects-header {
    margin-bottom: 3rem;
}

.projects-tagline {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.projects-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
}

/* Project List */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Project Item */
.project-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    text-decoration: none;
}

.project-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateX(8px);
}

.project-item-image {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    flex-shrink: 0;
}

.project-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.project-item-content {
    flex: 1;
    min-width: 0;
}

.project-item-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.project-item-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.project-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.project-item-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition);
    flex-shrink: 0;
}

.project-item:hover .project-item-arrow {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateX(4px);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .project-item {
        grid-template-columns: 60px 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .project-item-image {
        width: 60px;
        height: 60px;
    }
    
    .project-item-arrow {
        display: none;
    }
    
    .project-item-header h3 {
        font-size: 1.1rem;
    }
    
    .project-item-content p {
        font-size: 0.85rem;
    }
}

/* Legacy Projects Grid (for other pages) */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.project-card { background: var(--bg-glass); border: 1px solid var(--border-color); border-radius: var(--radius-xl); overflow: hidden; transition: var(--transition); }
.project-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: var(--shadow-lg); }
.project-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--primary); font-weight: 500; }
.project-link:hover { gap: 0.75rem; }
