/* ===== General Layout ===== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #dad8d8;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* ===== Header ===== */
header {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 15px 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;  /* Push title left, nav right */
    align-items: center;
    max-width: 2200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-title {
    margin: 0;
    font-size: 22px;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;   /* spacing between links */
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
    background-color: #34495e;
}

/* ===== Main Content ===== */
main {
    flex: 1;
    padding: 100px 0 60px; /* top padding for header, bottom for footer */
}

/* ===== Footer ===== */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 15px 0;
    font-size: 12px;
}

/* ===== Cards ===== */
.card {
    background-color: #f1f0f0;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: #2c80b4;
    border-color: #2c80b4;
    box-shadow: 0 4px 12px rgba(21, 20, 20, 0.615);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(21, 20, 20, 0.615);
}

/* ===== Contact Cards ===== */
.contact.card {
    background-color: #ffffff;
}

.links-list {
    text-decoration: none;
    color: #3498db;
    transition: color 0.3s ease, transform 0.2s;
}

.links-list:hover {
    color: #2c80b4;
    text-decoration: underline;
    transform: translateX(2px);
}

/* ===== Buttons ===== */
.project-link,
.resume-link,
.certification-link,
.download-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s;
}

.project-link:hover,
.resume-link:hover,
.certification-link:hover,
.download-btn:hover {
    background-color: #2c80b4;
    transform: translateY(-2px);
    box-shadow:  0 6px 18px rgba(0,0,0,0.12);
}

/* ===== Profile Photo ===== */
.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* ===== Image Modal ===== */
.img-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.img-modal img {
    max-width: 300px;
    max-height: 300px;
    border-radius: 50%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    display: block;
    transition: transform 0.3s ease;
}

.img-modal .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

/* ===== Project Container ===== */
.project-detail{
  max-width: 900px;
  margin: 40px auto;
  padding: 25px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.project-title{
  font-size: 20px;
  font-weight: 800;
  color: #333947;
  margin-bottom: 16px;
}

.project-description{
  font-size: 17px;
  line-height: 1.75;
  color: #2d3748;
  margin-bottom: 18px;
}

.tools-list{
  list-style: disc;
  margin: 0 0 18px 22px;
  color: #334155;
}

.video-container{text-align:center; margin: 18px 0;}
.project-links{ margin-top: 18px; }

.project-link{
  display:inline-block;
  margin-right:12px;
  padding:10px 16px;
  background:#2a9df4;
  color:#fff;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.project-link:hover{
  background:#1d6fa5;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* ===== Vertical Screenshot Cards ===== */
.slider-container{
  display:flex;
  flex-direction:column;
  gap:24px;
}

.slider-item{
  background:#f1f5f9;         /* slate-100 */
  border:1px solid #e2e8f0;    /* slate-200 */
  border-radius:12px;
  padding:14px;
  text-align:center;
  transition: box-shadow .25s ease, transform .25s ease;
}
.slider-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

.zoomable-img{
  width:100%;
  max-width: 720px;
  border-radius:10px;
  cursor:pointer;
  margin: 6px auto 10px;
  display:block;
  transition: transform .25s ease;
}

.caption{
  text-align:center;
  font-weight: 800;        /* bold, as requested */
  color:#0f172a;           /* slate-900 */
  font-size:1rem;
  margin-top:6px;
}
.explanation{
  text-align:center;
  color:#334155;           /* slate-600 */
  font-size: .96rem;
  margin-top:4px;
}

/* Overlay */
.slider-popup {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: rgba(0,0,0,0.9);
  z-index: 99999;
  backdrop-filter: blur(1.5px);
  overflow: hidden;
}
.slider-popup.show { display: flex; }

/* Image */
.slider-img {
  max-width: 92vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  cursor: zoom-in;
  transition: transform .25s ease;
}
.slider-img.zoomed { transform: scale(1.5); cursor: zoom-out; }

/* Close button — fixed in top-right */
.slider-close {
  position: fixed;   /* instead of absolute */
  top: 15px;
  right: 20px;
  font-size: 36px;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  transition: transform .2s ease, color .2s ease;
  z-index: 100000;   /* make sure it's above image */
}
.slider-close:hover { color: #f87171; transform: scale(1.15); }


/* ===== Skills ===== */
.skills-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.skill-name {
    font-weight: bold;
    color: #333;
}

.skill-level {
    font-style: italic;
    color: #555;
}

/* ===== Certifications ===== */
.certification-link {
    background-color: #3498db;
}

.certification-link:hover {
    background-color: #2c80b4;
}

/* ===== Resume ===== */
.resume-link {
    background-color: #3498db;
}

.resume-link:hover {
    background-color: #2c80b4;
}

#resumeFrame {
    width: 100%;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    height: auto;          /* no fixed height */
    max-height: none;      /* no lock */
}
.modal {
    display: none; 
    position: fixed;
    top: 0; left: 0;
    align-items: center;
    width: 100%; 
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    overflow: auto;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative;
    max-height: 90vh;      /* fits inside screen */
    /* overflow-y: auto;      whole modal scrolls */
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 1001;
}
.close:hover {
    color: #cc5a4d;
}

/* ===== Optional Accent ===== */
.accent {
    color: #e67e22; /* subtle orange for highlights */
}

/* ===== Experience ===== */
#experience {
    margin: 40px 0;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.experience-item {
    padding: 15px 20px;
    border-left: 4px solid #3498db;
    background: #fdfdfd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(21, 20, 20, 0.615);
    transition: transform 0.2s, box-shadow 0.2s;
}

.experience-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 20, 20, 0.615);
}

.experience-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.experience-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

.company {
    font-weight: 500;
    color: #2c80b4;
    margin-left: 10px;
}

.date {
    font-size: 14px;
    font-style: italic;
    color: #777;
}

.experience-description {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

/* ===== Responsive Navbar ===== */
.menu-toggle {
    display: none;
    font-size: 26px;
    color: #ecf0f1;
    background: none;
    border: none;
    cursor: pointer;
}

/* Mobile view */
@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* Hide links initially */
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 15px;
        background: #2c3e50;
        position: absolute;
        top: 60px; /* just below header */
        right: 20px;
        padding: 15px;
        border-radius: 6px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }

    /* When menu is active */
    .nav-links.active {
        display: flex;
    }

    /* Show hamburger */
    .menu-toggle {
        display: block;
    }
}
