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

@font-face {
    font-family: 'Mollen-Bold';
    src: url('./font/Mollen-BoldPersonalUse.otf') format('opentype');
}

@font-face {
    font-family: 'Mollen-Regular';
    src: url('./font/Mollen-RegularPersonalUse.otf') format('opentype');
}

@font-face {
    font-family: 'PoetsenOne';
    src: url('./font/PoetsenOne-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Moneygraphy-Pixel';
    src: url('./font/Moneygraphy-Pixel.otf') format('opentype');
}

@font-face {
    font-family: 'Moneygraphy-Rounded';
    src: url('./font/Moneygraphy-Rounded.otf') format('opentype');
}

@font-face {
    font-family: 'NanumSquare';
    src: url('./font/NanumSquareR.ttf') format('truetype');
}

@font-face {
    font-family: 'Pretendard';
    src: url('./font/PretendardVariable.ttf') format('truetype');
}

@font-face {
    font-family: 'Pretendard-Semibold';
    src: url('./font/Pretendard-SemiBold.otf') format('opentype');
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif, ;
    line-height: 1.6;
    color: #3D405B;
}


.app-name {
    font-family: 'PoetsenOne', Arial, sans-serif;
    font-size: 2.2vw;
    color: #3D405B;
    margin-right: 2rem;
}

.studuler-name {
    font-family: 'Pretendard-Semibold', Arial, sans-serif;
    font-size: 2.1vw;
    padding-bottom: 3vh;
    padding-left: 10vw;
    color: #3D405B;
}
.studuler-name2 {
    font-family: 'PoetsenOne', Arial, sans-serif;
    font-weight: lighter;
    font-size: 2.5vw;
    padding-bottom: 3vh;
    color: #3D405B;
}

.home-p {
    font-size: 1.5vw;
    padding-bottom: 3vh;
    padding-left: 10vw;
    color: #3D405B;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    top: 0;
    width: 100%;
    background: #FFEC9E;
    padding: 1rem 2rem;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #3D405B;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #C7B7A3;
}

section {
    padding: 5rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.container-home {
    max-width: 55vw; /* Adjust as needed */
    margin-right: 100px; /* Ensures there is space for the image */
}

h1, h2, h3 {
    text-align: center;
    color: #3D405B;
    margin-bottom: 2rem;
}

.feature-p {
    display: block;
    width: 100%;
    text-align: justify; /* Makes the text look uniform */
}

/* Hero Section */
#home {
    /*background: linear-gradient(135deg, #f5f7fa 0%, #FFEC9E 100%);*/
    padding: 2rem 2rem;
    min-height: auto;
    height: 85vh;
    background: #FFEC9E;
    text-align: center;
    border-bottom-left-radius: 50%;
    border-bottom-right-radius: 50%;
}

.phone-image {
    position: absolute;
    right: 18vw; /* Position the image on the right */
    top: 20vh; /* Align the image vertically with the center of the section */
    transform: translateY(-50%); /* Adjust so the image is centered vertically */
    z-index: 1; /* Ensures the image appears over the section */
}

/* Make sure the image is responsive and phone-sized */
.phone-image img {
    width: 22vw; /* Adjust to the size of the phone image */
    height: auto;
}

/* Features Section */
#features {
    padding-top: 0; 
}
.features-wave {
    position: relative;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100vw; /* Ensure the wave spans the full viewport width */
    z-index: 1; /* Ensure the wave is on top of other elements */
    overflow: hidden; /* Prevent any overflow issues */
    border-radius: 5%;
}

.features-wave svg {
    display: block;
    width: 100%;
    height: auto;
    margin: 0; 
    padding: 0;
}

.slider {
    position: relative;
    overflow: hidden;
    height: 70vh;
    margin-top: 10vh;
    margin-bottom: 5vh;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    width: auto;
    height: auto;
    background: none; /* Remove background color */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    font-size: 5vw; /* Increase arrow size */
    color: #C7B7A3; /* Arrow color */
}

.slider-btn:hover {
    color: #A0927B;
}

.prev-btn {
    left: 20px;
    z-index: 10;
    pointer-events: auto;
}

.next-btn {
    right: 20px;
    z-index: 10;
    pointer-events: auto;
}

.slider-btn::before {
    content: '';
}

.prev-btn::before {
    content: '\2039'; /* Left arrow without tail */
}

.next-btn::before {
    content: '\203A'; /* Right arrow without tail */
}

/*
.slides-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}*/

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    max-height: 100%;
    max-width: 100%;
    object-fit: cover;
    margin: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.slider-nav {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 30vh;
}

.slider-nav button {
    background: #C7B7A3;
    border: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 0.5rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.slider-nav button.active {
    opacity: 1;
}

.feature {
    position: relative;
    display: flex;
    align-items: center;
    margin: 1vw;
}

.feature .feature-image {
    margin-right: -2vw; /* Reduce space between sibling images */
    margin-left: -2vw;
}

.feature .feature-image3 {
    margin-right: -3.5vw; /* Reduce space between sibling images */
    margin-left: -3.5vw;
    flex: 1;
    margin-bottom: 15vh;
}

.feature2 .feature-image3 {
    margin-right: 10vw;
    flex: 1;
    margin-bottom: 15vh;
}

.feature2 {
    position: relative;
    display: flex;
    align-items: center;
    margin: 1vw;
}

.feature:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-image, .feature-image2 {
    flex: 1;
    margin-bottom: 15vh;
}

.feature-content {
    margin-left: 10vw;
    margin-right: 10vw;
    margin-bottom: 15vh;
    flex: 1;
}

.feature img {
    max-width: 60%;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.feature2 img {
    margin-left: 8vw;
    max-width: 60%;
    border-radius: 10px;
}

.feature-video {
    height: 80vh;
    width: auto;
    margin-bottom: 35vh;
    margin-top: 10vh; /* Adds spacing between the content and the video */
    text-align: center;
}

.feature-video video {
    margin-top: 4vh;
    height: 70vh;
    border-radius: 10px; /* Optional: adds rounded corners to the video */
}

.feature-video video:not(:last-child) {
    margin-right: 3vw; /* Adds margin only to videos except the last one */
}

.feature-video iframe {
    max-height: 80%;
    border-radius: 10px;
}

.feature-video .video-container {
    display: flex; /* Arrange the videos side by side */
    justify-content: center; /* Center the videos */
    gap: 7vw; /* Space between videos */
    margin-top: 20px; /* Space between the heading and the videos */
}

.feature-video .video-wrapper {
    height: 50vh;
    width: auto;
    margin-top: 6vh; /* Adds spacing between the content and the video */
    text-align: center;
}

.feature-video .video-subtitle { /* Subtitle */
    margin-top: 2vh;
    font-size: 16px;
    color: #3D405B; 
    text-align: center;
}

/* Team Section */
#team {
    padding-top: 20vh;
    margin-bottom: 12vh;
}
.team h3 {
    margin-top: 10vh;
    text-align: center;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10vw;
    margin-top: 13vh;
    padding-bottom: 0vh;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

/* Tech Stack Section */
#tech {
    /*background: linear-gradient(135deg, #f5f7fa 0%, #FFEC9E 100%);*/
    margin-bottom: 1vh;
    padding-bottom: 0vh;
}

#tech h3 {
    color: #FDF6EC;
    padding-top: 3vh;
    padding-bottom: -3vh;
    text-align: left;
}

.tech-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10vw;
    margin-top: 13vh;
    margin-bottom: 10vh;
}

.tech-section {
    padding-bottom: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 7vh;
    background: #3D405B;
    border-radius: 10px;
    position: relative;
}

.section-title {
    z-index: 10;
    font-size: 1.5rem;
    font-weight: bold;
    color: #3D405B;
    position: absolute;
    top: 0.5rem;  /* Move the title slightly outside */
    left: -5rem;  /* Adjust left positioning for each title */
    padding: 0 1rem;
}

.section-title2 {
    z-index: 9;
    font-size: 1.5rem;
    font-weight: bold;
    color: #FDF6EC;
    position: absolute;
    top: 0.55rem;  /* Move the title slightly outside */
    left: -4.85rem;  /* Adjust left positioning for each title */
    padding: 0 1rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    text-align: center;
}

.tool-item {
    padding: 1rem;
    background: #FDF6EC;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-icon {
    height: 4vh;
    width: auto;  /* Adjust the size of the icon */
    margin-right: 0.5rem; /* Space between icon and text */
}

/* Goals Section */
#goals {
    z-index: 2;
    padding: 15vh 0;
    padding-bottom: 0vh;
    background-color: #3D405B;
    border-top-left-radius: 0%;
    border-top-right-radius: 0%;
}

#goals h2 {
    color: #FDF6EC;
}

.goals-container {
    display: grid;
    width: 70vw;
    height: auto;
    gap: 2rem;
    margin-top: 2rem;
}

.goal-box {
    background: #FDF6EC;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.goal-icon img {
    max-height: 60px;
    width: auto;  /* Adjust icon size */
}

.goal-icon2 img {
    max-height: 40px;
    width: auto;  /* Adjust icon size */
}

.goal-icon3 img {
    max-height: 50px;
    width: auto;  /* Adjust icon size */
}

[data-aos="fade-up"] {
    opacity: 0;
    transition: opacity 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
}

/* last section */
.last-wave {
    background-color: #3D405B;
    position: relative;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100vw; /* Ensure the wave spans the full viewport width */
    z-index: 1; /* Ensure the wave is on top of other elements */
    overflow: hidden; /* Prevent any overflow issues */
}

.last-wave svg {
    display: block;
    width: 100%;
    height: auto;
    margin: 0; 
    padding: 0;
}

.last-wave p {
    padding: 1%;
    background-color: #FFEC9E;
    color: gray;
}

#download {
    position: relative; /* Ensure it's positioned above the wave */
    z-index: 2; /* Ensure it's above the wave */
    padding: 3rem 2rem;
    background-color: #B7CADB;
}

.app-links {
    display: flex;
    justify-content: center;
    gap: 1rem; /* Add spacing between the icons */
    margin-top: 1rem;
    padding-left: 8vw;
}

.store-link img {
    width: 11vw; /* Adjust the size of the icons */
    cursor: pointer;
    transition: transform 0.3s;
}

.store-link img:hover {
    transform: scale(1.1); /* Add hover effect */
}

.studuler-link {
    text-align: center; /* Center the text */
    font-size: 13px; /* Set the font size */
    margin-top: 1.3rem; /* Add space between the grid and the text */
    color: #FDF6EC; /* Change the color of the text */
}

.tool-item a {
    display: block;
    text-align: center;
    color: inherit; /* Inherit text color */
    text-decoration: none; /* Remove underline from the link */
    transition: all 0.3s ease;
}

.tool-item a:hover {
    opacity: 0.8; /* Slight opacity change on hover */
}

.tool-item a[href]:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8); /* Shiny effect */
    transform: scale(1.05); /* Slight scale effect */
}

.github-button {
    margin-top: 2rem; /* Add space between the grid and the button */
    text-align: center; /* Center the button */
}

.btn-github {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #EADBC8; /* GitHub button background */
    color: #3D405B;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    background-image: url('./img/git.png'); /* GitHub profile image */
    background-size: 30px 30px; /* Adjust size */
    background-repeat: no-repeat;
    background-position: left 10px center; /* Adjust image position */
    padding-left: 50px; /* Space for the image */
    padding-right: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.btn-github:hover {
    background-color: #6e7681; /* Lighter color when hovering */
}

.btn-github:active {
    background-color: #4c5b64; /* Slightly darker color when clicking */
}

#goals h3 {
    margin-bottom: 1vh;
}