html {
    scroll-behavior: smooth;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}


.about-page{
    background: url('../images/1698229487528.jpg') no-repeat center center/cover;
}

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

header {
    background-color: #123;
    color: #fff;
    padding: 10px 0;
    font-size: large;
}

header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header nav img#logo {
    height: 60px;
    border-radius: 25%;
}

header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

header nav ul li a:hover {
    color: darksalmon;
}

@keyframes zoomOut {
    from {
      opacity: 1;
    }
    50% {
      opacity: 0;
      transform: scale3d(0.3, 0.3, 0.3);
    }
    to {
      opacity: 0;
      transform: scale3d(0, 0, 0);
    }
  }
  
  .zoomOut {
    animation: zoomOut 1s ease-in-out;
  }
  
  
.categories {
    width: 100%;
    padding: 0;
    margin: 0;
}

section {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

div h1, div h2, div h3{
    color: #f4f4f4;
    margin: 20px;
    padding: 10px;
    
}
i {
    color: darksalmon;
}

div p {
    line-height: 1.6;
    letter-spacing: 0.5px;
    color: #f4f4f4;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

#introduction {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

#introduction {
    animation: fadeInUp 2.5s forwards;
}

#introduction {
    display: flex;
    align-items: center;
   
}

.intro-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    
}

span {
    color: darkorchid;
}

.intro-text {
    flex: 2;
    border-radius: 2%;
    padding: 2rem;
    margin-right: 2rem;
    
}

strong {
    color: aqua;
}

.intro-text {
    font-size: large;
    font-family:initial;
    animation: slideIn 1s ease-out;
}

.intro-image {
    float: inline-end;
    flex: 1.3;
    padding-top: 5rem;
    margin-left: 2rem;
    
}

.intro-image img {
    height: 500px; 
    width: 100%; 
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.intro-image:hover img {
    transform: scale(1.05);
    border: 2px solid hotpink;
}


.link-button {
    display: inline-block;
    padding: 15px 20px;
    background-color: darkcyan;
    color: #fff;
    margin-left: 10rem;
    text-decoration: none;
    border-radius: 10px;
    border: 2px solid darkorchid;
    transition: background-color 0.3s, transform 0.3s;
}

.link-button:hover {
    background-color: darksalmon;
    transform: scale(1.05);
}

.categories{
    background: url('../images/4313842516_f44583a0d2_o.jpg');
}

.highlights h2 {
    padding: 2rem;
    text-align: center;
}

#highlights {
    display: flex;
    justify-content: space-between;
    padding: 3rem;
}

@keyframes rotateIn {
    from {
      transform: rotate3d(0, 0, 1, -200deg);
      opacity: 0;
    }
    to {
      transform: rotate3d(0, 0, 0, 0deg);
      opacity: 1;
    }
  }
  
  .highlight-box {
    animation: rotateIn 1s ease-in-out;
  }
  
.highlight-box {
    background: url('../images/438137453_977663637389166_7041372685070404303_n.jpg');
    padding: 15px;
    border: 3px solid darkcyan;
    width: 300px; 
    flex: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    
}

.highlight-box img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.highlight-box:last-child {
    margin-right: 0;
}

.highlight-box h3 {
    margin-top: 0;
}

.highlight-box p {
    margin-bottom: 20px;
}

.highlight-box a {
    text-decoration: none;
    color: #fFF;
}

.highlight-box a:hover {
    color: aquamarine;
}

.highlight-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.highlight-box::before, .highlight-box::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    top: 0;
    left: 0;
    z-index: -1;
    transition: transform 0.3s;
}

.highlight-box::before {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.highlight-box::after {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    transform: scale(1.2);
}

.highlight-box:hover::before, .highlight-box:hover::after {
    transform: scale(1.2);
}

.links{
    margin-top: auto;
    background-color: darkslateblue;
    padding: 10px;
    border-radius: 50px;
}

.links h3 {
    margin: 0%;
}

footer {
    background-color: #123;
    color: #fff;
    text-align: center;
    position: relative;
    width: 100%;
    margin: auto;
}

.social-media{
    padding-bottom: 2rem;
}

.social-media h2{
    padding: 0%;
}

footer .social-media a {
    color: #fff;
    text-decoration: none;
}

footer .social-media a:hover {
    color: bisque;
}

footer .social-media img {
    width: 30px;
    height: 30px;
    margin: 1rem;
    border-radius: 3px;
}

footer .social-media img:hover {
    background-color: rebeccapurple;
}

.copy {
    text-align: right;
    margin-right: 10px;
}

.copy span {
    color: #fff;
}


@media (max-width: 768px) {
    header nav {
        flex-direction: column;
    }

    #logo {
       display: flex;
       
    }
    header nav ul {
        flex-direction: column;
        align-items: end;
    }

    header nav ul li {
        margin: 10px 0;
    }
    section {
        margin: auto;
        padding: 0%;
    }

    div h1, div h2, div h3{
        margin: 10px;
    }

    #introduction {
        margin: 10px;
        padding: 0%;
        flex-direction: column;
        text-align: center;
    }

    .intro-content {
        margin: auto;
        padding: 0%;
        flex-direction: column;
        align-items: center;
    }

    .intro-text {
        text-align: center;
        margin: 0px;
        padding: 0%;
    }

    .intro-image {
        margin: 20px 0;
    }

    .intro-image img {
        height: auto;
        width: 90%;
    }

    .link-button {
        margin-left: 0;
        margin-top: 20px;
    }

    #highlights {
        flex-direction: column;
        padding: 1rem;
    }

    .highlight-box {
        margin: 20px auto;
        width: 95%;
    }
}

.nav-links a {
    color: #f4f4f4;
}

.language-button,
.dark-mode-toggle label {
    background-color: #123;
    color: #fff;
    padding: 10px;
}

body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

body.dark-mode .nav-links a {
    color: #ffffff;
}

body.dark-mode .language-button,
body.dark-mode .dark-mode-toggle label {
    color: #ffffff;
}

.dark-mode-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dark-mode-toggle input[type="checkbox"] {
    display: none;
}

.dark-mode-toggle label {
    cursor: pointer;
}

.dark-mode-toggle label:before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 20px;
    position: relative;
    transition: background-color 0.3s;
}

.dark-mode-toggle input[type="checkbox"]:checked + label:before {
    background-color: #667;
}

.dark-mode-toggle label:after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.dark-mode-toggle input[type="checkbox"]:checked + label:after {
    transform: translateX(20px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 2rem;
    background-color: #123;
}

.hamburger .line {
    width: 35px;
    height: 5px;
    background-color: #fff;
    margin: 4px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #123;
    padding: 10px;
}

#logo {
    height: 40px;
    margin-right: 15rem;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        align-items: end;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: end;
    }

    .nav-links li {
        width: 100%;
        text-align: end;
    
    }

    .nav-links li a {
        display: block;
        text-align: end;
        margin-right: 3rem;
    }

    .nav-links.active {
        display: flex;
    
    }
}
