/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #00e5ff;
  --secondary: #7b2ff7;
  --accent: #ff006e;
  --dark: #0a0e27;
  --dark-lighter: #151932;
  --dark-card: #1a1f3a;
  --text: #e4e4e7;
  --text-muted: #a1a1aa;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: rgba(0, 0, 0, 0.5);
}

/* ===== LIGHT THEME ===== */
body[data-theme="light"] {
  --dark: #f5f5f7;
  --dark-lighter: #ffffff;
  --dark-card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #666666;
  --border: rgba(0, 0, 0, 0.1);
  --shadow: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .particles-background {
  opacity: 0.3;
}

body[data-theme="light"] .particle {
  opacity: 0.05;
}

body[data-theme="light"] header {
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .logo-text,
body[data-theme="light"] nav a {
  color: var(--text);
}

body[data-theme="light"] .btn-lang,
body[data-theme="light"] .btn-theme {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text);
}

body[data-theme="light"] .btn-lang:hover,
body[data-theme="light"] .btn-theme:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--primary);
}

body[data-theme="light"] .hero,
body[data-theme="light"] section {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .code-window {
  background: #1a1f3a;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

body[data-theme="light"] .stat-item,
body[data-theme="light"] .skill-card,
body[data-theme="light"] .project-card,
body[data-theme="light"] .profile-card,
body[data-theme="light"] .highlight-item,
body[data-theme="light"] .contact-item,
body[data-theme="light"] .contact-form {
  background: var(--dark-card);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body[data-theme="light"] .form-group input,
body[data-theme="light"] .form-group textarea {
  background: #f9f9f9;
  border: 1px solid var(--border);
  color: var(--text);
}

body[data-theme="light"] .form-group input:focus,
body[data-theme="light"] .form-group textarea:focus {
  background: white;
  border-color: var(--primary);
}

body[data-theme="light"] footer {
  background: var(--dark-lighter);
  border-top: 1px solid var(--border);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--dark);
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== PARTICLES BACKGROUND ===== */
.particles-background {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.15;
  animation: float-particle 20s infinite ease-in-out;
}

.particle:nth-child(1) {
  width: 300px;
  height: 300px;
  top: -150px;
  left: -150px;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  width: 200px;
  height: 200px;
  top: 50%;
  right: -100px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  animation-delay: 5s;
}

.particle:nth-child(3) {
  width: 250px;
  height: 250px;
  bottom: -125px;
  left: 20%;
  animation-delay: 10s;
}

.particle:nth-child(4) {
  width: 180px;
  height: 180px;
  top: 20%;
  right: 20%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  animation-delay: 15s;
}

.particle:nth-child(5) {
  width: 220px;
  height: 220px;
  bottom: 30%;
  right: -110px;
  animation-delay: 7s;
}

@keyframes float-particle {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(100px, -100px) scale(1.1); }
  50% { transform: translate(-50px, 50px) scale(0.9); }
  75% { transform: translate(80px, 80px) scale(1.05); }
}

/* ===== HEADER ===== */
header {
  background: rgba(10, 14, 39, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: slideDown 0.6s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu a::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-menu a:hover::before {
  width: 100%;
}

.btn-lang {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-lang:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ===== THEME TOGGLE BUTTON ===== */
.btn-theme {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  position: relative;
}

.btn-theme:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.theme-icon {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
  position: absolute;
}

.sun-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}

.moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

body[data-theme="light"] .sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

body[data-theme="light"] .moon-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}

body[data-theme="light"] .btn-theme svg {
  color: #f59e0b;
}

/* ===== ALERT MESSAGES ===== */
.alert {
  padding: 1.5rem;
  border-radius: 12px;
  margin: 2rem 0;
  font-weight: 500;
  animation: slideIn 0.5s ease;
  position: relative;
  z-index: 1;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.alert-warning {
  background: rgba(251, 146, 60, 0.1);
  border: 1px solid rgba(251, 146, 60, 0.3);
  color: #fb923c;
}

/* ===== HERO SECTION ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 8rem 0;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--primary);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 40px rgba(123, 47, 247, 0.5));
  }
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(0, 229, 255, 0.05);
  border-color: var(--primary);
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 229, 255, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ===== CODE WINDOW ===== */
.hero-visual {
  position: relative;
}

.code-window {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px var(--shadow);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.window-header {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28ca42; }

.code-content {
  padding: 2rem;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.8;
}

.code-line {
  color: var(--text-muted);
}

.code-keyword { color: #c792ea; }
.code-var { color: #82aaff; }
.code-property { color: #c3e88d; }
.code-string { color: #ffcb6b; }

/* ===== SECTIONS ===== */
section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -1.5px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
}

/* ===== SKILLS GRID ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.skill-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.1), transparent);
  transition: left 0.6s;
}

.skill-card:hover::before {
  left: 100%;
}

.skill-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 60px rgba(0, 229, 255, 0.3);
}

.skill-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.skill-icon svg {
  width: 30px;
  height: 30px;
  color: white;
}

.skill-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.skill-tag {
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--primary);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.skill-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-height: 500px;
  opacity: 1;
  transition: all 0.3s ease;
}

.skill-details.hidden {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  margin-top: 0;
  overflow: hidden;
  border-top: none;
}

/* ===== PROJECTS GRID ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.project-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover {
  transform: translateY(-15px);
  border-color: var(--primary);
  box-shadow: 0 30px 60px rgba(0, 229, 255, 0.3);
}

.project-preview {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.project-preview-bg {
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.project-gradient-1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.project-gradient-2 {
  background: linear-gradient(135deg, #764ba2  0%, #4facfe 100%);
}

.project-gradient-3 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* ===== LIBRARY ILLUSTRATION ===== */
.library-illustration {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding: 30px;
  position: relative;
}

.book {
  width: 50px;
  height: 140px;
  border-radius: 3px;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.book::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 5px;
  right: 5px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.book::after {
  content: '';
  position: absolute;
  bottom: 15px;
  left: 5px;
  right: 5px;
  height: 80px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.book-1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: rotate(-8deg);
  height: 150px;
}

.book-2 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  transform: rotate(-3deg);
  height: 135px;
}

.book-3 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  height: 160px;
  z-index: 2;
}

.book-4 {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  transform: rotate(3deg);
  height: 145px;
}

.book-5 {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  transform: rotate(8deg);
  height: 130px;
}

.project-card:hover .book-1 {
  transform: rotate(-8deg) translateY(-10px);
}

.project-card:hover .book-2 {
  transform: rotate(-3deg) translateY(-15px);
}

.project-card:hover .book-3 {
  transform: rotate(0deg) translateY(-20px);
}

.project-card:hover .book-4 {
  transform: rotate(3deg) translateY(-15px);
}

.project-card:hover .book-5 {
  transform: rotate(8deg) translateY(-10px);
}

.project-card:hover .project-preview-bg {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-tag {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}

.project-content {
  padding: 2rem;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.project-content h3 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.project-links {
  display: flex;
  gap: 0.5rem;
}

.project-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.project-link svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: color 0.3s;
}

.project-link:hover svg {
  color: var(--primary);
}

.project-content p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-badge {
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== ABOUT SECTION ===== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.profile-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  position: sticky;
  top: 120px;
}

.profile-img-wrapper {
  margin-bottom: 2rem;
}

.profile-img {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: float 4s ease-in-out infinite;
}

.profile-img::before {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  opacity: 0.2;
  z-index: -1;
  animation: pulse 2s ease-in-out infinite;
}

.profile-img svg {
  width: 80px;
  height: 80px;
  color: white;
}

.profile-info h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.profile-role {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.profile-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-link {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: color 0.3s;
}

.social-link:hover svg {
  color: var(--primary);
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.about-highlights {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.highlight-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.highlight-item:hover {
  border-color: var(--primary);
  transform: translateX(10px);
}

.highlight-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: rgba(0, 229, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.highlight-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.highlight-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ===== CONTACT SECTION ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  border-color: var(--primary);
  transform: translateX(10px);
}

.contact-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.contact-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.contact-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== FORM ===== */
.contact-form {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 229, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.g-recaptcha {
  margin: 2rem 0;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark-lighter);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  margin-top: 6rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-content p {
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 6rem 0;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero-visual {
    order: -1;
    margin-bottom: 3rem;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .profile-card {
    position: static;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  header {
    padding: 1rem 0;
  }

  nav {
    flex-direction: column;
    gap: 1rem;
  }

  .logo a {
    flex-direction: column;
    gap: 0.5rem;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    font-size: 0.85rem;
  }

  .hero {
    padding: 4rem 0;
  }

  .hero h1 {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-item {
    padding: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 2rem;
  }

  .code-window {
    margin: 0 -1.5rem;
  }

  .code-content {
    padding: 1.5rem;
    font-size: 0.85rem;
  }

  section {
    padding: 4rem 0;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .skill-card {
    padding: 2rem 1.5rem;
  }

  .skill-icon {
    width: 50px;
    height: 50px;
  }

  .skill-icon svg {
    width: 24px;
    height: 24px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-preview {
    height: 200px;
  }

  .project-content {
    padding: 1.5rem;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .about-layout {
    gap: 3rem;
  }

  .profile-img {
    width: 150px;
    height: 150px;
  }

  .profile-img svg {
    width: 60px;
    height: 60px;
  }

  .about-highlights {
    gap: 1rem;
  }

  .highlight-item {
    padding: 1.25rem;
    gap: 1rem;
  }

  .highlight-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
  }

  .contact-wrapper {
    gap: 3rem;
  }

  .contact-info {
    gap: 1.5rem;
  }

  .contact-item {
    padding: 1.5rem;
    gap: 1rem;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.9rem 1.2rem;
  }

  footer {
    padding: 2rem 0;
  }

  .footer-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  /* Ajustement des particules pour mobile */
  .particle {
    opacity: 0.08;
  }

  .particle:nth-child(1) {
    width: 200px;
    height: 200px;
  }

  .particle:nth-child(2) {
    width: 150px;
    height: 150px;
  }

  .particle:nth-child(3) {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  header {
    padding: 0.75rem 0;
  }

  .logo-img {
    width: 40px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .nav-menu {
    gap: 0.75rem;
    font-size: 0.8rem;
  }

  .btn-lang {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero-badge {
    padding: 0.4rem 1.2rem;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
    letter-spacing: -0.5px;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .code-window {
    margin: 0 -1rem;
  }

  .code-content {
    padding: 1rem;
    font-size: 0.75rem;
  }

  .window-header {
    padding: 0.75rem;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .skill-card {
    padding: 1.5rem 1.25rem;
  }

  .skill-card h3 {
    font-size: 1.2rem;
  }

  .skill-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  .project-preview {
    height: 180px;
  }

  .project-content {
    padding: 1.25rem;
  }

  .project-content h3 {
    font-size: 1.2rem;
  }

  .project-content p {
    font-size: 0.9rem;
  }

  .tech-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
  }

  .profile-card {
    padding: 2rem 1.5rem;
  }

  .profile-img {
    width: 120px;
    height: 120px;
  }

  .profile-img svg {
    width: 50px;
    height: 50px;
  }

  .profile-info h3 {
    font-size: 1.5rem;
  }

  .profile-role {
    font-size: 0.9rem;
  }

  .social-link {
    width: 40px;
    height: 40px;
  }

  .social-link svg {
    width: 18px;
    height: 18px;
  }

  .about-text p {
    font-size: 0.95rem;
  }

  .highlight-item {
    flex-direction: column;
    padding: 1rem;
    text-align: center;
    align-items: center;
  }

  .highlight-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .highlight-icon svg {
    width: 20px;
    height: 20px;
  }

  .highlight-item h4 {
    font-size: 1.1rem;
  }

  .highlight-item p {
    font-size: 0.85rem;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 1.25rem;
  }

  .contact-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
  }

  .contact-icon svg {
    width: 20px;
    height: 20px;
  }

  .contact-item h4 {
    font-size: 1rem;
  }

  .contact-item p {
    font-size: 0.85rem;
  }

  .contact-form {
    padding: 1.5rem 1.25rem;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }

  .form-group textarea {
    min-height: 120px;
  }

  .g-recaptcha {
    transform: scale(0.85);
    transform-origin: 0 0;
    margin: 1.5rem 0;
  }

  footer {
    padding: 1.5rem 0;
  }

  .footer-content p {
    font-size: 0.85rem;
  }

  .footer-links a {
    font-size: 0.85rem;
  }

  /* Réduction animations sur mobile pour performance */
  .particle {
    animation-duration: 30s;
  }

  .skill-card:hover,
  .project-card:hover,
  .highlight-item:hover,
  .contact-item:hover {
    transform: translateY(-5px);
  }
}
/* ================================
   BOUTON ADMIN - À ajouter à ton style.css
   ================================ */

.btn-admin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary, #00e5ff), var(--secondary, #7b2ff7));
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 229, 255, 0.3);
}

.btn-admin:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 229, 255, 0.5);
}

.btn-admin svg {
    width: 20px;
    height: 20px;
}