/* Monk Will Media - Global Styles */

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

:root {
    /* Refined Earth & Gold Palette */
    --color-bg: #F5F2EB;
    /* Warm Alabaster / Washi Paper */
    --color-text: #1F1D1D;
    /* Soft Ink Black */
    --color-accent: #C9A64E;
    /* Muted Gold */
    --color-neutral: #777777;
    /* Stone Gray */
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-footer-bg: #1A1A1A;
    /* Dark Charcoal */
    --color-footer-text: #E0DCD0;
    /* Off-White Text */

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Manrope', sans-serif;

    /* Spacing & Layout */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    --container-width: 1200px;

    --transition-smooth: all 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    /* Subtle noise texture */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-black);
}

h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 3vw, 3.5rem);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

p {
    color: var(--color-text);
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--color-black);
    background: transparent;
    color: var(--color-black);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: 0;
    /* Revert rounded corners */
}

.btn:hover {
    background: var(--color-black);
    color: var(--color-white);
    transform: none;
}

.btn-primary {
    background: var(--color-black);
    color: var(--color-white);
    box-shadow: none;
}

.btn-primary:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
    transform: none;
    box-shadow: none;
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.text-center {
    text-align: center;
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

/* Header */
header {
    padding: var(--spacing-md) 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 4px;
    /* Further reduced gap */
}

.logo-img {
    height: 60px;
    /* Increased size */
    width: auto;
    display: block;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-text);
    text-transform: uppercase;
}

/* Footer specific logo text color */
.footer-content .logo-text {
    color: var(--color-footer-text);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--color-accent);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    margin-bottom: var(--spacing-md);
}

.hero p {
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    font-size: 1.25rem;
    color: var(--color-neutral);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

/* Philosophy Section */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.philosophy-card {
    background: var(--color-white);
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
    border: none;
    backdrop-filter: none;
}

.philosophy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    background: var(--color-white);
    border-color: transparent;
}

.philosophy-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    font-style: normal;
    /* Removed italic */
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
    border-radius: 0;
    border: none;
}

.social-icon {
    width: 32px;
    height: 32px;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
}

.social-icon.instagram {
    fill: #E1306C;
}

.social-icon.youtube {
    fill: #FF0000;
}

.social-icon.linkedin {
    fill: #0077B5;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    filter: grayscale(100%);
}

.portfolio-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--color-white);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    background-color: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: var(--spacing-lg) 0;
    border-top: none;
}

footer .logo {
    color: var(--color-footer-text);
}

footer p {
    color: var(--color-footer-text);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a {
    color: var(--color-footer-text);
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-white);
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.copyright {
    text-align: center;
    opacity: 0.5;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    color: var(--color-footer-text);
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* Mobile menu to be implemented if needed */
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Enso Circle */
.enso-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vh;
    height: 80vh;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}

.enso-circle {
    width: 100%;
    height: 100%;
    animation: rotateEnso 60s linear infinite;
}

@keyframes rotateEnso {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.word-reveal {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.word-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Icon Styles */
.icon-box {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}

.icon-box svg {
    width: 100%;
    height: 100%;
    stroke: var(--color-accent);
    stroke-width: 1.5;
}

/* Clients Section */
.clients-section {
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: transparent;
}

.clients-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.client-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    opacity: 0.4;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
    cursor: default;
}

.client-logo:hover {
    opacity: 1;
    color: var(--color-accent);
}

/* Video Portfolio Section */
.video-grid {
    display: flex;
    overflow-x: auto;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    /* Space for scrollbar */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.video-wrapper {
    flex: 0 0 300px;
    /* Fixed width for long videos */
    position: relative;
    padding-bottom: 168.75px;
    /* 300px * 0.5625 (16:9) */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    scroll-snap-align: start;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.shorts-grid {
    display: flex;
    overflow-x: auto;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.shorts-wrapper {
    flex: 0 0 180px;
    /* Smaller fixed width for shorts */
    position: relative;
    padding-bottom: 320px;
    /* 180px * 1.77 (9:16) approx */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    scroll-snap-align: start;
}

.shorts-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.instagram-wrapper {
    flex: 0 0 180px;
    /* Revert to smaller width for horizontal row */
    position: relative;
    padding-bottom: 320px;
    /* Vertical frame height */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    scroll-snap-align: start;
}

.instagram-wrapper iframe {
    position: absolute;
    top: 0;
    /* Reset to show header */
    left: 0;
    width: 100%;
    height: 100%;
    /* Reset height */
    border: 0;
}

/* Custom Scrollbar for Webkit */
.video-grid::-webkit-scrollbar,
.shorts-grid::-webkit-scrollbar {
    height: 6px;
}

.video-grid::-webkit-scrollbar-track,
.shorts-grid::-webkit-scrollbar-track {
    background: transparent;
}

.video-grid::-webkit-scrollbar-thumb,
.shorts-grid::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.video-grid::-webkit-scrollbar-thumb:hover,
.shorts-grid::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.team-card {
    text-align: center;
}

.team-image-wrapper {
    width: 180px;
    aspect-ratio: 1;
    overflow: hidden;
    margin: 0 auto var(--spacing-sm);
    border-radius: 4px;
    filter: grayscale(100%);
    transition: var(--transition-smooth);
}

.team-card:hover .team-image-wrapper {
    filter: grayscale(0%);
    transform: translateY(-5px);
}

.team-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.team-card p {
    font-size: 0.9rem;
    color: var(--color-neutral);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.team-bio {
    font-size: 0.95rem !important;
    color: var(--color-text) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin-top: var(--spacing-xs);
    line-height: 1.5;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
    text-align: center !important;
}