/* =========================
   VARIABLES
========================= */

:root{
  --bg:#0f1116;
  --text:#e4e6eb;
  --sidebar:#161a22;
  --accent:#ffb6c1;
  --card:#1c212b;
  --muted:#7d8695;
}

/* =========================
   BASE
========================= */

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: linear-gradient(rgba(15,17,22,0.85), rgba(15,17,22,0.85)), url("../images/bg.jpg") no-repeat center top;
  background-size: cover;
  background-attachment: scroll;
}

/* =========================
   LINKS (MAIN CONTENT)
========================= */

.content a:link,
.content a:visited,
.content a:active {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}

.content a:hover {
  color: var(--accent);
}

/* =========================
   LAYOUT
========================= */

/* Container ONLY for travel page */
.travel-page .container{
  max-width:1000px;
  margin:0 auto;
  padding:60px 20px;
}

/* Main content (desktop layout) */
.content{
  margin-left:270px;
  padding:60px;
  max-width:950px;
}

/* Sections */
section{
  margin-bottom:60px;
  text-align:center;
}

h2{
  margin-bottom:30px;
  font-weight:600;
}

/* =========================
   SIDEBAR
========================= */

.sidebar{
  width:270px;
  height:100vh;
  background:var(--sidebar);
  position:fixed;
  padding:40px 30px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.profile{text-align:center;}
.profile img{ width:120px; border-radius:50%; margin-bottom:15px; }
.profile h1{ font-size:22px; margin:5px 0; }
.profile p{ font-size:14px; color:var(--muted); }

nav{ margin-top:30px; }

.sidebar nav a{
  display:block;
  padding:8px 0;
  text-decoration:none;
  color:var(--text);
  font-weight:500;
  transition: color 0.3s;
}

.sidebar nav a:hover{
  color:var(--accent);
}

/* Buttons */
.buttons{ margin-top:20px; text-align:center; }

.buttons a{
  display:inline-block;
  color:var(--text);
  text-decoration:none;
  font-size:14px;
  margin:4px 6px;
  transition: color 0.3s;
}

.buttons a:hover{
  color:var(--accent);
}

/* =========================
   CARDS / ITEMS
========================= */

.card{
  background:var(--card);
  padding:25px;
  border-radius:12px;
  max-width:800px;
  margin:0 auto;
  text-align:left;
}

.item{ margin-bottom:20px; }

.item-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  cursor:pointer;
}

.item-left{ flex:1; }

.item-right{
  flex-shrink:0;
  text-align:right;
  color:var(--muted);
  font-size:14px;
  margin-left:20px;
}

.item-title{ font-weight:600; }

.item-sub{
  font-size:14px;
  color:var(--muted);
  display:block;
  margin-top:2px;
}

.item-content{
  max-height:0;
  overflow:hidden;
  transition:max-height 0.35s ease;
  margin-top:5px;
  font-size:14px;
}

.item-row:hover .item-title{
  color:var(--accent);
}

/* Year styling */
.item-year{
  font-size:14px;
}

.item-year strong{
  font-weight:700;
}

/* =========================
   TRAVEL PAGE
========================= */

/* Header */
.header{
  text-align:center;
  margin-bottom:50px;
}

.header h1{
  font-weight:600;
  margin-bottom:10px;
}

.header p{
  color:var(--muted);
  max-width:600px;
  margin:0 auto;
}

/* Map */
iframe{
  width:100%;
  height:400px;
  border:none;
  border-radius:10px;
}

/* Gallery */
.gallery{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(220px,1fr));
  gap:15px;
}

.gallery-item{
  position:relative;
  overflow:hidden;
  border-radius:12px;
  cursor:pointer;
}

.gallery-item img{
  width:100%;
  height:220px;
  object-fit:cover;
  transition:transform 0.4s ease;
}

.gallery-item:hover img{
  transform:scale(1.08);
}

.overlay{
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  padding:10px;
  background:linear-gradient(transparent, rgba(0,0,0,0.7));
  font-size:14px;
  opacity:0;
  transition:0.3s;
}

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

/* Back link */
.back{
  display:inline-block;
  margin-bottom:30px;
  text-decoration:none;
  color:var(--muted);
}

.back:hover{
  color:var(--accent);
}

/* =========================
   MODAL (TRAVEL)
========================= */

/* Modal */
.modal {
  display: none;      /* ❌ This is essential! */
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9); /* semi-transparent overlay */
  justify-content: center;      /* center content */
  align-items: center;          /* center content */
  flex-direction: column;
}

.modal img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
}

#modalCaption {
  margin-top: 15px;
  color: #fff;
  text-align: center;
  font-size: 16px;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

/* =========================
   FOOTER
========================= */

footer{
  margin-top:80px;
  color:var(--muted);
  font-size:14px;
  text-align:center;
}

/* =========================
   MOBILE
========================= */

.menu-toggle{
  display:none;
  font-size:26px;
  cursor:pointer;
  margin-bottom:10px;
}

@media(max-width:900px){

  .content{
    margin-left:0;
    padding:30px 20px;
  }

  .sidebar{
    position:relative;
    width:85%;
    height:auto;
    padding:20px;
  }

  .profile img{
    width:80px;
  }

  .menu-toggle{
    display:block;
    text-align:right;
  }

  nav{
    display:none;
    margin-top:15px;
  }

  nav.show{
    display:block;
  }

  .card{
    padding:20px;
  }
}