/* ==========================================================================
   Premium Design Variables & Foundation (Henry Harrius Inspired)
   ========================================================================== */
:root {
    --bg-main: #fcfcfc;
    --card-bg: #ffffff;
    --text-main: #111111;
    --text-muted: #666666;
    --accent: #000000;
    --border-color: #eaeaea;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Lora', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Navigation Bar (Clean Desktop Mode)
   ========================================================================== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 8%;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo-area {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    letter-spacing: 3px;
    font-weight: 300;
    text-transform: uppercase;
    color: var(--text-main);
}

.logo-area strong {
    font-weight: 600;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
    cursor: pointer;
}

nav ul li a:hover {
    color: var(--accent);
}

/* ==========================================================================
   Hero & Interactive Showcase Section
   ========================================================================== */
.hero {
    padding: 6rem 10% 4rem 10%;
    text-align: center;
    background-color: #f7f7f7;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 400;
    font-style: italic;
    color: var(--text-main);
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.3;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 950px;
    height: 480px;
    margin: 0 auto 3rem auto;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--accent);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 2px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-btn:hover {
    background-color: #222222;
    transform: translateY(-1px);
}

/* ==========================================================================
   Grids & Content Elements (Dynamic Inner Views)
   ========================================================================== */
.section-title {
    text-align: center;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 1.4rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 3rem;
    position: relative;
}

.portfolio-section, .clients-section, .contact-section {
    padding: 5rem 8%;
    max-width: 1300px;
    margin: 0 auto;
}

/* Video Showcase Grid Layout */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.video-item {
    background: var(--card-bg);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 2px;
}

.video-title {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-top: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Premium Square Photo Grid (Harrius Shop Style) */
.photo-square-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.square-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background-color: #f0f0f0;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.4s ease;
    border-radius: 2px;
}

.square-thumb:hover {
    opacity: 0.9;
    transform: scale(1.01);
}

/* Trusted Client Logos Bar */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2.5rem;
    align-items: center;
    justify-items: center;
}

.client-logo {
    width: 100%;
    max-width: 110px;
    height: 45px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Premium Bio Layout */
.about-section {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 4rem;
    padding: 6rem 8%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    box-sizing: border-box;
}

.about-content {
    width: 100%;
    word-wrap: break-word;
    word-break: break-all;
}

.about-image {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
}

.about-content h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 1.2rem;
    text-align: justify;
}

.about-content ul {
    margin-top: 1rem;
    padding-left: 1.2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.about-content li {
    margin-bottom: 0.5rem;
}

/* Minimalist Contact Engine Base */
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: -2rem auto 3rem auto;
    font-size: 0.95rem;
}

.contact-form {
    max-width: 550px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3rem;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--border-color);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    background-color: #fafafa;
    border-radius: 0;
    transition: border-color 0.2s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: #ffffff;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--accent);
    color: white;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #222222;
}

/* ==========================================================================
   Single-Page App Transitions & Overlays
   ========================================================================== */
#dynamic-body {
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

#dynamic-body.fade-out {
    opacity: 0;
}

footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Image Popup Modal */
.simple-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.simple-modal img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    font-size: 2rem;
    color: var(--text-main);
    cursor: pointer;
}