/* Professional Website Styles for Cheikh Ndiaye */
:root{
  --bg: #0a0f1c;
  --bg-soft: #0d1429;
  --bg-card: #111827;
  --text: #f8fafc;
  --text-muted: #cbd5e1;
  --text-secondary: #94a3b8;
  --accent: #3b82f6;
  --accent-2: #06b6d4;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --border: #1e293b;
  --border-light: #334155;
  --shadow: 0 10px 30px rgba(0,0,0,.3);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.4);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  background: linear-gradient(135deg, var(--bg), var(--bg-soft));
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container{width:min(1200px, 92%); margin:0 auto}

/* Header & Navigation */
.site-header{
  position:sticky; top:0; backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(10,15,28,.95), rgba(10,15,28,.8));
  border-bottom:1px solid var(--border);
  z-index:1000;
}
.nav{display:flex; align-items:center; justify-content:space-between; padding:1rem 0}
.brand{
  color:var(--text); text-decoration:none; font-weight:700; font-size:1.2rem; 
  border:2px solid var(--accent); padding:.4rem .8rem; border-radius:8px;
  background: linear-gradient(135deg, var(--accent)22, transparent);
}
.nav-links{display:flex; gap:1.2rem; list-style:none; padding:0; margin:0}
.nav-links a{color:var(--text); text-decoration:none; opacity:.9; transition: all .2s ease}
.nav-links a:hover{opacity:1; color:var(--accent)}
.nav-links .btn-primary{color:var(--bg); background:var(--accent)}
.nav-toggle{display:none; background:none; border:1px solid var(--border); color:var(--text); padding:.4rem .6rem; border-radius:6px}

/* Hero Section */
.hero{
  display:grid; grid-template-columns: 1.3fr .7fr; gap:3rem; padding:6rem 0 4rem;
  align-items:start;
}
.hero-copy h1{font-size:2.8rem; margin:.2rem 0; font-weight:800}
.subtitle{color:var(--text-secondary); margin-top:.3rem; font-size:1.1rem}
.lead{font-size:1.15rem; margin-top:1.5rem; color:var(--text-muted); line-height:1.7}
.cta{margin:2rem 0 1rem; display:flex; gap:1rem; flex-wrap:wrap}
.meta{color:var(--text-secondary); font-size:.95rem}

.hero-card{
  background: linear-gradient(135deg, var(--bg-card), #0f172a);
  border:1px solid var(--border); border-radius:16px; padding:1.5rem;
  box-shadow: var(--shadow-lg);
}

.certification-badge{
  display:flex; align-items:center; gap:1rem; margin-bottom:1.5rem;
  padding:1rem; background:linear-gradient(135deg, #1e40af22, #0891b222);
  border:1px solid var(--border-light); border-radius:12px;
}
.cert-badge{width:48px; height:48px; border-radius:8px}
.cert-info .cert-title{font-weight:700; color:var(--accent-2)}
.cert-info .cert-subtitle{font-size:.85rem; color:var(--text-secondary)}

.stats-grid{display:grid; gap:1rem}
.stat{
  background:var(--bg-card); border:1px solid var(--border); 
  padding:1rem; border-radius:12px; text-align:center;
}
.stat-number{font-size:1.4rem; font-weight:700; color:var(--accent)}
.stat-label{color:var(--text-secondary); font-size:.9rem; margin-top:.2rem}

/* Sections */
.section{padding:3rem 0}
h2{font-size:2rem; margin:0 0 2rem; font-weight:700}
h3{font-size:1.4rem; margin:0 0 1rem; font-weight:600}
h4{font-size:1.2rem; margin:0 0 .5rem; font-weight:600}

/* Cards */
.card{
  background: linear-gradient(135deg, var(--bg-card), #0f1629);
  border:1px solid var(--border);
  border-radius:16px;
  padding:2rem;
  box-shadow: var(--shadow);
  margin-bottom:2rem;
}

/* Experience Section */
.experience{margin-bottom:3rem}
.experience-header{
  display:flex; justify-content:space-between; align-items:flex-start; 
  margin-bottom:1.5rem; flex-wrap:wrap; gap:1rem;
}
.company-info h3{font-size:1.8rem; color:var(--accent); margin-bottom:.3rem}
.tenure{color:var(--text-secondary); font-size:1rem}
.role-badges{display:flex; gap:.5rem; flex-wrap:wrap}

.role{margin-bottom:2rem; padding-bottom:1.5rem; border-bottom:1px solid var(--border)}
.role:last-child{border-bottom:none; margin-bottom:0; padding-bottom:0}
.role h4{color:var(--text); margin-bottom:.5rem}
.role-tenure{color:var(--text-secondary); font-size:.9rem; margin-bottom:.8rem}
.role-description{color:var(--text-muted); margin-bottom:1rem; font-style:italic}
.achievements{margin:.8rem 0 0 1.2rem; color:var(--text-muted)}
.achievements li{margin-bottom:.5rem; line-height:1.6}

/* Skills Section */
.skills-categories{display:grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap:2rem}
.skill-category{
  background:var(--bg-card); border:1px solid var(--border); 
  border-radius:12px; padding:1.5rem;
}
.skill-category h3{color:var(--accent-2); margin-bottom:1.2rem; font-size:1.2rem}
.skills-list{display:grid; gap:.8rem}
.skill{display:grid; grid-template-columns: 1fr 2fr; gap:1rem; align-items:center}
.skill span{color:var(--text-muted); font-size:.95rem}
.bar{
  height:8px; background:var(--bg); border:1px solid var(--border-light); 
  border-radius:4px; position:relative; overflow:hidden
}
.bar::after{
  content:""; position:absolute; left:0; top:0; bottom:0; width:0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1s ease-out;
}

/* Certifications Section */
.certifications-grid{display:grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap:1.5rem; margin-bottom:3rem}
.cert-card{
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:12px; padding:1.5rem; text-align:center;
}
.cert-card.featured{
  border-color:var(--accent); background:linear-gradient(135deg, var(--bg-card), #1e40af11);
}
.cert-card h3{color:var(--accent-2); margin:.8rem 0 .5rem}
.cert-type{color:var(--text-secondary); font-size:.9rem; margin-bottom:.5rem}
.cert-date{color:var(--accent-success); font-size:.85rem; font-weight:600; margin-bottom:1rem}
.cert-description{color:var(--text-muted); font-size:.9rem; line-height:1.5}

.cert-icon{
  width:40px; height:40px; margin:0 auto .8rem;
  background:linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius:8px;
}
.cert-icon.aws{
  background:linear-gradient(135deg, #ff9900, #ff6600);
}

.education-section{
  border-top:2px solid var(--border); padding-top:2rem;
}
.education-section h3{color:var(--accent-2); margin-bottom:1.5rem}
.education-grid{display:grid; gap:1.5rem}
.education-item{
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:12px; padding:1.2rem;
}
.education-item h4{color:var(--text); margin-bottom:.5rem; font-size:1.1rem}
.institution{color:var(--accent); font-weight:600; margin-bottom:.3rem}
.year{color:var(--text-secondary); font-size:.9rem}

/* Projects Section */
.project{margin-bottom:2rem}
.project-badges{display:flex; gap:.5rem; flex-wrap:wrap; margin-bottom:1rem}
.project h3{color:var(--accent); margin-bottom:1rem}
.project p{color:var(--text-muted); margin-bottom:1rem; line-height:1.7}
.list{margin:.8rem 0 0 1.2rem; color:var(--text-muted)}
.list li{margin-bottom:.6rem; line-height:1.6}

/* Contact Section */
.contact-intro{color:var(--text-muted); font-size:1.1rem; margin-bottom:2rem; line-height:1.7}
.contact-grid{display:grid; grid-template-columns: 1fr 1fr; gap:3rem}
.contact-info h3, .specialties h3{color:var(--accent-2); margin-bottom:1.2rem}
.contact-list, .specialties-list{list-style:none; padding:0; margin:0}
.contact-list li{margin-bottom:1rem; display:flex; align-items:flex-start; gap:.8rem}
.contact-label{color:var(--text-secondary); font-weight:600; min-width:80px}
.contact-list a{color:var(--accent); text-decoration:none}
.contact-list a:hover{text-decoration:underline}
.specialties-list li{
  margin-bottom:.8rem; padding-left:1.2rem; position:relative;
  color:var(--text-muted);
}
.specialties-list li::before{
  content:"▸"; position:absolute; left:0; color:var(--accent);
}

/* Badges */
.badge{
  background:var(--bg); color:var(--accent-2); border:1px solid var(--border-light);
  padding:.3rem .8rem; border-radius:20px; font-size:.8rem; font-weight:500;
}
.badge.primary{background:var(--accent); color:var(--bg)}

/* Buttons */
.btn{
  display:inline-block; padding:.7rem 1.2rem; border-radius:10px;
  border:1px solid var(--border-light); color:var(--text); text-decoration:none; 
  background:var(--bg-card); transition: all .2s ease; font-weight:500;
}
.btn-primary{
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none; color:var(--bg); font-weight:700;
}
.btn:hover{transform:translateY(-1px); box-shadow:var(--shadow)}
.btn-primary:hover{box-shadow:0 8px 25px rgba(59,130,246,.3)}

/* Footer */
.site-footer{
  border-top:2px solid var(--border); margin-top:4rem; 
  background:linear-gradient(135deg, var(--bg-card), var(--bg));
}
.footer-content{padding:2rem 0}
.footer-main{display:grid; grid-template-columns: 1fr 1fr; gap:2rem; margin-bottom:2rem}
.footer-info strong{color:var(--accent); font-size:1.1rem}
.footer-info p{color:var(--text-secondary); margin:.3rem 0}
.footer-links ul{list-style:none; padding:0; margin:0; display:grid; gap:.5rem}
.footer-links a{color:var(--text-muted); text-decoration:none}
.footer-links a:hover{color:var(--accent)}
.footer-bottom{
  border-top:1px solid var(--border); padding-top:1.5rem; 
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem;
}
.footer-bottom p{color:var(--text-secondary); margin:0; font-size:.9rem}
.footer-note{font-style:italic}

/* Responsive Design */
@media (max-width: 1000px){
  .hero{grid-template-columns: 1fr; gap:2rem}
  .contact-grid{grid-template-columns: 1fr; gap:2rem}
  .footer-main{grid-template-columns: 1fr; gap:1.5rem}
  .footer-bottom{flex-direction:column; text-align:center}
}

@media (max-width: 768px){
  .nav-toggle{display:inline-block}
  .nav-links{
    display:none; position:absolute; right:4%; top:70px; 
    background:var(--bg-card); border:1px solid var(--border); 
    padding:1rem; border-radius:12px; min-width:200px;
  }
  .nav-links.open{display:flex; flex-direction:column; gap:.8rem}
  .nav-links a{padding:.5rem 0}

  .hero{padding:4rem 0 2rem}
  .hero-copy h1{font-size:2.2rem}
  .experience-header{flex-direction:column; align-items:flex-start}
  .skills-categories{grid-template-columns:1fr}
  .certifications-grid{grid-template-columns:1fr}
  .cta{justify-content:center}
  .contact-grid{gap:1.5rem}
}

@media (max-width: 480px){
  .hero-copy h1{font-size:2rem}
  .container{width:95%}
  .card{padding:1.5rem}
  .section{padding:2rem 0}
}

/* Animations */
@keyframes fadeInUp{
  from{opacity:0; transform:translateY(30px)}
  to{opacity:1; transform:translateY(0)}
}

.card{animation:fadeInUp .6s ease-out}
.hero{animation:fadeInUp .8s ease-out}

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

/* Focus states for accessibility */
.btn:focus, .nav-links a:focus{
  outline:2px solid var(--accent); outline-offset:2px;
}