/* ==========================================================================
   Table of Contents:
   1.  General Styles
   2.  Typography
   3.  Variables
   4.  Navbar
   5.  Hero
   6.  About
   7.  Portfolio
   8.  Testimonial
   9.  Project (CTA)
   10. Contact
   11. Footer
   12. Buttons
   13. Dark Mode
   14. Animations
   15. Responsive
   ========================================================================== */

/* ==================== 1. GENERAL STYLES ==================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", "Noto Sans JP", sans-serif;
  line-height: 1.6;
  background-color: var(--body-bg-color);
  color: var(--body-text-color);
  transition: background-color 0.3s, color 0.3s;
}

img {
  max-width: 100%;
  height: auto;
  display: block; /* To remove bottom spacing */
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--secondary-color);
}

section {
  padding: 5rem 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ==================== 2. TYPOGRAPHY ==================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
}

h1 {
  font-size: var(--h1-font-size);
}

h2 {
  font-size: var(--h2-font-size);
}

h3 {
  font-size: var(--h3-font-size);
}

p {
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-light);
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: var(--h2-font-size);
  text-align: center;
  margin-bottom: var(--mb-1);
}

.section-subtitle {
  display: block;
  font-size: var(--small-font-size);
  text-align: center;
  margin-bottom: var(--mb-3);
}

.intro-text {
  font-size: var(--h2-font-size);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* ==================== 3. VARIABLES ==================== */

:root {
  /* Core Colors - Consistent Across Themes */
  --yellow: #ffc107;
  --black: #494848;
  --white: #ffffff;

  /* Themeable Colors - Switch Based on Light/Dark */
  --body-bg-color: var(--white); /* Default Light Mode */
  --body-text-color: var(--black);
  --heading-color: var(--black);
  --link-color: var(--yellow);
  --secondary-color: #f3d80b; /* Secondary color can be whatever but i put purplish*/

  /* Typography */
  --body-font-family: "Poppins", "Noto Sans JP", sans-serif;

  /* Font sizes */
  --h1-font-size: 3.5rem;
  --h2-font-size: 2.6rem;
  --h3-font-size: 2.2rem;
  --h4-font-size: 1.9rem;
  --h5-font-size: 1.5rem;
  --h6-font-size: 1.4rem;
  --p-font-size: 1.25rem;
  --small-font-size: 1rem;
  --copyright-text-font-size: 0.875rem;
  --custom-link-font-size: 0.75rem;

  /* Font weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;

  /* Spacing */
  --header-height: 5rem;
  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

  /* Effects */
  --transition-duration: 0.3s;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

  /* Z-index */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;

  /* Scroll bar color */
  --scroll-bar-color: #ccc; /* Light gray */
  --scroll-thumb-color: #888; /* Medium gray */
}

/* Dark mode variable overrides */
body.dark-mode {
  --body-bg-color: var(--black);
  --body-text-color: var(--white);
  --heading-color: var(--white);
  --link-color: var(--secondary-color);
  --scroll-bar-color: #555;
  --scroll-thumb-color: #aaa;
}

/* Responsive Typography */
@media (max-width: 768px) {
  :root {
    --h1-font-size: 2.8rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.6rem;
    --h4-font-size: 1.3rem;
    --h5-font-size: 1.1rem;
    --h6-font-size: 1rem;
    --p-font-size: 1rem;
  }

  .intro-text {
    font-size: 1.75rem;
  }
}

/* ==================== 4. NAVBAR ==================== */

.navbar {
  background-color: var(--body-bg-color);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--yellow);
}

.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.nav-link {
  font-size: var(--small-font-size);
  font-weight: var(--font-weight-medium);
  color: var(--body-text-color);
  transition: color 0.3s;
  position: relative;
  padding: 0.5rem 1rem;
  display: block;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--yellow);
}

/* ==================== 5. HERO ==================== */

.hero {
  position: relative;
  height: 100vh; /* Set the video section to 100vh */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--black), var(--yellow));
  color: var(--white);
  margin-top: 0; /* Reset margin-top for covering the top section */
}

.hero-text {
  z-index: 2;
}

.video-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.custom-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* ==================== 6. ABOUT ==================== */

.about-img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.about-description {
  margin-bottom: var(--mb-2-5);
}

.about__info-title {
  font-size: var(--h2-font-size);
  font-weight: var(--font-weight-semibold);
}

.about__info-name {
  font-size: var(--small-font-size);
  margin-top: 0.5rem;
}

/* ==================== 7. PORTFOLIO ==================== */

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.portfolio-img {
  transition: transform 0.3s ease;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1rem;
  text-align: center;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.btn-view-project {
  background-color: var(--yellow);
  color: var(--black);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  display: inline-block;
  margin-top: 1rem;
  transition: background-color 0.3s, color 0.3s;
}

.btn-view-project:hover {
  background-color: var(--secondary-color);
  color: var(--white);
}

/* ==================== 8. TESTIMONIAL ==================== */

.testimonial-container {
  overflow: hidden; /* Required for Swiper */
}

.testimonial-slide {
  background-color: var(--body-bg-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.testimonial-data {
  margin-bottom: 1rem;
}

.testimonial-header {
  display: flex;
  align-items: center;
}

.testimonial-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 0.8rem;
}

.testimonial-name {
  font-weight: var(--font-weight-bold);
}

.testimonial-client {
  font-size: 0.7rem;
  color: #555;
}

.testimonial-stars {
  color: var(--yellow);
}

/* ==================== 9. PROJECT (CTA) ==================== */

.project-bg {
  background-color: var(--yellow);
  color: var(--black);
  padding: 3rem 0;
  border-radius: var(--border-radius);
}

.project-title {
  margin-bottom: var(--mb-1);
}

.project-description {
  margin-bottom: var(--mb-2);
}

.project-img {
  border-radius: var(--border-radius);
}

/* ==================== 10. CONTACT ==================== */

.contact-form .form-control {
  border-radius: var(--border-radius);
  padding: 12px;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form .form-control:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
  outline: none;
}

.contact-form .form-label {
  font-weight: var(--font-weight-medium);
  margin-bottom: 0.5rem;
}

/* ==================== 11. FOOTER ==================== */

.site-footer {
  background-color: var(--black);
  color: var(--white);
  padding: 3rem 0;
}

.site-footer a {
  color: var(--white);
  transition: color 0.3s;
}

.site-footer a:hover {
  color: var(--yellow);
}

.social-icon {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: flex-end;
}

.social-icon li {
  margin-left: 1rem;
}

.social-icon-link {
  font-size: 1.5rem;
  color: var(--white);
  transition: color 0.3s;
}

.social-icon-link:hover {
  color: var(--yellow);
}

/* ==================== 12. BUTTONS ==================== */

.btn {
  font-weight: var(--font-weight-bold);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  transition: background-color 0.3s, color 0.3s;
  display: inline-block;
}

.btn-primary {
  background-color: var(--yellow);
  color: var(--black);
  border: none;
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  color: var(--white);
}

.button-flex {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.button-white {
  background-color: var(--white);
  color: var(--black);
}

.button-white:hover {
  background-color: #eee;
}

/* ==================== 13. DARK MODE ==================== */

.dark-mode-toggle {
  background-color: var(--black);
  border: none;
  color: var(--white);
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.dark-mode-toggle:hover {
  background-color: #555; /* You may want change it with the theme color as well*/
  color: var(--white);
}

body.dark-mode {
  --body-bg-color: var(--black);
  --body-text-color: var(--white);
  --heading-color: var(--white);
  --link-color: var(--secondary-color);
  --scroll-bar-color: #555;
  --scroll-thumb-color: #aaa;
}

/* ==================== 14. ANIMATIONS ==================== */

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide animations for swiper */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ==================== 15. RESPONSIVE ==================== */

/* Media Queries for smaller screens */
@media (max-width: 992px) {
  .hero {
    padding-top: var(--header-height); /* Make sure content isn't hidden */
  }
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.25rem;
  }

  h5 {
    font-size: 1rem;
  }

  h6 {
    font-size: 0.875rem;
  }

  .heroText h1 {
    font-size: 2.5rem;
  }

  .heroText p {
    font-size: 1.25rem;
  }

  .about-info {
    flex-direction: column;
  }

  .about-info > div {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }

  .about-img {
    margin-bottom: 2rem;
  }

  .project-data {
    text-align: center;
    margin-bottom: 2rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .swiper-button-prev,
  .swiper-button-next {
    display: none;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.25rem;
  }

  h5 {
    font-size: 1rem;
  }

  h6 {
    font-size: 0.875rem;
  }

  .heroText h1 {
    font-size: 2.5rem;
  }

  .heroText p {
    font-size: 1.25rem;
  }

  .intro-text {
    font-size: 1.75rem;
  }

  section {
    padding: 2rem 0;
  }

  .about-info-title {
    font-size: 1.75rem;
  }
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: #333;
  color: #fff;
}

body.dark-mode .navbar {
  background-color: #333 !important;
}

body.dark-mode .navbar-brand,
body.dark-mode .nav-link {
  color: #fff !important;
}

body.dark-mode .site-footer {
  background-color: #222;
}

body.dark-mode .text-white {
  color: #fff !important;
}

/* Hero Video Styling */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.videoWrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.custom-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heroText {
  position: relative;
  z-index: 1;
  padding: 20px;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
  color: #333;
}

body.dark-mode .dark-mode-toggle {
  color: #fff;
}
