/* Black / Grey / White theme */
:root{
  --bg: #0b0b0b;
  --surface: #1f1f1f;
  --muted: #bdbdbd;
  --text: #ffffff;
  --accent: #e6e6e6;
  --max-width: 1100px;
}

*{box-sizing:border-box}
html,body{height:100%;overflow-x:hidden;width:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background:var(--bg);
  color:var(--text);
  line-height:1.5;
  min-height:100vh; /* ensure viewport height */
  display:flex; /* column layout so footer stays at page end */
  flex-direction:column;
}
.container{max-width:var(--max-width);margin:0 auto;padding:1rem;width:100%;box-sizing:border-box}
/* Make main grow so footer is pushed to bottom when page is short */
main{flex:1}
.site-header{position:relative;z-index:100}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:1rem;position:relative}
.brand{flex:1;min-width:0}
.brand a{color:var(--text);text-decoration:none;font-weight:600;font-size:1rem;display:block}
.primary-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:0.5rem;align-items:center}
.primary-nav li{display:flex;align-items:center}
.primary-nav a{color:var(--muted);text-decoration:none;padding:0.4rem 0.6rem;border-radius:6px;display:flex;align-items:center;justify-content:center;transition:all 0.3s ease;background:transparent;min-height:32px}
.primary-nav a:hover{color:var(--text);background:rgba(255,255,255,0.03)}
.primary-nav a.active{color:var(--text);background:rgba(255,255,255,0.05)}
.cta{background:transparent;border:1px solid var(--muted);padding:0.4rem 0.6rem;border-radius:6px;color:var(--muted)}
.cta:hover{border-color:var(--accent);color:var(--accent)}
.nav-toggle{display:none;background:transparent;border:0;color:var(--text);font-size:1.5rem;cursor:pointer;padding:0.5rem;line-height:1;transition:color 0.3s ease;min-width:44px;min-height:44px;align-items:center;justify-content:center}
.nav-toggle:hover{color:var(--accent)}
.skip-link{position:absolute;left:-999px;top:auto;opacity:0}
.skip-link:focus{left:0;top:0;opacity:1;background:var(--surface);padding:0.5rem}

.hero{padding:4rem 0 2rem 0}
.hero .lead{color:var(--muted);max-width:60ch}
.actions{display:flex;align-items:center;gap:0.75rem;flex-wrap:wrap}
.actions .btn{display:inline-block;margin-right:0;vertical-align:middle}
.experience-actions{display:flex;align-items:center;gap:0.75rem;flex-wrap:wrap;margin:2rem 0}
.experience-actions .btn{display:inline-block;margin-right:0;vertical-align:middle}
.achievements-section{margin-top:3rem}
.achievements-section .card{margin-top:1rem}
.section-toggle{display:flex;gap:0.5rem;margin:1.5rem 0;border-bottom:1px solid rgba(255,255,255,0.06);padding-bottom:0.5rem}
.toggle-btn{background:transparent;border:none;color:var(--muted);padding:0.5rem 1rem;cursor:pointer;font-size:1rem;font-family:inherit;position:relative;transition:color 0.3s ease;text-decoration:none;display:inline-block}
.toggle-btn:hover{color:var(--text)}
.toggle-btn.active{color:var(--text)}
.toggle-btn.active::after{content:'';position:absolute;bottom:-0.5rem;left:0;right:0;height:2px;background:var(--text)}
@media (max-width:800px){
  .toggle-btn.active::after{bottom:-0.75rem}
}
.content-section{display:none;width:100%;max-width:100%;box-sizing:border-box;overflow-x:hidden}
.content-section.active{display:block}
.btn{background:var(--surface);color:var(--text);padding:0.6rem 1rem;border-radius:8px;text-decoration:none;border:1px solid rgba(255,255,255,0.04);transition:all 0.3s ease}
.btn:hover{background:var(--surface);border-color:rgba(255,255,255,0.15);transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,0.3)}
.btn.ghost{background:transparent;border:1px solid rgba(255,255,255,0.1);transition:all 0.5s cubic-bezier(0.23, 1, 0.32, 1);position:relative;overflow:hidden;color:var(--text)}
.btn.ghost::before{content:'';position:absolute;inset:0;border-radius:8px;padding:1px;background:linear-gradient(135deg,rgba(255,255,255,0.2),rgba(255,255,255,0.05));-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:0;transition:opacity 0.5s ease;pointer-events:none}
.btn.ghost:hover{background:rgba(255,255,255,0.08);backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);border-color:rgba(255,255,255,0.25);transform:translateY(-3px) scale(1.02);box-shadow:0 10px 40px rgba(255,255,255,0.15),0 0 20px rgba(255,255,255,0.1),inset 0 1px 0 rgba(255,255,255,0.2)}
.btn.ghost:hover::before{opacity:1}
.btn.ghost::after{content:'';position:absolute;top:50%;left:50%;width:0;height:0;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,0.3),transparent);transform:translate(-50%,-50%);transition:width 0.6s ease,height 0.6s ease;pointer-events:none;z-index:0}
.btn.ghost:hover::after{width:300px;height:300px}

.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin-top:1rem}
.card{background:rgba(31,31,31,0.6);padding:1rem;border-radius:8px;border:1px solid rgba(255,255,255,0.03);transition:all 0.3s cubic-bezier(0.23, 1, 0.32, 1);cursor:pointer;position:relative;overflow:hidden;word-wrap:break-word;overflow-wrap:break-word;box-sizing:border-box;max-width:100%;width:100%}
.card::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(135deg,rgba(255,255,255,0.05),rgba(255,255,255,0.01));opacity:0;transition:opacity 0.3s ease;pointer-events:none}
.card:hover{transform:translateY(-4px);border-color:rgba(255,255,255,0.12);box-shadow:0 8px 24px rgba(0,0,0,0.4),0 0 0 1px rgba(255,255,255,0.05)}
.card:hover::before{opacity:1}
.card-link{display:block;text-decoration:none;color:inherit;transition:opacity 0.3s ease;position:relative;z-index:1}
.card-link:hover{opacity:1}
.card-link h4,.card-link p{color:inherit;transition:color 0.3s ease}
.card:hover .card-link h4{color:var(--text)}
.card-link h4{margin:0 0 0.5rem 0}
.card-link p{margin:0}
.highlight-card{padding:1.5rem;min-height:200px;display:flex;flex-direction:column}
.highlight-card .card-link{display:flex;flex-direction:column;height:100%;gap:1rem}
.highlight-card .card-link h4{font-size:1.25rem;font-weight:600;margin:0;color:var(--text)}
.highlight-card .card-link p{color:var(--muted);line-height:1.6;margin:0;flex:1;font-size:0.95rem}
.highlight-cta{display:inline-flex;align-items:center;justify-content:center;color:var(--text);font-weight:600;margin-top:auto;padding:0.75rem 1.25rem;background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.15);border-radius:8px;transition:all 0.3s cubic-bezier(0.23, 1, 0.32, 1);font-size:0.95rem;text-align:center;width:fit-content;position:relative;overflow:hidden;text-decoration:none}
.highlight-cta::before{content:'';position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,0.1),transparent);transition:left 0.5s ease}
.highlight-card:hover .highlight-cta{background:rgba(255,255,255,0.12);border-color:rgba(255,255,255,0.25);transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,0.3),0 0 0 1px rgba(255,255,255,0.1)}
.highlight-card:hover .highlight-cta::before{left:100%}
.projects-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:2rem;margin-top:2rem}
.projects-grid--triple{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.project-card{background:rgba(31,31,31,0.6);border-radius:8px;border:1px solid rgba(255,255,255,0.03);overflow:hidden;transition:all 0.3s cubic-bezier(0.23, 1, 0.32, 1);display:flex;flex-direction:column}
.project-card:hover{transform:translateY(-4px);border-color:rgba(255,255,255,0.12);box-shadow:0 8px 24px rgba(0,0,0,0.4),0 0 0 1px rgba(255,255,255,0.05)}
.project-image{width:100%;overflow:hidden;background:rgba(0,0,0,0.2);position:relative}
.project-image img{width:100%;height:auto;display:block;object-fit:cover;transition:transform 0.3s ease}
.project-card:hover .project-image img{transform:scale(1.05)}
.project-content{padding:1.5rem;display:flex;flex-direction:column;gap:1rem;flex:1}
.project-card-header{display:flex;align-items:center;justify-content:space-between;gap:0.75rem;font-size:0.85rem;text-transform:uppercase;letter-spacing:0.08em;color:var(--muted)}
.project-pill{padding:0.25rem 0.75rem;border-radius:999px;background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.08);font-weight:600;font-size:0.8rem;color:var(--text);margin:0}
.project-status{color:var(--muted);font-size:0.75rem}
.project-title{margin:0;font-size:1.25rem;font-weight:600;color:var(--text);border-bottom:1px solid rgba(255,255,255,0.1);padding-bottom:0.75rem}
.project-documentation{margin:0}
.project-documentation p{margin:0;color:var(--muted);line-height:1.6}
.project-summary p{margin:0;color:var(--muted);line-height:1.6}
.project-meta h4{margin:0 0 0.35rem 0;font-size:0.95rem;text-transform:uppercase;letter-spacing:0.08em;color:var(--muted)}
.project-meta p{margin:0;color:var(--text);font-weight:500}
.project-tech,.project-api{display:flex;gap:0.5rem;align-items:flex-start;font-size:0.9rem}
.tech-label,.api-label{color:var(--muted);font-weight:500;min-width:40px}
.tech-stack,.api-list{color:var(--text);flex:1}
.project-features{margin-top:0.5rem}
.project-features strong{display:block;color:var(--text);margin-bottom:0.5rem;font-size:0.95rem}
.project-features ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0.4rem}
.project-features li{color:var(--muted);font-size:0.9rem;padding-left:1.2rem;position:relative}
.project-features li::before{content:'-';position:absolute;left:0;color:var(--muted)}
.project-links{display:flex;flex-wrap:wrap;gap:0.75rem;margin-top:auto;padding-top:1rem;border-top:1px solid rgba(255,255,255,0.05)}
.project-link{display:inline-flex;align-items:center;gap:0.4rem;color:var(--muted);text-decoration:none;padding:0.5rem 0.75rem;border-radius:6px;border:1px solid rgba(255,255,255,0.05);background:rgba(255,255,255,0.02);font-size:0.9rem;transition:all 0.3s ease}
.project-links--pill .project-link{flex:1;justify-content:center;font-weight:600;text-transform:uppercase;letter-spacing:0.08em}
.project-link:hover{color:var(--text);background:rgba(255,255,255,0.08);border-color:rgba(255,255,255,0.15);transform:translateY(-2px)}
.project-link span{font-size:1rem}
.project-card--template{min-height:100%}
.project-card--status{background:linear-gradient(135deg,rgba(31,31,31,0.85),rgba(31,31,31,0.5));border:1px solid rgba(255,255,255,0.1)}
.projects-grid--triple .project-card--status{grid-column:1 / -1;align-self:stretch}
.project-status-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:0.4rem}
.project-status-list li{color:var(--muted);padding-left:1.25rem;position:relative;font-size:0.95rem}
.project-status-list li::before{content:'•';position:absolute;left:0;color:var(--text);font-size:1.2rem;line-height:1}
@media (max-width:800px){
  .projects-grid{grid-template-columns:1fr;gap:1.5rem}
  .project-content{padding:1.25rem}
  .project-links{flex-direction:column}
  .project-link{width:100%;justify-content:center}
}
.articles-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:2rem;margin-top:2rem}
.article-card{background:rgba(31,31,31,0.6);border-radius:8px;border:1px solid rgba(255,255,255,0.03);overflow:hidden;transition:all 0.3s cubic-bezier(0.23, 1, 0.32, 1);display:flex;flex-direction:column}
.article-card:hover{transform:translateY(-4px);border-color:rgba(255,255,255,0.12);box-shadow:0 8px 24px rgba(0,0,0,0.4),0 0 0 1px rgba(255,255,255,0.05)}
.article-image{width:100%;overflow:hidden;background:rgba(0,0,0,0.2);position:relative;height:200px}
.article-image img{width:100%;height:100%;display:block;object-fit:cover;transition:transform 0.3s ease}
.article-card:hover .article-image img{transform:scale(1.05)}
.article-content{padding:1.5rem;display:flex;flex-direction:column;gap:1rem;flex:1}
.article-title{margin:0;font-size:1.25rem;font-weight:600;color:var(--text);border-bottom:1px solid rgba(255,255,255,0.1);padding-bottom:0.75rem}
.article-description{margin:0}
.article-description p{margin:0;color:var(--muted);line-height:1.6}
.article-meta{display:flex;gap:0.5rem;align-items:center;font-size:0.9rem;color:var(--muted)}
.article-date{color:var(--muted);font-size:0.9rem}
.article-links{display:flex;flex-wrap:wrap;gap:0.75rem;margin-top:0.5rem;padding-top:1rem;border-top:1px solid rgba(255,255,255,0.05)}
.article-link{display:inline-flex;align-items:center;gap:0.4rem;color:var(--muted);text-decoration:none;padding:0.5rem 0.75rem;border-radius:6px;border:1px solid rgba(255,255,255,0.05);background:rgba(255,255,255,0.02);font-size:0.9rem;transition:all 0.3s ease}
.article-link:hover{color:var(--text);background:rgba(255,255,255,0.08);border-color:rgba(255,255,255,0.15);transform:translateY(-2px)}
.article-link span{font-size:1rem}
@media (max-width:800px){
  .articles-grid{grid-template-columns:1fr;gap:1.5rem}
  .article-content{padding:1.25rem}
  .article-links{flex-direction:column}
  .article-link{width:100%;justify-content:center}
}
.articles-footer{text-align:center;margin-top:4rem;padding:2.5rem 1.5rem;background:rgba(31,31,31,0.4);border-radius:12px;border:1px solid rgba(255,255,255,0.05)}
.articles-footer-text{color:var(--muted);font-size:1.1rem;margin:0 0 1.5rem 0}
.articles-footer .btn{margin:0 auto}
@media (max-width:600px){
  .articles-footer{padding:2rem 1rem;margin-top:3rem}
  .articles-footer-text{font-size:1rem}
}
.skill-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.skill-grid .card h3{text-align:center}
.backend-skills-grid{display:grid;grid-template-columns:1fr 1fr;gap:0.75rem;margin-top:0.5rem;width:100%}
.backend-skills-grid ul{margin:0;padding-left:1.25rem;padding-right:0.5rem;min-width:0}
.backend-skills-grid li{margin-bottom:0.5rem;word-wrap:break-word;overflow-wrap:break-word}
.skill-grid .card{overflow:visible;min-width:0;box-sizing:border-box}
.skill-grid .backend-card{grid-column:2 / span 2}
.skill-grid .foundational-card{grid-column:2 / span 2}
.skill-grid .card .backend-skills-grid{max-width:100%;box-sizing:border-box}
@media (max-width:800px){
  .skill-grid{grid-template-columns:repeat(2,1fr)}
  .skill-grid .backend-card{grid-column:span 2}
  .skill-grid .foundational-card{grid-column:span 2}
}
@media (max-width:600px){
  .skill-grid{grid-template-columns:1fr;gap:1rem}
  .skill-grid .backend-card{grid-column:span 1}
  .skill-grid .foundational-card{grid-column:span 1}
  .backend-skills-grid{grid-template-columns:1fr;gap:0.5rem}
  .skill-grid .card{padding:1rem;overflow-wrap:break-word;word-wrap:break-word;width:100%;box-sizing:border-box}
  .skill-grid .card ul{padding-left:1.25rem;padding-right:0;margin:0.5rem 0;list-style-position:outside}
  .skill-grid .card li{word-wrap:break-word;overflow-wrap:break-word;hyphens:auto;margin-bottom:0.4rem;font-size:0.95rem;line-height:1.5}
  .skill-grid .card h3{font-size:1.1rem;margin-bottom:0.75rem;word-wrap:break-word}
  .backend-skills-grid ul{padding-left:1.25rem;padding-right:0;min-width:0;width:100%}
  main.container .coding-profiles{margin-top:2rem}
}
.coding-profiles{text-align:center}
.coding-profiles h2{text-align:center}
.coding-profiles .skill-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;max-width:800px;margin:2rem auto 0;justify-items:center}
.coding-profiles .skill-grid .profile-card{width:100%;max-width:250px}
@media (max-width:600px){
  .coding-profiles .skill-grid{grid-template-columns:1fr;gap:1rem;max-width:100%}
  .coding-profiles .skill-grid .profile-card{max-width:100%;width:100%}
  .coding-profiles .lead{font-size:0.9rem;padding:0 0.5rem}
}
.profile-card{display:flex;align-items:center;justify-content:center;min-height:120px;text-decoration:none;color:inherit;position:relative;overflow:hidden;background:rgba(31,31,31,0.6);padding:1rem;border-radius:8px;border:1px solid rgba(255,255,255,0.1);transition:all 0.3s cubic-bezier(0.23, 1, 0.32, 1);cursor:pointer}
.profile-card:hover{transform:translateY(-4px);border-color:rgba(255,255,255,0.2);box-shadow:0 8px 24px rgba(0,0,0,0.4),0 0 0 1px rgba(255,255,255,0.05)}
.profile-title{font-size:1.25rem;font-weight:600;transition:opacity 0.3s ease,transform 0.3s ease;position:absolute}
.profile-username{font-size:1rem;color:var(--muted);opacity:0;transition:opacity 0.3s ease,transform 0.3s ease;transform:translateY(10px);position:absolute}
.profile-card:hover .profile-title{opacity:0;transform:translateY(-10px)}
.profile-card:hover .profile-username{opacity:1;transform:translateY(0);color:var(--text)}

.site-footer{border-top:1px solid rgba(255,255,255,0.02);padding:1rem 0;margin-top:2rem;color:var(--muted)}

/* Footer social links (centered) */
.site-footer .container{display:flex;flex-direction:column;align-items:center;gap:0.5rem;text-align:center}
.site-footer .social-links{display:flex;gap:0.5rem;flex-wrap:wrap;justify-content:center}
.site-footer .social-links a{color:var(--muted);text-decoration:none;padding:0.45rem 0.65rem;border-radius:6px;border:1px solid rgba(255,255,255,0.03);background:transparent;font-size:0.95rem;display:flex;align-items:center;gap:0.5rem}
.site-footer .social-links a svg{width:20px;height:20px;display:block;fill:var(--muted)}
.site-footer .social-links a:hover{color:var(--text);border-color:rgba(255,255,255,0.06);background:rgba(255,255,255,0.02)}
.site-footer .social-links a:hover svg{fill:var(--text)}
.site-footer .social-links a span{display:inline}
@media (max-width:800px){
  .site-footer{padding:0.5rem 0;margin-top:1.5rem}
  .site-footer .container{padding:0.5rem 1rem;gap:0.3rem}
  .site-footer .social-links a span{display:none}
  .site-footer .social-links a{padding:0.3rem;border-radius:6px;min-height:auto}
  .site-footer .social-links a svg{width:18px;height:18px}
  .site-footer .social-links{gap:0.3rem}
  .site-footer .copyright{font-size:0.8rem;margin-top:0.2rem;margin-bottom:0}
}
@media (max-width:600px){
  .site-footer{padding:0.4rem 0;margin-top:1rem}
  .site-footer .container{padding:0.4rem 1rem;gap:0.25rem}
  .site-footer .social-links{gap:0.25rem}
  .site-footer .social-links a{padding:0.25rem;border-radius:5px}
  .site-footer .social-links a svg{width:16px;height:16px}
  .site-footer .copyright{font-size:0.75rem;margin-top:0.15rem}
}
.site-footer .copyright{color:var(--muted);font-size:0.9rem}

/* Responsive */
@media (max-width:800px){
  .container{padding:1rem}
  .header-inner{padding:1rem;gap:1rem}
  .brand{flex:1;min-width:0;overflow:hidden}
  .brand a{font-size:0.95rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
  .primary-nav{display:none}
  .nav-toggle{display:flex;flex-shrink:0}
  .primary-nav.open{display:block;background:var(--surface);position:fixed;top:0;left:0;right:0;bottom:0;width:100%;height:100vh;padding:2rem 1rem;border-radius:0;z-index:99;overflow-y:auto;animation:slideIn 0.3s ease-out;box-shadow:0 0 40px rgba(0,0,0,0.5);backdrop-filter:blur(10px)}
  .primary-nav.open ul{flex-direction:column;gap:0.75rem;width:100%;max-width:400px;margin:0 auto;padding-top:2rem;position:relative}
  .primary-nav.open li{width:100%}
  .primary-nav.open a{width:100%;padding:1.25rem 1rem;font-size:1.1rem;border:1px solid rgba(255,255,255,0.05);border-radius:8px;text-align:center;transition:all 0.3s ease;background:rgba(255,255,255,0.02);min-height:auto;justify-content:center}
  .primary-nav.open a:hover{background:rgba(255,255,255,0.08);border-color:rgba(255,255,255,0.15);transform:none;color:var(--text)}
  .primary-nav.open a.active{background:rgba(255,255,255,0.05);border-color:rgba(255,255,255,0.1);color:var(--text)}
  body.menu-open{overflow:hidden}
  .nav-toggle[aria-expanded="true"]{position:fixed;top:1rem;right:1rem;z-index:100;background:rgba(31,31,31,0.9);border-radius:8px;backdrop-filter:blur(10px);box-shadow:0 4px 12px rgba(0,0,0,0.3)}
}
@keyframes slideIn{
  from{opacity:0;transform:translateY(-20px)}
  to{opacity:1;transform:translateY(0)}
}

/* Utility */
h1,h2,h3{margin:0 0 0.5rem 0}
p{margin:0 0 1rem 0}
label{display:block;margin:0.5rem 0 0.25rem}
input,textarea,select{width:100%;padding:0.5rem;border-radius:6px;border:1px solid rgba(255,255,255,0.06);background:transparent;color:var(--text);font-family:inherit;font-size:1rem}
input:focus,textarea:focus,select:focus{outline:none;border-color:rgba(255,255,255,0.15)}
input::placeholder,textarea::placeholder{color:var(--muted);opacity:0.7}
select option{background:var(--surface);color:var(--text)}
select option:first-child{color:var(--muted)}
select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23bdbdbd' d='M6 9L1 4h10z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 0.5rem center;padding-right:2rem}
main.container .lead{font-size:0.95rem;line-height:1.6}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem;margin-top:2rem}
.contact-section{margin-top:0}
.success-card-overlay{
  display:none;
  position:fixed;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:rgba(0,0,0,0.8);
  backdrop-filter:blur(4px);
  z-index:1000;
}
.success-card-overlay.visible{
  display:block;
}
.success-card{
  position:fixed;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  z-index:1001;
  padding:1.5rem;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(31,31,31,0.95);
  box-shadow:0 12px 32px rgba(0,0,0,0.45);
  align-items:center;
  gap:1rem;
  max-width:500px;
  width:90%;
  display:flex;
  flex-wrap:wrap;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity 0.3s ease-out, visibility 0.3s ease-out, transform 0.3s ease-out;
}
.success-card.visible{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translate(-50%, -50%);
}
.success-card-icon{
  width:48px;
  height:48px;
  border-radius:50%;
  background:rgba(255,255,255,0.1);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.5rem;
  font-weight:700;
  color:var(--text);
}
.success-card-content{
  flex:1 1 200px;
  min-width:200px;
}
.success-card-content h3{
  margin:0 0 0.25rem;
  font-size:1.1rem;
}
.success-card-content p{
  margin:0;
  color:var(--muted);
}
.success-card-close{
  flex:0 0 auto;
  min-width:120px;
}
.contact-card{background:rgba(31,31,31,0.6);border-radius:12px;border:1px solid rgba(255,255,255,0.05);padding:2rem;height:100%;display:flex;flex-direction:column;transition:all 0.3s cubic-bezier(0.23, 1, 0.32, 1);position:relative;overflow:hidden}
.contact-card::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(135deg,rgba(255,255,255,0.05),rgba(255,255,255,0.01));opacity:0;transition:opacity 0.3s ease;pointer-events:none}
.contact-card:hover{transform:translateY(-4px);border-color:rgba(255,255,255,0.12);box-shadow:0 8px 24px rgba(0,0,0,0.4),0 0 0 1px rgba(255,255,255,0.05)}
.contact-card:hover::before{opacity:1}
.contact-card h2{margin-top:0;margin-bottom:1.5rem;font-size:1.5rem;font-weight:600}
.contact-form{max-width:100%;margin:0;width:100%}
.booking-card-section{margin-top:0}
.booking-card{background:rgba(31,31,31,0.6);border-radius:12px;border:1px solid rgba(255,255,255,0.05);padding:2rem;height:100%;display:flex;flex-direction:column;transition:all 0.3s cubic-bezier(0.23, 1, 0.32, 1);position:relative;overflow:hidden}
.booking-card::before{content:'';position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(135deg,rgba(255,255,255,0.05),rgba(255,255,255,0.01));opacity:0;transition:opacity 0.3s ease;pointer-events:none}
.booking-card:hover{transform:translateY(-4px);border-color:rgba(255,255,255,0.12);box-shadow:0 8px 24px rgba(0,0,0,0.4),0 0 0 1px rgba(255,255,255,0.05)}
.booking-card:hover::before{opacity:1}
.booking-card-content{display:flex;flex-direction:column;gap:1.5rem;height:100%}
.booking-card h2{margin:0;font-size:1.5rem;font-weight:600;color:var(--text)}
.booking-card p{margin:0;color:var(--muted);line-height:1.6}
.booking-features{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:0.75rem;flex:1}
.booking-features li{color:var(--muted);font-size:0.95rem;padding-left:1.5rem;position:relative}
.booking-features li::before{content:'✓';position:absolute;left:0;color:var(--text);font-weight:600}
.booking-card-btn{display:inline-block;text-align:center;margin-top:auto;width:100%;justify-content:center}
@media (max-width:900px){
  .contact-grid{grid-template-columns:1fr;gap:2rem}
  .contact-card{padding:1.5rem}
  .booking-card{padding:1.5rem}
}
.form-row{display:flex;gap:1rem;margin-bottom:1rem}
.form-group{flex:1;display:flex;flex-direction:column}
.form-group label{margin-bottom:0.25rem}
.form-group input,.form-group textarea,.form-group select{width:100%}
@media (max-width:600px){
  .form-row{flex-direction:column;gap:0}
}
.booking-cta{margin:2rem 0}
.booking-cta p{margin-bottom:0.5rem}
.booking-cta .btn{display:inline-block;margin-left:0.5rem}
.booking-header{text-align:center;margin:3rem 0 3rem;max-width:700px;margin-left:auto;margin-right:auto}
.booking-header h1{margin-bottom:1rem;font-size:2.5rem;font-weight:700}
.booking-header .lead{color:var(--muted);font-size:1.1rem;line-height:1.6;margin-bottom:0}
.booking-form{max-width:900px;margin:0 auto;background:rgba(31,31,31,0.4);padding:2.5rem;border-radius:12px;border:1px solid rgba(255,255,255,0.05);box-shadow:0 8px 32px rgba(0,0,0,0.3)}
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem;margin-bottom:2rem}
.form-group{display:flex;flex-direction:column}
.form-group label{color:var(--text);font-weight:500;margin-bottom:0.5rem;font-size:0.95rem}
.form-group input,.form-group select,.form-group textarea{width:100%;padding:0.75rem;border-radius:8px;border:1px solid rgba(255,255,255,0.08);background:rgba(0,0,0,0.2);color:var(--text);font-family:inherit;font-size:1rem;transition:all 0.3s ease}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:rgba(255,255,255,0.2);background:rgba(0,0,0,0.3);box-shadow:0 0 0 3px rgba(255,255,255,0.05)}
.form-group input[type="date"],.form-group input[type="time"]{position:relative}
.form-group input[type="date"]::-webkit-calendar-picker-indicator,.form-group input[type="time"]::-webkit-calendar-picker-indicator{filter:invert(1) grayscale(1) brightness(2)!important;cursor:pointer;opacity:1!important;transition:opacity 0.3s ease;width:20px!important;height:20px!important;padding:0!important;margin:0!important}
.form-group input[type="date"]::-webkit-calendar-picker-indicator:hover,.form-group input[type="time"]::-webkit-calendar-picker-indicator:hover{opacity:0.8!important}
.form-group input[type="date"]::-webkit-inner-spin-button,.form-group input[type="time"]::-webkit-inner-spin-button{filter:invert(1) grayscale(1) brightness(2)!important;opacity:1!important}
.form-group input[type="date"]::-webkit-clear-button{filter:invert(1) grayscale(1) brightness(2)!important;opacity:1!important}
.form-group input[type="date"]::-moz-calendar-picker-indicator,.form-group input[type="time"]::-moz-calendar-picker-indicator{filter:invert(1) grayscale(1) brightness(2)!important;opacity:1!important;cursor:pointer}
.form-group input[type="date"]::-ms-clear{display:none}
.form-group input[type="date"]::-ms-reveal{display:none}
.form-group-full{grid-column:1/-1}
.form-group textarea{resize:vertical;min-height:120px}
main.container h1{margin-bottom:1rem}
main.container h2{margin-top:2rem;margin-bottom:1rem}
main.container p{margin-bottom:1rem}
@media (max-width:800px){
  .booking-header h1{font-size:2rem}
  .booking-form{padding:1.5rem}
  .form-grid{grid-template-columns:1fr;gap:1.25rem}
  .form-group-full{grid-column:1}
}
main.container a{color:var(--muted);text-decoration:none;transition:color 0.3s ease}
main.container a:hover{color:var(--text);text-decoration:underline}
.timeline{display:flex;flex-direction:column;gap:1rem;margin-top:1rem;width:100%;box-sizing:border-box}
.timeline .card{width:100%;min-width:0}
.timeline .card h3{word-wrap:break-word;overflow-wrap:break-word;hyphens:auto}
.timeline .card p{word-wrap:break-word;overflow-wrap:break-word;hyphens:auto}
.education-list{display:flex;flex-direction:column;gap:1rem;margin-top:1rem}
.education-certifications-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem;margin-top:1rem}
.education-column h2,.certifications-column h2{margin-top:0;margin-bottom:1rem}
.certifications-column .lead{margin-bottom:1rem}
@media (max-width:800px){
  .education-certifications-grid{grid-template-columns:1fr}
  main.container{width:100%;box-sizing:border-box;overflow-x:hidden;max-width:100%}
  .section-toggle{display:grid;grid-template-columns:1fr 1fr;gap:0.5rem;margin:1.5rem 0;border-bottom:1px solid rgba(255,255,255,0.06);padding-bottom:0.75rem;width:100%;box-sizing:border-box}
  .toggle-btn{padding:0.75rem 0.5rem;font-size:0.9rem;white-space:nowrap;flex-shrink:0;width:100%;text-align:center;box-sizing:border-box}
  .toggle-btn.active::after{content:'';position:absolute;bottom:-0.75rem;left:50%;transform:translateX(-50%);width:80%;height:2px;background:var(--text)}
  .timeline .card{padding:0.875rem;word-wrap:break-word;overflow-wrap:break-word;max-width:100%;box-sizing:border-box}
  .timeline{width:100%;max-width:100%;box-sizing:border-box;overflow-x:hidden}
  #achievements-section .timeline .card{max-width:100%;overflow-wrap:break-word;word-wrap:break-word;box-sizing:border-box}
}
.form-actions{display:flex;gap:0.75rem;flex-wrap:wrap;margin-top:1.5rem;justify-content:center}
.form-actions .btn{flex:0 1 auto;min-width:200px;padding:0.875rem 2rem;font-size:1.05rem;font-weight:600}
.form-actions .btn:only-child{flex:0 1 auto;max-width:300px}
.form-status{
  display:none;
  margin-top:1rem;
  padding:1rem 1.25rem;
  border-radius:10px;
  font-size:0.95rem;
  line-height:1.5;
  border:1px solid transparent;
}
.form-status.is-visible{display:block}
.form-status--success{
  background:rgba(19, 115, 51, 0.2);
  border-color:rgba(55, 178, 96, 0.4);
  color:#c3f7d5;
}
.form-status--error{
  background:rgba(139, 0, 0, 0.25);
  border-color:rgba(255, 71, 86, 0.4);
  color:#ffd6db;
}
.required{color:var(--muted);font-size:0.9em}
.btn:disabled{opacity:0.5;cursor:not-allowed;pointer-events:none}
.btn:disabled:hover{transform:none;box-shadow:none}
.btn.ghost:disabled{opacity:0.5;cursor:not-allowed;pointer-events:none}
.btn.ghost:disabled:hover{transform:none;box-shadow:none;background:transparent}
.slots-modal{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:1rem}
.slots-modal-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.8);backdrop-filter:blur(4px)}
.slots-modal-card{position:relative;background:rgba(31,31,31,0.95);border:1px solid rgba(255,255,255,0.1);border-radius:12px;padding:2.5rem;max-width:400px;width:100%;box-shadow:0 8px 32px rgba(0,0,0,0.5);animation:modalSlideIn 0.3s ease-out}
.slots-modal-close{position:absolute;top:1rem;right:1rem;background:transparent;border:none;color:var(--muted);font-size:2rem;line-height:1;cursor:pointer;padding:0.5rem;width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:6px;transition:all 0.3s ease}
.slots-modal-close:hover{color:var(--text);background:rgba(255,255,255,0.1)}
.slots-modal-content{text-align:center}
.slots-modal-content h2{margin:0 0 1rem 0;color:var(--text);font-size:1.75rem;font-weight:600}
.slots-modal-content p{margin:0;color:var(--muted);font-size:1.1rem;line-height:1.6}
@keyframes modalSlideIn{from{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}
@media (max-width:600px){.slots-modal-card{padding:2rem;max-width:90%}.slots-modal-content h2{font-size:1.5rem}.slots-modal-content p{font-size:1rem}}
