/*!
 * Start Bootstrap - Freelancer Bootstrap Theme (http://startbootstrap.com)
 * Code licensed under the Apache License v2.0.
 * For details, see http://www.apache.org/licenses/LICENSE-2.0.
 */

body {
    overflow-x: hidden;
}

p {
    font-size: 20px;
}

p.small {
    font-size: 16px;
}

a,
a:hover,
a:focus,
a:active,
a.active {
    outline: 0;
    color: #18bc9c;
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-transform: uppercase;
    font-family: Montserrat,"Helvetica Neue",Helvetica,Arial,sans-serif;
    font-weight: 700;
}

hr.square-light,
hr.square-primary {
    margin: 25px auto 30px;
    padding: 0;
    max-width: 250px;
    border: 0;
    border-top: solid 1px;
    text-align: center;
}

hr.square-light:after,
hr.square-primary:after {
    content: "\f0c8";
    display: inline-block;
    position: relative;
    top: -.8em;
    padding: 0 .25em;
    font-family: FontAwesome;
    font-size: 1em;
}

hr.square-light {
    border-color: #fff;
}

hr.square-light:after {
    color: #fff;
    background-color: transparent;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8),
                 1px 1px 2px rgba(0, 0, 0, 0.9);
    font-weight: bold;
}

hr.square-primary {
    border-color: #2c3e50;
}

hr.square-primary:after {
    color: #2c3e50;
    background-color: #fff;
}

.img-centered {
    margin: 0 auto;
}

/* ----- HEADER BACKGROUND IMAGE STYLES ----- */
header {
    text-align: center;
    color: #fff;
    background: #2c3e50; /* Fallback color */
    background-image: linear-gradient(
        rgba(44, 62, 80, 0.5), 
        rgba(44, 62, 80, 0.5)
    ), url('../img/header-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}

header .container {
    padding-top: 100px;
    padding-bottom: 50px;
    animation: fadeIn 2s ease-in-out;
}

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

header img {
    display: block;
    margin: 0 auto 20px;
    filter: drop-shadow(3px 3px 8px rgba(0, 0, 0, 0.8))
            drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.9))
            drop-shadow(0 0 20px rgba(0, 0, 0, 0.6));
    transition: filter 0.3s ease;
}

/* Optional: Add hover effect to logo */
header img:hover {
    filter: drop-shadow(4px 4px 12px rgba(0, 0, 0, 0.9))
            drop-shadow(2px 2px 4px rgba(0, 0, 0, 1))
            drop-shadow(0 0 25px rgba(0, 0, 0, 0.8));
}

header .intro-text .name {
    display: block;
    text-transform: uppercase;
    font-family: Montserrat,"Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 2em;
    font-weight: 800;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.8),
                 1px 1px 2px rgba(0, 0, 0, 0.9),
                 0 0 20px rgba(0, 0, 0, 0.6);
    letter-spacing: 1px;
}

header .intro-text .skills {
    font-size: 1.25em;
    font-weight: 600;
    text-transform: uppercase;
    font-family: Montserrat,"Helvetica Neue",Helvetica,Arial,sans-serif;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8),
                 1px 1px 2px rgba(0, 0, 0, 0.9),
                 0 0 15px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

/* Optional: Add a subtle glow effect on hover for interactive feel */
header .intro-text .name:hover,
header .intro-text .skills:hover {
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.9),
                 1px 1px 3px rgba(0, 0, 0, 1),
                 0 0 25px rgba(0, 0, 0, 0.7);
    transition: text-shadow 0.3s ease;
}

.input-group-addon {
    color: #fff;
    background-color: #2c3e50;
    border: 4px solid #dce4ec;
    font-size: 2em;
}

@media(min-width: 68px) {
    header .container {
        padding-top: 200px;
        padding-bottom: 100px;
    }

    header .intro-text .name {
        font-size: 4.75em;
    }

    header .intro-text .skills {
        font-size: 1.75em;
    }
}

@media(min-width: 68px) {
    .navbar-fixed-top {
        padding: 25px 0;
        -webkit-transition: padding .3s;
        -moz-transition: padding .3s;
        transition: padding .3s;
    }

    .navbar-fixed-top .navbar-brand {
        font-size: 2em;
        -webkit-transition: all .3s;
        -moz-transition: all .3s;
        transition: all .3s;
    }

    .navbar-fixed-top.navbar-shrink {
        padding: 10px 0;
    }

    .navbar-fixed-top.navbar-shrink .navbar-brand {
        font-size: 1.5em;
    }
}

.navbar {
    text-transform: uppercase;
    font-family: Montserrat,"Helvetica Neue",Helvetica,Arial,sans-serif;
    font-weight: 700;
    background-color: rgba(14, 76, 138, 0.92) !important;
}

.navbar-default 
.navbar-nav>.active>a, 
.navbar-default .navbar-nav>.active>a:hover, 
.navbar-default .navbar-nav>.active>a:focus {
    background-color: #d20505;
}

.navbar a:focus {
    outline: 0;
}

.navbar .navbar-nav {
    letter-spacing: 1px;
}

.navbar .navbar-nav li a:focus {
    outline: 0;
}

.navbar-default,
.navbar-inverse {
    background-color: rgba(14, 76, 138, 0.92);
    border: 0;
}

.navbar-brand {
    padding: 5px 15px !important;
    height: 60px;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    max-height: 150px;
    width: auto;
}

/* ----- EQUAL WIDTH NAVBAR LINKS WITH DYNAMIC FONT SCALING ----- */
.navbar-main-links {
    display: flex;
    align-items: center;
    height: 100%;
    width: auto;
    justify-content: flex-end;
    margin-left: auto;
}

.navbar-main-links > li {
    flex: 0 0 auto;
    text-align: center;
    min-width: 0;
    display: flex;
    justify-content: center;
}

.navbar-main-links > li > a {
    padding: 15px 8px !important;
    white-space: nowrap;
    overflow: hidden;
    min-width: 0;
    width: 100%;
    text-align: center;
    display: block;
    transition: all 0.3s ease;
    background-color: transparent !important;
    border: none !important;
    border-radius: 3px !important;
    margin: 0 2px;
}

/* Base optimal font sizes for each language */
.navbar-main-links > li > a {
    font-size: 16px !important;
}

/* English - can use larger fonts */
body[data-lang="en"] .navbar-main-links > li > a {
    font-size: 17px !important;
}

/* Spanish - needs smaller fonts due to longer words */
body[data-lang="es"] .navbar-main-links > li > a {
    font-size: 14px !important;
}

/* Korean - can use larger fonts due to compact characters */
body[data-lang="ko"] .navbar-main-links > li > a {
    font-size: 18px !important;
    letter-spacing: -0.5px;
}

/* Large desktop - maximize font sizes */
@media (min-width: 1400px) {
    .navbar-main-links > li > a {
        font-size: 18px !important;
        padding: 15px 12px !important;
    }
    body[data-lang="en"] .navbar-main-links > li > a {
        font-size: 19px !important;
    }
    body[data-lang="es"] .navbar-main-links > li > a {
        font-size: 16px !important;
    }
    body[data-lang="ko"] .navbar-main-links > li > a {
        font-size: 20px !important;
    }
}

/* Standard desktop */
@media (min-width: 1200px) {
    .navbar-main-links > li > a {
        font-size: 17px !important;
        padding: 15px 10px !important;
    }
    body[data-lang="en"] .navbar-main-links > li > a {
        font-size: 18px !important;
    }
    body[data-lang="es"] .navbar-main-links > li > a {
        font-size: 15px !important;
    }
    body[data-lang="ko"] .navbar-main-links > li > a {
        font-size: 19px !important;
    }
}

/* Small desktop / large tablet */
@media (max-width: 1199px) and (min-width: 992px) {
    .navbar-main-links > li > a {
        font-size: 15px !important;
        padding: 15px 8px !important;
    }
    body[data-lang="en"] .navbar-main-links > li > a {
        font-size: 16px !important;
    }
    body[data-lang="es"] .navbar-main-links > li > a {
        font-size: 14px !important;
    }
    body[data-lang="ko"] .navbar-main-links > li > a {
        font-size: 17px !important;
    }
}

/* Tablet */
@media (max-width: 991px) and (min-width: 768px) {
    .navbar-main-links > li > a {
        font-size: 14px !important;
        padding: 12px 6px !important;
    }
    body[data-lang="en"] .navbar-main-links > li > a {
        font-size: 15px !important;
    }
    body[data-lang="es"] .navbar-main-links > li > a {
        font-size: 13px !important;
    }
    body[data-lang="ko"] .navbar-main-links > li > a {
        font-size: 16px !important;
    }
}

/* Small tablet */
@media (max-width: 850px) and (min-width: 768px) {
    .navbar-main-links > li > a {
        font-size: 13px !important;
        padding: 12px 4px !important;
    }
    body[data-lang="en"] .navbar-main-links > li > a {
        font-size: 14px !important;
    }
    body[data-lang="es"] .navbar-main-links > li > a {
        font-size: 12px !important;
    }
    body[data-lang="ko"] .navbar-main-links > li > a {
        font-size: 15px !important;
    }
}

/* Ensure navbar has enough height and space */
.navbar-default.navbar-fixed-top {
    min-height: 80px;
}

.navbar-collapse {
    max-height: none !important;
    flex: 1;
    min-width: 0;
}

.navbar-header {
    width: auto;
    min-width: 200px;
    max-width: 250px;
}

/* 1. RED BACKGROUND FOR ACTIVE STATE */
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    background-color: #d20505 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 3px !important;
}

/* 2. WHITE BACKGROUND ONLY ON HOVER - but NOT when active */
.navbar-default .navbar-nav > li > a:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 3px !important;
}

/* Make sure hover doesn't override active state */
.navbar-default .navbar-nav > .active > a:hover {
    background-color: #d20505 !important;
}

/* Mobile responsiveness - stack vertically */
@media (max-width: 767px) {
    .navbar-main-links {
        flex-direction: column;
        width: 100%;
    }
    
    .navbar-main-links > li {
        width: 100%;
        flex: none;
    }
    
    .navbar-main-links > li > a {
        padding: 10px 15px !important;
        font-size: 16px !important;
        min-width: auto !important;
        max-width: none !important;
        text-align: left;
        border-radius: 0 !important;
        white-space: normal;
    }
    
    /* Reset language-specific styles for mobile */
    body[data-lang="es"] .navbar-main-links > li > a,
    body[data-lang="ko"] .navbar-main-links > li > a {
        font-size: 16px !important;
        padding: 10px 15px !important;
    }
}

/* Adjust navbar toggle button position */
.navbar-toggle {
    margin-top: 13px;
    margin-bottom: 13px;
}

section {
    padding: 100px 0;
}

section h2 {
    margin: 0;
    font-size: 3em;
}

section.success {
    color: #fff;
    background: #2c3e50;
}

section.success a,
section.success a:hover,
section.success a:focus,
section.success a:active,
section.success a.active {
    outline: 0;
    color: #2c3e50;
}

section.contact-form {
    padding-top: 0px;
}

section#about-us {
    color: #2c3e50;
    background-color: #fff;
}

section#recruitment {
    color: #2c3e50;
    background-color: #fff;
}

@media(max-width:767px) {
    section {
        padding: 75px 0;
    }

    section.first {
        padding-top: 75px;
    }
}

#services .services-item {
    right: 0;
    margin: 0 0 15px;
}

#services .services-item .services-link {
    display: block;
    position: relative;
    margin: 0 auto;
    max-width: 400px;
}

#services .services-item .services-link .caption {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    background: rgba(24,188,156,.9);
    -webkit-transition: all ease .5s;
    -moz-transition: all ease .5s;
    transition: all ease .5s;
}

#services .services-item .services-link .caption:hover {
    opacity: 1;
}

#services .services-item .services-link .caption .caption-content {
    position: absolute;
    top: 50%;
    width: 100%;
    height: 20px;
    margin-top: -12px;
    text-align: center;
    font-size: 20px;
    color: #fff;
}

#services .services-item .services-link .caption .caption-content i {
    margin-top: -12px;
}

#services .services-item .services-link .caption .caption-content h3,
#services .services-item .services-link .caption .caption-content h4 {
    margin: 0;
}

#services * {
    z-index: 2;
}

@media(min-width:767px) {
    #services .services-item {
        margin: 0 0 30px;
    }
}

.btn-outline {
    margin-top: 15px;
    border: solid 2px #fff;
    font-size: 20px;
    color: #fff;
    background: 0 0;
    transition: all .3s ease-in-out;
}

.btn-outline:hover,
.btn-outline:focus,
.btn-outline:active,
.btn-outline.active {
    border: solid 2px #fff;
    color: #18bc9c;
    background: #fff;
}

.floating-label-form-group {
    position: relative;
    margin-bottom: 0;
    padding-bottom: .5em;
    border-bottom: 1px solid #eee;
}

.floating-label-form-group input,
.floating-label-form-group textarea {
    z-index: 1;
    position: relative;
    padding-right: 0;
    padding-left: 0;
    border: 0;
    border-radius: 0;
    font-size: 1.5em;
    background: 0 0;
    box-shadow: none!important;
    resize: none;
}

.floating-label-form-group label {
    display: block;
    z-index: 0;
    position: relative;
    top: 2em;
    margin: 0;
    font-size: .85em;
    line-height: 1.764705882em;
    vertical-align: middle;
    vertical-align: baseline;
    opacity: 0;
    -webkit-transition: top .3s ease,opacity .3s ease;
    -moz-transition: top .3s ease,opacity .3s ease;
    -ms-transition: top .3s ease,opacity .3s ease;
    transition: top .3s ease,opacity .3s ease;
}

.floating-label-form-group::not(:first-child) {
    padding-left: 14px;
    border-left: 1px solid #eee;
}

.floating-label-form-group-with-value label {
    top: 0;
    opacity: 1;
}

.floating-label-form-group-with-focus label {
    color: #18bc9c;
}

form .row:first-child .floating-label-form-group {
    border-top: 1px solid #eee;
}

footer {
    color: #fff;
}

footer h3 {
    margin-bottom: 30px;
}

footer .footer-above {
    padding-top: 50px;
    background-color: #2c3e50;
}

footer .footer-col {
    margin-bottom: 50px;
}

footer .footer-below {
    padding: 25px 0;
    background-color: #233140;
}

.btn-social {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 2px solid #fff;
    border-radius: 100%;
    text-align: center;
    font-size: 20px;
    line-height: 45px;
}

.btn:focus,
.btn:active,
.btn.active {
    outline: 0;
}

.scroll-top {
    z-index: 1049;
    position: fixed;
    right: 2%;
    bottom: 2%;
    width: 50px;
    height: 50px;
}

.scroll-top .btn {
    width: 50px;
    height: 50px;
    border-radius: 100%;
    font-size: 20px;
    line-height: 28px;
    background-color: #2c3e50 !important;
    border-color: #2c3e50 !important;
    color: #fff !important;
}

.scroll-top .btn:hover {
    background-color: #233140 !important;
    border-color: #233140 !important;
    color: #e6e6e6 !important;
}

.scroll-top .btn:focus {
    outline: 0;
}

.services-modal .modal-content {
    padding: 100px 0;
    min-height: 100%;
    border: 0;
    border-radius: 0;
    text-align: center;
    background-clip: border-box;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.services-modal .modal-content h2 {
    margin: 10px 0 25px 0;
    font-size: 3em;
}

.services-modal .modal-content img {
    margin-bottom: 30px;
}

.services-modal .modal-content .item-details {
    margin: 30px 0;
}

.services-modal .close-modal {
    position: fixed;
    top: 25px;
    right: 25px;
    width: 75px;
    height: 75px;
    background-color: transparent;
    cursor: pointer;
}

.services-modal .close-modal:hover {
    opacity: .3;
}

.services-modal .close-modal .lr {
    z-index: 1051;
    width: 1px;
    height: 75px;
    margin-left: 35px;
    background-color: #2c3e50;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.services-modal .close-modal .lr .rl {
    z-index: 1052;
    width: 1px;
    height: 75px;
    background-color: #2c3e50;
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}

.services-modal .modal-backdrop {
    display: none;
    opacity: 0;
}

label.btn span {
    font-size: 1.5em;
}

label input[type="radio"] ~ i.fa.fa-circle-o {
    color: #c8c8c8;
    display: inline;
}

label input[type="radio"] ~ i.fa.fa-check-circle-o {
    display: none;
}

label input[type="radio"]:checked ~ i.fa.fa-circle-o {
    display: none;
}

label input[type="radio"]:checked ~ i.fa.fa-check-circle-o {
    color: #7AA3CC;
    display: inline;
}

label:hover input[type="radio"] ~ i.fa {
    color: #7AA3CC;
}

label input[type="checkbox"] ~ i.fa.fa-square-o {
    color: #c8c8c8;
    display: inline;
}

label input[type="checkbox"] ~ i.fa.fa-check-square-o {
    display: none;
}

label input[type="checkbox"]:checked ~ i.fa.fa-square-o {
    display: none;
}

label input[type="checkbox"]:checked ~ i.fa.fa-check-square-o {
    color: #7AA3CC;
    display: inline;
}

label:hover input[type="checkbox"] ~ i.fa {
    color: #7AA3CC;
}

div[data-toggle="buttons"] label.active {
    color: #7AA3CC;
}

div[data-toggle="buttons"] label {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: normal;
    line-height: 2em;
    text-align: left;
    white-space: nowrap;
    vertical-align: top;
    cursor: pointer;
    background-color: none;
    border: 0px solid #c8c8c8;
    border-radius: 3px;
    color: #c8c8c8;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

div[data-toggle="buttons"] label:hover {
    color: #7AA3CC;
}

div[data-toggle="buttons"] label:active,
div[data-toggle="buttons"] label.active {
    -webkit-box-shadow: none;
    box-shadow: none;
}

.media-body {
    margin: 18px;
}

/* -----MAKE BUTTONS RED----- */
.btn-success,
.btn-default {
    background-color: #d20505 !important;
    border-color: #d20505 !important;
    color: #fff !important;
}

.btn-success:hover,
.btn-default:hover,
.btn-success:focus,
.btn-default:focus,
.btn-success:active,
.btn-default:active {
    background-color: #b00404 !important;
    border-color: #b00404 !important;
    color: #fff !important;
}

/* -----SERVICES SECTION BOXES----- */
#services .media {
    padding: 30px 25px;
    margin: 15px 0;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background-color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

#services .media:hover {
    background-color: #f8f9fa;
    border-color: #d20505;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

#services .media-body h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5em;
}

#services .media-body p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

#services .media a {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

#services .media a:hover {
    text-decoration: none !important;
    color: inherit !important;
}

/* -----LINK COLORS----- */
a {
    color: #d20505 !important;
}

a:hover,
a:focus,
a:active {
    color: #b00404 !important;
}

.navbar-default .navbar-nav > li > a {
    color: #fff !important;
}

/* -----SERVICES MODAL TEXT----- */
.services-modal .modal-body {
    text-align: left;
}

.services-modal .modal-body h2 {
    text-align: center;
}

.services-modal .item-details {
    text-align: left;
    margin-left: 0;
    padding-left: 0;
}

.services-modal .item-details li {
    text-align: left;
    list-style-position: inside;
}

.services-modal .modal-body .btn-default {
    text-align: center;
    display: block;
    margin: 0 auto;
}

/* -----GOOGLE MAPS STYLES----- */
.google-maps {
    position: relative;
    padding-bottom: 75%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.google-maps:hover {
    border-color: #d20505;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.google-maps iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* -----LANGUAGE SELECTOR STYLES----- */
.navbar-language-row {
    background-color: transparent !important;
    border-top: none;
    min-height: 40px;
}

.navbar-language-container {
    display: flex;
    justify-content: flex-end;
    padding: 5px 0;
}

.btn-language {
    background-color: transparent !important;
    border: none !important;
    color: #fff !important;
    margin-left: 5px;
    padding: 4px 12px;
    font-size: 12px;
    text-transform: uppercase;
    font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    transition: all 0.3s ease;
    border-radius: 3px !important;
}

.btn-language:hover,
.btn-language:focus {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.btn-language.active {
    background-color: #d20505 !important;
    color: #fff !important;
}

/* Mobile responsiveness for language buttons */
@media (max-width: 767px) {
    .navbar-language-container {
        justify-content: center;
    }
    
    .btn-language {
        font-size: 11px;
        padding: 4px 8px;
        margin: 2px;
    }
}