/* =============================================================================
   FIDAKAR.COM — Main Stylesheet
   Palette: Arctic — #eef1f6 panel / white page / #1a2a4a navy / #5b8dd9 blue
   Fonts: Space Grotesk (headings) + Inter (body)
============================================================================= */

/* A. RESET & BASE
============================================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #2c3e50;
  background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: #1a2a4a;
}

a {
  color: #5b8dd9;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #3a6fbe;
}

img {
  display: block;
  max-width: 100%;
}

/* A2. INHERITED LINK STYLES
============================================================================= */
.hero-link {
  color: inherit;
  text-decoration: none;
  border-bottom: none;
}

.hero-link:hover {
  color: inherit;
  border-bottom: none;
}

.profile-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.profile-link:hover {
  color: inherit;
  border-bottom-color: currentColor;
}

/* B. LAYOUT UTILITIES
============================================================================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 1.4rem;
  color: #1a2a4a;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #5b8dd9;
  display: inline-block;
  letter-spacing: 0.03em;
}

/* C. NAVIGATION
============================================================================= */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: #1a2a4a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 62px;
  box-shadow: 0 2px 12px rgba(26, 42, 74, 0.18);
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.nav-logo:hover {
  color: #5b8dd9;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.2rem;
}

.nav-links a {
  color: #b8c8e8;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  border-bottom-color: #5b8dd9;
}

/* D. HERO / COVER
============================================================================= */
.hero {
  width: 100%;
  height: 50vh;
  min-height: 320px;
  background-image: url('../images/wall.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 42, 74, 0.60) 0%,
    rgba(26, 42, 74, 0.30) 60%,
    rgba(26, 42, 74, 0.50) 100%
  );
}

.hero-text {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  text-align: center;
  color: #ffffff;
  padding: 0 2rem;
  width: 100%;
}

.hero-text h1 {
  font-size: 3.2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.hero-text .hero-sub {
  font-size: 1.15rem;
  font-weight: 300;
  color: #c8d8f0;
  letter-spacing: 0.06em;
}

/* E. PROFILE SECTION
============================================================================= */
.profile-section {
  background-color: #eef1f6;
  padding: 2rem 0;
}

.profile-section .container {
  padding-left: 2rem;
}

.profile-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(91, 141, 217, 0.25);
}

.profile-info h2 {
  font-size: 1.9rem;
  color: #1a2a4a;
  margin-bottom: 0.3rem;
}

.profile-info .title {
  font-size: 1rem;
  color: #1a2a4a;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.profile-info .institution {
  font-size: 0.9rem;
  color: #5b8dd9;
  margin-bottom: 1.4rem;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #1a2a4a;
  color: #ffffff;
  font-size: 0.95rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-icons a:hover {
  background-color: #5b8dd9;
  color: #ffffff;
  transform: translateY(-3px);
}

/* F. ABOUT SECTION
============================================================================= */
.about-section {
  background-color: #ffffff;
}

.about-inner {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}

.about-photo {
  width: 200px;
  flex-shrink: 0;
  border-radius: 6px;
  object-fit: cover;
  align-self: stretch;
  border: 1.5px solid #9aa5b4;
  box-shadow: 0 4px 20px rgba(91, 141, 217, 0.2);
}

.about-text p {
  font-size: 1.05rem;
  color: #2c3e50;
  line-height: 1.85;
  margin-bottom: 1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* G. RESEARCH PAGE
============================================================================= */
.research-category {
  margin-bottom: 3.5rem;
}

.research-category h3 {
  font-size: 0.8rem;
  color: #5b8dd9;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.paper {
  padding: 1.4rem 1.6rem;
  background-color: #eef1f6;
  border-radius: 6px;
  margin-bottom: 1rem;
  border-left: 3px solid #5b8dd9;
  transition: box-shadow 0.2s ease;
}

.paper:hover {
  box-shadow: 0 4px 16px rgba(91, 141, 217, 0.12);
}

.paper h4 {
  font-size: 1rem;
  color: #1a2a4a;
  margin-bottom: 0.3rem;
}

.paper .coauthors {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 0.3rem;
}

.paper .venue {
  font-size: 0.85rem;
  color: #5b8dd9;
  font-style: italic;
}

.paper .abstract {
  font-size: 0.9rem;
  color: #4a5568;
  margin-top: 0.8rem;
  line-height: 1.7;
}

.paper-links {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}

.paper-links a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5b8dd9;
  border: 1px solid #5b8dd9;
  border-radius: 3px;
  padding: 0.2rem 0.65rem;
  transition: background-color 0.2s, color 0.2s;
}

.paper-links a:hover {
  background-color: #5b8dd9;
  color: #ffffff;
}

/* H. TEACHING PAGE
============================================================================= */
.teaching-item {
  padding: 1.4rem 1.6rem;
  background-color: #eef1f6;
  border-radius: 6px;
  margin-bottom: 1rem;
  border-left: 3px solid #5b8dd9;
  margin-left: 1.5rem;
}

.teaching-item h4 {
  font-size: 1rem;
  color: #1a2a4a;
  margin-bottom: 0.2rem;
}

.teaching-item .course-meta {
  font-size: 0.85rem;
  color: #64748b;
}

.teaching-role-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5b8dd9;
  margin-bottom: 0.9rem;
  margin-left: 1.5rem;
}

/* I. PHOTOGRAPHY PAGE
============================================================================= */
.photo-year {
  margin-bottom: 4rem;
}

.photo-year-title {
  font-size: 1.6rem;
  color: #1a2a4a;
  margin-bottom: 1.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #5b8dd9;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.photo-grid img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 28px rgba(26, 42, 74, 0.18);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 30, 0.93);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s;
  line-height: 1;
}

.lightbox-close:hover {
  opacity: 1;
}

/* J. BLOG PAGE
============================================================================= */
.blog-card {
  background-color: #eef1f6;
  border-left: 3px solid #5b8dd9;
  border-radius: 6px;
  padding: 2rem 2.2rem;
  margin-bottom: 2rem;
  transition: box-shadow 0.2s ease;
}

.blog-card:hover {
  box-shadow: 0 4px 20px rgba(91, 141, 217, 0.12);
}

.blog-card-inner {
  display: flex;
  gap: 1.8rem;
  align-items: flex-start;
}

.blog-thumb {
  width: 160px;
  flex-shrink: 0;
  border-radius: 4px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  border: 1px solid #d1dae8;
}

.blog-card-text {
  flex: 1;
  min-width: 0;
}

.blog-meta {
  font-size: 0.8rem;
  color: #64748b;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.blog-title {
  font-size: 1.4rem;
  color: #1a2a4a;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.blog-excerpt {
  font-size: 0.98rem;
  color: #4a5568;
  line-height: 1.8;
  margin-bottom: 0.8rem;
  max-width: 820px;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #5b8dd9;
  border: 1px solid #5b8dd9;
  border-radius: 3px;
  padding: 0.3rem 0.8rem;
  transition: background-color 0.2s, color 0.2s;
}

.blog-link:hover {
  background-color: #5b8dd9;
  color: #ffffff;
}

/* K. CV PAGE
============================================================================= */
.cv-embed {
  width: 100%;
  height: 85vh;
  border: none;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(26, 42, 74, 0.1);
}

/* K. FOOTER
============================================================================= */
footer {
  background-color: #1a2a4a;
  color: #7a90b8;
  text-align: center;
  padding: 2rem 5%;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

footer a {
  color: #8eaad9;
}

footer a:hover {
  color: #ffffff;
}

/* L. HAMBURGER BUTTON (hidden on desktop)
============================================================================= */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  line-height: 1;
}

/* M. RESPONSIVE — TABLET & MOBILE
============================================================================= */
@media (max-width: 768px) {

  /* Navigation */
  nav {
    flex-wrap: wrap;
    height: auto;
    padding: 0.9rem 5%;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    margin-top: 0.6rem;
    padding-bottom: 0.4rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links a {
    display: block;
    padding: 0.65rem 0;
    font-size: 0.85rem;
  }

  /* Hero */
  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text .hero-sub {
    font-size: 0.85rem;
    letter-spacing: 0.03em;
  }

  /* Profile */
  .profile-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  .profile-section .container {
    padding-left: 5%;
  }

  /* About */
  .about-inner {
    flex-direction: column;
  }

  .about-photo {
    width: 100%;
    max-width: 260px;
    height: auto;
    align-self: center;
  }

  /* Photo grid — 2 columns on tablet */
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Blog card */
  .blog-card-inner {
    flex-direction: column;
  }

  .blog-thumb {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
  }

  /* Teaching — remove indent on mobile */
  .teaching-item {
    margin-left: 0;
  }

  .teaching-role-label {
    margin-left: 0;
  }

  /* Section spacing */
  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {

  /* Hero */
  .hero-text h1 {
    font-size: 1.6rem;
  }

  .hero-text .hero-sub {
    font-size: 0.75rem;
  }

  /* Photo grid — 2 columns on phones */
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
  }
}
