@import url("https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.8/css/bootstrap.min.css");
@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700&family=Rajdhani:wght@300;400;500;600;700&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");

:root {
  --primary: #3b82f6;
  --secondary: #6366f1;
  --accent: #22c55e;
  --dark: #0b0f14;
  --darker: #020617;
  --light: #f8fafc;
  --gray: #64748b;
  --border: rgba(255, 255, 255, 0.1);
}

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

body {
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  background: var(--darker);
  color: var(--light);
  line-height: 1.6;
  font-weight: 600;
  overflow-x: hidden;
}

/* Animated Background */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
}

.bg-animation::before {
  content: "";
  position: absolute;
  width: min(500px, 80vw);
  height: min(500px, 80vw);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  top: -250px;
  right: -250px;
  animation: float 20s infinite ease-in-out;
}

.bg-animation::after {
  content: '';
  position: absolute;
  width: min(400px, 70vw);
  height: min(400px, 70vw);
  background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  bottom: -200px;
  left: -200px;
  animation: float 15s infinite ease-in-out reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -50px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* Navigation */
.navbar {
  background: rgba(15, 23, 42, 0.8) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  color: var(--light) !important;
  font-weight: 500;
  transition: color 0.3s;
  padding: 0.5rem 1rem !important;
}

.nav-link:hover {
  color: var(--primary) !important;
}

.navbar-toggler {
  border-color: var(--border);
  color: var(--light);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(248, 250, 252, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero-label {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 50px;
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease-out;
}

div.hero-image img {
  width: 550px;
}

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

.hero h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

h1.title { font-size: 3em; }

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

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

.hero-intro {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--gray);
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out 0.4s both;
  line-height: 1.8;
}

.badges {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.badge-custom {
  padding: 0.5rem 1rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.btn-custom {
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
  color: white;
}

.btn-secondary-custom {
  background: rgba(255, 255, 255, 0.05);
  color: var(--light);
  border: 1px solid var(--border);
}

.btn-secondary-custom:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  color: var(--light);
}

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

.section-label {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Timeline */
.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: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s;
}

.timeline-item.cagip {
  background-image: url("https://res.cloudinary.com/dyvuerxzu/image/upload/v1769699490/david/work/cagip.png");
  background-size: 25% 25%;
  background-repeat: no-repeat;
  background-position: right top;
  pointer-events: none;
}

.timeline-item.devoteam {
  background-image: url("https://res.cloudinary.com/dyvuerxzu/image/upload/v1769699490/david/work/devoteam-2.jpg");
  background-size: 25% 30%;
  background-repeat: no-repeat;
  background-position: right top;
  pointer-events: none;
}

.timeline-item.agyla-ibm {
  background-image: url("https://res.cloudinary.com/dyvuerxzu/image/upload/v1769699490/david/work/ibm.png");
  background-size: 26% 25%;
  background-repeat: no-repeat;
  background-position: right top;
  pointer-events: none;
}

.timeline-item.vo {
  background-image: url("https://res.cloudinary.com/dyvuerxzu/image/upload/v1769699490/david/work/viaccess-orca.jpg");
  background-size: 27% 25%;
  background-repeat: no-repeat;
  background-position: right top;
  pointer-events: none;
}

.timeline-item.afriqasoft {
  background-image: url("https://res.cloudinary.com/dyvuerxzu/image/upload/v1769699490/david/work/afriqasoft.png");
  background-size: 28% 30%;
  background-repeat: no-repeat;
  background-position: right top;
  pointer-events: none;
}

.timeline-item.itsdb {
  background-image: url("https://res.cloudinary.com/dyvuerxzu/image/upload/v1769699490/david/work/itsdb.png");
  background-size: 29% 30%;
  background-repeat: no-repeat;
  background-position: right top;
  pointer-events: none;
}

.timeline-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(10px);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3.5rem;
  top: 2rem;
  width: 1rem;
  height: 1rem;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--darker), 0 0 0 6px var(--primary);
}

.timeline-item.with-bg {
  position: relative;
  overflow: hidden;
}

.company {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--light);
}

.period {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.role {
  color: var(--gray);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.achievements {
  list-style: none;
  margin-top: 1rem;
  padding-left: 0;
}

.achievements li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--gray);
}

.achievements li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tech-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--primary);
}

/* Service Cards */
.service-card {
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.3s;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.service-card.featured {
  border: 2px solid var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.featured-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--light);
}

.service-features {
  list-style: none;
  margin-top: 1.5rem;
  padding-left: 0;
}

.service-features li {
  padding: 0.75rem 0;
  color: var(--gray);
  display: flex;
  align-items: start;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-features li:last-child {
  border-bottom: none;
}

.service-features i {
  color: var(--primary);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* Skill Cards */
.skill-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s;
  height: 100%;
}

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

.skill-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.skill-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.skill-list {
  list-style: none;
  padding-left: 0;
}

.skill-list li {
  padding: 0.5rem 0;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-list li i {
  color: var(--primary);
}

/* Benefits */
.benefit-item {
  text-align: center;
}

.benefit-icon {
  width: 4rem;
  height: 4rem;
  background: rgba(99, 102, 241, 0.1);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--primary);
}

.benefit-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.benefit-item p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* Project Cards */
.project-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.project-card a {
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  transition: gap 0.3s;
}

.project-card a:hover {
  gap: 1rem;
}

/* Certifications */
.cert-item {
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s;
}

.cert-item.tf-003 {
  background-image: url("https://res.cloudinary.com/dyvuerxzu/image/upload/v1769699490/david/work/terraform-003.png");
  background-size: 20%;
  background-repeat: no-repeat;
  background-position: right center;
  pointer-events: none;
}

.cert-item.tf-pro {
  background-image: url("https://res.cloudinary.com/dyvuerxzu/image/upload/v1769699490/david/work/terraform-pro.png");
  background-size: 20%;
  background-repeat: no-repeat;
  background-position: right center;
  pointer-events: none;
}

.cert-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
}

.cert-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.cert-info h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.cert-year {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Footer */
footer {
  background: rgba(15, 23, 42, 0.8);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.social-link {
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  text-decoration: none;
  transition: all 0.3s;
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
  color: white;
}

/* Responsive Timeline */
@media (max-width: 768px) {
  .timeline {
    padding-left: 2rem;
  }

  .timeline-item::before {
    left: -2.5rem;
  }

  .hero {
    padding-top: 120px;
  }
}

@media (max-width: 1200px) {
  div.hero-image img {
    width: 100%!important;
  }
}

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

p, li { font-size: 16px; }
