@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Familjen+Grotesk:ital,wght@0,400..700;1,400..700&family=Syne:wght@400..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

body{
    margin: 0;
    padding: 0;
}

*{
    font-family: "Familjen Grotesk",sans-serif;
    background-color: #ECF6FE;
}

.logo{
    margin: 8px;
    margin-left: 24px;
}

.logo a {
    text-decoration: none;
    font-family: "Syne",sans-serif;
    font-weight: 800;
    font-size: 42px;
    color: #381664;
}

.nav-links a {
    position: relative;
    transition: color 0.3s ease;
}
  
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #381664;
    transition: width 0.3s ease;
}
  
.nav-links a:hover {
    color: #440A8F;
}
  
.nav-links a:hover::after {
    width: 100%;
}

.bar{
    display: flex;
    justify-content: space-between;
    margin: 1vh;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #381664;
    font-family: "Syne", sans-serif;
    font-size: 23px;
    transition: color 0.3s ease-in-out;
    margin: 19px;
    margin-top: 24px;
    font-weight: 500;
}

nav a:hover {
    color: #440A8F;
}

/* Menu Toggle Button - Hidden on Larger Screens */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: #381664;
    background: none;
    border: 2px solid #381664;
    border-radius: 5px;
    padding: 5px;
    cursor: pointer;
    padding: 0px 19px 0px 19px;
    margin-right: 17px;
}


@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        gap: 10px;
        position: absolute;
        top: 60px;
        right: 20px;
        background-color: #ECF6FE;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

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

    .menu-toggle {
        display: block;
    }
}

.border{
    width:100%;
    height:1px;
    background-color: #440A8F;
}

.intro{
    text-align: center;
    color: #381664;
    font-family: "Syne",sans-serif;
    font-size: 10vw;
    animation: intro 5s;
}

.first-section{
    text-align: center;
}

.first-section img {
    height: 46.5vw;
    max-width: 100%;
    margin: 2%;
    animation: intro 5s;
}

.second-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    justify-content: center;
    align-items: start;
}

.grid-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.grid-item img {
    width: 100%;
    height: auto;
    display: block;
}

.grid-item-content {
    padding: 15px;
    text-align: center;
}

.grid-item-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.grid-item-content p {
    font-size: 14px;
    color: #777;
}

@media (max-width: 768px) {
    .second-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .second-section {
        grid-template-columns: repeat(1, 1fr); /* Single column layout */
    }
}

.third-section {
    margin-top: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5% 10%;
}

.About {
    font-family: "Syne", sans-serif;
    font-size: 2.5rem;
    color: #381664;
    margin-bottom: 20px;
    line-height: 1.5;
}

.contact {
    margin-top: 200px;
    margin-bottom: 50px;
    align-self: flex-start;
    text-align: left;
    margin-left: 50px;
}

.Contact {
    font-size: 1.5rem;
    color: #381664;
    margin-bottom: 10px;
}

.contact p {
    font-size: 1rem;
    color: #381664;
}

.fourth-section {
    margin-top: 70px;
    margin-bottom: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5% 10%;
    background-color: #ECF6FE;
}

.header {
    margin-bottom: 20px;
}

.head {
    font-size: 2rem;
    font-weight: bold;
    color: #381664;
}

.header > p {
    font-size: 1rem;
    color: #381664;
}

.input-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.input-box {
    width: 60px;
    height: 60px;
    border: 2px solid #381664;
    border-radius: 8px;
    text-align: center;
    font-size: 24px;
    color: #381664;
    font-weight: bold;
    background-color: #fff;
    outline: none;
}

.input-box::placeholder {
    color: #381664;
}

.submit-btn {
    width: 80%;
    max-width: 300px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #440A8F;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
}

.submit-btn:hover {
    background-color: #381664;
}

.skip {
    font-size: 16px;
    color: #440A8F;
    text-decoration: none;
    font-weight: bold;
}

@media (max-width: 768px) {
    .About {
        font-size: 1.8rem;
        padding: 0 5%;
    }

    .Contact {
        font-size: 1.2rem;
    }

    .header {
        margin-bottom: 10px;
    }

    .head {
        font-size: 1.5rem;
    }

    .header > p {
        font-size: 0.9rem;
    }

    .input-box {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .submit-btn {
        width: 90%;
        font-size: 16px;
    }
}

.end-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background-color: #ECF6FE;
    flex-wrap: wrap;
    gap: 15px;
}

.copy-right {
    font-family: "Syne", sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: #381664;
    margin: 0;
}

.follow {
    height: auto;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: "Space Mono", sans-serif;
    font-weight: bold;
    font-size: 1rem;
    border: 2px solid #381664;
    color: #381664;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.follow:hover {
    background-color: #381664;
    color: #fff;
}

@media (max-width: 768px) {
    .end-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .copy-right {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .follow {
        font-size: 0.9rem;
        padding: 8px 16px;
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .input-box {
      width: 50px;
      height: 50px;
      font-size: 20px;
    }

    .submit-btn {
      font-size: 16px;
      padding: 12px;
    }

    .skip {
      font-size: 14px;
    }
}

@keyframes intro{
    0%{
        opacity: 0%;
    }
    100%{
        opacity: 100%;
    }
}