/* GLOBAL STYLING */

.scrollToTop {
    display: none !important;
}


.portfolio-template-default .cover-background {
    cursor: inherit;
}

.navbar .navbar-header {
  padding-right: 5px;
  padding-left: 15px;
}

.wpcf7 input,
.wpcf7 textarea,
.wpcf7 select {
    margin: 0 0 20px 0 !important;
}

.navbar .container {
    width: 100%;
    padding-right: 30px;
}

#experience {
    padding: 140px 0 130px 0 !important;
}

#experience .chart-text p{
    color: white;
    opacity: 0.9;
}

#skills {
    margin-bottom: 0px;
    padding-bottom: 60px !important;
}

#skills .section-title {
    padding-bottom: 70px;
}

#portfolio {
    margin-bottom: 0;
}

@media (min-width: 1200px) {
    #skills .row .col-md-4 {
        min-height: 190px !important;
    }
}

@media (min-width: 992px) {
    #skills .col-md-4 {
        min-height: 230px !important;
    }

    #skills .vc-column-innner-wrapper .medium-icon {
        padding-left: 0px !important;
    }
}

@media (max-width: 991px) {
    #skills .vc-column-innner-wrapper .medium-icon {
        padding-left: 0px !important;
    }

    .navbar-default .navbar-toggle {
        background-color: #122157 !important;
    }

    #skills .sm-margin-ten-bottom {
        margin-bottom: 40px !important;
        padding-right: 60px;
    }
}

@media (max-width: 767px) {
    #skills .vc-column-innner-wrapper .medium-icon {
        padding-left: 20px !important;
    }

    #skills .sm-margin-ten-bottom {

        padding-right: 30px;
    }

    #portfolio li {
        padding: 0 20px 20px 25px !important;
    }

    #experience {
        padding: 140px 0 70px 0 !important;
    }  
}


/* HERO SECTION */

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: black;
}

/* Hide hero on all non-front pages */
body:not(.home) .hero-section {
    display: none !important;
}


.hero-section .video-wrapper {
    position: absolute;
    inset: 0;
    background-image: url('https://project-nxv1s-oewuf4fl6-nygaard-3802s-projects.vercel.app/hero-desktop.jpg');
    background-size: cover;
    background-position: left bottom;
    background-repeat: no-repeat;
}

#bgVideo {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: left bottom;
    transform: translateZ(0);
    will-change: transform;
    filter: contrast(1.3) brightness(1.01);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    right: 180px;
    transform: translateY(-50%);
    text-align: left;
    max-width: 420px;
    z-index: 10;
    color: white;
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 55px;
    font-weight: 400;
    margin: 0 0 16px 0;
    letter-spacing: 0;
    line-height: 60px;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.20);
    color: white;
}

.hero-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 200;
    line-height: 1.5;
    margin: 0 0 24px 0;
    color: white !important;
    opacity: 0.9;
}

.hero-button {
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 30px;
    color: white;
    background: #F98613;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.20);
}

.hero-button:hover {
    color: white;
}

@media (min-width: 1440px) {
    .hero-content {
        left: 680px !important;
    }
}

@media (min-width: 1150px) {
    .hero-content {
        left: 580px;
    }
}

@media (max-width: 1080px) {
    .hero-content {
        right: 100px;
    }
}

@media (max-width: 1000px) {
    .hero-content {
        top: 35%;
        right: 80px;
        transform: translateY(-35%);
        max-width: 350px;
    }
}

@media (max-width: 768px) {  
  body.home .hero-section {
        position: relative;
        width: 100vw !important;
        height: 100vh !important;
        background: black;
        overflow: hidden;
    }

    body.home #videoWrapper {
        display: block !important;
        visibility: visible !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        overflow: hidden !important;
      	background-image: url('https://project-nxv1s-oewuf4fl6-nygaard-3802s-projects.vercel.app/hero-mobile.jpg');
        background-size: cover !important;
        background-position: center !important;
    }

    body.home #bgVideo {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        object-fit: cover !important;
        z-index: 1 !important;
    }  

    .hero-content {
        top: 12%;
        left: 50px;
        transform: none;
        max-width: 420px;
        width: 70%;
    }

    .hero-title {
        font-size: 40px;
        line-height: 45px;
    }

    .hero-text {
        font-size: 15px;
        line-height: 1.4;
    }
}

@media handheld and (max-height: 800px) {
  .hero-content {
  	top: 8% !important;
  } 
}

/* =====================
   CONTACT SECTION
   ===================== */

#contact-us {
    background: linear-gradient(7deg, #001D69 40%, #3473FF 125%);
    padding: 120px 0;
}

#contact-us .row {
    display: flex;
    flex-direction: row;
    justify-content: left;
}

#contact-us .row .margin-ten-bottom {
    width: 100%;
}

#contact-us .row .wpb_column {
    width: 100%;
}

/* Hide the original h3 heading */
#contact-us .section-title {
    display: none;
}

/* Hide the separator line */
#contact-us .wide-separator-line {
    display: none;
}

/* Left column — headline and subtitle */
#contact-us .margin-ten-bottom {
    text-align: left !important;
}

#contact-us .margin-ten-bottom .vc-column-innner-wrapper {
    padding-right: 60px;
}

#contact-us .margin-ten-bottom .vc-column-innner-wrapper::before {
    content: "START A\A CONVERSATION";
    white-space: pre;
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 42px;
    font-weight: 400;
    color: white;
    line-height: 1.1;
    text-align: left;
    margin-bottom: 20px;
}

#contact-us .margin-ten-bottom .vc-column-innner-wrapper::after {
    content: "Have a project in mind? Let's discuss how I can help bring it to life.";
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    text-align: left;
    margin-bottom: 80 !important;
}

/* White card — wrap the form column */
#contact-us .wpb_column:not(.margin-ten-bottom) .vc-column-innner-wrapper {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

#contact-us .wpcf7 {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

/* Labels */
.cf7-label {
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 6px;
    margin-top: 20px;
}

.cf7-label:first-child {
    margin-top: 0;
}

/* Input fields */
#contact-us .wpcf7-form-control.wpcf7-text,
#contact-us .wpcf7-form-control.wpcf7-email {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    padding: 8px 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #333;
    background: transparent;
    box-shadow: none;
    margin-bottom: 0;
}

#contact-us .wpcf7-form-control.wpcf7-text:focus,
#contact-us .wpcf7-form-control.wpcf7-email:focus {
    outline: none;
    border-bottom-color: #3949ab;
}

/* Textarea */
#contact-us .wpcf7-form-control.wpcf7-textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
    padding: 8px 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #333;
    background: transparent;
    box-shadow: none;
    resize: none;
    height: 150px;
    margin-bottom: 0;
}

/* Submit button */
#contact-us .btn-contact {
    display: block;
    width: 100%;
    background: #F98613;
    color: white !important;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 30px;
    transition: background 0.2s ease;
    margin-bottom: 0 !important;
}

#contact-us .btn-contact:hover {
    background: #e07610;
}

/* Hide required text and reposition button */
#contact-us .required {
    display: none;
}

#contact-us .contact-form-right-button {
    float: none !important;
    text-align: left !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

#contact-us .col-md-6.no-padding-right {
    display: none;
}

/* Two column form layout inside card */
#contact-us .wpcf7-form > .col-md-6 {
    float: none !important;
    width: 100% !important;
}

#contact-us .wpcf7-form > .col-md-12 > .col-md-6 {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
}


/* Extend white card to include button */
#contact-us .wpb_column:not(.margin-ten-bottom) .vc-column-innner-wrapper {
    padding-bottom: 0 !important;
}

#contact-us .wpcf7-form {
    padding-bottom: 40px;
}

/* Fix button row sitting outside card */
#contact-us .col-md-12.col-sm-12 {
    overflow: hidden;
}

#contact-us .wpcf7-form > .col-md-12:last-of-type {
    background: white;
    margin: 0 -40px;
    padding: 0 40px 40px 40px;
    width: calc(100% + 80px);
}

/* Button row */

.cf7-button-row .btn-contact {
    display: block;
    width: 100%;
    background: #F98613;
    color: white !important;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

#contact-us .cf7-button-row {
    clear: both;
    padding-top: 20px;
    margin-bottom: 0;
    height: 83px;
}

@media (max-width: 991px) {
    #contact-us .row {
        flex-direction: column;
    }

    #contact-us .margin-ten-bottom .vc-column-innner-wrapper {
        padding-right: 200px;
    }

    #contact-us .row .margin-ten-bottom {
        margin-bottom: 40px !important;
    }
}


@media (min-width: 769px) {
    #contact-us .row {
        margin-left: 20px;
        margin-right: 20px;
    }
}

@media (max-width: 768px) {
    #contact-us .row {
        margin-left: 30px;
        margin-right: 30px;
    }

    #contact-us .margin-ten-bottom .vc-column-innner-wrapper {
        padding-right: 40px;
    }
}

/* =====================
   PORTFOLIO CARDS
   ===================== */

#portfolio {
    background: #F5F5F5;
    padding-bottom: 80px !important;
}



#portfolio .work-3col .grid li .gallery-img a::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 20;
}


/* Remove all float behaviour from list items */
#portfolio .work-3col .grid li {
    width: 100% !important;
    border-radius: 10px !important;
    overflow: hidden;
    float: none !important;
    padding: 0 0 10px 0;
    box-sizing: border-box;
    list-style: none;
    display: inline-block;
    break-inside: avoid;
}

#portfolio .work-3col .grid li figure {
    background: white;
    border-radius: 10px;
    overflow: visible;
    transition: transform 0.3s ease;
    height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    position: relative;
}

#portfolio .work-3col .grid li figure:hover {
    transform: translateY(-4px);
}

/* Image */
#portfolio .work-3col .grid li .gallery-img {
    width: 100%;
    height: auto;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 10px 10px 0 0;
}

#portfolio .work-3col .grid li .gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1 !important;
    transition: none !important;
    cursor: pointer;
}


#portfolio .work-3col .grid li .gallery-img a::after {
    display: none !important;
}

#portfolio .work-3col .grid li .gallery-img a {
    position: static;
}

#portfolio .work-3col .grid li .gallery-img a::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 20;
    display: block !important;
    cursor: pointer;
}

#portfolio .work-3col .grid li figcaption > p,
#portfolio .work-3col .grid li figcaption > h3 {
    display: none;
}

#portfolio .work-3col .grid li figcaption {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    top: 0 !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    text-align: center !important;
    font-size: 15px !important;
    color: #767676 !important;
    border-radius: 0 0 10px 10px;
}

#portfolio .work-3col {
    width: 100%;
    float: none !important;
}

#portfolio .col-md-12.grid-gallery {
    width: 100% !important;
    float: none !important;
    padding: 0 15px !important;
}

#portfolio .tab-content {
    width: 100% !important;
}

#portfolio .work-3col .grid {
    column-count: 3;
    column-gap: 20px;
    width: 100% !important;
    display: block !important;
}

.portfolio-sector {
    display: inline-block;
    background: #3949ab;
    color: white;
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 0;
    margin: 0 0 20px 0 !important;
    position: relative !important;
    top: auto !important;
    transform: none !important;
}

/* Product title */
.portfolio-product {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    color: black !important;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #626262;
    margin: 0;
    padding: 0;
}

.portfolio-description {
    font-family: 'Open Sans', sans-serif;
    font-size: 13px !important;
    font-weight: 400;
    line-height: 23px;
    color: #626262 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    margin: 0 0 10px 0 !important;
    opacity: 1 !important;
}

.portfolio-client {
    font-family: 'Open Sans', sans-serif;
    font-size: 11px !important; 
    font-weight: 600;
    letter-spacing: 0.6px !important;
    text-transform: uppercase;
    color: black !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding: 0;
    border: none !important;
    text-align: center !important;
}

.portfolio-client span {
    font-weight: 200;
    color: #626262;
}

.portfolio-acf {
    padding: 0 30px 30px 30px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
}

#portfolio .work-3col .grid {
    column-count: 3;
    column-gap: 20px;
}

@media (min-width: 1400px) {
    #portfolio .work-3col .grid {
        column-count: 4;
    }
}

@media (max-width: 991px) {
    #portfolio .work-3col .grid {
        column-count: 2;
    }
}

@media (max-width: 767px) {
    #portfolio .work-3col .grid {
        column-count: 1;
    }

    #portfolio .portfolio-description {
        font-size: 14px !important;
        line-height: 1.7;
    }

    #skills .row p {
        font-size: 14px !important;
        line-height: 1.7;    
    }

}


/* =====================
   INDIVIDUAL CASE
   ===================== */

#features .row p {
    color:white !important;
}
   