
/* =============================================
   PORTFOLIO.CSS — Zehra Gül Büyükarslan
   ============================================= */
 
:root {
  --bg:         #470f35;
  --bg-dark:    #2d0a1f;
  --bg-mid:     #5a1545;
  --accent:     #ffd1e8;
  --text:       #fff4fa;
  --text-muted: rgba(255, 244, 250, 0.55);
  --card-bg:    rgba(255, 244, 250, 0.06);
  --border:     rgba(255, 209, 232, 0.15);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'Nixie One', system-ui;
}
 
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
 
html {
  scroll-behavior: smooth;
}
 
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}
 
/* ── Noise overlay ── */
.noise-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}
 
/* ── Custom cursor ── */
.cursor-dot, .cursor-ring {
  pointer-events: none;
  position: fixed;
  border-radius: 50%;
  z-index: 10000;
  transition: opacity 0.3s;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 209, 232, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}
.cursor-ring.hover {
  width: 50px;
  height: 50px;
  border-color: var(--accent);
}
 
/* ── Section base ── */
section {
  display: flex;
  flex-direction: column;
  width: 100%;
  font-family: var(--font-body);
  position: relative;
}
 
/* ──────────────────────────
   HERO
────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
 
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
 
.hero-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #7a1f5e, transparent 70%);
  top: -100px; left: -150px;
  animation: orbFloat 12s ease-in-out infinite;
}
.orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #ffd1e8, transparent 70%);
  top: 30%; right: -80px;
  opacity: 0.15;
  animation: orbFloat 16s ease-in-out infinite reverse;
}
.orb-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, #611c4b, transparent 70%);
  bottom: -60px; left: 40%;
  animation: orbFloat 10s ease-in-out infinite 3s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -30px); }
}
 
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px 60px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}
 
/* Profile */
#hero-profile {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
 
.profile-img-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
}
.profile-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--border);
  animation: rotateBorder 20s linear infinite;
}
.profile-ring::before {
  content: '';
  position: absolute;
  top: -2px; left: 50%;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateX(-50%);
}
@keyframes rotateBorder {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.profile-img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 3px solid rgba(255, 209, 232, 0.3);
  display: block;
}
 
.hero-profile-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
}
.name {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.5px;
}
.name span {
  font-style: italic;
  color: var(--accent);
}
.motto {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 360px;
  font-weight: 300;
  letter-spacing: 0.2px;
}
 
.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: var(--accent);
  color: var(--bg-dark);
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background: #fff4fa;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 209, 232, 0.25);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.hero-cta-cv-icon {
  font-size: 1.2em;
  line-height: 1;
}
 
/* About side */
#hero-about {
  position: relative;
}
.about-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}
#hero-about h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.1;
}
#hero-about p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.85;
  font-weight: 300;
}
 
.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
 
/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 60px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}
.scroll-indicator span {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.scroll-line {
  width: 50px;
  height: 1px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollLineAnim 2s ease-in-out infinite;
}
@keyframes scrollLineAnim {
  0% { left: -100%; }
  100% { left: 100%; }
}
 
/* ──────────────────────────
   SECTION HEADERS
────────────────────────── */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 64px;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 999px;
}
.section-header h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  color: var(--text);
  text-align: center;
  letter-spacing: -0.5px;
}

.section-header--projects {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.section-header--projects .section-header-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.section-header--projects .section-header-text h1 {
  text-align: left;
}
.btn-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 244, 250, 0.04);
  transition: color 0.3s, background 0.3s, border-color 0.3s;
  flex-shrink: 0;
  cursor: none;
}
.btn-view-all:hover {
  color: var(--text);
  background: rgba(255, 209, 232, 0.12);
  border-color: rgba(255, 209, 232, 0.35);
}
 
/* ──────────────────────────
   SERVICES
────────────────────────── */
#services {
  padding: 120px 60px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  align-self: center;
}
 
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
 
.service-card {
  position: relative;
  padding: 40px 32px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
  animation: fadeUp 0.6s ease both;
  animation-delay: var(--card-delay);
  cursor: none;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,209,232,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 209, 232, 0.35);
  background: rgba(255, 244, 250, 0.09);
}
.service-card:hover::before {
  opacity: 1;
}
 
.card-icon-wrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 209, 232, 0.1);
  border-radius: 12px;
  margin-bottom: 24px;
}
.card-icon-wrap i {
  font-size: 22px;
  color: var(--accent);
}
 
.service-card h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}
.service-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.75;
}
.card-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  color: rgba(255, 209, 232, 0.06);
  line-height: 1;
  pointer-events: none;
  transition: color 0.4s;
}
.service-card:hover .card-number {
  color: rgba(255, 209, 232, 0.12);
}
 
/* ──────────────────────────
   PROJECTS
────────────────────────── */
#projects {
  padding: 120px 60px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  align-self: center;
}

.section-carousel {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
}
.section-carousel-viewport {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 209, 232, 0.35) transparent;
  outline: none;
}
.section-carousel-viewport:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 209, 232, 0.45);
  border-radius: 20px;
}
.section-carousel-viewport::-webkit-scrollbar {
  height: 6px;
}
.section-carousel-viewport::-webkit-scrollbar-track {
  background: transparent;
}
.section-carousel-viewport::-webkit-scrollbar-thumb {
  background: rgba(255, 209, 232, 0.25);
  border-radius: 999px;
}
.section-carousel-track {
  display: flex;
  gap: 28px;
  width: max-content;
}
.section-carousel .project-item,
.section-carousel .article-card {
  flex-shrink: 0;
  scroll-snap-align: start;
}
.section-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(45, 10, 31, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--accent);
  cursor: none;
  transition: opacity 0.3s, background 0.3s, border-color 0.3s, color 0.3s;
}
.section-carousel-btn:hover:not(:disabled) {
  background: rgba(255, 209, 232, 0.12);
  border-color: rgba(255, 209, 232, 0.35);
  color: var(--text);
}
.section-carousel-btn:disabled {
  opacity: 0.28;
  pointer-events: none;
}
.section-carousel-btn--prev {
  left: -8px;
}
.section-carousel-btn--next {
  right: -8px;
}
.section-carousel-meta {
  text-align: center;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.projects-grid--page {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

#projects-page,
#writing-page {
  padding: 120px 60px 140px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  align-self: center;
}
.projects-page-intro {
  margin-bottom: 56px;
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.projects-page-intro p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
}
.projects-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.projects-back:hover {
  color: var(--accent);
}
.projects-back i {
  font-size: 9px;
}
 
.project-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease;
  animation: fadeUp 0.6s ease both;
  animation-delay: var(--item-delay);
  cursor: none;
}
.project-item:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 209, 232, 0.3);
}
 
.project-img-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
}
.project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-item:hover .project-img-wrap img {
  transform: scale(1.05);
}
.project-img-wrap--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(71, 15, 53, 0.95) 0%, rgba(45, 10, 31, 0.9) 50%, rgba(30, 8, 28, 0.95) 100%);
}
.project-img-wrap--placeholder .project-placeholder-icon {
  font-size: 48px;
  color: rgba(255, 209, 232, 0.35);
  transition: transform 0.6s ease, color 0.4s ease;
}
.project-item:hover .project-img-wrap--placeholder .project-placeholder-icon {
  transform: scale(1.08);
  color: rgba(255, 209, 232, 0.55);
}
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45, 10, 31, 0.85), transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.4s;
}
.project-item:hover .project-overlay {
  opacity: 1;
}
.project-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(71, 15, 53, 0.7);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 232, 0.2);
  backdrop-filter: blur(4px);
}
 
.project-content {
  padding: 28px 28px 32px;
}
.project-content h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}
.project-content p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}
 
/* ──────────────────────────
   WRITING (Medium)
────────────────────────── */
#writing {
  padding: 120px 60px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  align-self: center;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.articles-grid--page {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.article-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px 26px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
  animation: fadeUp 0.6s ease both;
  animation-delay: var(--item-delay);
  cursor: none;
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 50%, rgba(255, 209, 232, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.article-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 209, 232, 0.3);
  background: rgba(255, 244, 250, 0.09);
}

.article-card:hover::before {
  opacity: 1;
}

.article-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 209, 232, 0.1);
  border-radius: 12px;
  position: relative;
  z-index: 1;
}

.article-card-icon i {
  font-size: 22px;
  color: var(--accent);
}

.article-card-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.article-card-content h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.35;
}

.article-card-content p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.75;
}

.article-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
  transition: opacity 0.3s ease, gap 0.3s ease;
}

.article-card-cta i {
  font-size: 9px;
  opacity: 0.9;
}

.article-card:hover .article-card-cta {
  opacity: 1;
  gap: 10px;
}

.writing-footer-note {
  text-align: center;
  margin-top: 48px;
  font-size: 14px;
}

.writing-footer-note a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 209, 232, 0.25);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.writing-footer-note a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
 
/* ──────────────────────────
   ANIMATIONS
────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
 
/* ──────────────────────────
   RESPONSIVE
────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 100px 40px 60px;
  }
  #hero-about {
    padding-top: 0;
  }
}
 
@media (max-width: 768px) {
  .hero-inner {
    padding: 90px 24px 60px;
  }
  #services, #projects, #writing {
    padding: 80px 24px;
  }
  #projects-page,
  #writing-page {
    padding: 100px 24px 100px;
  }
  .section-header--projects {
    flex-direction: column;
    align-items: center;
  }
  .section-header--projects .section-header-text {
    align-items: center;
  }
  .section-header--projects .section-header-text h1 {
    text-align: center;
  }
  .section-carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 13px;
  }
  .section-carousel-btn--prev {
    left: 2px;
  }
  .section-carousel-btn--next {
    right: 2px;
  }
  .section-header {
    margin-bottom: 40px;
  }
  .profile-img-wrapper {
    width: 160px;
    height: 160px;
  }
  .profile-img {
    width: 160px;
    height: 160px;
  }
  .about-stats {
    gap: 28px;
  }
  .scroll-indicator {
    left: 24px;
    bottom: 24px;
  }
}
 
@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }
  .btn-primary, .btn-secondary {
    text-align: center;
    justify-content: center;
  }
  .about-stats {
    flex-wrap: wrap;
    gap: 24px;
  }
  .cursor-dot, .cursor-ring {
    display: none;
  }
  body { cursor: auto; }
}