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

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    background-color: white;
    margin: 0;
    font-family: 'Noto Sans KR', sans-serif;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

#container{
    display: none;
}

/* ===== HEADER SECTION ===== */
.header-section {
    height: auto;
    width: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.781), rgba(0, 0, 0, 0.781)), url('../images/telework-6795505_1280.jpg');/*
    background: linear-gradient(135deg, #1a73e8, #28a745);*/
    background-size: cover;
    background-repeat: no-repeat; 
    
    color: white;
}

.first-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px;
    position: relative;
    gap: 1rem;
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.main-logo {
    width: 150px;
    height: auto;
}

.mobile-logo {
    display: none;
    width: 120px;
    height: auto;
}

@media (max-width: 768px) {
    .main-logo {
        display: none;
    }
    .mobile-logo {
        display: block;
    }
}

/* ===== DESKTOP NAVIGATION ===== */
.desktop-view {
    display: flex;
    flex-direction: row;
    gap: 30px;
    color: white;
    flex: 1;
    justify-content: center;
}

@media (max-width: 880px) {
    .desktop-view {
        display: none;
    }
}

.desktop-view a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.desktop-view a:hover {
    color: #FFE3E0;
}

/* ===== CALL TO ACTION BUTTON ===== */
.call-to-action {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-right: 0;
    flex-shrink: 0;
}

@media (max-width: 880px) {
    .call-to-action {
        display: none;
    }
}

#signup-action-button {
    background-color: #1a73e8;
    color: #fff;
    border-radius: 20px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

#signup-action-button:hover {
    background-color: #155fc3;
    transform: scale(1.05);
}

/* ===== HAMBURGER MENU ===== */
.navbar-toggler {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    box-sizing: border-box;
    z-index: 1001;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 880px) {
    .navbar-toggler {
        display: flex;
    }
}

.navbar-toggler .hamburger-line {
    width: 100%;
    height: 2.5px;
    background-color: #fff;
    border-radius: 10px;
    transition: all 0.3s linear;
    transform-origin: center;
}

.navbar-toggler.open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.navbar-toggler.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggler.open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== SIDEBAR MENU ===== */
.main-sidebar {
    display: none;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background-color: #4B33FF;
    z-index: 999;
    padding: 5rem 2rem 2rem 2rem;
    overflow-y: auto;
    transition: right 0.3s ease-in-out;
}

@media (max-width: 880px) {
    .main-sidebar {
        display: block;
    }
    
    .main-sidebar.active {
        right: 0;
    }
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    margin-bottom: 1.5rem;
}

.sidebar-links a {
    display: block;
    padding: 0.75rem 1rem;
    color: white;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    font-size: 1rem;
}

.sidebar-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#auth-nav-bar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    padding-top: 1.5rem;
    list-style: none;
}

#auth-nav-bar li {
    margin-bottom: 0;
}

.auth-navbar-swith {
    border: 2px solid white;
    background-color: transparent;
    color: white !important;
    border-radius: 25px;
    padding: 0.75rem 1.5rem !important;
    text-align: center;
    font-weight: 600;
    transition: all 0.2s ease;
    display: block;
}

.auth-navbar-swith:hover {
    background-color: white;
    color: #4B33FF !important;
}

/* ===== SECOND ROW - HERO CONTENT ===== */
.second-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    padding: 2rem;
    margin: 2rem auto;
    justify-content: center;
    align-items: center;
}

@media (max-width: 880px) {
    .second-row {
        gap: 1.5rem;
        padding: 1.5rem;
        margin: 1rem auto;
    }
}

.intro {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

#intro-second-row-heading {
    text-align: center;
    max-width: 700px;
}

.heading-h1 {
    color: #FFE3E0;
    font-weight: bold;
    font-family: 'GT Walsheim Pro', sans-serif;
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .heading-h1 {
        font-size: 32px;
        line-height: 1.3;
    }
}

.intro p {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
}

@media (max-width: 880px) {
    .intro p {
        font-size: 0.95rem;
        max-width: 100%;
    }
}

.our-partner-container {
    display: none;
    text-align: center;
    background-color: rgba(21, 127, 195, 0.1);
    margin: 0 auto;
    padding: 1.5rem;
    max-width: 700px;
    border-radius: 10px;
}

.all-partner-logo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
    align-items: center;
    justify-items: center;
}

.partner-logos {
    height: 40px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.partner-logos:hover {
    opacity: 1;
}

/* ===== AUTH CONTAINER ===== */
.auth-container , .auth-signup-completion{
    display: none;
    padding: 2rem;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    text-align: center;
    border: 1px solid #ddd;
    background: white;
}

.auth-container.auth-login {
    display: block;
}

.auth-container h2{
    color: #1a73e8;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.auth-container form{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-container form div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

#auth-prompt-text {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.auth-container form input, 
.auth-container form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
}

.auth-container form input:focus,
.auth-container form select:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.auth-container form button {
    width: 100%;
    padding: 0.75rem;
    background-color: #1a73e8;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.auth-container .loader {
  border: 4px solid #f3f3f3; /* Light grey */
  border-top: 4px solid #1a73e8; /* Blue */
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
   /* Hidden by default */
  margin: 0 auto;
  display: none;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.auth-container .switch-link {
  color: #111;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.switch-link a {
  color: #1a73e8;
  text-decoration: none;
  font-weight: 500;
}

.switch-link a:hover {
  text-decoration: underline;
}

.auth-container form button:hover {
    background-color: #155fc3;
}

/*COMPLETE SIGNUP COMPLETE SIGNUP COMPLETE SIGNUP*/

.complete-signup-section{
  flex: 1 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
  text-align: flex-start;
}

.complete-auth-container {
  padding: 8px 2rem;
  border-radius: 20px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 8px 24px #151516;
  padding-bottom: 30px;
  border: solid 1px lightgrey;
}


@media only screen and (max-width: 767px) {
  .complete-auth-container{
   width: 100%;
   padding: 8px 1rem;
   padding-bottom: 30px;
   text-align: center;
  }
}

.input-gender {
    display: flex;
    align-items: center; 
    gap: 5px;
    margin-top: 10px;
    padding: 5px 0;
}

.complete-auth-container h2 {
  color: #1a73e8;
  margin-bottom: 1.5rem;
  width: 100%;
  font-size: 1.4rem;
  padding-top: 10px;
}

@media only screen and (max-width: 767px) {
  .complete-auth-container h2{
   width: 100%;
   text-align: none;
  }
}

.complete-auth-container form input, .complete-auth-container form select {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background-color: white;
  border: 1px solid lightgray;
  border-radius: 6px;
  font-size: 1rem;
}

.complete-auth-container form input{
    max-width: 250px;
}

.auth-signup-completion{
    display: block;
}

.otp-container{
    display: none;
}

#account-type-select, #country-type-select{
    width: calc(100% + 6px);
    max-width: 280px;

}

@media (max-width: 767px) {
    #account-type-select, #country-type-select,  .complete-auth-container form input{
    width: calc(100% + 6px);
    max-width: 270px;
    font-size: 1rem;
	line-height: 1.5;
    color: #000000;
    border: 1px solid lightgray;
}
}

#auth-prompt-text{
    display: flex;
    text-align: flex-start;
    padding-left: 10px;
    font-weight: bold;
    color: gray;
}



@media only screen and (max-width: 767px) {
   .complete-auth-container form input{
    width: 100%;
   }
}

.complete-auth-container form button {
  width: 100%;
  max-width: 300px;
  padding: 0.75rem;
  background-color: #1a73e8;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.complete-auth-container form button:hover {
  background-color: orangered;
}

.complete-auth-container .loader {
  border: 4px solid #f3f3f3; /* Light grey */
  border-top: 4px solid #1a73e8; /* Blue */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  display: none; /* Hidden by default */
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/*ENDING -------------------------------------- THE END*/

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: #999;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.separator::before,
.separator::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.separator::before {
    margin-right: 0.75rem;
}

.separator::after {
    margin-left: 0.75rem;
}

.google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.google-btn:hover {
    background: #f7f7f7;
}

.google-btn img {
    width: 20px;
    height: 20px;
}

.switch-link {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.switch-link a,
.auth-changer {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: color 0.2s ease;
}

.switch-link a:hover,
.auth-changer:hover {
    color: #155fc3;
    text-decoration: underline;
}

/* ===== MAIN CONTENT ===== */
main {
    flex: 1;
    width: 100%;
}

.main-details {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ===== STATISTICS SECTION ===== */
.intro-stat-text {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 20px;
    background-color: #fff;
    padding: 2rem;
    max-width: 90%;
    margin: 2rem auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (max-width: 880px) {
    .intro-stat-text {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        border: none;
        border-top: 2px solid #ddd;
        box-shadow: none;
        padding: 1.5rem;
        margin: 1rem auto;
    }
}

.intro-stat-text > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.intro-stat-text h1 {
    font-size: 2.5rem;
    margin: 0;
    color: #1a73e8;
    font-weight: bold;
}

@media (max-width: 880px) {
    .intro-stat-text h1 {
        font-size: 2rem;
    }
}

.intro-stat-text p {
    margin: 0;
    color: #666;
    font-weight: 500;
    font-size: 1rem;
}

#intro-text-border {
    height: 60px;
    border-right: 1px solid #ddd;
    margin: 0 1rem;
}

@media (max-width: 880px) {
    #intro-text-border {
        display: none;
    }
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #f9f9f9;
}

.how-it-works:nth-of-type(even) {
    background: #fff;
}

@media (max-width: 768px) {
    .how-it-works {
        padding: 2rem 1rem;
    }
}

.how-it-works h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #222;
}

@media (max-width: 768px) {
    .how-it-works h2 {
        font-size: 1.5rem;
    }
}

.how-it-works p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #555;
    font-size: 1rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (max-width: 880px) {
    .steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.step {
    border-radius: 12px;
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

@media (max-width: 768px) {
    .step {
        padding: 1.5rem 1rem;
    }
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    background: #fff;
}

.step-icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .step-icon-container {
        width: 70px;
        height: 70px;
    }
}

.step:hover .step-icon-container {
    transform: scale(1.1);
}

.step-icon {
    width: 40px;
    height: 40px;
    color: white;
}

.step h3 {
    font-size: 1.1rem;
    color: #111;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

@media (max-width: 768px) {
    .step h3 {
        font-size: 1rem;
    }
}

.step p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.advertisers .step:hover h3 {
    color: #1a73e8;
}

.earners .step:hover h3 {
    color: #28a745;
}

/* ===== FOOTER ===== */
footer {
    background-color: #f5f5f5;
    padding: 2rem;
    border-top: 1px solid #ddd;
}

@media (max-width: 768px) {
    footer {
        padding: 1.5rem;
    }
}

.footer-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

@media (max-width: 768px) {
    .footer-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-header {
    font-weight: 600;
    color: #222;
    margin-bottom: 0.5rem;
}

footer a {
    color: #555;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #1a73e8;
    text-decoration: underline;
}

.footer-last {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
    color: #999;
    font-size: 0.9rem;
}

