/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Helvetica Neue', Arial, sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.5;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
    overflow-y: scroll;
    height: 100vh;
}

/* Playfair Display for titles and paragraphs */
h1, h2, h3, h4, h5, h6, p {
    font-family: 'EB Garamond', serif;
}

/* Playfair Display for navigation */
.nav-links a, .logo {
    font-family: 'EB Garamond', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Bar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent;
    background-image: none;
    box-shadow: none;
    border: none;
    border-bottom: none;
    z-index: 1000;
}

.nav-container {
    max-width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 4.5%;
    box-shadow: none;
    border: none;
    background: none;
}

.logo {
    font-size: 2.25rem;
    font-weight: 400;
    letter-spacing: 5.5px;
    color: #ffffff;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #4a9eff;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #4a9eff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4a9eff;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    background-color: #000000;
    overflow: hidden;
    margin-bottom: -150px;
    padding-top: 0;
}

.hero-layout {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 4.5%;
    gap: 2rem;
}

/* Left Column - Title and Tagline */
.hero-content {
    flex: 0 0 35%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: calc(4rem + 5px - 35px);
    margin-left: -35px;
    z-index: 3;
}

/* Right Column - Video Section */
.hero-video-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding-top: calc(1.2rem + 25px);
}

.video-container {
    width: 95%;
    position: relative;
    max-height: 90vh;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.hero-video {
    width: 100%;
    max-height: 90vh;
    height: auto;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
}

.hero-video.active {
    visibility: visible;
    z-index: 2;
}

.hero-video.fade-in {
    transition: opacity 0.3s ease;
    opacity: 1;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 4.2vw, 3.8rem);
    font-weight: 200;
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
    animation: fadeInUp 1s ease;
    text-align: left;
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
    position: relative;
    width: 140%;
    z-index: 5;
    will-change: transform, opacity;
}

.tagline {
    font-size: clamp(1.1rem, 1.75vw, 1.6rem);
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 0.6rem;
    margin-left: 3.5rem;
    animation: fadeInUp 1s ease 0.2s backwards;
    text-align: left;
    letter-spacing: 2.5px;
    word-spacing: 8px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.8);
    will-change: transform, opacity;
}

.sector-buttons {
    display: flex;
    gap: clamp(0.5rem, 1.2vw, 1.3rem);
    margin-top: calc(4rem + 12px);
    margin-bottom: calc(2.5rem - 9px);
    animation: fadeInUp 1s ease 0.3s backwards;
    justify-content: center;
    will-change: transform, opacity;
}

.sector-description {
    margin-top: 1.5rem;
}

.description-text {
    display: none;
    font-size: clamp(1.1rem, 1.25vw, 1.3rem);
    line-height: 1.7;
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 0.3px;
    text-align: left;
}

.description-text.active {
    display: block;
}

.description-text p {
    margin-bottom: 0.8rem;
    padding-top: 25px;
}

.sector-benefits {
    list-style: disc;
    padding-left: 3.5rem;
    margin-top: 2.25rem;
    margin-bottom: 0;
}

.sector-benefits li {
    font-family: 'EB Garamond', serif;
    font-size: clamp(1.05rem, 1.15vw, 1.2rem);
    line-height: 1.8;
    color: #ffffff;
    font-weight: 300;
    letter-spacing: 0.3px;
    margin-bottom: 0.9rem;
}

.sector-btn {
    padding: clamp(0.3rem, 0.5vw + 0.2rem, 0.72rem) clamp(0.6rem, 1vw + 0.3rem, 1.62rem);
    background-color: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: clamp(0.45rem, 0.5vw + 0.2rem, 0.81rem);
    font-weight: 300;
    letter-spacing: clamp(0.3px, 0.05vw + 0.2px, 1px);
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'EB Garamond', serif;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    flex-shrink: 1;
    white-space: nowrap;
}

.sector-btn:hover {
    border-color: #4a9eff;
    color: #4a9eff;
    background-color: rgba(74, 158, 255, 0.1);
}

.sector-btn.active {
    background-color: #4a9eff;
    border-color: #4a9eff;
    color: #000000;
}


.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.scroll-indicator span {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.arrow {
    width: 20px;
    height: 20px;
    border-left: 2px solid #888888;
    border-bottom: 2px solid #888888;
    transform: rotate(-45deg);
    animation: bounce 2s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(-45deg) translateY(0);
    }
    40% {
        transform: rotate(-45deg) translateY(-10px);
    }
    60% {
        transform: rotate(-45deg) translateY(-5px);
    }
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background-color: #000000;
}

.portfolio h2 {
    text-align: left;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 16/9;
    background-color: #1a1a1a;
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.item-overlay h3 {
    font-size: 1.3rem;
    color: #ffffff;
}

.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000000;
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.placeholder-text {
    color: #666666;
    font-size: 1.1rem;
}

/* About Section */
.about {
    min-height: 100vh;
    padding: 100px 0;
    background-color: #000000;
    position: relative;
    z-index: 10;
}

.about .container {
    margin: 0;
    margin-left: 0;
    padding-left: 5%;
}

.about h2 {
    text-align: left;
    font-size: clamp(1.2rem, 5vw, 2.5rem);
    font-weight: 300;
    margin-top: 0;
    margin-bottom: 2rem;
    letter-spacing: clamp(1px, 0.3vw, 3px);
    text-transform: uppercase;
    position: relative;
    z-index: 11;
}

.about-content {
    max-width: 800px;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.services {
    margin-top: 3rem;
}

.services h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #4a9eff;
}

.services ul {
    list-style: none;
}

.services li {
    font-size: 1.1rem;
    padding: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #cccccc;
}

.services li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4a9eff;
    font-weight: bold;
}

/* Contact Section */
.contact {
    min-height: auto;
    padding: 30px 0 60px 0;
    background-color: #000000;
    margin-top: -40px;
}

.contact-section-wrapper {
    padding: 0 4.5%;
}

.contact-section-wrapper h2 {
    text-align: left;
    font-size: 2.25rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: 5.5px;
    text-transform: uppercase;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 80px;
    max-width: 100%;
    margin: 0;
}

.profile-photo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo img {
    max-height: 450px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 85%;
}

.contact-info p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #ffffff;
}

.info-item {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #cccccc;
}

.info-item strong {
    color: #4a9eff;
}

.reach-out-header {
    display: none;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    transform: translateX(15%);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a9eff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666666;
}

.submit-button {
    padding: 1rem 2rem;
    background-color: #4a9eff;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: #3a8eef;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 158, 255, 0.3);
}

/* Footer */
footer {
    padding: 2rem 0;
    background-color: #000000;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    color: #666666;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .sector-buttons {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Smaller nav logo on mobile to prevent wrapping */
    .logo {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    /* Mobile Hero Layout - Vertical Stack */
    .hero {
        padding-top: 80px;
        padding-bottom: 2rem;
        height: auto;
        min-height: auto;
        margin-bottom: 0;
    }

    .hero-layout {
        flex-direction: column;
        padding: 0 5%;
        gap: 0.4rem;
    }

    /* Show title and tagline on mobile - top left, description in flow */
    .hero-content {
        flex: none;
        width: 100%;
        padding-top: 0;
        margin-left: 0;
        margin-bottom: 0;
        position: relative;
    }

    .hero-content h1 {
        position: absolute;
        top: -67px;
        left: 0;
        text-align: left;
        font-size: 1.9872rem;
        margin-bottom: 0.2rem;
        letter-spacing: 1px;
        z-index: 999;
    }

    .tagline {
        position: absolute;
        top: -33.3px;
        left: 0;
        text-align: center;
        margin-left: 2.3rem;
        font-size: 0.84rem;
        margin-bottom: 0;
        z-index: 999;
    }

    .sector-description {
        width: 100%;
        padding: 0 5%;
        box-sizing: border-box;
    }

    /* Video section takes full width */
    .hero-video-section {
        flex: none;
        width: 100%;
        padding-top: 0.5rem;
    }

    .sector-buttons {
        gap: 0.5rem;
        margin-top: 1.275rem;
        margin-bottom: 1rem;
    }

    .sector-btn {
        font-size: 0.7rem;
        padding: 0.6rem 0.9rem;
        letter-spacing: 0.5px;
    }

    .sector-description {
        max-width: 100%;
        width: 100%;
        text-align: center;
        margin-top: 0;
        margin-bottom: 0;
        padding: 0;
    }

    .description-text {
        font-size: 1.02rem;
        line-height: 1.6;
        text-align: center;
    }

    .sector-benefits {
        padding-left: 2rem;
        text-align: left;
        margin-left: auto;
        margin-right: auto;
        max-width: 90%;
        margin-top: 1.8rem;
    }

    .sector-benefits li {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 0.75rem;
    }

    .video-container {
        width: 100%;
    }

    .hero-video {
        width: 100%;
    }


    /* Hide scroll indicator on mobile */
    .scroll-indicator {
        display: none;
    }

    /* Reduce About section top padding on mobile */
    .about {
        padding: 15px 0 50px 0;
        position: relative;
        z-index: 10;
    }

    .contact {
        margin-top: -30px;
        padding-top: 10px;
    }

    /* Fluid scaling About Us header on mobile */
    .about h2 {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .about .container {
        overflow: visible;
        max-width: 100%;
    }

    /* Match About Us paragraph text to description text size and spacing */
    .about-text p {
        font-size: 0.88rem !important;
        line-height: 1.6;
        margin-bottom: 1.2rem;
        letter-spacing: 0.3px;
    }

    /* Reduce Our Services text size on mobile */
    .contact-info p {
        font-size: 0.88rem;
        line-height: 1.6;
    }

    .portfolio h2,
    .contact h2 {
        font-size: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .profile-photo {
        display: none;
    }

    .reach-out-header {
        display: none;
    }

    .contact-form {
        margin-left: auto;
        margin-right: auto;
        margin-top: 0;
        max-width: 100%;
        padding: 0 5%;
        transform: none;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.95rem;
    }

    .submit-button {
        width: 100%;
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }

    .contact {
        padding: 15px 0 35px 0;
    }

    .services h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    /* Even smaller buttons on very small phones */
    .sector-btn {
        font-size: 0.65rem;
        padding: 0.5rem 0.7rem;
        letter-spacing: 0.3px;
    }

    .sector-buttons {
        gap: 0.4rem;
    }

    .description-text {
        font-size: 0.98rem;
    }

    .sector-benefits li {
        font-size: 0.88rem;
        margin-bottom: 0.65rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.65rem;
        font-size: 0.9rem;
    }

    .submit-button {
        padding: 0.65rem 1.5rem;
        font-size: 0.95rem;
    }
}
