/* Graciela Gozum */
/* Angel Raphaelle Pineda */
/* Franchesca Zyreen Sison */
/* WD 203 */

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

body {
  background: #cfe1f8; 
  color: #111;
  line-height: 1.6;
  font-family: 'Jersey 25', sans-serif;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1), transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

body.page-fade-in {
  opacity: 1;
  transform: scale(1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-padding-top, 145px);
}

/* --------------------------------------- */
/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #6fa3f7; 
  padding: 0 18px; 
  min-height: 32px; 
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Sticky header only on the main and footer page */
.main-page header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* non-sticky header on gallery page */
.gallery-page header {
  position: static;
}

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

header .logo img {
  width: 110px; 
  margin-right: 0.5px;
}

header .tagline {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

header .tagline h1 {
  font-size: 2.2rem;
  margin-bottom: 0px;
  position: relative;
  top: 8px; 
}

header .tagline hr {
  border: none;
  border-top: 1px solid #333; 
  margin: 0px 0; 
  width: 220px; 
  max-width: 100%;
}

header .tagline-text {
  font-size: 0.75rem;
  margin: 0;
  white-space: pre-line; 
  text-align: left;
  line-height: 1.3;
}


/* --------------------------------------- */
/* Navigation Buttons */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  font-size: 1.25rem;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #fff;
}

.contact-btn {
  background: rgba(253, 253, 253, 0.68);
  padding: 6px 12px;
  border-radius: 8px;
  transition: 0.3s;
}

.contact-btn:hover {
  background: #444;
  color: #fff;
}

/* ======================================= */
/* ========== MAIN PAGE STYLES =========== */
/* ======================================= */
/* Profile Section of Main Page */
.profile {
  text-align: center;
  margin: 40px auto;
  background: none;
}

.profile-container {
  position: relative;
  display: inline-block;
}

.profile .avatar {
  width: 450px;
  display: block;
  margin: 0 auto 15px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  
}

.profile-text {
  position: absolute;
  top: 63%; 
  left: 50%;
  transform: translate(-50%, -50%);
  color: #222;
  width: 100%;
  text-align: center;
  font-size: 2.5rem;
  pointer-events: none;
}

/* --------------------------------------- */
/* Texts */
.centered-heading {
  text-align: center;
  margin-bottom: 8px;
  margin-top: 80px;
}

.intro, .about {
  margin-top: 8px;
  margin-bottom: -8px;
}

.intro {
  margin-bottom: 45px;
}

.intro p, .about p {
  font-size: 1.1rem;
}

.skills-box p {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.skills-box ul li:first-child {
  text-align: center;
  line-height: 1.3;
}

.experience-box p,
.education-box p {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.EE-title {
  color: #1C71AD;
}
.EE-year {
  color: #000;
}


/* --------------------------------------- */
/* Divider */
.dashed-divider {
  border: none;
  border-top: 5px dashed #7DAEF6;
  margin: 30px auto 20px auto;
  width: 80%;
  max-width: 800px;
  min-width: 220px;
  display: block;
  border-image: repeating-linear-gradient(to right, #7DAEF6 0 24px, transparent 24px 48px) 5 round;
}


/* --------------------------------------- */
/* Sections */
section {
  max-width: 800px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
}

section h2, section h3 {
  text-align: center;
  margin-bottom: 15px;
}


/* --------------------------------------- */
/* Content in the "Softwares Mainly Utilized:" */
.skills-box ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  list-style: none;
  padding-left: 0;
}

.skills-box li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.skills-box img {
  margin-bottom: 6px;
}

/* App Icons */
.app-icon {
  width: 100px;
  height: 100px;
  object-fit: contain; 
  display: inline-block;
}

/* --------------------------------------- */
/* Grid layout for the "About the Artist" */
.skills-experience {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}

.skills-experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  margin: 0 auto;
  max-width: 800px;
  width: 100%;
  box-sizing: border-box;
  padding: 20px 0;
  background: none;
  border-radius: 12px;
  margin-top: 0;
  margin-bottom: 80px;
}

.skills-box, .experience-box, .education-box {
  background: #fff;
  border-radius: 12px;
  padding: 18px 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.skills-box {
  grid-row: 1 / span 2;
  grid-column: 1;
}
.experience-box {
  grid-row: 1;
  grid-column: 2;
}
.education-box {
  grid-row: 2;
  grid-column: 2;
}

.skills, .experience {
  flex: 1;
  min-width: 300px;
  padding: 20px;
  background: #f8faff;
  border-radius: 12px;
}

.skills ul li, .experience ul li {
  margin: 10px 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --------------------------------------- */
/* Custom bullet for Experience and Education */
.experience-box ul li,
.education-box ul li {
  list-style-type: none;
  padding-left: 32px;
  position: relative;
  font-size: 1.18rem;
}
.experience-box ul li::before,
.education-box ul li::before {
  content: '';
  display: inline-block;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background-image: url('mainPageAssets/Bulletpoint.png');
  background-size: contain;
  background-repeat: no-repeat;
}

.education-box ul li::before {
  top: 0.7em;
}

/* ======================================= */
/* ========== GALLERY PAGE STYLES ======== */
/* ======================================= */

/* Gallery Header Wrapper for Sticky Positioning */
.gallery-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #A6CDFF;
}

/* Hamburger Toggle (Hidden Checkbox) */
.hamburger-toggle {
  display: none;
}

/* Gallery Navigation Header */
.gallery-nav-header {
  background-color: #A6CDFF;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  position: relative;
}

/* Keep title on the left */
.gallery-page-title {
  color: #0d47a1;
  font-weight: 700;
  margin: 0;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Hamburger Button */
.hamburger-btn {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
  position: absolute;
  right: 20px;
}

.hamburger-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #0d47a1;
  border-radius: 3px;
  transition: 0.3s ease;
}

/* Hamburger Animation */
.hamburger-toggle:checked + .gallery-nav-header .hamburger-btn span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-toggle:checked + .gallery-nav-header .hamburger-btn span:nth-child(2) {
  opacity: 0;
}

.hamburger-toggle:checked + .gallery-nav-header .hamburger-btn span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Gallery Navigation */
.gallery-nav {
  background-color: #A6CDFF;
  display: block; 
}

/* Desktop Gallery Navigation Styles */


.gallery-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gallery-nav ul li {
  margin: 10px 0;
}

.gallery-nav ul li a {
  text-decoration: none;
  color: #0d47a1;
  font-weight: 600;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 10px;
  transition: background 0.3s;
}

.gallery-nav ul li a:hover {
  background-color: #bbdefb;
}

/* Desktop view */
@media (min-width: 768px) {
  .hamburger {
    display: none;
  }

  .gallery-nav {
    display: block;
  }

  .gallery-nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
  }

  .gallery-nav ul li {
    margin: 0;
  }
}
/* --- END of Mobile Hamburger Navigation --- */

.gallery-nav-header {
  position: sticky;
  top: 0;
  background: #A6CDFF;
  padding: 20px 0 0 0; 
  z-index: 200;
}

.gallery-nav {
  position: sticky;
  top: 70px; 
  z-index: 201;
  background: #A6CDFF;
  padding: 10px 0; 
}


#personal-projects {
  cursor: pointer;
  transition: color 0.3s ease;
}

#personal-projects:hover {
  color: #1C71AD; 
}

/* Gallery Page Title */
.gallery-page-title {
  background: #A6CDFF;   
  z-index: 101;
  text-align: center;
  font-size: 2.8rem;
  color: #111;
  padding: 0;
  margin-bottom: 0; 
}

/* Gallery Navigation Tabs */
.gallery-nav {
  top: 90px; 
  z-index: 201; 
  background: #A6CDFF;
  padding: 15px 0; 
}

.gallery-nav ul {
  display: flex;
  justify-content: center;
  gap: 12px;
  list-style: none;
  flex-wrap: wrap;
  padding: 0 20px;
}

.gallery-nav ul li a {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(253, 253, 253, 0.85);
  color: #000;
  text-decoration: none;
  border-radius: 10px;
  font-size: 1.15rem;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.gallery-nav ul li a:hover {
  color: #555;
  transform: none; 
  box-shadow: none;
}

.gallery-nav ul li a.active {
  background: #6fa3f7;
  color: #fff;
}

/* Gallery Container */
.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px 20px;
  background-color: none;
}

/* Gallery Sections - ALL VISIBLE */
.gallery-section {
  display: block;
  margin-bottom: 35px;
  background-color:#cfe1f8;
}

.gallery-section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #111;
}

/* --------------------------------------- */
/* Swiping Gallery Feature */
.swipe-feature {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.swipe-gallery {
  width: 100%;
  max-width: 800px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.swipe-slide {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: none;
  display: none;
}

.swipe-btn {
  position: static;
  margin: 0 18px;
  background: #6fa3f7;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.7rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  transition: background 0.2s;
}

.swipe-feature .swipe-btn:first-of-type {
  left: unset;
}
.swipe-feature .swipe-btn:last-of-type {
  right: unset;
}

.swipe-btn:hover {
  background: #1C71AD;
}

@media (max-width: 900px) {
  .swipe-gallery {
    max-width: 98vw;
    min-height: 220px;
  }
  .swipe-slide {
    max-height: 300px;
    border-radius: 10px;
  }
  .swipe-btn {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    margin: 0 8px;
  }
}
@media (max-width: 600px) {
  .gallery-section-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
  .swipe-gallery {
    min-height: 120px;
  }
  .swipe-slide {
    max-height: 140px;
    border-radius: 8px;
  }
  .swipe-btn {
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
  }
  .dashed-divider {
    margin: 24px auto 10px auto;
  }
}

/* --------------------------------------- */
/* BTS Videos */

.video-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
  margin-top: 10px;
}
.video-gallery video {
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  background: #fff;
  max-width: 100%;
}
@media (max-width: 700px) {
  .video-gallery video {
    width: 98vw;
    max-width: 98vw;
  }
}

/* ======================================= */
/* ========== CONTACT PAGE STYLES ======== */
/* ======================================= */

/* --------------------------------------- */
/* --- Art Commission Box --- */
.art-commission-box {
    padding: 20px;
    margin: -5px auto 20px auto;
    max-width: 900px; 
    border: 1px solid #ccc; 
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.commission-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.commission-form, .commission-contact {
    flex: 1;
    padding: 10px;
}

/* Vertical Divider for Desktop */
.commission-divider {
    width: 1px;
    background-color: #ccc;
    min-height: 250px; 
    margin: 20px 0; 
}

/* Form Section */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; 
}

.form-group textarea {
    background-color: #f0f0f0; 
    border: 2px solid #000;    
}

.submit-btn {
    background-color: #4ecdff;
    padding: 10px 4dvb;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Jersey 25', sans-serif;
    font-weight: bold;
    display: block;
    text-decoration: none;
    color: #000;
    font-size: 1.25rem;
    margin: 0 auto;
  }

/* Contact Section */
.commission-contact h3 {
    text-align: left;
    margin-bottom: 20px;
}

.contact-icon {
    width: 24px; 
    height: 24px;
    margin-right: 10px;
    vertical-align: middle; 
}

.contact-info p {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.commission-contact {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    min-height: 250px;       
    padding: 10px;
}

.social-icons {
    display: flex;
    justify-content: center; 
    gap: 20px;               
    margin-top: 200px;        
}

.social-icon {
    width: 30px;
    height: 30px;
    transition: transform 0.2s ease; 
}

.social-icon:hover {
    transform: scale(1.1);   
}
.social-icons a {
    margin-left: 15px; 
    display: inline-block; 
}

.social-icons a:hover {
    color: #555;
}

/* --------------------------------------- */
/* Footer */
footer {
  text-align: center;
  padding: 10px 15px 10px 15px;
  background: #6fa3f7;
  color: #fff;
  margin-top: 100px;
  margin-bottom: 0;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 5px 0;
}

footer p img {
  width: 32px;
  height: auto;
}


/* ======================================= */
/* ========== RESPONSIVE DESIGN ========== */
/* ======================================= */

/* --- Tablet View Fix (768px – 1024px) --- */
@media (max-width: 1024px) {

  /* About the Artist section */
  .skills-experience-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 50px;
  }

  .skills-box,
  .experience-box,
  .education-box {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
  }

  section {
    margin: 20px auto;
    padding: 16px;
  }

  /* Personal Projects Tabs */
  .gallery-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .gallery-nav ul li a {
    padding: 8px 14px;
    font-size: 1rem;
  }
}

/* ---------- Mobile Devices (max-width: 768px) ---------- */
@media (max-width: 768px) {

  body {
    font-size: 15px;
  }

  section {
    margin: 16px auto;
    padding: 14px;
    width: 95%;
    box-sizing: border-box;
  }

  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px;
  }

  header .tagline h1 {
    font-size: 1.6rem;
    text-align: left;
  }

  header .tagline hr {
    width: 160px;
  }

  nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul li {
    position: relative;
    padding: 0 18px;
  }


  /* Profile section */
  .profile .avatar {
    width: 260px;
  }

  .profile-text {
    font-size: 1.5rem;
    text-align: center;
    top: 62%;
  }

  /* About the Artist, Experience, Education */
  .skills-experience-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 10px;
  }

  .about {
    width: 95%;
    max-width: 600px;
    margin: 14px auto 8px auto;
    padding: 14px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  }

  .skills-box,
  .experience-box,
  .education-box {
    width: 95%;
    max-width: 600px;
    margin: 0 auto;
    padding: 14px;
  }

  .skills-box ul {
    display: grid;
    grid-template-columns: 1fr;
  }

  .centered-heading {
    margin-top: 40px;
    margin-bottom: 8px;
  }

  /* Gallery / Projects section */
  .gallery-page-title {
    font-size: 1.6rem;
    text-align: center;
  }

  .gallery-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .gallery-nav ul li a {
    width: 90%;
    text-align: center;
    padding: 10px;
    font-size: 1rem;
  }

  .gallery-page-title,
  .gallery-nav {
    position: sticky;
    top: 60px; 
    z-index: 90;
    background: #A6CDFF; 
  }

  .gallery-page-title {
    padding-top: 8px;
    padding-bottom: 6px;
  }

  .gallery-nav {
    padding-top: 4px;
    padding-bottom: 8px;
  }

  /* Video Gallery layout */
  .video-gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .video-gallery video {
    width: 100%;
  }

  /* Buttons and forms */
  .swipe-btn {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .art-commission-box {
    width: 95%;
    padding: 15px;
    margin: -5px auto 10px auto;
  }

  /* Mobile Contact Page Layout */
  .commission-container {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
  }

  .commission-form {
    order: 1; /* Form goes on top */
    padding: 0;
    width: 100%;
  }

  .commission-contact {
    order: 2; /* Contact info goes on bottom */
    padding: 20px 0 0 0;
    min-height: auto;
    width: 100%;
    border-top: 2px solid #ccc;
    margin-top: 15px;
    position: relative;
  }

  .commission-contact::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 20%;
    right: 20%;
    height: 2px;
    background-color: #ccc;
  }

  /* Hide vertical divider on mobile */
  .commission-divider {
    display: none;
  }

  /* Center form elements */
  .form-group {
    text-align: left;
  }

  .form-group label {
    text-align: left;
  }

  /* Center contact info */
  .commission-contact h3 {
    text-align: center;
  }

  .contact-info p {
    justify-content: center;
  }

  /* Adjust social icons positioning for mobile */
  .social-icons {
    margin-top: 20px;
    justify-content: center;
  }

  .form-group input,
  .form-group textarea {
    font-size: 1rem;
  }

  .submit-btn {
    font-size: 1rem;
    padding: 8px 16px;
  }

  footer {
    padding: 8px 10px 8px 10px;
    text-align: center;
    margin-bottom: 0;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  footer p {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 3px 0;
  }

  /* Mobile Hamburger Navigation Styles */
  .hamburger-btn {
    display: flex !important;
  }

  .gallery-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #A6CDFF;
    z-index: 199;
  }

  .hamburger-toggle:checked ~ .gallery-nav {
    display: block;
  }

  .gallery-nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
    justify-items: center;
  }

  .gallery-nav ul li {
    width: 100%;
  }

  .gallery-nav ul li a {
    width: 100%;
    text-align: center;
    padding: 10px;
    font-size: 1rem;
    display: block;
  }

  .gallery-nav-header {
    background: #A6CDFF !important;
    padding: 10px 25px;
  }

  .gallery-page-title {
    padding-top: 8px;
    padding-bottom: 6px;
    text-align: center;
  }

  .hamburger-btn {
    right: 25px;
  }

  .gallery-nav {
    padding-top: 4px;
    padding-bottom: 8px;
  }
}


/* ---------- Small Phones (max-width: 480px) ---------- */
@media (max-width: 480px) {

  section {
    margin: 10px auto;
    padding: 12px;
    width: 100%;
  }

  header .tagline h1 {
    font-size: 1.4rem;
  }

  nav ul li a {
    font-size: 1rem;
  }

  /* Profile */
  .profile .avatar {
    width: 200px;
  }

  .profile-text {
    font-size: 1.3rem;
  }

  .skills-box,
  .experience-box,
  .education-box {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
  }

  .education-box ul li,
  .experience-box ul li {
    font-size: 1rem;
  }

  .gallery-page-title {
    font-size: 1.3rem;
  }

  .gallery-nav ul li a {
    font-size: 0.9rem;
    padding: 6px 10px;
    width: 90%;
  }

  .gallery-page-title,
  .gallery-nav {
    top: 50px;
  }

  .skills-box img,
  .app-icon {
    width: 70px;
    height: 70px;
  }

  .submit-btn {
    font-size: 1rem;
    padding: 8px 14px;
  }

  footer p img {
    width: 24px;
  }
}