/* ===== Typography Upgrade (Alya Theme) ===== */

/* Default site font */
body {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #1e1f26;
  background-color: #fdfdfd;
  text-rendering: optimizeLegibility;
}

/* Headings: elegant serif (Playfair Display) */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: #102a5c;
  letter-spacing: 0.5px;
}

/* Navbar font style */
nav a {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Paragraphs in main content */
p {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  line-height: 1.9;
  color: #2b2b2b;
  text-align: justify;
  margin-bottom: 1.2rem;
}

/* Alya section special title styling */
.clearfix h2, .clearfix h3 {
  font-family: 'Playfair Display', serif;
  color: #0d6efd;
  text-shadow: 0 2px 6px rgba(13, 110, 253, 0.25);
}

/* Optional: Light novel paragraph feel */
.clearfix p {
  text-indent: 1.4em;
  font-size: 1.05rem;
  color: #2b2b2b;
}

/* Optional: underline glow under headings */
h2, h3 {
  position: relative;
}

h2::after, h3::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #0d6efd, rgba(13, 110, 253, 0));
  border-radius: 2px;
}


/* ===============================
   Base Layout
=============================== */
header {
    margin: 0;
    padding: 20px 0;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
body {
  margin: 0;
  font-family: sans-serif;
  background-color: #f8f9fa;
  color: #212529;
  padding-top: 90px;
}

/* Containers */
.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border-radius: 12px;
  border: 1px solid #dee2e6;
  overflow: hidden;
  transition: all 0.35s ease;
}

/* =====================================================
   5️⃣ ALYA SECTION (FLOAT IMAGE + TEXT)
   ===================================================== */
.clearfix {
  position: relative;
  width: 85%;
  padding: 40px 50px;
  margin: 60px auto;
  border-radius: 15px;
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
}

.clearfix:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(13, 110, 253, 0.2);
  background: linear-gradient(145deg, #f8f9fa, #ffffff);
  border: 1px solid rgba(13, 110, 253, 0.25);
}

/* Alya image */
.clearfix img {
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.25);
  border: 2px solid rgba(13, 110, 253, 0.25);
  margin: 10px 0 20px 30px;
  max-width: 45%;
  height: auto;
  float: right;
  transition: all 0.4s ease;
}

.clearfix:hover img {
  transform: scale(1.05);
  box-shadow: 0 18px 40px rgba(13, 110, 253, 0.35);
  border-color: rgba(13, 110, 253, 0.5);
}

/* Alya text */
.clearfix h1, .clearfix h2, .clearfix h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: center;
  line-height: 1.3;
}

.clearfix h1 {
  font-size: 2rem;
  color: #0d6efd;
  text-shadow: 0 2px 8px rgba(13, 110, 253, 0.25);
}

.clearfix h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #343a40;
}

.clearfix hr {
  margin: 40px auto;
  width: 80%;
  border: none;
  border-top: 2px solid rgba(13, 110, 253, 0.15);
}

.clearfix p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #343a40;
  margin-bottom: 1.5rem;
  text-align: justify;
  text-indent: 1.4em;
}








/* Center breakpoint boxes inside fluid container */
.container-fluid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px;
  margin-bottom: 30px;
}

.container-fluid > div {
  width: 70%;
  background-color: #e9ecef;
  padding: 15px;
  margin: 10px 0;
  text-align: center;
  border: 1px solid #ced4da;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.container-fluid > div:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(13, 110, 253, 0.2);
  border: 1px solid rgba(13, 110, 253, 0.3);
}

/* Columns (Cards) */
.container .row {
  gap: 20px;
  justify-content: center;
  padding: 20px;
}

.col-md-4.mb-3 {
  background: linear-gradient(135deg, #0dcaf0a6, #dee2e6);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  border: 1px solid #adb5bd;
  min-height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.35s ease;
}

.col-md-4.mb-3:hover {
  background: linear-gradient(135deg, #0dcaf0, #f1f3f5);
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 16px 35px rgba(13, 110, 253, 0.25);
  border: 1px solid rgba(13, 110, 253, 0.4);
  z-index: 2;
}

/* Inner box hover refinement */
.col-md-4.mb-3 .p-4:hover {
  background: linear-gradient(316deg, #0dcaf073, #e9ecef);
  border: 1px solid rgba(13, 110, 253, 0.4);
  box-shadow: 0 6px 16px rgba(13, 110, 253, 0.15);
}



/* ===============================
   Navbar
=============================== */
/* ===== Blue-Glow Glass Navbar (Aero Style) ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;

  /* Frosted-glass base */
  background: rgba(15, 40, 90, 0.25);               /* bluish tint */
  backdrop-filter: blur(22px) saturate(180%) brightness(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(180%) brightness(1.3);

  /* Blue glow + border */
  border-bottom: 1px solid rgba(13, 110, 253, 0.45);
  box-shadow:
    0 0 25px rgba(13, 110, 253, 0.25),
    inset 0 0 15px rgba(13, 110, 253, 0.15);

  border-radius: 0 0 10px 10px;
  padding: 12px 24px;
  transition: all 0.4s ease;
}

/* Subtle brightness on hover */
nav:hover {
  background: rgba(25, 55, 120, 0.35);
  box-shadow:
    0 0 35px rgba(13, 110, 253, 0.35),
    inset 0 0 20px rgba(13, 110, 253, 0.2);
}
nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at top center,
    rgba(13, 110, 253, 0.25),
    rgba(13, 110, 253, 0.05) 80%,
    transparent 100%
  );
  pointer-events: none;
  z-index: -1;
    

}

/* ===== Restored Floating Hover + Underline for Translucent Navbar ===== */
nav a {
  position: relative;
  display: inline-block;
  padding: 8px 16px;
  margin: 0 6px;
  border-radius: 6px;
  color: #eaf2ff; /* slight white-blue tint for better contrast */
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 2; /* ensures link stays above glow layer */
}

/* Hover effect (floating + glow + background highlight) */
nav a:hover {
  color: #0d6efd;
  transform: translateY(-3px);
  background: rgba(13, 110, 253, 0.07);
  box-shadow: 0 6px 15px rgba(13, 110, 253, 0.25);
}

/* Underline slide animation */
nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #0d6efd;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Smooth transitions globally for consistency */
nav a,
nav a::after {
  transition: all 0.3s ease;
}
nav a:active {
  transform: translateY(1px);
}



/* ===============================
   Align-self Demo Section
=============================== */
.row.align-items-start {
  height: 200px;
  border-radius: 10px;
  background: linear-gradient(145deg, #fafafa, #f8f9fa);
  transition: all 0.4s ease;
}

.col.align-self-start.text-white.border {
  color: #098fcd8b;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  text-decoration-color: #098fcd8b;
}

.row.align-items-start .col {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.row.align-items-start .col:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(13, 110, 253, 0.2);
  border: 1px solid rgba(13, 110, 253, 0.3);
  
}

/* ===============================
   Footer
=============================== */
footer {
  background: linear-gradient(180deg, #212529, #121417);
  color: white;
  text-align: center;
  padding: 12px 0;
  width: 100%;
  border-top: 2px solid transparent;
  transition: all 0.4s ease;
}

footer:hover {
  border-top: 2px solid rgba(13, 110, 253, 0.5);
  box-shadow: 0 -8px 30px rgba(13, 110, 253, 0.2);
}

/* ===============================
   General Hover & Transition
=============================== */
.container:hover,
.container-fluid:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(13, 110, 253, 0.15);
  border-color: rgba(13, 110, 253, 0.25);
}

* {
  transition: all 0.3s ease;
}




/* =====================================================
   📱 RESPONSIVE DESIGN FOR ALL DEVICES
   (Mobile → Tablet → Laptop & TV Screens)
===================================================== */

/* === Mobile Devices (Portrait & Small ≤ 600px) === */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.5rem;
  }

  nav {
    display: flex;
    flex-direction: row;   /* 🔹 changed from column → row */
    justify-content: center; /* centers the links horizontally */
    align-items: center;
    flex-wrap: wrap;       /* allows wrapping if the screen is very narrow */
    gap: 10px;
    padding: 10px 5px;
  }

    nav a {
    display: inline-block; /* 🔹 changed from block → inline-block */
    padding: 8px 10px;
    border-radius: 6px;
    width: auto;           /* 🔹 removed fixed 90% width */
    font-size: 0.9rem;
  }
  .col-md-4.mb-3 {
    min-height: auto;
  }
  .container-fluid > div {
    width: 95%;
  }
  .col-md-4.mb-3 {
    flex: 0 0 90%;
  }


  .container .row {
    flex-direction: column;
    align-items: center;
  }

  .col-md-4.mb-3 {
    width: 90%;
    min-height: 100px;
    margin-bottom: 15px;
  }

  .container-fluid > div {
    width: 95%;
    font-size: 0.9rem;
  }

  .clearfix img {
    float: none !important;
    display: block;
    margin: 0 auto 20px;
    width: 100%;
  }
  .clearfix {
    padding: 20px;
    text-align: center;
  }

  footer {
    font-size: 0.8rem;
    padding: 8px 0;
  }
}

/* === Tablets (Landscape & Small Laptops: 601px–992px) === */
@media (min-width: 601px) and (max-width: 992px) {
  header h1 {
    font-size: 1.8rem;
  }

  nav {
    padding: 0.8rem;
  }
  .col-md-4.mb-3 {
    flex: 0 0 45%;
  }

  .container .row {
    justify-content: center;
    gap: 25px;
  }

  .col-md-4.mb-3 {
    flex: 0 0 45%; /* 2 columns per row */
    min-height: 130px;
  }

  .container-fluid > div {
    width: 85%;
    font-size: 1rem;
  }

  footer {
    font-size: 0.9rem;
  }
}

/* === Laptops & Desktops & TV and Large Screens (993px and Above) === */
@media (min-width: 993px) {
  header h1 {
    font-size: 2.2rem;
  }

  nav a {
    font-size: 1rem;
  }

  .container .row {
    justify-content: center;
    gap: 20px;
  }

  .col-md-4.mb-3 {
    flex: 0 0 30%;
  }

  .container-fluid > div {
    width: 75%;
  }

  footer {
    font-size: 1rem;
  }
}





/* =====================================================
   🌙 DARK MODE & MODAL STYLES 
===================================================== */

/* Disclaimer Modal Styling */
.glass-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Dark Mode Overrides */
body.dark-mode {
    background-color: #12141a;
    color: #e0e4e8;
}

body.dark-mode header {
    background-color: #1b1e28 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

body.dark-mode header h1,
body.dark-mode h4 {
    color: #8ab4f8 !important; /* Lighter ice blue for dark backgrounds */
}

body.dark-mode p {
    color: #b0b8c4;
}

/* Containers and Main Content */
body.dark-mode .container,
body.dark-mode .container-fluid,
body.dark-mode .bg-light,
body.dark-mode .clearfix {
    background: linear-gradient(145deg, #1e2230, #171a24) !important;
    border: 1px solid #2d3346 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

body.dark-mode .clearfix h1 {
    color: #6ea8fe;
}

body.dark-mode .clearfix h2 {
    color: #e2e8f0;
}

/* Dark Mode Hover States (Keeping the blue glow) */
body.dark-mode .clearfix:hover {
    box-shadow: 0 20px 40px rgba(13, 110, 253, 0.2);
    border-color: rgba(13, 110, 253, 0.4) !important;
}

/* Trait Cards in Dark Mode */
body.dark-mode .col-md-4.mb-3 {
    background: linear-gradient(135deg, rgba(13,202,240,0.1), rgba(30,34,48,0.9));
    border-color: #2d3346;
}

body.dark-mode .col-md-4.mb-3:hover {
    background: linear-gradient(135deg, rgba(13,202,240,0.2), rgba(40,45,65,0.9));
    border-color: rgba(13, 110, 253, 0.5);
    box-shadow: 0 16px 35px rgba(13, 110, 253, 0.15);
}

body.dark-mode .col-md-4.mb-3 .p-4:hover {
    background: linear-gradient(316deg, rgba(13,202,240,0.05), rgba(40,45,65,0.8)) !important;
}

/* Dark Mode Modal */
body.dark-mode .glass-modal {
    background: rgba(30, 34, 48, 0.95);
    border: 1px solid #2d3346;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

body.dark-mode .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}


/* Navbar Text Fix for Dark Mode */
body.dark-mode nav a,
body.dark-mode nav a.text-dark {
    color: #e0e4e8 !important;
}

body.dark-mode nav a:hover {
    color: #6ea8fe !important;
    background: rgba(13, 110, 253, 0.15);
}

/* Force images to stay inside the grid boxes */
.gallery-slot {
    overflow: hidden !important; 
    position: relative;
}

.gallery-slot img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: absolute;
    top: 0;
    left: 0;
}

/* =====================================================
   🖼️ GALLERY GRID STYLES (UNIFIED FIX)
===================================================== */
.gallery-slot {
    background-color: rgba(13, 110, 253, 0.05);
    border: 2px dashed rgba(13, 110, 253, 0.4);
    box-shadow: 0 8px 16px rgba(13, 110, 253, 0.1); /* The missing resting shadow! */
    display: block; 
    width: 100%;
    position: relative; 
    overflow: hidden; 
    border-radius: 8px;
    transition: all 0.3s ease;
}

body.dark-mode .gallery-slot {
    background-color: rgba(13, 110, 253, 0.1);
    border-color: rgba(13, 110, 253, 0.3);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); /* Deeper shadow for dark mode */
}

/* Lock aspect ratios */
.phone-ratio { aspect-ratio: 9 / 16; }
.pc-ratio { aspect-ratio: 16 / 9; }

/* The Image Constraints */
/* The Image Constraints & Smooth Transitions */
.gallery-slot img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease, filter 0.5s ease; /* Smooth out the movement */
}

/* The Box Float Effect */
/* The Box Float Effect (Matched to Footer) */
/* The Box Float Effect (Matched to Footer) */
.gallery-slot:hover {
    transform: translateY(-8px); 
    border: 2px solid rgba(13, 110, 253, 0.5) !important; 
    box-shadow: 0 8px 30px rgba(13, 110, 253, 0.2) !important; 
    z-index: 10 !important; /* Forces the shadow to render ON TOP of the next image */
}

/* The Image Zoom & Brightness Pop */
.gallery-slot:hover img {
    transform: scale(1.12); /* Cinematic zoom */
    filter: brightness(1.05); /* Makes the colors pop slightly */
}
