@import url("https://fonts.googleapis.com/css2?family=Orbitron:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&family=Rajdhani:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap");

/* Les variables CSS sont maintenant générées dynamiquement par theme-colors.php */

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

body {
  font-family: "Rajdhani", sans-serif;
  line-height: 1.6;
  transition: var(--transition);
  overflow-x: hidden;
}

/* Light Mode */
body.light-mode {
  background: var(--light-bg);
  color: var(--light-text);
}

/* Dark Mode - styles de base (les couleurs sont dans theme-colors.php) */
body.dark-mode {
  color: var(--dark-text-secondary);
  min-height: 100vh;
  position: relative;
}

/* Navigation - remise comme avant */
.navbar {
  background: transparent !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  transition: var(--transition);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.1) !important;
}

.navbar-brand {
  font-family: "Orbitron", monospace;
  font-weight: 900;
  font-style: italic;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--dark-text-primary) !important;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
}

.light-mode .navbar-brand {
  color: var(--light-text) !important;
  text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.3);
}

.navbar-nav {
  gap: 0.5rem;
}

.nav-link {
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.75rem 1.5rem !important;
  margin: 0;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid transparent;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%);
  transition: var(--transition);
  position: relative;
}

.light-mode .nav-link {
  color: var(--light-text) !important;
  background: rgba(0, 0, 0, 0.1);
}

.dark-mode .nav-link {
  color: var(--dark-text-secondary) !important;
  background: rgba(0, 0, 0, 0.3);
}

.nav-link:hover,
.nav-link.active {
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.1);
}

.light-mode .nav-link:hover,
.light-mode .nav-link.active {
  color: var(--light-accent) !important;
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--light-accent);
}

.dark-mode .nav-link:hover,
.dark-mode .nav-link.active {
  color: var(--dark-text-primary) !important;
  background: rgba(255, 255, 0, 0.1);
  border-color: var(--dark-text-primary);
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--dark-text-primary);
  border: 2px solid var(--dark-text-primary);
  color: var(--dark-bg-end);
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 1rem;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 8px 100%);
}

.light-mode .theme-toggle {
  background: var(--light-text);
  border-color: var(--light-text);
  color: var(--light-bg);
}

.theme-toggle:hover {
  background: transparent;
  color: var(--dark-text-primary);
}

.light-mode .theme-toggle:hover {
  background: transparent;
  color: var(--light-text);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem 0;
  position: relative;
}

.hero-content {
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.5s;
}

.hero-title {
  font-family: "Orbitron", monospace;
  font-size: 3rem;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.hero-subtitle {
  font-family: "Orbitron", monospace;
  font-size: 5rem;
  font-weight: 900;
  font-style: italic;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.hero-description {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.light-mode .hero-title,
.light-mode .hero-subtitle,
.light-mode .hero-description {
  color: var(--light-text);
}

.dark-mode .hero-title {
  color: var(--dark-text-secondary);
}

.dark-mode .hero-subtitle {
  color: var(--dark-text-primary);
}

.dark-mode .hero-description {
  color: var(--dark-text-secondary);
}

/* Cyber Buttons */
.btn-cyber {
  display: inline-block;
  padding: 1rem 2rem;
  border: 2px solid currentColor;
  background: transparent;
  color: inherit;
  text-decoration: none;
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  margin: 0.5rem;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 100%, 15px 100%);
}

.btn-cyber::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: currentColor;
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-cyber:hover::before {
  left: 0;
}

.btn-cyber:hover {
  color: var(--light-bg);
}

.light-mode .btn-cyber {
  color: var(--light-text);
  border-color: var(--light-text);
}

.light-mode .btn-cyber:hover {
  color: var(--light-bg);
}

.dark-mode .btn-cyber {
  color: var(--dark-text-primary);
  border-color: var(--dark-text-primary);
}

.dark-mode .btn-cyber:hover {
  color: var(--dark-bg-end);
}

.btn-cyber-secondary {
  color: var(--light-accent);
  border-color: var(--light-accent);
}

.light-mode .btn-cyber-secondary {
  color: var(--light-accent);
  border-color: var(--light-accent);
}

.dark-mode .btn-cyber-secondary {
  color: var(--dark-text-secondary);
  border-color: var(--dark-text-secondary);
}

.dark-mode .btn-cyber-secondary:hover {
  color: var(--dark-bg-end);
}

/* Sections */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-title {
  font-family: "Orbitron", monospace;
  font-size: 2.5rem;
  font-weight: 900;
  font-style: italic;
  text-align: center;
  margin-bottom: 4rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
}

.section-title.animate {
  opacity: 1;
  transform: translateY(0);
}

.light-mode .section-title {
  color: var(--light-text);
}

.dark-mode .section-title {
  color: var(--dark-text-primary);
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.skill-card {
  background: rgba(0, 0, 0, 0.1);
  border: 2px solid currentColor;
  padding: 2rem;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 100%, 20px 100%);
  position: relative;
}

.skill-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.skill-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
}

.light-mode .skill-card {
  border-color: var(--light-text);
  background: rgba(0, 0, 0, 0.05);
}

.light-mode .skill-card:hover {
  background: rgba(0, 0, 0, 0.1);
}

.dark-mode .skill-card {
  border-color: var(--dark-text-secondary);
  background: var(--dark-surface);
}

.skill-name {
  font-family: "Orbitron", monospace;
  font-size: 1.2rem;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skill-level {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  float: right;
}

.light-mode .skill-name {
  color: var(--light-accent);
}

.light-mode .skill-level {
  color: var(--light-text);
}

.dark-mode .skill-name {
  color: var(--dark-text-primary);
}

.dark-mode .skill-level {
  color: var(--dark-text-secondary);
}

/* Progress Bar */
.progress-container {
  margin-top: 1rem;
  position: relative;
}

.progress-bar {
  width: 100%;
  height: 8px;
  border: 2px solid currentColor;
  background: transparent;
  overflow: hidden;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 100%, 5px 100%);
}

.progress-fill {
  height: 100%;
  background: currentColor;
  width: 0%;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.light-mode .progress-bar {
  border-color: var(--light-text);
}

.light-mode .progress-fill {
  background: var(--light-accent);
}

.dark-mode .progress-bar {
  border-color: var(--dark-text-secondary);
}

.dark-mode .progress-fill {
  background: var(--dark-text-primary);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card {
  border: 2px solid currentColor;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
  clip-path: polygon(0 0, calc(100% - 25px) 0, 100% 100%, 25px 100%);
}

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

.project-card:hover {
  transform: translateY(-10px);
}

.light-mode .project-card {
  border-color: var(--light-text);
  background: rgba(0, 0, 0, 0.05);
}

.dark-mode .project-card {
  border-color: var(--dark-text-secondary);
  background: var(--dark-surface);
}

.project-image {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay-content {
  text-align: center;
  color: white;
  padding: 2rem;
}

.project-info {
  padding: 1.5rem;
}

.project-title {
  font-family: "Orbitron", monospace;
  font-size: 1.3rem;
  font-weight: 700;
  font-style: italic;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.light-mode .project-title {
  color: var(--light-accent);
}

.dark-mode .project-title {
  color: var(--dark-text-primary);
}

/* Contact Section */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
}

.contact-form.animate {
  opacity: 1;
  transform: translateY(0);
}

.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 2px solid currentColor;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%);
}

.form-control:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.05);
}

.light-mode .form-control {
  border-color: var(--light-text);
}

.light-mode .form-control:focus {
  background: rgba(0, 0, 0, 0.05);
}

.dark-mode .form-control {
  border-color: var(--dark-text-secondary);
}

.dark-mode .form-control:focus {
  background: var(--dark-surface);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Modal Styling */
.modal-content {
  border: 2px solid currentColor;
  background: var(--light-bg);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 100%, 20px 100%);
}

.dark-mode .modal-content {
  background: var(--dark-bg-end);
  color: var(--dark-text-secondary);
}

.modal-header {
  border-bottom: 2px solid currentColor;
  padding: 1.5rem;
}

.modal-title {
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.light-mode .modal-title {
  color: var(--light-text);
}

.dark-mode .modal-title {
  color: var(--dark-text-primary);
}

.modal-body h6 {
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.light-mode .modal-body h6 {
  color: var(--light-accent);
}

.dark-mode .modal-body h6 {
  color: var(--dark-text-primary);
}

.badge-tool {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid currentColor;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.25rem;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 100%, 5px 100%);
}

.competence-item {
  border-left: 3px solid currentColor;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
}

.light-mode .competence-item {
  border-left-color: var(--light-accent);
  background: rgba(0, 0, 0, 0.05);
}

.dark-mode .competence-item {
  border-left-color: var(--dark-text-primary);
  background: var(--dark-surface);
}

.competence-code {
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-style: italic;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.light-mode .competence-code {
  color: var(--light-accent);
}

.dark-mode .competence-code {
  color: var(--dark-text-primary);
}

/* Footer */
.footer {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-text {
  font-weight: 500;
}

.footer-link {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-style: italic;
}

.light-mode .footer-link {
  color: var(--light-accent);
}

.dark-mode .footer-link {
  color: var(--dark-text-primary);
}

/* Animations pour les effets de fond */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes noiseFlicker {
  0% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.1;
  }
  100% {
    opacity: 0.3;
  }
}

@keyframes colorShift {
  0% {
    transform: translateX(0) scale(1);
    opacity: 0.4;
  }
  25% {
    transform: translateX(-10px) scale(1.02);
    opacity: 0.6;
  }
  50% {
    transform: translateX(5px) scale(0.98);
    opacity: 0.3;
  }
  75% {
    transform: translateX(-5px) scale(1.01);
    opacity: 0.5;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 0.4;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .btn-cyber {
    display: block;
    margin: 0.5rem 0;
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 0.5rem 1rem !important;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection */
::selection {
  background: var(--light-accent);
  color: white;
}

.dark-mode ::selection {
  background: var(--dark-text-primary);
  color: var(--dark-bg-end);
}
