/* Style personnalisé pour le portfolio Walid CHAHROUR */

html {
  scroll-behavior: smooth;
}

/* Pour améliorer la visibilité de la navbar sur fond blanc */
nav {
  backdrop-filter: blur(4px);
}

/* Placeholder pour d'autres styles personnalisés */

/* Variables globales */
:root {
  --primary-color: #10b981;
  --primary-hover: #059669;
  --text-color: #1f2937;
  --bg-color: #f9fafb;
  --card-bg: rgba(255, 255, 255, 0.9);
  --transition: all 0.3s ease;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes waveEffect {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-8px) rotate(3deg);
  }
  50% {
    transform: translateY(0) rotate(0deg);
  }
  75% {
    transform: translateY(8px) rotate(-3deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Classes d'animation */
.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

.animate-slide-in {
  animation: slideIn 0.6s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-rotate {
  animation: rotate 10s linear infinite;
}

.animate-shimmer {
  background: linear-gradient(90deg, 
    rgba(255,255,255,0) 0%, 
    rgba(255,255,255,0.2) 50%, 
    rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Animation au défilement */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Style général */
body {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
}

/* Navigation */
nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.nav-link {
  position: relative;
  color: var(--text-color);
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

/* Cartes et conteneurs */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.hover-card {
  transition: var(--transition);
  border: 1px solid rgba(16, 185, 129, 0.1);
}

.hover-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
}

/* Badges et éléments interactifs */
.skill-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary-color);
  border-radius: 9999px;
  font-weight: 500;
  transition: var(--transition);
}

.skill-badge:hover {
  background: rgba(16, 185, 129, 0.2);
  transform: scale(1.05);
}

/* Footer */
footer {
  background: linear-gradient(to right, #1a1a1a, #2d2d2d);
}

.footer-link {
  color: #ffffff;
  transition: var(--transition);
}

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

/* Responsive */
@media (max-width: 768px) {
  .glass-card {
    margin: 1rem;
  }
  
  .hover-card {
    margin-bottom: 1rem;
  }
}

/* Effets de survol */
button, .btn {
  transition: var(--transition);
}

button:hover, .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

/* Animation des images */
img {
  transition: transform 0.5s ease;
}

img:hover {
  transform: scale(1.05);
}

/* Animation des titres */
h1, h2, h3, h4, h5, h6 {
  position: relative;
  overflow: hidden;
}

h1::after, h2::after, h3::after, h4::after, h5::after, h6::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

h1:hover::after, h2:hover::after, h3:hover::after, h4:hover::after, h5:hover::after, h6:hover::after {
  width: 100%;
}

/* Animation des liens */
a {
  position: relative;
  transition: color 0.3s ease;
}

a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

a:hover::before {
  width: 100%;
}

/* Animation des listes */
li {
  transition: transform 0.3s ease, padding-left 0.3s ease;
}

li:hover {
  transform: translateX(5px);
  padding-left: 5px;
}

/* Animation des tableaux */
table {
  transition: box-shadow 0.3s ease;
}

table:hover {
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

/* Animation des formulaires */
input, textarea, select {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  outline: none;
}

/* Style du logo */
.logo-circle {
  width: 100px;
  height: 100px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  animation: waveEffect 3s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
}

.logo-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
} 