/*
Theme Name: Ambasa Studio Theme
Theme URI: https://ambasa.site
Description: Custom WordPress theme inspired by Studio Feixen design - clean, minimal, and modern
Version: 1.0.0
Author: Your Name
Author URI: https://ambasa.site
Tags: minimal, modern, clean, custom
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000;
    --bg-color: #fff;
    --text-color: #000;
    --hover-color: #333;
    --transition: 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* Container */
.site-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-color);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.site-header.scrolled {
    border-bottom: 1px solid #eee;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Header Left Section - Logo SS, SS Studio, VFX, Cube */
.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.header-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity var(--transition);
}

.header-logo-link:hover {
    opacity: 0.7;
}

.header-logo-ss,
.header-logo-vfx,
.header-logo-cube {
    height: 32px;
    width: auto;
    display: block;
    object-fit: contain;
}

.site-logo {
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-color);
    letter-spacing: -0.5px;
    transition: color var(--transition);
}

.site-logo:hover {
    color: var(--hover-color);
}

/* Main Navigation */
.main-nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.main-nav-item {
    font-size: 18px;
    text-decoration: none;
    color: var(--text-color);
    transition: color var(--transition);
    font-weight: 400;
}

.main-nav-item:hover {
    color: var(--hover-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

/* Video Hero Section */
.video-hero-section {
    width: 100%;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    background: #000;
}

.video-hero-container {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    overflow: hidden;
}

.video-hero {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

/* Main Content */
.main-content {
    margin-top: 0;
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    text-align: center;
}

.hero-title {
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 300;
    letter-spacing: -2px;
    margin-bottom: 40px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 300;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Section Styles */
.content-section {
    padding: 80px 0;
}

.section-title {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 300;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

/* Typography Display Section */
.font-display-section {
    background: #f9f9f9;
    padding: 100px 0;
    margin: 80px 0;
}

.font-input-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.font-input-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 20px;
    display: block;
}

.font-input {
    width: 100%;
    padding: 20px;
    font-size: 48px;
    font-weight: 300;
    border: none;
    border-bottom: 2px solid var(--text-color);
    background: transparent;
    text-align: center;
    outline: none;
    font-family: inherit;
}

.font-input::placeholder {
    color: #ccc;
}

.instructions {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

/* Quick Links */
.quick-links-section {
    padding: 60px 0;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.quick-link-card {
    text-decoration: none;
    color: var(--text-color);
    transition: transform var(--transition);
    border: 1px solid #eee;
    padding: 40px;
    display: block;
}

.quick-link-card:hover {
    transform: translateY(-5px);
    border-color: var(--text-color);
}

.quick-link-title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 15px;
}

.quick-link-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Newsletter Section */
.newsletter-section {
    background: #1d1d1d;
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.newsletter-content,
.newsletter-success {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 300;
    margin-bottom: 20px;
    color: #fff;
}

.newsletter-desc {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 40px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: none;
    background: #2d2d2d;
    color: #fff;
    outline: none;
    font-family: inherit;
    transition: background var(--transition);
}

.newsletter-input::placeholder {
    color: #999;
}

.newsletter-input:focus {
    background: #3d3d3d;
}

.newsletter-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.newsletter-submit {
    padding: 15px 30px;
    background: #fff;
    color: #1d1d1d;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background var(--transition);
    font-weight: 500;
    margin-top: 10px;
}

.newsletter-submit:hover {
    background: #e0e0e0;
}

.newsletter-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.newsletter-success-message {
    font-size: 18px;
    color: #fff;
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Works/Portfolio Section */
.works-section {
    padding: 80px 0;
    background: #f5f5f5;
}

.works-header {
    margin-bottom: 60px;
}

.works-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.works-nav-link {
    font-size: 16px;
    text-decoration: none;
    color: var(--text-color);
    transition: color var(--transition);
    cursor: pointer;
}

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

.works-filter-icons {
    display: flex;
    gap: 15px;
    margin-left: auto;
}

.filter-icon {
    font-size: 18px;
    text-decoration: none;
    color: #999;
    transition: color var(--transition);
    cursor: pointer;
}

.filter-icon:hover,
.filter-icon.active {
    color: var(--text-color);
}

.works-title {
    font-size: clamp(48px, 6vw, 96px);
    font-weight: 300;
    letter-spacing: -2px;
    text-align: center;
    margin: 0;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 60px;
}

.works-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: #fff;
    cursor: pointer;
}

.works-item-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.works-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.works-item:hover .works-item-image {
    transform: scale(1.05);
}

.works-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    color: #999;
    font-size: 18px;
    text-align: center;
    padding: 20px;
}

.works-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.works-load-message {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

.works-item.hidden {
    display: none;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 48px;
    cursor: pointer;
    line-height: 1;
    z-index: 10000;
    transition: opacity var(--transition);
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-caption {
    color: #fff;
    margin-top: 20px;
    font-size: 18px;
    text-align: center;
}

/* Footer */
.site-footer {
    padding: 80px 0 60px;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-heading {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #666;
    text-transform: none;
    letter-spacing: 0;
}

.footer-text {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
}

.footer-email {
    display: inline-block;
    color: var(--text-color);
    text-decoration: none;
    transition: opacity var(--transition);
}

.footer-email:hover {
    opacity: 0.7;
}

.footer-email svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-color);
}

/* Social Icons Grid */
.social-icons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 120px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 8px;
    color: #999;
    text-decoration: none;
    transition: all var(--transition);
    border: 1px solid #e0e0e0;
}

.social-icon:hover {
    color: var(--text-color);
    border-color: var(--text-color);
    transform: translateY(-2px);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

/* Navigation Arrows */
.nav-arrows {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 40px;
}

.nav-arrow {
    font-size: 18px;
    text-decoration: none;
    color: var(--text-color);
    transition: color var(--transition);
}

.nav-arrow:hover {
    color: var(--hover-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .header-content {
        flex-wrap: wrap;
    }

    .header-left {
        flex-wrap: wrap;
        gap: 12px;
    }

    .header-logo-ss,
    .header-logo-vfx,
    .header-logo-cube {
        height: 24px;
    }

    .site-logo {
        font-size: 20px;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 20px;
        border-top: 1px solid #eee;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .video-hero-section {
        margin-top: 70px;
    }

    .video-hero-container {
        padding-bottom: 75%; /* Slightly taller on mobile */
    }

    .hero-section {
        padding: 60px 0;
    }

    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-section {
        padding: 60px 0;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-name-row {
        grid-template-columns: 1fr;
    }

    .works-section {
        padding: 60px 0;
    }

    .works-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .works-filter-icons {
        margin-left: 0;
    }

    .works-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .works-title {
        font-size: 48px;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 36px;
    }

    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
    }

    #lightbox-image {
        max-height: 80vh;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .social-icons-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 100%;
    }
}

/* WordPress Content Styles */
.wp-content {
    max-width: 800px;
    margin: 0 auto;
}

.wp-content h1,
.wp-content h2,
.wp-content h3 {
    font-weight: 300;
    margin: 40px 0 20px;
    line-height: 1.3;
}

.wp-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.wp-content a {
    color: var(--text-color);
    text-decoration: underline;
}

.wp-content a:hover {
    color: var(--hover-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

