/* Base Styles & Dark Theme */
:root {
    --bg-color: #0f0f0f;
    --text-main: #f5f5f7;
    --text-muted: #a1a1a6;
    --accent: #e0e0e0;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography & Buttons */
h1 { font-size: 3.5rem; margin-bottom: 1rem; letter-spacing: -1px; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--text-main);
    color: var(--bg-color);
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.cta-button:hover { background-color: var(--accent); }

/* Sections */
section, footer {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 50px; }

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 5%;
    background-color: #000000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid #1a1a1a;
}

.logo { height: 60px; display: block; }

.nav-cta {
    color: var(--text-main);
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-cta:hover { color: var(--text-muted); }

/* Hero Section - Video Background */
.hero {
    position: relative;
    height: 100vh;
    margin-top: 0; 
    padding-top: 90px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    filter: brightness(0.7); /* Dims video slightly for text readability */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin-top: 8vh; /* Pushes content up to avoid center focus area */
    padding: 40px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    border-radius: 12px;
}

.hero-overlay-img {
    max-width: 250px; /* Adjust this number to make it bigger or smaller */
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto; /* Centers the image and adds space below it */
    
    /* Optional: If it's a PNG with transparency, you might want to add a subtle drop shadow to separate it from the background */
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.5));
}

/* Portfolio Grid (Hover Concepts) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background-color: #1a1a1a;
}

.image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease-in-out;
}

.image-wrapper .hover-img { opacity: 0; }
.image-wrapper:hover .base-img { opacity: 0; }
.image-wrapper:hover .hover-img { opacity: 1; }

.item-text { margin-top: 15px; }
.item-text p { font-size: 0.95rem; margin-bottom: 0; }

/* Front & Back Showcase */
.front-back-showcase { background-color: #0f0f0f; }

.fb-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.fb-card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fb-card:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }

.fb-images {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.fb-side { flex: 1; position: relative; }
.fb-side img { width: 100%; border-radius: 8px; display: block; }

.fb-label {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    color: var(--text-main);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: bold;
    border: 1px solid #333;
}

.fb-info h3 { font-size: 1.8rem; margin-bottom: 10px; }
.fb-info p { margin-bottom: 0; }

@media (max-width: 768px) {
    .fb-images { flex-direction: column; }
}

/* Creative Sandbox - Masonry Grid */
.creative-sandbox {
    background-color: #0a0a0a;
    border-top: 1px solid #1a1a1a;
}

.masonry-grid {
    display: column;
    column-count: 2;
    column-gap: 20px;
}

@media (min-width: 900px) {
    .masonry-grid { column-count: 3; }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Masonry Paired Front/Back Fix */
.masonry-paired-wrapper {
    display: flex;
    gap: 10px;
    background-color: #1a1a1a;
    padding: 10px;
    border-radius: 8px;
}

.masonry-half {
    flex: 1;
    position: relative;
}

.masonry-half img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.masonry-half .fb-label {
    top: 5px;
    left: 5px;
    padding: 4px 8px;
    font-size: 0.65rem;
}

/* Services */
.services-flex {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.service-box {
    flex: 1;
    min-width: 250px;
    padding: 30px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #333;
}

/* Footer */
footer {
    text-align: center;
    border-top: 1px solid #333;
    padding: 60px 5%;
}

/* Scroll Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}