/* GO PRODUCTIONS - Frontend Styles */

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

:root {
    --color-black: #000000;
    --color-white: #ffffff;
    --color-gray: #999999;
    --color-light-gray: #f5f5f5;
    --color-border: #e5e5e5;
    --color-accent: #ff3366;
    --color-go-primary: #ff3366;
    --color-go-secondary: #00ccff;
    --color-success: #28a745;
    --color-error: #dc3545;
    --spacing-unit: 8px;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-white);
    color: var(--color-black);
    line-height: 1.6;
    letter-spacing: 0.02em;
    overflow-x: hidden;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* GO Loading Animation */
.go-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.go-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.go-animation {
    position: relative;
    width: 120px;
    height: 120px;
}

.go-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid var(--color-go-primary);
    border-radius: 50%;
    animation: goSpin 1s linear infinite;
}

.go-circle::before {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    bottom: 5px;
    left: 5px;
    border: 3px solid transparent;
    border-top: 3px solid var(--color-go-secondary);
    border-radius: 50%;
    animation: goSpin 1.5s linear infinite reverse;
}

.go-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-secondary);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-black);
    letter-spacing: 0.1em;
}

@keyframes goSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

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

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

#header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 48px;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.2em;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--color-black);
    text-transform: uppercase;
}

.nav-actions .close-btn {
    font-size: 1.5rem;
    color: var(--color-black);
    text-decoration: none;
    transition: transform 0.3s;
    display: block;
}

.nav-actions .close-btn:hover {
    transform: rotate(90deg);
}

/* Main Content */
main {
    padding-top: 4rem;
    /* Reduced from 8rem */
    padding-bottom: 5rem;
    min-height: 100vh;
}

/* Header Section */
.project-header-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 4rem auto 6rem;
    max-width: 1400px;
    gap: 4rem;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    text-align: left;
}

.header-left {
    flex: 1;
    max-width: 45%;
}

.header-right {
    flex: 1;
    max-width: 45%;
    padding-top: 1rem;
}

.project-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-align: left;
}

.project-meta {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    color: var(--color-gray);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    flex-wrap: wrap;
}

.meta-item {
    position: relative;
}

.meta-item:not(:last-child)::after {
    content: '/';
    position: absolute;
    right: -1.2rem;
    color: #ddd;
}

.project-description {
    font-size: 1rem;
    color: #444;
    line-height: 1.8;
    font-weight: 300;
    text-align: left;
    max-width: 100%;
    margin: 0;
}

.nav-container {
    padding: 0 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1800px;
    margin: 0 auto;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-black) !important;
    /* Force black to avoid purple visited links */
    font-size: 11px;
    letter-spacing: 0.15em;
    font-weight: 600;
    transition: opacity 0.3s;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

.nav-links a:hover {
    opacity: 0.5;
}

/* Masonry Grid */
.masonry-grid {
    column-count: 3;
    column-gap: 2rem;
    width: 100%;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 2rem;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.masonry-item img,
.masonry-item video {
    width: 100%;
    height: auto;
    display: block;
}

.item-caption {
    padding: 1rem;
    background: #fff;
    color: #666;
    font-size: 0.85rem;
    text-align: center;
    font-style: italic;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-go-primary), var(--color-go-secondary));
    transition: width 0.3s ease;
}

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

/* Portfolio Section */
.portfolio-section {
    margin-top: 100px;
    padding: 96px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-item img,
.portfolio-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img,
.portfolio-item:hover video {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 50%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 32px;
    transition: opacity 0.5s ease;
}

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

.portfolio-info {
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 4px;
}

.portfolio-subtitle {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

/* Aspect Ratios */
.aspect-portrait {
    aspect-ratio: 3 / 4;
}

.aspect-landscape {
    aspect-ratio: 16 / 9;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

/* About Section */
.about-section,
.clients-section,
.contact-section {
    margin-top: 100px;
    padding: 96px 0;
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.page-title {
    font-family: var(--font-secondary);
    font-size: 56px;
    font-weight: 400;
    letter-spacing: 0.2em;
    margin-bottom: 48px;
    position: relative;
    text-transform: uppercase;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-go-primary), var(--color-go-secondary));
}

.about-content {
    margin-bottom: 64px;
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-gray);
    margin-bottom: 32px;
}

.services-section {
    margin-top: 64px;
    padding-top: 64px;
    border-top: 1px solid var(--color-border);
}

.section-subtitle {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: var(--color-go-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.services-column ul {
    list-style: none;
}

.services-column li {
    font-size: 16px;
    color: var(--color-gray);
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
    transition: color 0.3s ease;
}

.services-column li:hover {
    color: var(--color-black);
}

/* Canvas Layout (Frontend) */
.canvas-container-frontend {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: transparent;
    margin-top: 100px;
    /* Header Offset */
}

@media (max-width: 1024px) {
    /* Responsive tweaks if needed */
}

.canvas-item-frontend {
    position: absolute;
    cursor: pointer;
    transition: transform 0.3s ease, z-index 0s;
}

.canvas-item-frontend:hover {
    transform: scale(1.02);
    z-index: 1000 !important;
}

.canvas-item-frontend img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.canvas-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.canvas-item-frontend:hover .canvas-overlay {
    opacity: 1;
}

.canvas-overlay h3 {
    color: white;
    font-family: var(--font-secondary);
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.services-column li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--color-go-primary);
    font-size: 12px;
}

/* Clients Grid - Strip Style */
.clients-strip-container {
    padding: 60px 0;
    background: #fafafa;
    border-radius: 4px;
    margin-top: 40px;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    align-items: center;
}

.client-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: #fff;
    height: 100px;
    transition: transform 0.3s ease;
}

.client-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.client-logo {
    max-width: 100%;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
    opacity: 0.8;
}

.client-logo:hover {
    opacity: 1;
}

.client-placeholder {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
}

.client-logo img {
    max-width: 220px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    /* No grayscale as per user request for "without any filter" or check image */
    opacity: 1;
}

.client-logo:hover img {
    filter: none;
    opacity: 1;
}

.client-placeholder {
    font-size: 24px;
    font-family: var(--font-secondary);
    color: var(--color-black);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--color-black);
}

/* Minimal Form Controls */
.form-control {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid var(--color-border);
    background: transparent;
    font-size: 14px;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    border-radius: 0;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-black);
    box-shadow: none;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-go-primary), var(--color-go-secondary));
    color: var(--color-white);
    border: none;
    padding: 12px 32px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 51, 102, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Alert Messages */
.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Portfolio Modal */
.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.portfolio-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.portfolio-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: var(--color-white);
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--color-go-primary);
    transform: rotate(90deg);
}

.modal-media {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.modal-info {
    padding: 32px;
    background: var(--color-white);
}

.modal-title {
    font-family: var(--font-secondary);
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-black);
}

.modal-subtitle {
    font-size: 14px;
    color: var(--color-go-primary);
    margin-bottom: 16px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.modal-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray);
    margin-bottom: 24px;
}

.modal-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.detail-item {
    font-size: 14px;
}

.detail-label {
    font-weight: 600;
    color: var(--color-go-primary);
    margin-bottom: 4px;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.detail-value {
    color: var(--color-black);
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: 60px 0 30px;
    margin-top: 100px;
}

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

.footer-section h3 {
    font-family: var(--font-secondary);
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--color-white);
}

.footer-section p {
    color: var(--color-gray);
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-gray);
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    #header nav {
        padding: 20px 24px;
        flex-direction: column;
        gap: 20px;
    }

    .logo {
        font-size: 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .page-title {
        font-size: 36px;
    }

    .about-content p {
        font-size: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .modal-details {
        grid-template-columns: 1fr;
    }

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

/* Hero Section (Contact/General) */
.hero-section {
    display: flex;
    align-items: center;
    gap: 64px;
    margin-bottom: 96px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: 32px;
    margin-bottom: 24px;
    color: var(--color-black);
}

.hero-description {
    color: var(--color-gray);
    font-size: 16px;
    line-height: 1.8;
}

.hero-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.02);
}

/* Contact Details - Premium */
.contact-details-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 96px;
    align-items: start;
}

.contact-info {
    padding-right: 0;
}

.contact-form-container {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.form-title {
    font-family: var(--font-secondary);
    font-size: 24px;
    margin-bottom: 40px;
    color: var(--color-black);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 300;
}

.info-item {
    display: flex;
    gap: 32px;
    margin-bottom: 56px;
    align-items: flex-start;
}

.info-icon {
    width: auto;
    height: auto;
    background: transparent;
    color: var(--color-black);
    font-size: 18px;
    padding-top: 4px;
}

.info-content h3 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--color-gray);
}

.info-content p {
    color: var(--color-black);
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
}

.social-links {
    display: flex;
    gap: 24px;
    margin-top: 64px;
}

.social-link {
    width: auto;
    height: auto;
    display: inline-block;
    border: none;
    color: var(--color-black);
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 0.7;
}

.social-link:hover {
    background: transparent;
    transform: translateY(-2px);
    opacity: 1;
    color: var(--color-black);
}

/* Clients Section */
.clients-strip-container {
    padding: 0;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 40px;
    background: transparent;
    border: none;
}

@media (max-width: 1400px) {
    .clients-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1024px) {
    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Clients - Logo Support */
.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 0;
    transition: all 0.3s ease;
    height: 120px;
    background: transparent;
}

.client-logo:hover {
    border-color: var(--color-go-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.client-logo img {
    max-width: 80%;
    max-height: 80px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.client-placeholder {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Map Section */
.map-section {
    margin-top: 64px;
}

.map-title {
    font-family: var(--font-secondary);
    font-size: 24px;
    margin-bottom: 32px;
    text-align: center;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 8px;
}

/* Responsive Extensions */
@media (max-width: 1024px) {
    .contact-details-section {
        gap: 32px;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .contact-details-section {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding-right: 0;
    }

    .hero-section {
        margin-bottom: 60px;
    }
}