/* Modern Portfolio Site Styles */
:root {
  --primary-color: #3B82F6; /* Blue 500 */
  --primary-light: #60A5FA; /* Blue 400 */
  --primary-dark: #2563EB; /* Blue 600 */
  --bg-dark: #0F172A; /* Slate 900 */
  --bg-card: #1E293B; /* Slate 800 */
  --bg-lighter: #334155; /* Slate 700 */
  --text-light: #F1F5F9; /* Slate 100 */
  --text-muted: #94A3B8; /* Slate 400 */
  --success: #10B981; /* Emerald 500 */
}

/* Genel Stiller */
body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

/* Smooth Scroll */
html.has-scroll-smooth {
  overflow: hidden;
}

.has-scroll-smooth body {
  overflow: hidden;
}

.has-scroll-smooth [data-scroll-container] {
  min-height: 100vh;
}

/* Kaydırma Çubuğu Stillleri */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-lighter);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Navbar Stillleri */
header {
  backdrop-filter: blur(10px);
  background-color: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

header.scrolled {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

/* Mobile Menu Styles */
.mobile-menu {
  height: 0;
  transition: height 0.4s ease-in-out;
}

.mobile-menu.active {
  height: 100vh;
  overflow-y: auto;
}

.menu-button {
  position: relative;
  z-index: 60;
}

.menu-button span {
  display: block;
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-button.active span:first-child {
  transform: translateY(6px) rotate(45deg);
}

.menu-button.active span:nth-child(2) {
  opacity: 0;
}

.menu-button.active span:last-child {
  transform: translateY(-6px) rotate(-45deg);
}

body.menu-open {
  overflow: hidden;
}

/* Hero Section */
.hero-gradient {
  background: linear-gradient(135deg, var(--bg-dark) 0%, rgba(36, 58, 96, 0.8) 100%);
}

/* Hero Background Elements */
.hero-bg-circle {
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0) 70%);
  position: absolute;
  top: -20vw;
  right: -20vw;
  z-index: 0;
  animation: pulse-slow 8s infinite alternate;
}

.hero-bg-circle2 {
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0) 70%);
  position: absolute;
  bottom: -15vw;
  left: -15vw;
  z-index: 0;
  animation: pulse-slow 12s infinite alternate;
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  filter: blur(2px);
  opacity: 0.5;
}

.floating-element-1 {
  width: 8rem;
  height: 8rem;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, rgba(59, 130, 246, 0) 70%);
  top: 20%;
  left: 15%;
  animation: float-slow 15s infinite alternate;
}

.floating-element-2 {
  width: 5rem;
  height: 5rem;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, rgba(16, 185, 129, 0) 70%);
  bottom: 30%;
  right: 10%;
  animation: float-slow 12s infinite alternate-reverse;
}

.floating-element-3 {
  width: 3rem;
  height: 3rem;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.4) 0%, rgba(124, 58, 237, 0) 70%);
  top: 50%;
  right: 30%;
  animation: float-slow 10s infinite alternate;
}

@keyframes pulse-slow {
  0% {
    transform: scale(1);
    opacity: 0.2;
  }
  100% {
    transform: scale(1.1);
    opacity: 0.3;
  }
}

@keyframes float-slow {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-15px, 15px);
  }
  100% {
    transform: translate(15px, -15px);
  }
}

/* Quick Contact Form in Hero */
.quick-contact {
  box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
}

.quick-contact:hover {
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.3);
}

/* Skill Section Background */
.skill-bg-circle {
  width: 70vw;
  height: 70vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0) 70%);
  position: absolute;
  top: -30vw;
  left: -30vw;
  z-index: 0;
}

/* Skill Progress Animation */
.skill-progress {
  transition: width 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  width: 0 !important;
}

.skill-progress.animate {
  width: var(--progress-width) !important;
}

/* Process Section Styles */
.process-bg-circle {
  width: 70vw;
  height: 70vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0) 70%);
  position: absolute;
  bottom: -30vw;
  right: -30vw;
  z-index: 0;
}

.process-step {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.process-step:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
}

.process-step-number {
  position: absolute;
  top: -2rem;
  right: 1rem;
  font-size: 5rem;
  font-weight: 800;
  color: rgba(59, 130, 246, 0.1);
  line-height: 1;
  transition: all 0.4s ease;
}

.process-step:hover .process-step-number {
  color: rgba(59, 130, 246, 0.2);
  transform: scale(1.1);
}

.process-steps {
  position: relative;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 4rem;
  left: calc(12.5% - 1px);
  width: 75%;
  height: 2px;
  background: linear-gradient(90deg, 
    rgba(59, 130, 246, 0.5) 0%, 
    rgba(59, 130, 246, 0.8) 50%, 
    rgba(59, 130, 246, 0.5) 100%);
  z-index: 0;
  opacity: 0.3;
}

.typed-cursor {
  color: var(--primary-color);
}

/* Skill Badges */
.skill-badge {
  background-color: var(--bg-lighter);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.skill-badge:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

/* Projects */
.project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-light);
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--success));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-img {
  height: 200px;
  object-fit: cover;
  border-radius: 0.5rem 0.5rem 0 0;
  transition: all 0.5s ease;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

/* Button Animations */
.btn-primary {
  position: relative;
  background-color: var(--primary-color);
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: 0.375rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.2);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
  z-index: -1;
}

.btn-primary:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Social Link Animations */
.social-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--bg-lighter);
  color: var(--text-light);
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Contact Form Styles */
.form-input {
  width: 100%;
  background-color: var(--bg-lighter);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  color: var(--text-light);
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Cursor Follower */
.cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.1s ease;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
}

.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background-color: var(--primary-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  pointer-events: none;
}

/* Advanced Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.7s ease-out forwards;
}

.animate-fadeInLeft {
  animation: fadeInLeft 0.7s ease-out forwards;
}

.animate-fadeInRight {
  animation: fadeInRight 0.7s ease-out forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* GSAP Scroll Animations */
.gsap-reveal {
  opacity: 0;
  visibility: hidden;
}

/* Animation Delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* Dark Mode Toggle */
.dark-mode-toggle {
  position: relative;
  width: 3rem;
  height: 1.5rem;
  border-radius: 9999px;
  background-color: var(--bg-lighter);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dark-mode-toggle::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

.dark-mode-toggle.active::after {
  transform: translateX(1.5rem);
}

/* Loading Animation */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-circle {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Page Transitions */
.transition-fade {
  transition: 0.4s;
  opacity: 1;
}

html.is-animating .transition-fade {
  opacity: 0;
}

/* Barba.js Content Wrapper */
.barba-container {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* AOS Animation Fallback */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 0.8s;
}

[data-aos].aos-animate {
  opacity: 1;
}

[data-aos="fade-up"] {
  transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
}

/* Responsive Improvements */
@media (max-width: 768px) {
  .hero-gradient {
    background: linear-gradient(160deg, var(--bg-dark) 0%, rgba(36, 58, 96, 0.9) 100%);
  }

  .project-img {
    height: 180px;
  }

  .skill-badge {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

  .social-link {
    width: 2.25rem;
    height: 2.25rem;
  }

  h1 {
    font-size: 2.5rem !important;
  }

  h2 {
    font-size: 2rem !important;
  }

  .cookie-consent {
    padding: 1rem;
  }
  
  .process-steps::before {
    display: none;
  }
  
  .floating-element {
    display: none;
  }
}

@media (max-width: 640px) {
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
  }

  .project-card {
    margin-bottom: 2rem;
  }

  .project-img {
    height: 160px;
  }

  .grid {
    gap: 1.5rem !important;
  }

  .form-input {
    padding: 0.6rem 0.8rem;
  }

  .py-24 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
}

/* Light Mode Styles */
body.light-mode {
  --bg-dark: #f8fafc; /* slate-50 */
  --bg-card: #f1f5f9; /* slate-100 */
  --bg-lighter: #e2e8f0; /* slate-200 */
  --text-light: #0f172a; /* slate-900 */
  --text-muted: #475569; /* slate-600 */
  color: var(--text-light);
}

body.light-mode header {
  background-color: rgba(248, 250, 252, 0.85); /* slate-50 with transparency */
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .bg-slate-800 {
  background-color: #f1f5f9 !important; /* slate-100 */
}

body.light-mode .bg-slate-700 {
  background-color: #e2e8f0 !important; /* slate-200 */
}

body.light-mode .text-slate-300,
body.light-mode .text-slate-400 {
  color: #475569 !important; /* slate-600 */
}

body.light-mode .social-link {
  background-color: #cbd5e1; /* slate-300 */
  color: #1e293b; /* slate-800 */
}

body.light-mode .filter-btn {
  background-color: #e2e8f0; /* slate-200 */
  color: #0f172a; /* slate-900 */
}

body.light-mode .filter-btn.active {
  background-color: var(--primary-color);
  color: white;
}

body.light-mode .back-to-top {
  background-color: var(--primary-color);
  color: white;
}

body.light-mode .cookie-consent {
  background-color: #f1f5f9; /* slate-100 */
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .form-input {
  background-color: #f8fafc; /* slate-50 */
  border: 1px solid #e2e8f0; /* slate-200 */
  color: #0f172a; /* slate-900 */
}

/* SEO Structured Data */
.structured-data {
  display: none;
}
