/* Global / Navigation - Start */
body, html {
    height: 100%;
    min-width: 320px;
    margin: 0;
    background-color: #111;
    font-family: Arial, sans-serif;
}

.logo img {
    width: auto;
    height: 55px;
    background-color: #111;
}

nav {
    position: fixed;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    left: 0;
    right: 0;
    min-width: 320px;
    height: 40px;
    padding: 10px;
    background-color: #111;
    transition: padding-bottom 0.3s ease;
}

.beam {
  position: absolute;
  bottom: 0;
  z-index: 999;
  display: block;
  width: 100%;
  height: 20px;
  overflow: visible; 
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.beam path {
  fill: none;
  stroke: #cccccc;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 120 var(--beam-gap, 2000); 
  animation: travel var(--beam-duration, 8s) linear infinite;
}

@keyframes travel {
  from { stroke-dashoffset: var(--beam-cycle, 2120); }
  to   { stroke-dashoffset: 0; }
}
nav:has(.dropdown.active),
nav:has(.dropdown:focus-within) {
    padding-bottom: 58px;
}

nav:has(.dropdown.active) .beam,
nav:has(.dropdown:focus-within) .beam,
.dropdown.active ~ .beam,
.dropdown:focus-within ~ .beam {
    opacity: 0 !important;
}

@media (hover: hover) {
    nav:has(.dropdown:hover) {
        padding-bottom: 58px;
    }
    nav:has(.dropdown:hover) .beam,
    .dropdown:hover ~ .beam {
        opacity: 0 !important;
    }
}

nav a {
    padding: 14px 20px;
    color: #cccccc;
    font-size: 1em; 
    font-weight: normal; 
    text-align: center;
    text-decoration: none;
}

@media (hover: hover) {
    nav a:hover {
        color: #ffffff;
    }
}

nav a.logo {
    margin: 0 10px;
    padding: 0;
}

.dropdown {
    display: inline-block;
}

.dropbtn {
    position: relative;
    display: inline-block;
    padding: 14px 20px;
    border: none;
    color: #cccccc;
    font-size: 16px;
    cursor: pointer;
}

.dropdown.active .dropbtn,
.dropdown:focus-within .dropbtn {
    color: #fff;
}

.dropbtn::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 40px;
}

.dropdown-content {
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 500;
    display: flex;
    justify-content: center;
    visibility: hidden;
    width: 100%;
    background-color: #1d1d1f;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.dropdown-content a {
    display: block;
    padding: 14px 50px;
    color: #cccccc;
    text-decoration: none;
}

.dropdown.active .dropdown-content,
.dropdown:focus-within .dropdown-content {
    visibility: visible;
    opacity: 1;
}

@media (hover: hover) {
    .dropdown:hover .dropdown-content {
        visibility: visible;
        opacity: 1;
    }
    .dropbtn:hover {
        color: #fff;
    }
}
/* Global / Navigation - End */

/* Footer - Start */
.footer, .footer-project {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 320px;
    height: 40px;
    gap: 2em;
    border-top: 1px solid #cccccc;
    background-color: #111;
    color: #cccccc;
    padding-bottom: 5px;
    text-align: center;
    transition: all 0.3s ease;
}

.footer {
    position: fixed;
    bottom: 0px;
    width: 100%;
}

.footer p {
    margin: 0; 
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-project a {
    color: inherit;
    text-decoration: none;
}

.footer-project a:hover {
    color: #fff;
}
/* Footer - End */

/* Index - Start */
.homepage-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: calc(100% - 60px); 
    padding: 0 20px;
    text-align: center;
}

.homepage-text {
    max-width: 800px;
    padding-left: 20px;
    padding-right: 20px;
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1.6;
}

.homepage-text a {
    color: inherit;
    text-decoration: underline;
}

.cursor::after {
    content: '█';
    color: #9c9c9c;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 1; }
}

.fade-in-text {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-in-text.visible {
    opacity: 1;
}
/* Index - End */

/* About - Start */
.about {
    display: flex; 
    justify-content: center;
    align-items: center; 
    width: 100%;
    min-height: 100vh;
    padding: 80px 20px;
    box-sizing: border-box;
    gap: 20px; 
} 

.about-me-text {
    width: 50%; 
    color: #fff;
    font-size: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .about-me-text {
        width: 100%;
    }
}
/* About - End */

/* Contact - Start */
.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 700px;
    padding-top: 40px;
    box-sizing: border-box;
}

.contact-title {
    margin-bottom: 30px;
    color: #fff;
    font-size: 2.5rem;
}

.contact-text {
    max-width: 600px;
    margin-bottom: 40px;
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 600px;
    gap: 20px;
}

.contact-textarea {
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    border: 2px solid #fff;
    border-radius: 15px;
    background-color: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 1.1rem;
}

.subject-wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    border: 2px solid #fff;
    border-radius: 15px;
    overflow: hidden;
}

.subject-wrapper:focus-within {
    outline: 4px solid #274494;
}

.subject-label {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    color: #000;
    font-size: 1.1rem;
    white-space: nowrap;
    min-width: 65px;
}

.subject-input {
    flex-grow: 1;
    padding: 15px;
    border: none;
    outline: none;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 1.1rem;
}

.contact-textarea {
    height: 200px;
    resize: none;
}

.contact-textarea:focus {
    outline: 4px solid #274494 ;
}

.send-btn-wrapper {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.send-btn {
    padding: 10px 30px;
    border: 2px solid #fff;
    border-radius: 25px;
    background-color: transparent;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.send-btn:hover {
    background-color: #fff;
    color: #1E1E1E;
}

.sent-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    color: #fff;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.sent-message.visible {
    opacity: 1;
}
/* Contact - End */

/* Projects - Start */
.projects-page {
    min-height: 100px;
    padding-top: 60px;
    padding-bottom: 40px;
    box-sizing: border-box;
    background-color: #111;
    color: #fff;
}

.projects-text {
    max-width: 1000px;
    margin: 0 auto -40px auto;
    padding: 0 20px;
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: center;
}

.banner-container {
    position: relative;
    width: 100%;
    height: 700px;
    overflow: clip;
}

.banner {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transform: translateX(100%);
    opacity: 0;
}

.banner-img-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

.banner1 .banner-img-wrapper {
    background-color: #035dbd92;
}

.banner img {
    display: block;
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
}

.banner-text {
    max-width: 800px;
    padding: 0 20px;
    color: #fff;
    font-size: 20px;
    text-align: center;
}

.banner-text h2 a {
    color: inherit;
    text-decoration: none;
}

.banner.active {
    transform: translateX(0);
    opacity: 1;
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}

.banner.exit {
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}

.banner.exit-right {
    transform: translateX(100%);
    opacity: 0;
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
}

.banner.from-left {
    transform: translateX(-100%);
    transition: none !important;
}

.status-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -50px;
    margin-bottom: 20px;
}

.status-circle {
    width: 15px;
    height: 15px;
    margin: 0 5px;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0.2;
    cursor: pointer;
    transition: background-color 1s ease;
}

.status-circle.active {
    opacity: 1;
}
/* Projects - End */

/* BadmintonX - Start */
.badmintonx-container {
    min-height: 100px;
    padding-top: 60px;
    padding-bottom: 40px;
    box-sizing: border-box;
    background-color: #000;
    color: #fff;
}

.project-header {
    margin-bottom: 50px;
    padding: 0 20px;
    text-align: center;
}

.project-header h1 {
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 70px;
    font-weight: 600;
}

.project-header p {
    color: #cccccc;
    font-size: 20px;
}

.project-header .project-eyebrow {
    margin-bottom: 0;
    color: #fff;
    font-size: 28px;
}

.project-header .project-description {
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.badmintonx-main-image {
    display: block;
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 40px auto 60px auto;
    padding: 0 20px;
    box-sizing: border-box;
    border-radius: 10px;
}

.badmintonx-icon-image {
    display: block;
    width: 150px;
    max-width: 1000px;
    height: auto;
    margin: -40px auto 60px auto;
    padding: 0 20px;
    box-sizing: border-box;
    border-radius: 10px;
}

.feature-row {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
    gap: 60px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-image {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.feature-image img {
    width: 100%;
    height: auto;
}

.feature-text {
    flex: 1;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.6;
}

.feature-text h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

@media (max-width: 768px) {
    .feature-row, .feature-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .project-header h1 {
        font-size: 2.5rem;
    }

    nav a, .dropbtn {
        padding: 14px 10px;
    }
}

.feature-section {
    width: 100%;
    padding: 80px 0;
}

.feature-section-light {
    background-color: #222224;
}

.feature-section-dark {
    background-color: #000;
}

.trademark-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    background-color: #000;
}

.trademark-text {
    padding-bottom: 20px;
    color: #cccccc65;
    font-size: 0.9rem;
    text-align: center;
}

.download-container {
    margin-bottom: 80px;
    text-align: center;
}

.download-btn {
    display: inline-block;
    padding: 15px 30px;
    border: 2px solid #fff;
    border-radius: 30px;
    background-color: transparent;
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background-color: #fff;
    color: #111;
}

.reveal {
    transform: translateY(30px);
    opacity: 0;
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

.feature-image .badmintonx-feature-1-img,
.feature-image .badmintonx-feature-2-img {
    width: 200px;
}

.feature-image .badmintonx-feature-3-img,
.feature-image .badmintonx-feature-4-img,
.feature-image .badmintonx-feature-5-img,
.feature-image .badmintonx-feature-6-img {
    width: 300px;
}
/* BadmintonX - End */

/* Privacy & Terms - Start */
.privacy-page, .terms-page {
    min-height: 100%;
    padding-top: 100px;
    padding-bottom: 80px;
    box-sizing: border-box;
    background-color: #111;
    color: #fff;
}

.privacy-text, .terms-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.privacy-text h1, .terms-text h1 {
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.privacy-date, .terms-date {
    margin-bottom: 40px;
    color: #cccccc;
    font-style: italic;
}

.privacy-header, .terms-header {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: left;
}

.privacy-section, .terms-section {
    margin-bottom: 20px;
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: left;
}

.privacy-section a, .terms-section a {
    color: inherit;
    text-decoration: underline;
}
/* Privacy & Terms - End */
