/* Global stylesheet for Aleksandar Zivotic website */

:root {
  --bg: #010117; /* deep dark blue */
  --bg-accent: #00000f; /* slightly darker blue */
  --text: #ffffff; /* white text */
  --text-strong: #ffffff; /* headings */
  --card: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.08);
  --accent: #ffffff; /* white accent */
  --accent-strong: #ffffff; /* white accent strong */
}

/* Base reset and layout */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  line-height: 1.75;
  letter-spacing: 0.1px;
  color: var(--text);
  background: var(--bg);
}

/* Content container */
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 0 0 0;
}

.intro-content {
  display: block;
  max-width: 80ch;
  margin: 0 auto;
  padding: 0 24px;
}

.profile-container {
  position: relative;
  text-align: left;
  margin-bottom: 24px;
}

.profile-picture {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: block;
}

.status-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 28px;
  height: 28px;
  background: #7ED321;
  border: 3px solid var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.header-text {
  text-align: left;
}

h1 {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: clamp(2rem, 1rem + 3vw, 3rem);
  letter-spacing: 0.5px;
  color: #ffffff; /* white text */
}

.icon { margin-right: 10px; }
.icon-right { margin-left: 10px; color: #2b6cb0; }
.icon-right .glyph { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; fill: currentColor; }

h2 {
  margin-top: 0;
  font-family: "Inter", sans-serif;
  font-size: clamp(1.15rem, 0.9rem + 0.8vw, 1.5rem);
  color: #ffffff; /* white text */
}

.subtitle {
  margin: 4px 0 0;
  font-size: clamp(0.95rem, 0.8rem + 0.6vw, 1.15rem);
  color: #ffffff; /* white text */
  opacity: 0.95;
}

section {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 22px 22px 16px;
  backdrop-filter: blur(4px);
}

p { margin: 0 0 12px; }
/* Improve readability on larger blocks */
p { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem); }

/* Intro: unframed text block - centered and full height */
.intro {
  background: none;
  border: none;
  border-radius: 0;
  padding: 40px 0 18px 0;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
}

.intro-text {
  text-align: left;
}

.intro-title {
  margin: 0 0 16px 0;
  font-family: "Inter", sans-serif;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.2rem);
  font-weight: 600;
  color: var(--accent-strong);
  line-height: 1.2;
  margin-top: 0;
}

.intro p:first-of-type {
  margin-top: 8px;
}

/* Hide detailed content initially */
.detailed-content {
  display: none;
}

/* Show detailed content when scrolled to */
.detailed-content:target {
  display: block;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0 24px;
  max-width: 80ch;
  margin: 0 auto;
}

/* Plain sections without framing */
.plain {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0 0 10px;
  max-width: 80ch;
  margin: 0 auto;
}

/* Landscape-first experience */
@media (orientation: landscape) {
  html, body { height: 100vh; }
  main { max-width: 1100px; padding: 32px 32px 0; }
}

/* Smooth scroll spacing to next section */
html { scroll-behavior: smooth; }
#experience { margin-top: 64px; }
.work-experience { margin-top: 28px; }
.role h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--text-strong); }
.role .growth { margin-top: 8px; opacity: 0.95; }

/* Huawei accomplishment */
.accomplishment { margin-top: 10px; }
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.media-grid figure { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--card-border); background: var(--card); }
.media-grid img { display: block; width: 100%; height: auto; object-fit: cover; }
/* Larger gap before Huawei section */
#work { margin-top: 72px; }

/* Same gap before Praxum section to match spacing */
#praxum { margin-top: 72px; }

/* Same gap before AIESEC section to match spacing */
#aiesec { margin-top: 72px; }

/* Same gap before Simple task section to match spacing */
#simple-task { margin-top: 72px; }

/* Same gap before Pricajmo section to match spacing */
#pricajmo { margin-top: 72px; }

/* Contact section styling */
#contact { margin-top: 72px; }

.contact-section {
  background: #02021f;
  border: none;
  border-radius: 0;
  padding: 32px 24px 0 24px;
  text-align: left;
  margin: 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.contact-content {
  max-width: 80ch;
  margin: 0 auto;
  padding: 0 0 0 24px;
  text-align: left;
}

.contact-content h2 {
  margin-bottom: 32px;
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
  color: var(--accent-strong);
  text-align: left;
  line-height: 1.3;
  font-weight: 600;
}

.email-section {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  margin-bottom: 12px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

.email-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
}

.contact-name {
  font-weight: 600;
  color: var(--text-strong);
  font-size: 1.2rem;
}

.contact-email {
  color: var(--text);
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 8px;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: transparent;
  color: white;
  border: 1.5px solid white;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
  cursor: pointer;
  font-size: 0.9rem;
  margin-left: 12px;
}

.copy-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.28);
  background: white;
  color: var(--bg);
  border-color: white;
}

.links-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.linkedin-link {
  display: inline-block;
  background: none;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  font-size: 1rem;
  padding: 0;
  transition: all 0.2s ease;
}

.linkedin-link:hover {
  color: #ffffff;
  text-decoration: none;
}

.copy-email-link {
  display: inline-block;
  background: none;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  font-size: 1rem;
  padding: 0;
  transition: all 0.2s ease;
}

.copy-email-link:hover {
  color: #ffffff;
  text-decoration: none;
}


/* Responsive adjustments for contact section */
@media (max-width: 768px) {
  .contact-section {
    padding: 20px 16px;
  }
  
  .email-section {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .copy-button {
    align-self: flex-end;
  }
}

/* Links and CTA */
a { color: #ffffff; text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #ffffff; }
a:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; border-radius: 6px; }

.inline-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inline-link:hover {
  color: inherit;
  text-decoration: underline;
}

.cta-row { margin-top: 24px; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #383AD2; /* solid blue background */
  color: #ffffff; /* white text */
  border: 1.5px solid #383AD2;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0,0,0,0.28); background: #2d2fb8; color: #ffffff; border-color: #2d2fb8; }
.cta:active { transform: translateY(0); }
.cta:focus-visible { outline: 3px solid #bfe3ff; outline-offset: 3px; }

/* Projects grid */
/* University Partnerships styles */
.uni-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}

.badge {
  text-align: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-border);
  transition: transform 200ms ease, background 200ms ease;
}

.badge:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

.impact-card {
  margin-top: 8px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  animation: riseIn 460ms ease both;
}

.impact-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.impact-metrics li {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 8px 6px;
}

.impact-metrics .value {
  font-weight: 700;
  font-size: 1rem;
}

.impact-metrics .label {
  font-size: 0.75rem;
  opacity: 0.9;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}


