/* 
   --------------------------------------------------
   Reset & Variables 
   --------------------------------------------------
*/
:root {
    --bg-dark: #ffffff;
    --bg-secondary: #f9f9f9;
    --bg-tertiary: #f0f0f0;

    --text-primary: #111111;
    --text-secondary: #555555;
    --text-tertiary: #888888;

    --accent: #000000;
    --accent-hover: #333333;

    --border-color: #cccccc;

    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    /* Fallback */
    background-image: url('assets/images/nikon_z8_rs4_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    background-repeat: no-repeat;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    /* White overlay for readability */
    z-index: -1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-padding {
    padding: var(--spacing-lg) 0;
    /* Reduced from xl (8rem) to lg (4rem) */
}

.highlight {
    color: var(--text-secondary);
    /* Grey highlight as requested/implied by "black and grey" */
    font-style: italic;
    /* Subtle style choice */
}

/* 
   --------------------------------------------------
   Typography & Buttons
   --------------------------------------------------
*/
/* Green Book Now Button */
.btn-primary {
    display: inline-block;
    background-color: #2ecc71;
    /* Green */
    color: #ffffff;
    /* White text */
    padding: 12px 32px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid #2ecc71;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: #27ae60;
    /* Darker Green */
    border-color: #27ae60;
    color: #ffffff;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--text-primary);
    padding: 12px 32px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid var(--border-color);
    letter-spacing: 1px;
    cursor: pointer;
    margin-left: var(--spacing-sm);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
}

.video-text-mask {
    position: relative;
    display: inline-block;
    color: #000;
    /* Solid black text */
    background-color: #fff;
    /* White background (for multiply) */
    mix-blend-mode: multiply;
    /* Makes white transparent against page bg */
    /* Ensure text properties are inherited/set correctly */
    line-height: 1;
    /* Tight fit */
}

.mask-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: screen;
    /* Black text + Screen = Video; White bg + Screen = White */
    pointer-events: none;
    /* Click-through */
}

.btn-text {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid var(--bg-tertiary);
    padding-bottom: 4px;
}

.btn-text:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

/* 
   --------------------------------------------------
   Navigation
   --------------------------------------------------
*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.logo-bold {
    font-weight: 700;
    /* Optional: Ensure it works with the theme */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links .btn-primary {
    padding: 8px 24px;
    font-size: 0.8rem;
    border-width: 1px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    z-index: 999;
    padding-top: 100px;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.mobile-nav-links a {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.9));
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 var(--spacing-sm);
    max-width: 800px;
}

.hero-content h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    margin-bottom: var(--spacing-sm);
    line-height: 1;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0.7;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-primary);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--text-primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 18px;
        opacity: 0;
    }
}

/* 
   --------------------------------------------------
   Portfolio Section
   --------------------------------------------------
*/
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-xs);
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2x2 Grid Layout */
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: var(--bg-tertiary);
}

/* === PORTFOLIO WINDOWS === */
.portfolio-window {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Standard window shape */
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    /* Boundary */
    border-radius: 4px;
    overflow: hidden;
    /* Cut off anything outside */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Images fill the window */
.portfolio-window img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Videos are scaled down by 75% (to 25% size) */
.portfolio-window video {
    width: 25%;
    height: 25%;
    object-fit: contain;
    display: block;
}

.portfolio-item:not(.instagram-item) {
    aspect-ratio: 16 / 9;
    cursor: pointer;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    /* Allow clicking through if needed, though we hide it for embeds */
}

.portfolio-item:not(.instagram-item):hover .portfolio-overlay {
    opacity: 1;
    pointer-events: auto;
}

.portfolio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.portfolio-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.item-link {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.center-btn {
    text-align: center;
    margin-top: var(--spacing-md);
}

/* 
   --------------------------------------------------
   Services Section
   --------------------------------------------------
*/
.services {
    background-color: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background-color: var(--bg-tertiary);
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

/* Specific Override for Portfolio/Selected Works Cards */
#portfolio .service-card {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    /* Keep video background black for contrast */
    overflow: hidden;
    aspect-ratio: 16 / 9;
    /* Enforce shape */
}

#portfolio .service-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    display: block;
}

.service-card:hover {
    border-color: var(--text-secondary);
    transform: translateY(-5px);
}

.icon-box {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-tertiary);
    /* Grey accent */
}

.service-card h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

/* Ensure icon is clear against bg image */
.service-card-bg .icon-box {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.service-card video {
    width: 200px;
    height: auto;
    object-fit: contain;
    /* Never crop */
    display: block;
    margin: 0 auto;
    /* Center */
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* 
   --------------------------------------------------
   About Section
   --------------------------------------------------
*/
.about-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-xl);
}

.about-image {
    flex: 1;
    min-width: 300px;
}

/* Service Card with Background Image */
.service-card-bg {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    /* 50% opacity as requested */
    z-index: -1;
    transition: transform 0.5s ease;
}

.service-card-bg:hover::before {
    transform: scale(1.05);
}

.about-image:hover img {
    filter: grayscale(0%);
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-content h4 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
}

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

.about-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.stats {
    display: flex;
    gap: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-md);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item .count {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
}

.stat-item .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 
   --------------------------------------------------
   Contact Section
   --------------------------------------------------
*/
.contact {
    background-color: var(--bg-secondary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

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

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.contact-list li {
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-list i {
    color: var(--text-tertiary);
}

.social-links {
    margin-top: var(--spacing-lg);
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.social-links a:hover {
    color: var(--text-primary);
}

/* Form Styling */
.form-group {
    position: relative;
    margin-bottom: var(--spacing-md);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    appearance: none;
}

.form-group textarea {
    resize: vertical;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: var(--transition);
    background-color: var(--bg-tertiary);
    padding: 0 0.2rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--text-secondary);
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -0.5rem;
    font-size: 0.8rem;
    color: var(--text-primary);
}

.full-width {
    width: 100%;
}

/* 
   --------------------------------------------------
   Footer
   --------------------------------------------------
*/
.footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--border-color);
}

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

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 1.5rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.back-to-top {
    width: 40px;
    height: 40px;
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

.back-to-top:hover {
    background-color: var(--text-primary);
    color: var(--bg-dark);
}

/* 
   --------------------------------------------------
   Animations
   --------------------------------------------------
*/
.fade-in,
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-right {
    transform: translateX(30px);
}

.section-visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

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

.faq-item {
    background-color: var(--bg-tertiary);
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--text-secondary);
}

.faq-item h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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