:root{
  --bg:#ffffff;
  --muted:#777;
  --accent:#b5c99a; /* green-ish */
  --card:#f1eada;
  --shadow: 10px 10px 6.6px rgba(0,0,0,0.25);
  --nav:#87986a;
}

*{box-sizing:border-box}
body{font-family: "Montserrat Alternates", system-ui, Arial, sans-serif; margin:0; background:var(--bg); color:#111}
.nav {position: sticky; top: 0; z-index: 1000; background: var(--nav, #88966a); display: flex; align-items: center; justify-content: space-between; padding: 16px 40px; height: 100px;}
.nav-logo{ margin-left: 40px; height: 100px; overflow: hidden; display: flex; align-items: center;flex-shrink: 0;}
.nav-logo img{ height: 100%; width: auto; transform: scale(2); /* zoom amount */ transform-origin: center; display: block;}
.nav-inner {max-width: 1200px; margin-left: auto; padding: 16px 20px; display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap;}
.nav-inner a {color: #fff; text-decoration: none; font-size: 30px; line-height: 1; padding: 8px 6px;/* gives breathing room + better tap target */ white-space: nowrap;}
html, body { margin: 0; padding: 0;}

.reveal-on-scroll{ opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; will-change: opacity, transform;}
.reveal-on-scroll.is-visible{ opacity: 1; transform: translateY(0);}

body{ background: linear-gradient(rgba(255,255,255,.6), rgba(255,255,255,.6)), url("../images/background pic.jpg");
  background-size: 800px auto; background-position: 0 0; background-repeat: repeat; background-attachment: fixed, fixed; background-attachment: scroll;}

/* Optional: tighten spacing on smaller widths */
@media (max-width: 700px) {
  .nav-inner { gap: 18px;}
  .nav-inner a { font-size: 16px; padding: 8px 4px; }}

.container{max-width:1200px;margin:24px auto;padding:0 16px 80px}
.hero{display:flex;gap:40px;align-items:center;padding:40px}
.hero-media{width: clamp(520px, 40vw, 520px); overflow: hidden; background: none; flex: 1.1; flex-shrink: 0;}
.hero-media .hero-img{width: 100%; height: 100%; object-fit: cover;display: block;}
.hero-media:hover{ transform: translateY(-4px);transform: scale(1.1);}

.hero-text{flex:1; margin: 30px;}
.hero-text h1{font-family: "Montserrat",sans-serif;margin:0; font-size:55px; line-height: 1.2; font-weight: 800;}
.hero-text p{margin-top:12px; color: rgb(73, 73, 73); font-size: 24px;}

.experiences{padding:40px 0}
.experiences h2{font-family: "Montserrat",sans-serif;font-size:24px;margin-bottom:18px}
.exp-card {width: clamp(280px, 32vw, 420px); aspect-ratio: 420 / 530;background: #efe5d2; border-radius: 20px; padding: 16px; box-shadow: 0 10px 18px rgba(0,0,0,0.18); display: flex; flex-direction: column; text-align: center;}

/* Media block (the image area on top) */
.exp-card-media{ width: 100%; aspect-ratio: 1/1.2;   /* image window */ border-radius: 12px; overflow: hidden; background: rgba(0,0,0,0.08);}
.exp-card-media img{ width: 100%; height: 100%; object-fit: cover;}

/* Text spacing */
.exp-card h3{ margin:12px 0 6px;font-family:"Montserrat",sans-serif; padding-top: 20px; overflow: hidden;}
.exp-card .muted{ margin: 0 0 6px; color: #666;overflow: hidden ;}
/* Make cards look clickable */
.exp-card{ cursor: pointer;}
.exp-card:hover{ transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0,0,0,0.2);}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:24px}


/* Section spacing */
.experiences { padding: 72px 0;}
.exp-layout{ display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px; align-items: start;}
/* Title: left block on top row */
.exp-title{ grid-column: 1 / span 4;  /* 4/12 width */ grid-row: 1; align-self: center; text-align: center; margin: 0; font-family: "Montserrat Alternates", "Montserrat", sans-serif; font-weight: 800;}
.exp-layout > .exp-card{ width: 100%;aspect-ratio: auto; max-width: none;}
/* Top row cards (2 cards on the right) */
.exp-layout > .exp-card:nth-child(2){ grid-column: 5 / span 4; grid-row: 1; }
.exp-layout > .exp-card:nth-child(3){ grid-column: 9 / span 4; grid-row: 1; }
.exp-layout > .exp-card:nth-child(4){ grid-column: 1 / span 4; grid-row: 2; }
.exp-layout > .exp-card:nth-child(5){ grid-column: 5 / span 4; grid-row: 2; }
.exp-layout > .exp-card:nth-child(6){ grid-column: 9 / span 4; grid-row: 2; }

/* Overlay (hidden by default) */
.modal-overlay{ position: fixed; inset: 0; background: rgba(0,0,0,0.45); display: none; align-items: center; justify-content: center; padding: 24px; z-index: 9999;}

/* Show state */
.modal-overlay.is-open{display: flex;}
.modal{ width: min(850px, 92vw); max-height: 85vh; background: #efe5d2; border-radius: 22px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.25); /* important: allows body to scroll while top stays visible */ display: flex; flex-direction: column;}

/* Top row: text left + small image right */
.modal-top{ display: grid; grid-template-columns: 1fr auto;  gap: 22px; padding: 26px 51px 19px; align-items: start;}
.modal-top-left h2{ margin: 0; font-family: "Montserrat Alternates","Montserrat",sans-serif; font-weight: 800; font-size: 30px; padding: 64px 44px 6px; text-decoration-thickness: 3px; line-height: 1;}
.modal-top-left h3.modal-date{ margin: 0; font-size: 20px; font-weight: 500; color: #000000; padding: 0 44px 6px;} 
.modal-company{ margin: 11px 0 0; font-size: 22px; padding: 0px 44px 6px;}

/* Small square image in top-right */
.modal-top-right{ width: 224px; /* adjust to taste */ aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: rgba(0,0,0,0.08); margin-right: 40px; margin-top: 15px;}
.modal-top-right img{ width: 100%; height: 100%; object-fit: cover; display: block;}

/* Scrollable detail area underneath */
.modal-body{ padding: 16px 80px 32px 80px; overflow-y: auto;/* scrolls */ font-size: 21px; line-height: 1.5;}
/*scroll bar*/
.modal-body::-webkit-scrollbar{ width: 6px;}
.modal-body:hover::-webkit-scrollbar-thumb{ background-color: #BAA49F;}
.modal-body::-webkit-scrollbar-button{ display: none;}

/* Responsive: stack on smaller screens */
@media (max-width: 820px){
  .modal-top{ grid-template-columns: 1fr; padding: 26px 22px 18px;}
  .modal-top-right{ width: min(320px, 100%); justify-self: start;}
  .modal-body{ padding: 0 22px 26px;}}

.skills{padding:0px 0}
.skills h2{font-family: "Montserrat",sans-serif;font-size:24px;margin-bottom:18px; font-weight: 800; text-align: center;}
.skill-group{margin-bottom:18px; font-size: 20px; text-align: left;}
.chips{ display: flex; flex-wrap: wrap; gap: 20px; margin-top: 8px; align-items: flex-start; justify-content: flex-start;}
.chip{background:#e9e9d8;padding:8px 12px;border-radius:16px;font-weight:600; line-height: 1.4;}
.chip.alt{background:#b5c99a;padding:8px 12px; color:black;font-size: 20px; overflow: hidden; line-height: 1.4;}
.skill-group.languages .chip {background: #87986a;color: #000;font-size: 20px;padding:8px 12px;flex:auto}

.gallery{padding:40px 0;text-align:center}
.gallery h2{font-family: "Montserrat",sans-serif;font-size:24px;margin-bottom:18px; font-weight: 800}
.work-grid{ display: grid; grid-template-columns: repeat(2, 1fr); /* strict 2x2 */ gap: 30px; margin-top: 30px; max-width: 1100px; margin-left: auto; margin-right: auto;}
.work-card{background:#baa49f; border-radius: 20px; padding: 20px; box-shadow: 0 20px 20px rgba(0,0,0,0.18); text-align: center; /* fixed ratio + responsive sizing */
  aspect-ratio: 1 / 1; flex-direction: column; overflow: hidden; display: flex; align-items: center; justify-content: center;}
.work-card{ cursor: pointer;}
.work-card:hover{ transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0,0,0,0.2);}
.work-inner h3{color:#111;font-family:"Montserrat",sans-serif; text-align:center; font-size: xx-large;}
/* ===== Gallery modal styles ===== */
/* Overlay */
.work-modal-overlay{ position: fixed; inset: 0; background: rgba(0,0,0,0.45); display: none; align-items: center; justify-content: center; padding: 24px; z-index: 9999;}
.work-modal-overlay.is-open{ display: flex; }
/* Modal box */
.work-modal{ width: min(1100px, 92vw); height: min(900px, 90vh); max-width: calc(100vw - 48px); max-height: calc(100vh - 48px);
  aspect-ratio: 1100 / 900; background: #baa49f; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.25); display: flex; flex-direction: column; padding: 50px 50px 5px 50px;}
/* Image stage - takes remaining space */
.work-modal-stage{ flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; position: relative; border-radius: 20px; overflow: hidden; cursor: zoom-in;}
/* Big image */
.work-modal-img{ width: 100%; height: auto; object-fit: contain; display: block; border-radius: 20px; max-height: 100%;}
/* Title + description under image */
.work-modal-info{ padding: 20px 24px 10px; text-align: left;flex: 0 0 auto; }
.work-modal-title{ margin: 0 0 10px; font-family: "Montserrat Alternates","Montserrat",sans-serif; font-weight: 800; font-size: 32px;}
.work-modal-caption{ margin-top: 12px; padding-bottom: 25px; font-size: 24px; max-height: 100px; color: #222; overflow-y: auto;}
/*scroll bar*/
.work-modal-caption::-webkit-scrollbar{ width: 8px;}
.work-modal-caption::-webkit-scrollbar-track { background: transparent;}
.work-modal-caption::-webkit-scrollbar-thumb { background-color: transparent; border-radius: 999px;}
/* Reveal scrollbar on hover */
.work-modal-caption:hover::-webkit-scrollbar-thumb { background-color: #efe5d2; /* subtle */}
.work-modal-caption::-webkit-scrollbar-button{ display: none;}
/* arrows */
.work-modal-arrow{ position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; 
  border-radius: 999px; background: rgba(255,255,255,0.7); cursor: pointer; font-size: 28px; line-height: 44px;}
.work-modal-arrow.prev{ left: 14px; }
.work-modal-arrow.next{ right: 14px; }
.work-modal-arrow:disabled{ opacity: 0.35; cursor: default;}
.work-modal-counter{ margin-top: 10px ; font-size: 14px;}

/* smaller screens */
@media (max-width: 700px){
  .work-modal-img{ max-height: 50vh; object-fit: contain; transition: transform 0.35s ease, cursor 0.2s ease; transform-origin: center center;}
  .work-modal-caption{ font-size: 16px; }
}
.work-modal-stage.is-zoomed {cursor: zoom-out;}

.work-modal-stage.is-zoomed .work-modal-img {transform: scale(1.6);   /* adjust zoom level */}

.education{padding:40px 0}
.education h2{font-family: "Montserrat",sans-serif;font-size:24px;margin-bottom:20px; font-weight: 800}
.edu-list{display:flex;flex-direction:column;gap: 30px}
.edu-card{display:flex; flex-direction: row; align-items: center; gap:20px;background:var(--accent);padding:24px;
  border-radius:20px; font-size: 22px;box-shadow:var(--shadow); overflow: hidden; width: 100%;}
.edu-text{display:flex; flex-direction:column; justify-content:center;}
.edu-card img{width: clamp(96px, 18vw, 150px); height: auto; object-fit: cover; border-radius: 20px; flex: 0 0 auto;}
.edu p{margin: 8px 0 0;}
.small{font-size:14px}

.contact{ display: flex; background: var(--nav); width: 100%; padding: 48px 16px;margin-top:24px; justify-content: center; border-radius: 0;}
.contact h2{ font-family: "Montserrat",sans-serif; font-size: 28px; margin: 0;font-weight: 800;}
.contact-inner{ max-width: 1440px; margin: 0; text-align: center;}
.icon1{ display: flex; gap: 18px; justify-content: center; margin-top: 25px; flex-wrap: wrap;}
.icon1 img{ width: 34px; height: 28px;}
.icon2{ display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.icon2 img{ width: 28px; height: 28px;}

@media(min-width:900px){
  .hero-img{width:420px;height:320px}
}
