/* ==========================================================================
   muratogat.com — Styles
   Sora (headings) + DM Sans (body) + Fira Code (labels)
   ========================================================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Design Tokens --- */
:root {
  /* Dark theme — matched to profile photo background */
  --bg:             #061a21;
  --bg-alt:         #0c2630;
  --bg-card:        #0c2630;
  --border:         #183a47;
  --text:           #e8eff2;
  --text-light:     #adbfc8;
  --text-heading:   #f0f5f7;
  --text-bright:    #ffffff;
  --accent:         #5ffbd6;
  --accent-tint:    rgba(95, 251, 214, 0.1);
  --shadow:         rgba(3, 12, 16, 0.7);

  /* Typography */
  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Fira Code', 'SF Mono', 'Roboto Mono', 'Consolas', monospace;

  /* Font sizes */
  --fz-xxs:     12px;
  --fz-xs:      13px;
  --fz-sm:      14px;
  --fz-md:      16px;
  --fz-lg:      18px;
  --fz-xl:      20px;
  --fz-xxl:     22px;
  --fz-heading: 32px;

  /* Layout */
  --container:  1080px;

  /* Transitions */
  --easing: cubic-bezier(0.645, 0.045, 0.355, 1);
  --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* --- Global --- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fz-md);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 480px) {
  body {
    font-size: var(--fz-sm);
  }
}

::selection {
  background-color: var(--accent);
  color: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  opacity: 0.8;
}

strong {
  color: var(--text-heading);
  font-weight: 600;
}

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

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 60px;
}

@media (max-width: 768px) {
  .container { padding: 0 32px; }
}
@media (max-width: 480px) {
  .container { padding: 0 20px; }
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.hero__card {
  display: flex;
  align-items: stretch;
  gap: 56px;
  width: 100%;
  /* Golden ratio feel: photo ~38.2%, content ~61.8% */
}

.hero__photo-wrapper {
  flex: 0 0 280px;
  min-height: 360px;
  position: relative;
}

.hero__photo-glow {
  position: absolute;
  inset: -4px;
  background-color: #1a6080;
  opacity: 0.15;
  filter: blur(20px);
  border-radius: 4px;
  transition: opacity 1s ease;
}

.hero__photo-wrapper:hover .hero__photo-glow {
  opacity: 0.35;
}

.hero__photo {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border-radius: 4px;
  overflow: hidden;
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__greeting {
  font-family: var(--font-sans);
  font-size: var(--fz-lg);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 68px);
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 500;
  color: var(--text-light);
  line-height: 1.2;
  margin-top: 8px;
  letter-spacing: -0.02em;
}

.hero__intro {
  margin-top: 36px;
  max-width: 520px;
  font-size: var(--fz-md);
  line-height: 1.75;
  color: var(--text);
}

.hero__intro--secondary {
  margin-top: 12px;
  font-size: var(--fz-sm);
  color: var(--text-light);
}

.hero__connect {
  margin-top: 36px;
  display: flex;
  align-items: center;
}

.hero__connect-label {
  font-family: var(--font-sans);
  font-size: var(--fz-md);
  font-weight: 500;
  color: var(--accent);
  margin-right: 20px;
}

.hero__connect-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero__connect-links a {
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  transition: var(--transition);
}

.hero__connect-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
  opacity: 1;
  transform: translateY(-2px);
}

/* --- Sections --- */
.section {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
}
@media (max-width: 480px) {
  .section { padding: 60px 0; }
}

.section__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
  white-space: nowrap;
}

.section__number {
  font-family: var(--font-mono);
  font-size: var(--fz-sm);
  font-weight: 400;
  color: var(--accent);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 600;
  color: var(--text-heading);
}

.section__line {
  flex: 1;
  height: 1px;
  background-color: var(--border);
  margin-left: 10px;
  max-width: 300px;
}

/* --- Tags --- */
.tag {
  font-family: var(--font-mono);
  font-size: var(--fz-xxs);
  font-weight: 500;
  color: var(--accent);
  background-color: var(--accent-tint);
  padding: 4px 12px;
  border-radius: 2px;
  letter-spacing: 0.02em;
}

/* --- Experience --- */
.experience__grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Aktionariat — Featured Hero Card */
.exp-card-hero-wrapper {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.exp-card-hero-glow {
  position: absolute;
  inset: -6px;
  background-color: #1a6080;
  opacity: 0.08;
  filter: blur(28px);
  border-radius: 12px;
}

.exp-card-hero {
  position: relative;
  border-radius: 6px;
  padding: 40px 44px;
  overflow: hidden;
  background: url('../assets/images/zurich.jpg') center / cover no-repeat;
}

.exp-card-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.75) 100%);
  z-index: 0;
}

.exp-card-hero > * {
  position: relative;
  z-index: 1;
}

.exp-card-hero--kuka {
  background-image: url('../assets/images/istanbul.jpg');
}

.exp-card-hero--agencies {
  background:
    radial-gradient(ellipse 50% 70% at 20% 80%, rgba(26, 96, 128, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 85% 30%, rgba(26, 96, 128, 0.08) 0%, transparent 70%),
    var(--bg-alt);
}

.exp-card-hero--agencies::before {
  background: none;
}

.exp-card-hero__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.exp-card-hero__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.exp-card-hero__company {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.2;
}

.exp-card-hero__role {
  font-size: var(--fz-sm);
  color: var(--accent);
  font-weight: 500;
}

.exp-card-hero__dates {
  font-family: var(--font-mono);
  font-size: var(--fz-xxs);
  color: var(--text-light);
  margin-left: auto;
  white-space: nowrap;
}

.exp-card-hero__description {
  font-size: var(--fz-lg);
  line-height: 1.8;
  color: var(--text);
  max-width: 680px;
}

.exp-card-hero__tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Regular Experience Cards */
.exp-card {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.exp-card:last-child {
  border-bottom: none;
}

.exp-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.exp-card__logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.exp-card__company {
  font-family: var(--font-display);
  font-size: clamp(var(--fz-lg), 2.5vw, 22px);
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.2;
}

.exp-card__role {
  font-size: var(--fz-sm);
  color: var(--accent);
  font-weight: 500;
}

.exp-card__dates {
  font-family: var(--font-mono);
  font-size: var(--fz-xxs);
  color: var(--text-light);
  margin-left: auto;
  white-space: nowrap;
}

.exp-card__description {
  font-size: var(--fz-md);
  line-height: 1.75;
  color: var(--text);
  max-width: 640px;
}

.exp-card__tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Company Logos Row */
.exp-card__company-logos {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.company-logo {
  height: 36px;
  display: flex;
  align-items: center;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.company-logo:hover {
  opacity: 1;
}

.company-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.company-logo__text {
  font-family: var(--font-display);
  font-size: var(--fz-lg);
  font-weight: 700;
  color: var(--text-bright);
  white-space: nowrap;
}

/* --- Education --- */
.education__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

a.edu-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.edu-card__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: center / cover no-repeat;
  display: flex;
  align-items: flex-end;
}

.edu-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 50%, rgba(0, 0, 0, 0.35) 100%);
}

.edu-card__visual--uva {
  background-image: url('../assets/images/uva.jpg');
}

.edu-card__visual--boun {
  background-image: url('../assets/images/boun.jpg');
}

.edu-card__visual--iel {
  background-image: url('../assets/images/iel.jpg');
}

.edu-card__content {
  position: relative;
  z-index: 1;
  padding: 20px;
  text-align: left;
}

.edu-card__school {
  font-family: var(--font-display);
  font-size: var(--fz-lg);
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.3;
  margin-bottom: 4px;
}

.edu-card__degree {
  font-size: var(--fz-sm);
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 4px;
}

.edu-card__location {
  font-family: var(--font-mono);
  font-size: var(--fz-xxs);
  color: var(--text-light);
}

/* --- Footer --- */
.footer {
  padding: 24px 0 40px;
  text-align: center;
}

.footer__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.footer__socials a {
  color: var(--text-light);
  display: flex;
  padding: 8px;
  transition: var(--transition);
}

.footer__socials a:hover {
  color: var(--accent);
  opacity: 1;
  transform: translateY(-3px);
}

.footer__credit {
  font-family: var(--font-mono);
  font-size: var(--fz-xxs);
  color: var(--text-light);
}

/* --- Mobile-only line break --- */
.mobile-break {
  display: none;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--easing), transform 0.6s var(--easing);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero__card {
    flex-direction: column;
    gap: 32px;
  }

  .hero__photo-wrapper {
    flex: none;
    width: 220px;
    min-height: 280px;
    align-self: center;
  }

  .hero__photo {
    min-height: 280px;
  }

  .exp-card-hero {
    padding: 28px 24px;
  }

  .exp-card-hero__header {
    flex-wrap: wrap;
  }

  .exp-card-hero__dates {
    margin-left: 0;
    width: 100%;
  }

  .exp-card__header {
    flex-wrap: wrap;
  }

  .exp-card__dates {
    margin-left: 0;
    width: 100%;
  }

  .mobile-break {
    display: block;
  }

  .education__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 0;
    min-height: auto;
  }

  .hero__photo-wrapper {
    width: 180px;
    min-height: 230px;
  }

  .hero__photo {
    min-height: 230px;
  }

  .hero__connect-links {
    gap: 12px;
  }

  .hero__connect-links a {
    width: 36px;
    height: 36px;
  }
}
