/* Global Styles - Novo Inspired Modern Dark */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;800&family=Open+Sans:wght@300;400;600&display=swap');

:root {
    --bg-body: #0b0b0b;
    --bg-panel: #161616;
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent: #ffffff;
    /* Classic monochrome modernism */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-main);
    line-height: 1.1;
}

h1 {
    font-size: 4rem;
    /* Big impact */
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 1.5rem;
}

/* Utilities */
.container {
    max-width: 1400px;
    /* Wide layout */
    margin: 0 auto;
    padding: 0 40px;
}

.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
}

.btn:hover {
    background: var(--text-main);
    color: var(--bg-body);
}

/* Header - Modern Transparent Fixed */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: padding 0.3s ease, background 0.3s ease;
}

header.scrolled {
    background: rgba(11, 11, 11, 0.95);
    padding: 15px 50px;
    backdrop-filter: blur(10px);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    z-index: 1001;
}

/* Menu Toggle - Hamburger */
.menu-toggle {
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hamburger {
    width: 30px;
    height: 2px;
    background: var(--text-main);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Fullscreen Overlay Menu */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(11, 11, 11, 0.98);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 1000;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.nav-links {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: #555;
    text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

/* Active Menu State Switch */
body.menu-open .hamburger {
    background: transparent;
}

body.menu-open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

body.menu-open .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}


/* Hero Section - Full Height */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* Dark overlay over background image - handled by overlay div now if using video */
    background: #000;
    position: relative;
    /* Parallax feel removed for video stability */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6;
    /* Darken the video slightly */
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.logo-img {
    height: 40px;
    width: auto;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-left: 10%;
}

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.5s;
}

.hero h1 {
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.7s;
}

.hero .btn {
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.9s;
}

@keyframes fadeUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }

    from {
        transform: translateY(20px);
        opacity: 0;
    }
}

/* Sections General */
.section {
    padding: 120px 0;
}

/* About - Cleaner Layout */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: -1;
}

/* Services - Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 4rem;
}

.service-card {
    background: var(--bg-panel);
    padding: 40px;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: block;
    color: var(--text-main);
}

/* Portfolio - Masonry Grid without Gaps (Modern) */
.portfolio-section {
    padding: 0;
    /* Full width often looks good */
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.portfolio-item {
    position: relative;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Contact */
.contact-section {
    background: #0f0f0f;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.modern-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    padding: 15px 0;
    margin-bottom: 25px;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.modern-input:focus {
    outline: none;
    border-bottom-color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        padding-left: 5%;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 3rem;
    }
}