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

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffefd3;
    background: #000814;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 8, 20, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 196, 155, 0.1);
}

nav .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffc49b, #ffefd3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    flex: 1;
    min-width: 0;
}

/* Language Selector */
.language-selector {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    justify-self: center;
    transition: all 0.3s ease;
}

.world-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(#adb6c4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
}

.world-icon::before {
    content: '🌍';
    filter: brightness(1.2);
}

.language-selector:hover .world-icon {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 196, 155, 0.3);
}

.lang-btn {
    background: rgba(173, 182, 196, 0.1);
    border: 1px solid rgba(255, 196, 155, 0.3);
    color: rgba(255, 239, 211, 0.8);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.lang-btn a {
    color: rgba(255, 239, 211, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.lang-btn:hover {
    background: linear-gradient(135deg, #ffc49b, #ffefd3);
    color: #000814;
    border-color: #ffc49b;
    transform: translateY(-2px);
}

.lang-btn:hover a{
    color: #000814;
}

.lang-btn.active {
    background: linear-gradient(135deg, #ffc49b, #ffefd3);
    color: #000814;
    border-color: #ffc49b;
}

.lang-btn.active a {
    color: #000814;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex: 1;
    justify-content: flex-end;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 239, 211, 0.8);
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: #ffc49b;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffc49b, #ffefd3);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: #ffc49b;
}

.nav-links a.active::after {
    width: 100%;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffc49b;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Page Header */
.page-header {
    padding: 120px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, rgba(173, 182, 196, 0.05), rgba(255, 239, 211, 0.02));
    overflow: visible;
}

.page-title {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffefd3, #ffc49b, #adb6c4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.5;
    animation: fadeInUp 1s ease-out;
    padding: 0 10px;
}

.page-subtitle {
    font-size: 1.4rem;
    color: rgba(173, 182, 196, 0.9);
    font-weight: 300;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Projects Grid Section */
.projects-section {
    padding: 80px 0;
    background: #000814;
}

.section-title {
    text-align: center;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #ffefd3, #adb6c4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.5;
    padding: 0 10px;
}

/* GRID SYSTEM */
.projects-grid, .process-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
    align-items: start;
}

/* Base Card Styles */
.project-card, .process-item {
    background: linear-gradient(135deg, rgba(173, 182, 196, 0.08), rgba(255, 239, 211, 0.05));
    border: 1px solid rgba(173, 182, 196, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    backdrop-filter: blur(20px);
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.project-card:hover, .process-item:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 196, 155, 0.4);
    box-shadow: 0 20px 40px rgba(255, 196, 155, 0.15);
}

/* VERTICAL CARDS */
.project-card.vertical, .process-item.vertical {
    grid-column: span 4;
    flex-direction: column;
}

.project-card.vertical .project-image,
.process-item.vertical .process-media {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, rgba(173, 182, 196, 0.08), rgba(255, 239, 211, 0.05));
    position: relative;
    overflow: hidden;
}

/* HORIZONTAL CARDS */
.project-card.horizontal, .process-item.horizontal {
    grid-column: span 12;
    flex-direction: row;
    min-height: 350px;
}

.project-card.horizontal .project-image,
.process-item.horizontal .process-media {
    width: 50%;
    height: auto;
    min-height: 350px;
    background: linear-gradient(135deg, rgba(173, 182, 196, 0.08), rgba(255, 239, 211, 0.05));
    position: relative;
    overflow: hidden;
}

.project-card.horizontal .project-content,
.process-item.horizontal .process-content {
    width: 50%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Common Image/Media Styles */
.project-image img, .project-image video,
.process-media img, .process-media video, .process-media iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image img,
.project-card:hover .project-image video,
.process-item:hover .process-media img,
.process-item:hover .process-media video {
    transform: scale(1.05);
}

.project-overlay, .video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 196, 155, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000814;
    font-size: 1.8rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    pointer-events: none;
}

.project-overlay {
    align-items: center;
    width: auto;
    height: auto;
    background: linear-gradient(45deg, rgba(0, 8, 20, 0.8), rgba(173, 182, 196, 0.3));
    opacity: 0;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 196, 155, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000814;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: #ffc49b;
    transform: scale(1.1);
}

.process-media:hover .video-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.project-content, .process-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.project-title, .process-title {
    font-size: 1.5rem;
    color: #ffefd3;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.process-title {
    font-size: 1.4rem;
    font-weight: 600;
}

.project-category {
    color: #ffc49b;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.project-description, .process-description {
    color: rgba(173, 182, 196, 0.9);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.process-description {
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.process-type {
    background: rgba(255, 196, 155, 0.1);
    color: #ffc49b;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 196, 155, 0.2);
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.project-link {
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 196, 155, 0.1), rgba(173, 182, 196, 0.1));
    border: 1px solid rgba(255, 196, 155, 0.3);
    color: #ffc49b;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-link:hover {
    background: linear-gradient(135deg, #ffc49b, #ffefd3);
    color: #000814;
    transform: translateY(-2px);
}

/* Process Section */
.process-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(173, 182, 196, 0.02), rgba(255, 239, 211, 0.01));
}

.process-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(173, 182, 196, 0.2);
    margin-top: auto;
}

.process-date {
    color: rgba(255, 196, 155, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Back to Home Button */
.back-home {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #ffc49b, #ffefd3);
    color: #000814;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(255, 196, 155, 0.3);
}

.back-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 196, 155, 0.4);
}

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

/* RESPONSIVE IMPROVEMENTS */
@media (max-width: 1200px) {
    .projects-grid, .process-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .project-card.vertical, .process-item.vertical {
        grid-column: span 4;
    }
    
    .project-card.horizontal, .process-item.horizontal {
        grid-column: span 8;
    }
}

@media (max-width: 1024px) {
    .language-selector {
        position: static;
        transform: none;
        margin: 0 1rem;
    }

    nav .container {
        justify-content: space-between;
        gap: 1rem;
    }

    .logo {
        flex: 0 0 auto;
    }

    .nav-links {
        flex: 0 0 auto;
    }

    .projects-grid, .process-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 2rem;
    }
    
    .project-card.vertical, .process-item.vertical {
        grid-column: span 3;
    }
    
    .project-card.horizontal, .process-item.horizontal {
        grid-column: span 6;
        flex-direction: column;
    }
    
    .project-card.horizontal .project-image,
    .process-item.horizontal .process-media {
        width: 100%;
        height: 300px;
        min-height: auto;
    }
    
    .project-card.horizontal .project-content,
    .process-item.horizontal .process-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .logo{
        font-size: 1.4rem;
    }

    /* Mobile navigation */
    .menu-toggle {
        display: flex;
        margin-left: auto;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 8, 20, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 3rem;
        gap: 2rem;
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        font-size: 1.2rem;
        width: 100%;
    }

    .page-header {
        padding: 100px 0 40px;
    }

    .projects-section, .process-section {
        padding: 60px 0;
    }

    .projects-grid, .process-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-card.vertical,
    .project-card.horizontal,
    .process-item.vertical,
    .process-item.horizontal {
        grid-column: span 1;
    }
    
    .project-card.horizontal,
    .process-item.horizontal {
        flex-direction: column;
    }
    
    .project-card.horizontal .project-image,
    .project-card.horizontal .project-content,
    .process-item.horizontal .process-media,
    .process-item.horizontal .process-content {
        width: 100%;
    }
    
    .project-card.horizontal .project-image,
    .process-item.horizontal .process-media {
        height: 300px;
        min-height: auto;
    }
    
    .project-card.vertical .project-image,
    .process-item.vertical .process-media {
        height: 350px;
    }

    .project-content, .process-content {
        padding: 1.5rem;
    }

    .back-home {
        bottom: 20px;
        right: 20px;
    }

    .back-button {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .process-details {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .projects-grid, .process-grid {
        gap: 1.5rem;
    }

    .project-content, .process-content {
        padding: 1.2rem;
    }

    .project-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .language-selector {
        gap: 0.4rem;
        margin: 0 0.3rem;
    }

    .lang-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .world-icon {
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }
}