/* =========================================
   Mustafa Abali Portfolio - Final Styles
   Unified white theme + blue gradient navbar
   ========================================= */

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ROOT VARIABLES */
:root {
  --primary: #0a84ff;
  --primary-dark: #0e6dfd;
  --gradient: linear-gradient(90deg, #007bff 0%, #0a84ff 100%);
  --text: #1e1e1e;
  --muted: #555;
  --bg: #ffffff;
  --transition: all 0.3s ease;
  --radius: 12px;
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* GLOBAL WHITE BACKGROUND */
html, body {
  background-color: var(--bg) !important;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}

section, main, footer, header {
  background-color: var(--bg) !important;
}

body::before, body::after {
  content: none !important;
  background: none !important;
}

/* =========================================
   NAVBAR
========================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--gradient);
  width: 100%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
}

.logo img {
  height: 36px;
  width: auto;
  vertical-align: middle;
}

/* NAV LINKS */
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.95rem, 2vw, 1rem);
  position: relative;
  padding-bottom: 4px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 0.9;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* MOBILE MENU TOGGLE */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

/* =========================================
   MOBILE NAVIGATION (Accordion Style)
========================================= */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--gradient);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
  }

  .nav-links.open {
    max-height: 400px;
  }

  .nav-links a {
    padding: 14px;
    text-align: center;
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }
}

/* =========================================
   GENERIC PAGE LAYOUT
========================================= */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: clamp(60px, 8vw, 100px) 20px;
  max-width: 1100px;
  margin: auto;
}

h1, h2, h3 {
  line-height: 1.3;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--primary);
}

h2 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: var(--primary);
}

p {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: var(--text);
}

.btn {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* =========================================
   CONTACT PAGE GRID
========================================= */
.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
  background: #fff;
}

.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.contact-card h3 {
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-card p,
.contact-card a {
  color: var(--text);
  word-wrap: break-word;
  font-size: 1rem;
}

/* =========================================
   RESUME PAGE
========================================= */
.resume-container {
  background-color: #ffffff !important;
  color: #111;
  min-height: 100vh;
  padding: clamp(60px, 8vw, 100px) 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.resume-container h1 {
  color: var(--primary);
  margin-bottom: 20px;
  text-align: center;
}

.pdf-viewer {
  background-color: #ffffff;
  border: 1px solid #ddd;
  width: 100%;
  max-width: 900px;
  height: 100vh; /* full screen height */
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.download-link {
  margin-top: 25px;
  text-decoration: none;
  color: #fff;
  background: var(--gradient);
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.download-link:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* =========================================
   FOOTER
========================================= */
.footer {
  text-align: center;
  padding: 40px 0;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid #eee;
  background: #fafafa;
}

/* =========================================
   RESPONSIVENESS
========================================= */
@media (max-width: 768px) {
  .hero {
    padding: 60px 20px;
  }

  .pdf-viewer {
    height: 75vh;
  }

  .resume-container h1 {
    font-size: 1.6rem;
  }

  .contact-wrapper {
    padding: 40px 15px;
  }

  .contact-card {
    padding: 24px;
  }

  .contact-card h3 {
    font-size: 1.1rem;
  }

  .contact-card p {
    font-size: 0.95rem;
  }
}

/* =========================================
   FORCE WHITE BACKGROUND (DARK MODE SAFE)
========================================= */
@media (prefers-color-scheme: dark) {
  html, body, section, .resume-container, .pdf-viewer {
    background: #ffffff !important;
    color: #111 !important;
  }
}

/* =========================================
   FIXED NAVBAR ALIGNMENT (ALL PAGES)
========================================= */
.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  padding: 0 1.25rem;
}

.logo img {
  display: block;
  height: 36px;
  width: auto;
}

.nav-links a {
  display: inline-block;
  line-height: 1;
  padding-top: 2px;
}
