:root {
  --primary: #667eea;
  --secondary: #764ba2;
  --accent: #f093fb;
  --accent2: #4facfe;
  --dark: #0f0c29;
  --darker: #1a1a2e;
  --light: #ffffff;
  --text-gray: #a0a0a0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, var(--dark), var(--darker), #16213e);
  color: var(--light);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9999;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  background: rgba(15, 12, 41, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0 5%;
}

.hero-content {
  max-width: 1400px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  z-index: 10;
}

/* .hero-text {
    flex: 60%;
}

.hero-image {
    flex: 40%;
} */

.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 50%;
}

.hero-label {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(102, 126, 234, 0.2);
  border: 1px solid var(--primary);
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  color: var(--accent2);
  font-weight: 600;
}

.hero h1 {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero h1 .gradient-text {
  background: linear-gradient(
    45deg,
    var(--primary),
    var(--accent),
    var(--accent2)
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.letters:hover {
    color: transparent; 
    transition: 0.01s;
    text-shadow: 0px 10px 1px var(--primary);
}

.letters {
    cursor: none;
    border-radius: 5px;
    transition: all 5s;
}

.hero .subtitle {
  font-size: 1.5rem;
  color: var(--text-gray);
  margin-bottom: 1rem;
  font-family: "JetBrains Mono", monospace;
}

.hero .description {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
  max-width: 800px;
  line-height: 1.8;
  text-align: justify;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--light);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: var(--light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary);
}

/* Floating Shapes */
.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
}

.shape1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  top: 10%;
  left: -10%;
}

.shape2 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, var(--accent), #f5576c);
  bottom: -10%;
  right: -10%;
}

.shape3 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--accent2), #00f2fe);
  top: 40%;
  right: 10%;
}

/* Section Styling */
section {
  padding: 8rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-gray);
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-top: 0.5rem;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.skill-card {
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s, border-color 0.3s;
  cursor: pointer;
}

.skill-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.skill-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.skill-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  padding: 0.4rem 1rem;
  background: rgba(102, 126, 234, 0.2);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--accent2);
}

/* Experience Section */
.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -3.5rem;
  top: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--dark);
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-item h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.timeline-company {
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.timeline-description {
  color: var(--text-gray);
  line-height: 1.8;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-image {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.project-content {
  padding: 2rem;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.project-content p {
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-details p {
  color: var(--text-gray);
}

.contact-details a {
  color: var(--accent2);
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--light);
  font-size: 1.3rem;
  transition: all 0.3s;
}

.social-link:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transform: translateY(-5px);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 5%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-gray);
}

/* Alternance Banner */
.alt-banner {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: 1rem 5%;
  text-align: center;
  font-weight: 600;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 999;
  transform: translateY(100%);
}

.alt-banner a {
  color: var(--light);
  text-decoration: underline;
}

a {
  color: var(--accent);
  font-weight: bold;
}

/* Responsive */
@media (max-width: 968px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }

  section {
    padding: 5rem 5%;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Custom cursor */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
}

.cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
}
