* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Roboto, Arial, sans-serif;
    line-height: 1.4rem;
    overflow-x: hidden;
    background-color: var(--text-color-light);
}

@font-face {
    font-family: 'Roboto';
    src: url('../assets/fonts/roboto/Roboto-Light.woff2') format('woff2'),
         url('../assets/fonts/roboto/Roboto-Light.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Roboto-Bold';
    src: url('../assets/fonts/roboto/Roboto-Medium.woff2') format('woff2'),
         url('../assets/fonts/roboto/Roboto-Medium.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Lovelo';
    src: url('../assets/fonts/lovelo/LoveloBlack.woff2') format('woff2'),
         url('../assets/fonts/lovelo/LoveloBlack.woff') format('woff');
    font-display: swap;
}


:root {
    /***************************** General Colors *****************************/
    --primary-color:    #0D698B;
    --accent-color:     #E34234;
    --text-color-light: #F2F1E8;
    --text-color-dark:  #050533;

    /***************************** Font Families *****************************/
    --font-primary:     'Lovelo', Arial, sans-serif;        /* Titles   */
    --font-secondary:   'Roboto', Arial, sans-serif;        /* Body     */
    --font-sec-bold:    'Roboto-Bold', Arial, sans-serif;   /* Bold     */
}

h1, h2, h3 {
    font-family: var(--font-primary);
    color: var(--text-color-light);
    line-height: normal;
}

/***************************** General Section Styling *****************************/
.logo img{
    height: 7rem;
}

.profile-section {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    position: relative;
    background-color: var(--bg-color);
    color: var(--text-color-dark);
}

.section-content {
    display: flex;
    width: 95%;
    gap: 1.5rem;
    margin-top: 1.5rem;
    max-width: 100%;
    overflow-x: hidden;
}

/***************************** Navigation *****************************/
.navigation {
    position: fixed;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 1rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
    will-change: transform;
}

.nav-dot.active {
    background-color: var(--text-color-light);
    transform: scale(1.2);
}

/***************************** Shared Styles for Profile Info *****************************/
.profile-info,
.profile-image {
    width: 50%;
    height: auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    box-sizing: border-box;
}

.profile-info {
    padding: 2rem;
    background-color: var(--primary-color);
    color: var(--text-color-light);
}


.section-header h2 {
    font-size: 3rem;
    text-transform: uppercase;
}

.section-details {
    margin-top: 1rem;
    width: 90%
}

.highlight {
    color: var(--text-color-light);
    font-family: var(--font-sec-bold);
    font-weight: 500;
}

/***************************** Button Styling *****************************/
.service-button {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    font-family: var(--font-sec-bold);
    font-size: 1rem;
    padding: 0.5rem;
    width: 10rem;
    border-radius: 3px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.service-button:hover {
    background-color: var(--accent-color);
}

/***************************** Individual Sections Styling *****************************/

/* Section 1: Profile */
#section1 .section-content {
    gap: unset;
}
#section1 .profile-info {
    color: var(--text-color-light);
    align-items: flex-end;
}

#section1 .profile-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

#section1 .profile-credentials {
    width: 100%;
    text-align: right;
}

#section1 .profile-credentials h2 {
    color: var(--accent-color);
    text-transform: uppercase;
}

#section1 .profile-name {
    align-self: center;
}

#section1 .profile-name h1 {
    font-size: 3rem;
    line-height: 3rem;
}

#section1 .education {
    padding: 1.5rem 0;
    text-align: right;
    width: 100%;
}

#section1 .service-button {
    background-color: var(--accent-color);
    transition: transform 0.3s ease;
}

#section1 .service-button:hover {
    transform: scale(1.05);
}

.contact-cta {
    display: flex;
    align-self: flex-end;
    text-align: center;
}

#section1 .profile-image {
    background-image: url('/assets/photos/1-profile.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/** Section 2 **/
#section2 .section-content {
    background-image: url('/assets/photos/2-master-mariner.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    flex-direction: row-reverse;
}

#section2 .section-header {
    background-color: rgba(13, 105, 139, 0.5);
    margin-right: 1rem;
    text-align: end;
}

#section2 h2 {
    font-size: 4rem;
    padding: 10px;
}

#section2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#section2 .profile-info {
    position: relative;
    background-color: unset;
    justify-content: flex-end;
}

/*** Section 3 ***/
#section3 .section-content {
    flex-direction: row;
}

.section3-image {
    background-image: url('/assets/photos/3-polar-pilot.jpeg');
    background-position: center;
    background-size: cover;
}

/**** Section 4 ****/
#section4 .profile-info {
    text-align: right;
}

#section4 .section-details {
    align-self: flex-end;
}

.section4-image {
    background-image: url('/assets/photos/4-profile-photo.jpeg');
    background-position: center;
    background-size: cover;
}

/***** Section 5 *****/
#section5 .section-content {
    flex-direction: row-reverse;
}

#section5 .section-details ul {
    color: var(--text-color-light);
    background-color: var(--primary-color);
    padding: 1rem;
    border-radius: 8px;
}

.section5-image {
    background-image: url('/assets/photos/5-operations.jpeg');
    background-position: center;
    background-size: cover;
}

/****** Section 6 ******/
#section6 .section-content {
    flex-direction: row-reverse;
}

#section6 .profile-info {
    text-align: right;
}

#section6 .section-details {
    align-self: flex-end;
}

.section6-image {
    background-image: url('/assets/photos/6-multilingual.jpeg');
    background-position: center;
    background-size: cover;
}

/******* Section 7 *******/
#section7 {
    padding: 6rem 2rem;
    text-align: center;
}

#section7 h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Service Cards Layout */
.consultation-services {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    /* Fallback for browsers that don't support gap */
    margin: -0.75rem;
    /* Modern browsers will use this instead */
    margin: 0;
    gap: 1.5rem;
}

.service-card {
    background-color: var(--text-color-light);
    border-radius: 5px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 350px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateY(0);
    will-change: transform;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.service-card img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.service-title {
    letter-spacing: -1px;
    color: var(--accent-color);
    text-transform: uppercase;
    height: 2rem;
}

.service-description {
    color: var(--text-color-dark);
    margin-bottom: 1.5rem;
}

/******** Section 8 ********/
#section8 {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 1rem;
}

.section8-heading {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 0.5rem;
}

.section8-name {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
}

.section8-name h2 {
    color: var(--accent-color);
}

.contact-box, .social-box {
    border-bottom: 0.5px solid var(--text-color-light);
    padding: 1rem;
    font-family: var(--font-sec-bold);
    font-size: 0.9rem;
}

.contact-box h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    border-bottom: 0.5px solid var(--text-color-light);
    width: fit-content;
    padding-bottom: 0.5rem;
}

.contact-details, .social-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 2rem;
    padding: 0.5rem 0;
}

.contact-details img,
.social-icons img {
    width: 25px;
    height: 25px;
    display: block;
}

.social-icons p {
    text-decoration: none;
}

.social-icons a {
    display: inline-block;
    text-decoration: none;
}

footer a {
    color: inherit;
    text-decoration: none;
  }

/* Hover effect */
.contact-details img,
.social-icons img {
    transition: transform 0.3s ease;
}

.contact-details img:hover,
.social-icons img:hover {
    transform: scale(1.3);
}

.contact-details img,
.social-icons img {
    cursor: pointer;
}
.rights-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 0.8rem;
    padding: 1rem;
}

.made-by-box {
    display: flex;
}

.made-by-box a {
    text-decoration: none;
    color: white;
    margin-left: 4px;
}

.contact-box {
    display: flex;
    flex-direction: column;
}

.phone-number {
    color: var(--text-color-light);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    pointer-events: none;
}

/********************************************** Responsive Design **********************************************/

@media (max-width: 1024px) {
    #section7 .consultation-services {
        gap: 1.5rem;
    }

    #section7 .service-card {
        flex: 1 1 calc(50% - 1rem);
    }
}

@media (max-width: 820px) {
    .navigation {
        display: none;
    }

    .section-content {
        width: 100%;
        gap: unset;
        margin-top: unset;
    }

    .profile-info,
    .profile-image {
        width: 100%;
        margin: 0;
        padding: 1rem;
        height: 50%;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section8-container {
        gap: 2rem;
   }

   .contact-box,
   .social-box {
        width: 100%;
   }

   .rights-container {
    text-align: center;
    margin-bottom: 2rem;
   }

    .made-by-box {
        justify-content: center;
    }
    
    #section3 .section-content,
    #section6 .section-content {
        flex-direction: column-reverse;
    }
    #section4 .section-content,
    #section5 .section-content,
    #section1 .section-content {
        flex-direction: column;
    }

    #section3 .profile-info,
    #section4 .profile-info,
    #section5 .profile-info,
    #section6 .profile-info {
        text-align: center;
        padding: 1rem;
    }

    #section3 .section-details,
    #section4 .section-details,
    #section5 .section-details,
    #section6 .section-details {
        width: unset;
    }

    /* SECTION 1 small screen */
    #section1 .profile-info {
        align-items: center;
        justify-content: center;
    }

    #section1 .profile-header {
        text-align: center;
        flex-direction: column;
    }

    #section1 .logo img {
        height: 5rem;
    }

    #section1 .profile-name h1 {
        font-size: 1.8rem;
        line-height: 2rem;;
    }

    #section1 .profile-credentials h2 {
        font-size: 1.3rem;
    }

    #section1 .profile-credentials p {
        font-size: 0.9rem;
    }
    #section1 .education {
        font-size: 0.9rem;
    }

    #section1 .education {
        padding: unset;
    }

    #section1 .profile-credentials,
    #section1 .education,
    #section1 .contact-cta {
        text-align: center;
        align-self: center;
        margin-top: 0.5rem;
    }

    #section1 .service-button {
        font-size: 0.9rem;
    }

    /* SECTION 2 small screen */
    #section2 .profile-info {
        margin-left: 3rem;
        align-self: end;
        padding-right: 0.2rem;
    }

    #section2 .section-header h2 {
        font-size: 3rem;
        padding: 0.5rem;
    }

    #section2 .section-header {
        margin: unset;
    }

    /* SECTION 7 small screen */
    #section7 .consultation-services {
        flex-direction: column;
        align-items: center;
    }

    #section7 .service-card {
        flex: 1 1 100%;
    }

    #section7 h2 {
        font-size: 2rem;
    }
}

/******* Landscape mode for mobile devices *******/
@media (max-height: 600px) and (orientation: landscape) {
    .profile-info,
    .profile-image {
        width: 50%;
        height: 100%;
    }

    #section1 .section-content,
    #section3 .section-content,
    #section4 .section-content {
        flex-direction: row;
    }

    #section5 .section-content,
    #section6 .section-content {
        flex-direction: row-reverse;
    }

    #section3 .profile-info,
    #section5 .profile-info {
        text-align: left;
    }

    #section4 .profile-info,
    #section6 .profile-info {
        text-align: right;
    }
}

/* Larger screens - increased font size for section details */
@media (min-width: 1024px) {
    #section3 .section-details p,
    #section4 .section-details p,
    #section5 .section-details p,
    #section6 .section-details p {
        font-size: 130%;
        line-height: 1.6;
    }
}
