/* ConceptCraft Final — Elegant Premium Theme with Hover + Visibility Fixes */

:root {
  --bg-1: #071226;
  --bg-2: #0e2a3c;
  --text: #e9f7fb;
  --muted: #a5b8c3;
  --accent-blue: #1fb6ff;
  --accent-gold: #d4a83b;
  --radius: 14px;
}

/* --- Reset --- */
* { box-sizing: border-box; transition: all 0.3s ease; }
body {
  margin: 0;
  font-family: 'Inter', 'DM Sans', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1120px; margin: 0 auto; padding: 22px; position: relative; z-index: 2; }

/* --- Watermark --- */
.watermark {
  position: fixed; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-4deg);
  width: 100vmin; height: 100vmin;
  background: url('logo.png') center/contain no-repeat;
  opacity: 0.05; filter: blur(0.4px) drop-shadow(0 0 20px rgba(15,180,255,0.2));
  pointer-events: none; z-index: 0;
  animation: slow-rotate 20s ease-in-out infinite alternate;
}
@keyframes slow-rotate {
  from { transform: translate(-50%, -50%) rotate(-4deg) scale(0.98); }
  to   { transform: translate(-50%, -50%) rotate(3deg) scale(1.02); }
}

/* --- Header --- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(5,10,18,0.65); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { width: 70px; height: auto; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-title { font-weight: 700; font-size: 22px; }
.brand-title .gold { background: linear-gradient(90deg, var(--accent-gold), #f2ca74); -webkit-background-clip: text; color: transparent; }
.brand-sub { color: var(--muted); font-size: 13px; }

/* Desktop Nav */
.nav a {
  color: var(--muted); text-decoration: none; padding: 8px 10px;
  border-radius: 6px; font-weight: 600;
}
.nav a:hover { color: var(--accent-gold); text-shadow: 0 0 8px rgba(212,168,59,0.4); }

/* Buttons */
.btn { display: inline-block; padding: 10px 18px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.btn.primary {
  background: linear-gradient(90deg, var(--accent-blue), #079adf); color: #04121b;
  box-shadow: 0 6px 20px rgba(31,182,255,0.25);
}
.btn.primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 26px rgba(31,182,255,0.4);
}
.btn.outline {
  border: 1px solid rgba(255,255,255,0.15); color: var(--text);
}
.btn.outline:hover {
  border-color: var(--accent-gold); color: var(--accent-gold);
}

/* -----------------------------------------
   FIXED MOBILE NAV + HAMBURGER (IMPORTANT)
   ----------------------------------------- */

/* Hide desktop nav on mobile */
@media (max-width: 768px) {
  #mainNav {
    display: none !important;
  }
}

/* Hamburger button */
.hamburger {
  display: none;           /* hidden on desktop */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 9999;
}

/* Hamburger lines */
.hamburger span {
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* Show hamburger on mobile */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
}

/* -----------------------------
   LIQUID GLASS MOBILE SIDEBAR
   ----------------------------- */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 74%;
  max-width: 360px;
  height: 100%;
  
  /* Liquid Glass core */
  background: rgba(255, 255, 255, 0.06);  /* Transparent milky glass */
  backdrop-filter: blur(22px) saturate(160%) contrast(130%);
  -webkit-backdrop-filter: blur(22px) saturate(160%) contrast(130%);
  
  /* Smooth slide */
  transition: right 0.35s cubic-bezier(.2, .9, .2, 1),
              backdrop-filter 0.3s ease;
  
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: -6px 0 30px rgba(0, 0, 0, 0.45);

  /* Elegant rounded look on edges */
  border-radius: 18px 0 0 18px;

  z-index: 9998;
  padding: 20px 0;

  /* Liquid glass shine */
  position: fixed;
  overflow-y: auto;
}

/* when menu is visible */
.mobile-nav.show {
  right: 0;
}

/* subtle glassy highlight strip */
.mobile-nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140px;
  background: linear-gradient(
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.02)
  );
  pointer-events: none;
}

/* links become floating glass buttons */
.mobile-nav-links a {
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 18px;
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-nav-links a:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(4px);
}

/* --- Sections --- */
.section { padding: 60px 0; position: relative; }
.parallax { background-attachment: fixed; background-size: cover; background-position: center; overflow: hidden; }
.parallax::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,18,36,0.55), rgba(7,18,36,0.55));
  z-index: 1;
}
.section > .container, .card, .content, .contact-card { position: relative; z-index: 2; }

/* --- Cards --- */
.card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  padding: 20px;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(31,182,255,0.25);
}

/* --- Hero --- */
.hero {
  min-height: 72vh; display: flex; align-items: center;
  color: var(--text);
}
.hero .kicker {
  background: linear-gradient(90deg, #ffd27a, #f2b94b);
  color: #07121a; font-weight: 800; padding: 8px 14px; border-radius: 999px;
}
.hero h1 { font-size: 40px; margin: 10px 0; }
.hero p { color: var(--muted); max-width: 600px; }

/* --- About --- */
.photo { height: 420px; border-radius: 12px; background-size: cover; background-position: center; box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.photo:hover { transform: scale(1.04); filter: brightness(1.1); }

/* --- SUBJECTS FIXED DESIGN --- */
#subjects { position: relative; z-index: 2; }
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}

.subject {
  position: relative;
  height: 280px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background-size: cover;
  background-position: center;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.subject::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.75) 100%);
  transition: opacity 0.35s ease;
  z-index: 1;
}

.subject .card-body {
  position: relative;
  z-index: 2;
  padding: 20px;
  width: 100%;
  color: #fff;
}

.subject h3 { margin: 0 0 6px; font-size: 22px; font-weight: 700; }
.subject p { font-size: 15px; color: rgba(255,255,255,0.85); margin-bottom: 14px; }

.subject a {
  background: rgba(255,255,255,0.12);
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  transition: all 0.25s ease;
}

.subject:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 36px rgba(31,182,255,0.25);
}
.subject:hover::before {
  opacity: 0.9;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.9) 100%);
}
.subject:hover a {
  background: var(--accent-blue);
  color: #02121a;
  box-shadow: 0 8px 24px rgba(31,182,255,0.35);
}

/* Tablet */
@media (max-width: 980px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .subject { height: 260px; }
}

/* --- Contact --- */
.contact-section::before {
  background: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.7));
}
.contact-card {
  max-width: 720px;
  backdrop-filter: blur(12px);
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
}

/* --- Form --- */
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px; margin-top: 12px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05); color: var(--text);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(31,182,255,0.3);
}

.form-row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* --- Footer --- */
.footer { padding: 28px 0; text-align: center; color: var(--muted); border-top: 1px solid rgba(255,255,255,0.08); }

/* --- Responsive --- */
@media(max-width:980px){
  .two-col{grid-template-columns:1fr}
  .cards{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:600px){
  .cards{grid-template-columns:1fr}
  h1{font-size:28px}
  .watermark{width:80vmin;height:80vmin;opacity:0.03}
}
/* ============================================
   PREMIUM SCROLL ANIMATIONS (CINEMATIC)
   ============================================ */

.animate-up,
.animate-left,
.animate-right,
.animate-scale {
  opacity: 0;
  filter: blur(6px);
  transition: all 0.9s cubic-bezier(.19,1,.22,1);
}

/* fade up */
.animate-up {
  transform: translateY(32px);
}
.animate-up.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* from left */
.animate-left {
  transform: translateX(-48px);
}
.animate-left.visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

/* from right */
.animate-right {
  transform: translateX(48px);
}
.animate-right.visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

/* scale in (cards / contact) */
.animate-scale {
  transform: scale(0.9);
}
.animate-scale.visible {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}
