* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    color: rgb(27, 44, 66);
}

.header {
    max-width: 1125px;
    height: 572px;
    margin: 0 auto;
    background-image: url('images/head2.png');
    background-size: cover;
    background-position: left;
    border-bottom: 1px solid rgb(83, 88, 92);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top left, rgba(16, 28, 41, 1) 0%, transparent 90%);
    pointer-events: none;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: relative;
    z-index: 1;
}

.header-logo {
    flex-shrink: 0;
}

.logo-img {
    height: 50px;
    width: auto;
}

.header-nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 50px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
}

.nav-menu a:hover {    
    text-decoration: underline;
    text-underline-offset: 15px;
    text-decoration-color: rgb(126, 171, 206);
    text-decoration-thickness: 3px;
}

.header-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    height: calc(100% - 90px);
}

.header-title {
    margin: 0;
    font-size: 48px;
    font-weight: 700;
    color: rgb(252, 252, 252);
    margin-bottom: 15px;
    text-transform: uppercase;
    width: 65%;
    transform: scaleY(1.5);
    line-height: 45px;
}

.header-subtitle {
    margin: 0;
    font-size: 32px;
    font-weight: 600;
    color: rgb(142, 190, 229);
    margin-bottom: 15px;
    text-transform: uppercase;
    width: 65%;
    padding-top: 20px;
}

.header-description {
    margin: 0;
    font-size: 14px;
    color: rgb(245, 245, 245);
    margin-bottom: 20px;
    width: 30%;
    line-height: 25px;
}

.header-call-us {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: rgba(21, 37, 57);
    padding: 20px 40px;
    border-radius: 8px;
    border: 1px solid rgb(112, 130, 145);
    text-transform: uppercase;
}

.call-us-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.call-us-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.call-us-title {
    font-size: 14px;
    font-weight: 600;
    color: rgb(245, 245, 245);
}

.call-us-number {
    font-size: 24px;
    font-weight: 700;
    color: rgb(150, 196, 233);
    transform: scaleY(1.3);
}

/* Responsive header for smaller screens */
@media (max-width: 768px) {
    .header {
        height: auto;
        min-height: 300px;
    }

    .header-top {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .nav-menu {
        gap: 15px;
        font-size: 12px;
        padding-top: 20px;
    }

    .header-title {
        font-size: 34px;
        width: 100%;
        line-height: 30px;
        transform: scaleY(1.5);
        padding-top: 20px;
    }

    .header-subtitle,
    .header-description,
    .header-call-us {
        display: none;
    }

    .header-content {
        padding: 20px;
        height: auto;
    }
}

.section1 {
    max-width: 1125px;
    height: 138px;
    background-color: rgb(27, 44, 66);
    margin: 0 auto;
    padding: 0 20px;
}

.section1-container {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 0;
}

.section1-block {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.section1-block-1 {
    width: 40%;
}

.section1-block-2 {
    width: 30%;
}

.section1-block-3 {
    width: 30%;
    justify-content: center;
    padding-left: 20px;
}

.section1-image {

    flex-shrink: 0;
}

.section1-title {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: white;
    transform: scaleY(1.4);
    text-transform: uppercase;
}

.section1-title-main {
    display: inline-block;
    transform: scaleY(1.7);
    line-height: 26px;
}

.section1-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: white;
    text-align: center;
}

.section1-block-2-small-text p {
    color: rgb(200, 205, 213);
    font-size: 12px;
}

.section1-divider {
    width: 1px;
    height: 60%;
    background-color: #cccccc;
    margin: 0 15px;
}

/* Responsive breakpoints for section1 */
@media (max-width: 768px) {
    .section1 {
        height: auto;
        padding: 20px;
    }

    .section1-container {
        flex-direction: column;
    }

    .section1-block {
        width: 100%;
        margin: 10px 0;
    }

    .section1-block-1,
    .section1-block-2,
    .section1-block-3 {
        width: 100%;
        display: none;
    }

    .section1-block-1 {
        display: flex;
    }

    .section1-divider {
        display: none;
    }
}

.section2 {
    max-width: 1125px;
    margin: 0 auto;
    padding: 40px 20px 20px 20px;
    background-color: rgb(239, 239, 239);
}

.section2-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.section2-line {
    flex: 1;
    border: none;
    border-top: 2px solid #cccccc;
    margin: 0;
}

.section2 h1 {
    margin: 0;
    white-space: nowrap;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
    letter-spacing: 1px;
}

@media (max-width: 480px) {
    .section2 h1 {
        font-size: 20px;
    }
}

.container {
    width: 100%;
    max-width: 1125px;
    margin: 0 auto;
    padding: 0 20px;
}

.section3 {
    max-width: 1125px;
    /*margin: 40px auto;
    padding: 40px 20px;*/
    padding-bottom: 40px;
    margin: 0px auto;
    background-color: rgb(239, 239, 239);
    padding: 0 20px 40px 20px;
}

.section3-top-line {
    border: none;
    border-top: 1px solid #cccccc;
    margin: 0; 
    padding: 0;
}

.section3-blocks {
    display: flex;
    gap: 0;
    justify-content: space-between;
}

.section3-block {
    flex: 1;
    text-align: center;
    padding: 0 15px;
    border-right: 1px solid #cccccc;
}

.section3-block:last-child {
    border-right: none;
}

.section3-image {
    width: 100%;
    height: 97px;
    max-width: 150px;
    margin-bottom: 20px;
    padding-top: 10px;
}

.section3-title {
    margin: 5px 0 10px 0;
    font-size: 18px;
    font-weight: bold;
    color: rgb(27, 44, 66);
    height: 55px;
    text-transform: uppercase;
}

.section3-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgb(79, 83, 94);
}

/* Responsive breakpoints */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .section3-blocks {
        flex-wrap: wrap;
    }

    .section3-block {
        flex: 1 1 calc(50% - 10px);
        margin: 10px 5px;
        border-right: none;
        border-bottom: 2px solid #cccccc;
        padding-bottom: 20px;
    }

    .section3-block:nth-child(odd) {
        margin-right: 10px;
    }

        /*
            .section3-block:last-child,
    .section3-block:nth-last-child(2) {
    */

    .section3-block:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .section3-blocks {
        flex-direction: column;
    }

    .section3-block {
        flex: 1 1 100%;
        border-right: none;
        border-bottom: 2px solid #cccccc;
        padding: 0 15px 20px 15px;
        margin: 10px 0;
    }

    .section3-block:last-child {
        border-bottom: none;
    }
}

.section4 {
    max-width: 1125px;
    margin: 0 auto;   
}

.section4-container {
    display: flex;
    gap: 0;
    align-items: stretch;
}

.section4-left {
    flex: 1;
    background-color: rgb(27, 44, 66);
    color: white;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section4-left h2 {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
    display: inline-block;
    transform: scaleY(1.3);
}

.section4-left p {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.7;
    color: rgb(200, 205, 213);
}

.section4-left p:last-child {
    margin-bottom: 0;
}

.section4-right {
    width: 630px;
    height: 330px;
    flex-shrink: 0;
}

.section4-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section4-license {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.section4-license-image {
    height: 50px;
    width: auto;
}

.section4-license-divider {
    width: 2px;
    height: 50px;
    background-color: rgb(87, 100, 116);
}

.section4-license-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.section4-license-label {
    color: rgb(140, 175, 197);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

.section4-license-code {
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.section4-license-code-small {
    color: white;
    font-size: 14px;
    color: rgb(200, 205, 213);
}

/* Responsive breakpoints for section4 */
@media (max-width: 1024px) {
    .section4-right {
        width: 500px;
        height: 260px;
    }
}

@media (max-width: 768px) {
    .section4-container {
        flex-direction: column;
    }

    .section4-left {
        padding: 30px;
    }

    .section4-right {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .section4-left {
        padding: 20px;
    }

    .section4-left h2 {
        font-size: 22px;
    }

    .section4-left p {
        font-size: 14px;
    }
}

.section5 {
    max-width: 1125px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgb(239, 239, 239);
}

.section5-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.section5-block {
    padding: 20px;
}

.section5-block-1 {
    width: 40%;
}

.section5-block-3 {
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}

.section5-block-2,
.section5-block-3,
.section5-block-4 {
    width: 20%;
    text-align: center;
}

.section5-image {
   
    height: auto;
    margin: 0 auto 15px auto;
    display: block;
}

.section5-title {
    margin: 15px 0 10px 0;
    font-size: 16px;
    font-weight: bold;
    color: rgb(27, 44, 66);
    height: 35px;
    text-transform: uppercase;
}

.section5-title-main {
    font-size: 22px;
    height: auto;
    display: inline-block;
    transform: scaleY(1.3);
    padding-bottom: 10px;
}

.section5-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgb(79, 83, 94);
}

/* Responsive breakpoints for section5 */
@media (max-width: 1024px) {
    .section5-block-1 {
        width: 40%;
    }

    .section5-block-2,
    .section5-block-3,
    .section5-block-4 {
        width: calc(20% - 5px);
        text-align: center;
    }
}

@media (max-width: 768px) {
    .section5-container {
        flex-direction: column;
        gap: 20px;
    }

    .section5-block {
        width: 100% !important;
        padding: 20px;
    }

    .section5-block-2,
    .section5-block-3,
    .section5-block-4 {
        text-align: left;
        text-align: center;
    }

    .section5-block-3 {
        border-left: none;
        border-right: none;
        border-top: 1px solid #ccc;
        border-bottom: 1px solid #ccc;
    }
}

@media (max-width: 480px) {
    .section5 {
        padding: 20px 15px;
    }

    .section5-block {
        padding: 15px;
    }

    .section5-title {
        font-size: 14px;
    }

    .section5-text {
        font-size: 13px;
    }
}

.footer {
    max-width: 1125px;
    height: 90px;
    background-color: rgb(27, 44, 66);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-block {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.footer-block-1 {
    width: 25%;
}

.footer-block-2 {
    width: 50%;
}

.footer-block-3 {
    width: 25%;
    border-left: 1px solid #ccc;
}

.footer-block p {
    margin: 0;
    
}

.footer-block-3 p {
    font-size: 24px;
}

/* Responsive breakpoints for footer */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        padding: 10px 20px;
    }

    .footer-block {
        width: 100% !important;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .footer-block:last-child {
        border-bottom: none;
    }

    .footer-block-1,
    .footer-block-2 {
        display: none;
    }

    .footer-block-3 {
        border-left: 0;
        font-size: 24px; /* empty */
    }
}

@media (max-width: 480px) {
    .footer {
        height: auto;
    }

    .footer-block p {
        /*font-size: 12px;*/
        font-size: 24px;
    }
}

.footer-blue {
    color: rgb(161, 212, 235);
    font-size: 12px;
    padding-bottom: 10px;
    text-align: center;
}

.footer-white {
    color: rgb(191, 195, 200);
    font-size: 12px;
    text-align: center;
}

.footer-phone {
    padding-right: 10px;
}

/* Loading Animation - Popup Effect */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Header Animations */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Logo Animation */
.header-logo {
    opacity: 0;
}

.header-logo.loaded {
    animation: slideInFromLeft 0.7s ease-out forwards;
}

/* Header Nav Animation */
.nav-menu {
    opacity: 0;
}

.nav-menu.loaded {
    animation: slideInFromRight 0.7s ease-out forwards;
    animation-delay: 0.2s;
}

/* Header Title Animation */
.header-title {
    opacity: 0;
}

.header-title.loaded {
    animation: fadeInUp 0.7s ease-out forwards;
    animation-delay: 0.3s;
}

/* Header Subtitle Animation */
.header-subtitle {
    opacity: 0;
}

.header-subtitle.loaded {
    animation: fadeInUp 0.7s ease-out forwards;
    animation-delay: 0.4s;
}

/* Header Description Animation */
.header-description {
    opacity: 0;
}

.header-description.loaded {
    animation: fadeInUp 0.7s ease-out forwards;
    animation-delay: 0.5s;
}

/* Header Call Us Animation */
.header-call-us {
    opacity: 0;
}

.header-call-us.loaded {
    animation: fadeInUp 0.7s ease-out forwards;
    animation-delay: 0.6s;
}

/* Section4 Text Animations */
.section4-left h2 {
    opacity: 0;
}

.section4-left h2.loaded {
    animation: slideInFromLeft 0.7s ease-out forwards;
}

.section4-left p {
    opacity: 0;
}

.section4-left p.loaded {
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: 0.15s;
}

.section4-license {
    opacity: 0;
}

.section4-license.loaded {
    animation: slideInFromLeft 0.6s ease-out forwards;
}

.section4-license:nth-child(3).loaded {
    animation-delay: 0.3s;
}

.section4-license:nth-child(4).loaded {
    animation-delay: 0.45s;
}

.popup-animate {
    animation: popupFadeIn 0.6s ease-out forwards;
}

.section1-block {
    opacity: 0;
}

.section1-block.loaded {
    animation: popupFadeIn 0.6s ease-out forwards;
}

.section3-block {
    opacity: 0;
}

.section3-block.loaded {
    animation: popupFadeIn 0.6s ease-out forwards;
}

.section5-block {
    opacity: 0;
}

.section5-block.loaded {
    animation: popupFadeIn 0.6s ease-out forwards;
}

/* Stagger the animations */
.section1-block:nth-child(1).loaded {
    animation-delay: 0.1s;
}

.section1-block:nth-child(3).loaded {
    animation-delay: 0.2s;
}

.section1-block:nth-child(5).loaded {
    animation-delay: 0.3s;
}

.section3-block:nth-child(1).loaded {
    animation-delay: 0.1s;
}

.section3-block:nth-child(2).loaded {
    animation-delay: 0.2s;
}

.section3-block:nth-child(3).loaded {
    animation-delay: 0.3s;
}

.section3-block:nth-child(4).loaded {
    animation-delay: 0.4s;
}

.section3-block:nth-child(5).loaded {
    animation-delay: 0.5s;
}

.section3-block:nth-child(6).loaded {
    animation-delay: 0.6s;
}

.section5-block:nth-child(1).loaded {
    animation-delay: 0.1s;
}

.section5-block:nth-child(2).loaded {
    animation-delay: 0.2s;
}

.section5-block:nth-child(3).loaded {
    animation-delay: 0.3s;
}

.section5-block:nth-child(4).loaded {
    animation-delay: 0.4s;
}
