/* Napolyozn — Nafi Ozan Yılmaz Portfolio (Light Engineering Theme) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  
  --border-color: #e2e8f0;
  --border-dark: #cbd5e1;
  --border-accent: #2563eb;
  
  --text-main: #0f172a;
  --text-navy: #1e3a8a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  
  --accent-navy: #1e3a8a;
  --accent-blue: #2563eb;
  --accent-sky: #0284c7;
  --accent-platinum: #64748b;
  
  --font-body: 'Roboto', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.12);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  --transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* Technical Millimeter Grid Pattern */
body {
  background-image: 
    linear-gradient(rgba(30, 58, 138, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 138, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography & Mono Details */
h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.font-mono {
  font-family: var(--font-mono);
}

.text-navy {
  color: var(--accent-navy);
}

.text-blue {
  color: var(--accent-blue);
}

/* Technical Callout Badge */
.cad-tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 20px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  font-size: 1.35rem;
  font-weight: 900;
  text-decoration: none;
  color: var(--accent-navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-dark);
  padding: 3px 8px;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-navy);
  font-weight: 700;
}



/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent-navy);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border-color: var(--border-dark);
}

.btn-secondary:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-2px);
}

.btn-view-all {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-navy);
  border: 1px solid rgba(37, 99, 235, 0.25);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-view-all:hover {
  background: var(--accent-navy);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Single Column Centered Hero Section */
.hero-centered {
  padding: 140px 0 90px;
  text-align: center;
}

.hero-centered-content {
  max-width: 860px;
  margin: 0 auto;
}

/* Real Profile Image Styling */
.hero-profile-wrapper {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.hero-profile-img {
  width: 175px;
  height: 175px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 4px solid #ffffff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18), 0 0 0 2px var(--accent-navy);
  transition: var(--transition);
}

.hero-profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.25), 0 0 0 3px var(--accent-blue);
}

.hero-title {
  font-size: 3.4rem;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--accent-navy);
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--accent-blue);
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-cta-centered {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

/* Hero Centered CAD Preview Card */
.hero-cad-card {
  background: #ffffff;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
}

.hero-cad-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-cad-img {
  width: 100%;
  max-height: 500px;
  height: auto;
  object-fit: contain;
  background: #0f172a;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  display: block;
  margin: 0 auto;
}

.hero-cad-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

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

.section-alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 54px;
}

.section-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 54px;
  flex-wrap: wrap;
  gap: 20px;
}

.section-header-flex .section-header-left {
  text-align: left;
  max-width: 680px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2.3rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* About Card Box */
.about-card-box {
  background: #ffffff;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  max-width: 920px;
  margin: 0 auto;
  line-height: 1.8;
  border-left: 4px solid var(--accent-navy);
}

/* Projects Showcase Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.project-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.project-img-wrapper {
  width: 100%;
  height: 240px;
  background: #0f172a;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.project-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: var(--transition);
  border-radius: 4px;
}

.project-card:hover .project-img {
  transform: scale(1.03);
}

.project-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-dark);
  color: var(--accent-navy);
  border-radius: var(--radius-sm);
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Single Project Detail / Blog Page Styling */
.project-detail-hero {
  padding-top: 130px;
  padding-bottom: 40px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-secondary) 100%);
  border-bottom: 1px solid var(--border-color);
}

.project-detail-cover-box {
  background: #0f172a;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.project-detail-cover-img {
  max-width: 100%;
  max-height: 520px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

.project-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-meta-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.project-meta-value {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-main);
}

.project-detail-content {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 44px;
  box-shadow: var(--shadow-sm);
  line-height: 1.8;
  margin-bottom: 48px;
}

.project-detail-content h3 {
  font-size: 1.5rem;
  color: var(--accent-navy);
  margin-top: 28px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--bg-secondary);
  padding-bottom: 8px;
}

.project-detail-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.project-detail-content ul {
  padding-left: 24px;
  margin-bottom: 24px;
  color: var(--text-muted);
}

.project-detail-content li {
  margin-bottom: 10px;
}

/* Gallery Grid */
.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.gallery-item {
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  max-width: 100%;
  max-height: 260px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

/* 8 Years Experience Timeline Section */
.timeline-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  max-width: 920px;
  margin: 0 auto;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.timeline-item {
  border-left: 3px solid var(--accent-navy);
  padding-left: 20px;
  position: relative;
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.timeline-title {
  font-size: 1.15rem;
  margin: 4px 0 6px;
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* CAD Tools & Skills Section */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.tool-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 16px;
}

.tool-card:hover {
  border-color: var(--accent-blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.tool-icon {
  width: 48px;
  height: 48px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-navy);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.tool-info h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.tool-info span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-blue);
}

/* Contact Section */
.contact-container {
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
}

.contact-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--accent-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input, .form-textarea {
  background: #ffffff;
  border: 1px solid var(--border-dark);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
}

.toast {
  background: var(--accent-navy);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
}

/* Footer */
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--border-color);
  background: #ffffff;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 2.3rem;
  }
  .hero-cad-img {
    height: 280px;
  }
  .contact-container {
    max-width: 100%;
  }
  .section-header-flex {
    flex-direction: column;
    align-items: flex-start;
  }
  .project-detail-content {
    padding: 24px;
  }
}
