/* Basic Reset */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    /*font-family: 'Roboto', 'Montserrat', sans-serif;*/
    font-family: 'Figtree', sans-serif;
}

/* Header */
header {
    background-color: #11103f;
    padding: 5px;
    position: sticky;
    top: 0;
    max-height: 80px;
    z-index: 999;
}

header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    gap: 10px;
}

.SUSTEC-logo{
    padding: 0px 20px 0px 20px;
}

header .SUSTEC-logo img {
    max-width: 200px; /* Adjust logo size */
    max-height: 100px;
    height: auto;      /* アスペクト比を保ったまま高さを自動調整 */
    transition: opacity 0.3s ease, filter 0.3s ease; /* 滑らかなホバーとフィルターの効果 */
}

 .menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute; /* 追加 */
    right: 20px; /* 追加 */
    top: 10%; /* 追加 */
}

header nav ul {
    list-style-type: none;
    display: flex;
}

header nav ul li {
    position: relative; /* 親要素にrelativeを指定 */
    margin-right: 20px;
}

header nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    
}

header nav ul li a:hover {
    color: white;
}
/* Dropdown menu styles */
nav ul li.dropdown:hover > .dropdown-menu {
    display: block;
}

nav ul li a {
    color: #333;
    padding: 10px;
    transition: opacity 0.3s ease, filter 0.3s ease; /* 滑らかなホバーとフィルターの効果 */
}

nav ul li a:hover {
    opacity: 0.7; /* Add hover effect */
}

/* Dropdown submenu (hidden by default) */
.dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: black;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    min-width: 180px;
    z-index: 1;
}
.dropdown-menu li {
    margin: 0;
}
.dropdown-menu li a {
    padding: 10px;
    color: white;
    display: block;
}
.dropdown-menu li a:hover {
    background-color: #00438f;
}

/*-----------------*/
/*  Main Section   */
/*-----------------*/

/*------------------*/
/* Home 01 Section  */
/*------------------*/
.home01{
    background-image: url("images/test_space_image2.jpg");
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background-color: black;
    opacity: 0;
    transition: opacity 1s ease-in-out, background-color 1s ease-in-out;
}
/* ページが読み込まれたときにフェードイン */
body.loaded .home01{
    opacity: 1;
    background-color: black;
}

.home01-cont h1 {
    font-size: 44px;
    margin-bottom: 10px;
    padding: 0 100px 0 100px;
}

 .home01-cont p {
    font-size: 26px;
    margin-bottom: 20px;
    padding: 0 100px 0 100px;
}

/*-------------------------------*/
/* Home 02 - Client Logo Section */
/*-------------------------------*/

.home02-logo {
    background-color: #e0e0e0;
    padding: 50px 0;
    text-align: center; /* Center align the logos */
}

.home02-cont h2 {
    font-size: 14px;
    color: #333;
    margin-bottom: 20px; /* Add some space between the heading and logos */
    font-weight: bold;
}

.home02-logo-container {
    display: flex;
    justify-content: space-around; /* Distribute logos evenly with space between */
    align-items: center; /* Vertically align the logos */
    max-width: 1100px;
    margin: 0 auto;
    gap: 20px;
}

.home02logo img {
    max-width: 150px; /* Adjust logo size */
    max-height: 100px;
    height: auto;      /* アスペクト比を保ったまま高さを自動調整 */
    transition: opacity 0.3s ease, filter 0.3s ease; /* 滑らかなホバーとフィルターの効果 */
    filter: grayscale(10%);  /* 画像を完全にグレースケール化 */
}

.home02logo img:hover {
    filter: grayscale(0%);  /* ホバー時にカラーに戻す */
    opacity: 0.7; /* Add hover effect */
}

/*-----------------*/
/*  Home03 Section */
/*-----------------*/
.Home03 {
    background-color: #ffffff;
    padding: 50px 0;
}

.Home03-cont h2 {
    font-size: 28px;
    color: #333;
    padding: 100px 0 50px 0; /* Add some space between the heading and logos */
    font-weight: bold;
    text-align: center; /* Center align the logos */
}

.Home03-cont p {
    font-size: 16px;
    color: #333;
    padding: 0px 100px 0px 100px;
    margin-bottom: 50px; /* Add some space between the heading and logos */
    text-align: center; /* Center align the logos */
}

.Home03-container{
    display: flex;
    justify-content: space-around; /* Distribute logos evenly with space between */
    align-items: center; /* Vertically align the logos */
    align-items: flex-start; /* 画像のTopをそろえる */
    max-width: 900px;
    gap: 20px;
    margin: 0 auto;
    transition: opacity 3s, transform 3s;
    transform: translateY(0.1px);
    opacity: 0.0;
}
.Home03-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.Home03-container h2{
    font-size: 16px;
    color: #0069a7;
    margin-top: 30px; /* Add some space between the heading and logos */
    margin-bottom: 30px;
    font-weight: bold;

}
.Home03-container p{
    font-size: 14px;
    color: #333;
    margin-top: 30px; /* Add some space between the heading and logos */
    margin-bottom: 30px;
    max-width: 200px;
}
.Home03-container .btn{
    font-size: 16px;
    color: #5100bb;
}

.home03img img {
    max-width: 200px; /* Adjust logo size */
    max-height: 250px;
    height: auto;      /* アスペクト比を保ったまま高さを自動調整 */
    transition: opacity 0.3s ease, filter 0.3s ease; /* 滑らかなホバーとフィルターの効果 */
    border-radius: 3%;
}

.home03img img:hover {
    filter: grayscale(0%);  /* ホバー時にカラーに戻す */
    opacity: 0.7; /* Add hover effect */
    
}

/*------------------------------*/
/*  Home4 - Technology Section  */
/*------------------------------*/
.Home04-cont {
    height: 600px;
    background-image: url("images/Fujairah_DataAcquisition3.png");
    background-size: cover;
    background-position: center;
    height: 80vh;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.Home04-cont h2 {
    font-size: 32px;
    color: white;
    padding: 200px 100px 100px 100px; /* Add some space between the heading and logos */
    font-weight: bold;
    text-align: center; /* Center align the logos */
}

.Home04-cont p {
    font-size: 20px;
    color: white;
    padding: 0px 100px 100px 100px;
    margin-bottom: 50px; /* Add some space between the heading and logos */
    text-align: center; /* Center align the logos */
}

.Home04-Tech {
    display: flex;
    justify-content: center; /* 水平方向に中央寄せ */
    align-items: center; /* 垂直方向に中央寄せ */
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: white;
    height: 560px;
}
.Home04-Tech{
    transition: opacity 3s, transform 3s;
    transform: translateY(0.1px);
    opacity: 0.0;
}
.Home04-Tech.visible {
    opacity: 1;
    transform: translateY(0);
    background-color: white;
}

.Home04-Tech:nth-child(2n-1){
    flex-direction: row-reverse;
    background-color: #e0e0e0;
}

.Home04-Tech-cont{
    width: 500px;
    height: auto;

}
.Home04-Tech-cont h2 {
    font-size: 14px;
    color: rgb(3, 65, 236);
    padding: 0px 0px 20px 0px; /* Add some space between the heading and logos */
    font-weight: bold;
}
.Home04-Tech-cont h3 {
    font-size: 24px;
    color: black;
    padding: 0px 0px 20px 0px; /* Add some space between the heading and logos */
    font-weight: bold;
}

.Home04-Tech-cont p {
    font-size: 16px;
    color: black;
    padding: 0px 0px 20px 0px; /* Add some space between the heading and logos */
}

.Home04-Tech-img img{
    max-width: 350px; /* Adjust logo size */
    height: auto;      /* アスペクト比を保ったまま高さを自動調整 */
    transition: opacity 0.3s ease, filter 0.3s ease; /* 滑らかなホバーとフィルターの効果 */
    border-radius: 3%;
}

.Home04-Tech-img:hover {
    filter: grayscale(0%);  /* ホバー時にカラーに戻す */
    opacity: 0.7; /* Add hover effect */
}



/*----------------------------------*/
/*  Home5 - Sustainability Section  */
/*----------------------------------*/
.Home05 {
    height: 600px;
    background-image: url("images/Sustainability_background.png");
    background-size: cover;
    background-position: center;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.Home05-cont h2 {
    font-size: 26px;
    color: white;
    padding: 150px 100px 50px 100px; /* Add some space between the heading and logos */
    font-weight: bold;
    text-align: center; /* Center align the logos */
}

.Home05-Sus-img img{
    max-width: 600px; /* Adjust logo size */
    height: auto;      /* アスペクト比を保ったまま高さを自動調整 */
    transition: opacity 0.3s ease, filter 0.3s ease; /* 滑らかなホバーとフィルターの効果 */
    border-radius: 3%;
}

/*-----------------*/
/*  aside Section  */
/*-----------------*/

.about {
    height: 300px;
    width: 100%;
    background-image: url("images/SUSTEC_backgroundimg3.png");
    background-size: cover;
    background-position: center;
    align-items: center;
    position: top;
    display: flex;
    justify-content: space-around;
    gap: 20px;
    
}

.about-logo2 img {
    max-width: 400px;
}

.about-contact {
    max-width: 400px;
}

.about-contact h2 {
    font-size: 32px;
    padding: 10px 0px 10px 0px;
    text-decoration: underline;
}

.about-contact p {
    font-size: 18px;
    color: black;
    padding: 10px 0px 10px 0px;
    /*line-height: 1.6;*/
}
.about-linkedin h2 {
    font-size: 32px;
    padding: 10px 100px 10px 0px;
    text-decoration: underline;
}
.social-media {
    margin-top: 20px;
}

.social-media img {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-media img:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: #11103f;
    /*background-color: rgb(223, 222, 222);*/
    color: white;
    padding: 20px 0 20px 0;
    text-align: center;
}

/* ----------------------------------- */
/* ----------------------------------- */
/* Media Queries for Responsive Design */
/*------------------------------------ */
/* ----------------------------------- */


@media (max-width: 768px) {
    
/* Header modification*/
    header {
        background-color: #11103f;
        color: #fff;
        padding: 10px 0 10px 0;
    }
    .menu-icon {
        display: block;
    }
    .dropdown-menu {
        display: none;
      }
    .dropdown:hover .dropdown-menu {
        display: none;
      }

    .nav {
        background-color: #11103f;
        height: auto;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: auto;
        background-color: #11103f;
        position: absolute;
        top: 45px;
        right: 10px;
        height: 0; /* 追加 */
        overflow: hidden; /* 追加 */
        transition: height 0.3s ease; /* 追加 */
    }

    .nav-links li {
        text-align: center;
        margin: 10px 0;
    }

    .nav-links a {
        padding: 10px;
    }

    .nav-links.active {
        display: flex;
        height: auto; /* 追加：全画面の高さに設定 */
    }
/* Main part modification*/
    .home01-cont h1{
        font-size: 28px;
        padding: 50px 0px 20px 0px;
    }
    .home01-cont p{
        font-size: 18px;
        padding: 0px 0px 0px 0px;
    }
    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .home02-logo-container {
        flex-direction: column;
        width: auto;
        gap: 30px;
    }

    .Home03-cont h2{
        font-size: 22px;
        padding: 0 0 30px 0;
    }
    .Home03-cont p{
        padding: 0 0 0px 0;
        font-size: 14px;
    }

    .Home03-container {
        flex-direction: column;
        justify-content: center; /* 垂直方向に中央揃え */
        align-items: center; /* 水平方向に中央揃え */
        gap: 20px;
        padding: 0px;
    }
    .Home03-container img{
        padding: 0px;
    }

    .Home04-cont {
        width: auto;
        height: 500px;
    }
    .Home04-cont h2{
        font-size: 22px;
        padding: 100px 10px 30px 10px;
    }
    .Home04-cont p{
        font-size: 16px;
        padding: 30px 10px 100px 10px;
    }

    .Home04-Tech {
        flex-direction: column;
        justify-content: center; /* 垂直方向に中央揃え */
        align-items: center; /* 水平方向に中央揃え */
        height: auto;
        padding: 50px 0px 50px 0px;
        text-align: center;
    }

    .Home04-Tech-cont {
        width: 100%;
        padding: 0 20px;

    }

    .Home04-Tech-img img {
        max-width: 70%;
        justify-content: center; /* 垂直方向に中央揃え */
        align-items: center; /* 水平方向に中央揃え */
    }

    .Home05-cont h2 {
        font-size: 20px;
        padding: 150px 10px 150px 10px;
        justify-content: center; /* 垂直方向に中央揃え */
        align-items: center; /* 水平方向に中央揃え */
    }

    .Home05-Sus-img img {
        padding: 0 50px 0 50px;
        max-width: 100%;
        justify-content: center; /* 垂直方向に中央揃え */
        align-items: center; /* 水平方向に中央揃え */
    }

    .about {
        flex-direction: column;
        align-items:start;
        gap: 0px;
    }
    .about-logo2 img{
        width: 200px;
    }
    .about-contact h2{
        font-size: 18px;
        padding: 0px 10px 10px 20px;
    }
    .about-contact p{
        padding: 0px 10px 0 20px;
        font-size: 14px;
    
    }
    .about-linkedin h2{
        font-size: 18px;
        padding: 10px 10px 0 20px;
    }
    
    .social-media img{
         margin: 0px 10px 10px 20px;
    }

}

/* 
  @media only screen and (min-device-width: 375px) and 
  (max-device-width: 812px) and (orientation: portrait) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }
}



/* iPhoneの縦向き 
@media only screen and (min-device-width: 375px) and (max-device-width: 812px) and (orientation: portrait) {
    body {
      background-color: lightblue;
    }
  }
   */

  /* iPhoneの横向き 
@media only screen and (min-device-width: 375px) and (max-device-width: 812px) and (orientation: landscape) {
    body {
      background-color: lightcoral;
    }
  }
    */

  /* iPadの縦向き 
  @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) {
    body {
      background-color: lightgreen;
    }
  }
    */
