/* 
  ========================================
  DESIGN TOKENS & GLOBAL VARIABLES
  ========================================
*/
:root {
  /* Colors - Sunwerse Gold & Black Theme */
  --bg-color: #050505; 
  --text-primary: #f2f2f2;
  --text-secondary: #a3a3a3;
  
  --gold-light: #f2e3a8;
  --gold-main: #d4af37;
  --gold-dark: #8a6d3b;
  
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(212, 175, 55, 0.15);
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  
  /* Spacing & Layout */
  --container-width: 1200px;
  --nav-height: 80px;
  
  /* Animation */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 
  ========================================
  RESET & BASE
  ========================================
*/
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* 
  ========================================
  ANIMATED SPARKLE CANVAS BACKGROUND
  ========================================
*/
#sparkle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold-light);
}

img, video {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* 
  ========================================
  NAVIGATION
  ========================================
*/
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 100;
  background: rgba(5, 5, 5, 0.7); 
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid var(--glass-border);
  transition: transform var(--transition-normal);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 48px;
  object-fit: contain;
}

.nav-brand-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.lang-switcher {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
  backdrop-filter: blur(4px);
}

.lang-switcher:hover {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  border-color: var(--gold-main);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  position: relative;
}

.nav-link.active {
  color: var(--gold-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--gold-main);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* 
  ========================================
  PAGE TRANSITIONS
  ========================================
*/
.page-content {
  opacity: 0;
  transform: translateY(20px);
  animation: pageFadeIn var(--transition-slow) forwards;
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 4rem;
  min-height: 100vh;
}

@keyframes pageFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 
  ========================================
  HERO SECTION
  ========================================
*/
.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-name-badge {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-main);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  background: rgba(212, 175, 55, 0.05);
  align-self: flex-start;
  opacity: 0;
  animation: badgeReveal 1s ease forwards 0.5s;
}

@keyframes badgeReveal {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* DRAW ANIMATION FOR TEXT */
.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 900px;
  
  /* Text Draw Effect CSS */
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 175, 55, 0.4);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-main) 50%, var(--gold-dark) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  background-size: 200% 100%;
  animation: drawTextFill 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes drawTextFill {
  0% {
    background-position: 200% 0;
    opacity: 0;
    -webkit-text-stroke: 1px rgba(212, 175, 55, 1);
  }
  20% {
    opacity: 1;
    -webkit-text-stroke: 1px rgba(212, 175, 55, 0.8);
  }
  100% {
    background-position: 0 0;
    opacity: 1;
    -webkit-text-stroke: 1px rgba(212, 175, 55, 0);
  }
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 3rem;
  font-weight: 300;
  
  /* Subtitle Draw/Fade Effect */
  color: transparent;
  background: linear-gradient(to right, var(--text-secondary) 0%, var(--text-secondary) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  background-size: 0% 100%;
  background-repeat: no-repeat;
  opacity: 0;
  animation: subtitleDraw 1s ease-out forwards 1s;
}

@keyframes subtitleDraw {
  0% { opacity: 0; background-size: 0% 100%; }
  10% { opacity: 1; }
  100% { opacity: 1; background-size: 100% 100%; color: var(--text-secondary); }
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  opacity: 0;
  animation: fadeUpReveal 1s ease forwards 1.5s;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 100px;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--gold-main);
  color: #000;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

.btn-primary:hover {
  background-color: var(--gold-light);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 25px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background-color: var(--glass-bg);
  border-color: var(--glass-border);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: rgba(212, 175, 55, 0.1);
  border-color: var(--gold-main);
  color: var(--gold-light);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 25px rgba(212, 175, 55, 0.15);
}

/* 
  ========================================
  WORKS GRID
  ========================================
*/
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 12px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border-color: rgba(212, 175, 55, 0.3);
}

.project-client-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  max-height: 40%;
  object-fit: contain;
  z-index: 2;
  opacity: 1;
  transition: opacity var(--transition-normal);
  pointer-events: none; /* Tıklamayı engellemesin */
  filter: drop-shadow(0px 4px 10px rgba(0,0,0,0.8));
}

.project-card:hover .project-client-logo {
  opacity: 0;
}

.project-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-media {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-normal);
}

.project-card:hover .project-overlay {
  opacity: 1;
  transform: translateY(0);
}

.project-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-main);
  margin-bottom: 0.5rem;
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 0.95rem;
  color: #ccc;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 
  ========================================
  ABOUT SECTION
  ========================================
*/
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 300;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: all var(--transition-fast);
}

.social-icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.social-link:hover {
  color: var(--gold-main);
  border-color: var(--gold-main);
}

.social-link:hover .social-icon {
  transform: translateY(-2px);
}

/* 
  ========================================
  VIDEO MODAL
  ========================================
*/
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.3s ease forwards;
}

.video-modal.closing {
  animation: modalFadeOut 0.3s ease forwards;
}

.video-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.video-modal-content {
  position: relative;
  z-index: 2001;
  width: 90%;
  max-width: 1400px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  transform: scale(0.95);
  animation: modalScaleIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.video-modal.closing .video-modal-content {
  animation: modalScaleOut 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.video-modal-content video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  outline: none;
}

.video-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2002;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.video-modal-close:hover {
  background: var(--gold-main);
  color: #000;
  border-color: var(--gold-main);
  transform: scale(1.1);
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes modalScaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes modalScaleOut {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(0.95); opacity: 0; }
}

/* 
  ========================================
  RESPONSIVE
  ========================================
*/
@media (max-width: 768px) {
  .about-section {
    grid-template-columns: 1fr;
  }
  
  .works-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .project-overlay {
    opacity: 1;
    transform: translateY(0);
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 100%);
  }
}
