:root {
  --primary: #6366f1;
  --secondary: #ec4899;
  --accent: #10b981;
  --bg-dark: #0f172a;
  --bg-card: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-serif: 'Inter', system-ui, -apple-system, sans-serif;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--glass-border);
  object-fit: cover;
  margin-bottom: 2rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-icon {
  width: 32px;
  height: 32px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.social-icon:hover {
  transform: scale(1.2);
}

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

body {
  font-family: var(--font-serif);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background Animation */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  width: 40vw;
  height: 40vw;
  background: var(--primary);
  filter: blur(100px);
  opacity: 0.15;
  border-radius: 50%;
  animation: move 20s infinite alternate linear;
}

.blob-2 {
  background: var(--secondary);
  right: -10vw;
  top: 20vh;
  animation-duration: 25s;
}

@keyframes move {
  from { transform: translate(-10%, -10%) rotate(0deg); }
  to { transform: translate(10%, 10%) rotate(360deg); }
}

/* Typography & Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.025em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 0;
}

.hero h1 {
  font-size: clamp(2.2rem, 10vw, 5rem);
  margin-bottom: 1rem;
  line-height: 1.2;
  word-wrap: break-word;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2rem;
}

/* Glass Card */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
}

/* Project Card */
.project-card {
  margin-bottom: 6rem;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.project-image-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  cursor: pointer;
  max-width: 400px;
  margin: 0 auto;
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.image-counter {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(0,0,0,0.6);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  color: white;
}

.project-logo {
  max-width: 120px;
  max-height: 60px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  display: block;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.tech-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  font-size: 0.875rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.features-list {
  list-style: none;
  margin: 1.5rem 0;
}

.features-list li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

.features-list li::before {
  content: "→";
  color: var(--primary);
  margin-right: 0.75rem;
  font-weight: bold;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: background 0.3s ease;
  margin-top: 1rem;
}

.btn:hover {
  background: #4f46e5;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  margin-left: 0.5rem;
}

.btn-outline:hover {
  background: var(--glass-border);
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* Footer */
footer {
  padding: 4rem 0;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: var(--text-muted);
}

footer a {
  color: var(--text-main);
  text-decoration: none;
  margin: 0 1rem;
  font-size: 0.9rem;
}

footer a:hover {
  color: var(--primary);
}

/* Lightbox Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.modal-close {
  position: absolute;
  top: 2rem; right: 2rem;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
}

.modal-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.modal-btn {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  font-size: 2rem;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.modal-btn:hover { 
  background: rgba(255,255,255,0.4); 
  transform: scale(1.1);
}

.ai-note {
  font-size: 0.8rem;
  color: var(--accent);
  margin-top: 1rem;
  font-style: italic;
  display: flex;
  align-items: center;
}

.ai-note::before {
  content: "🛡️";
  margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 968px) {
  .project-card {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2rem;
  }
  .hero h1 { font-size: 2.5rem; }
  .project-logo { margin-left: auto; margin-right: auto; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .container { padding: 0 1.25rem; }
  .project-card { padding: 1.5rem; }
  .hero p { font-size: 1.1rem; }
}

/* Language Switcher */
.lang-switcher {
  position: absolute;
  top: 2rem;
  right: 2rem;
  display: flex;
  gap: 0.5rem;
  z-index: 100;
}

.lang-btn {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: var(--glass-border);
  color: var(--text-main);
}

.lang-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

@media (max-width: 768px) {
  .lang-switcher {
    top: 1rem;
    right: 1rem;
  }
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.status-live {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.status-test {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid #f59e0b;
}
