/* ------------------ VARIABLES ------------------ */
:root {
    --bg: #0b1120;
    --bg-card: #1e293b;
    --text: #f8fafc;
    --text-soft: #94a3b8;
    --primary: #38bdf8;
    --accent: #0ea5e9;
    --radius: 16px;
    --border-color: rgba(51, 65, 85, 0.5);
    --glass-bg: rgba(15, 23, 42, 0.75);
  }
  
  /* ------------------ GLOBAL ------------------ */
  * { box-sizing: border-box; }
  body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    scroll-behavior: smooth;
  }
  a { color: var(--primary); text-decoration: none; transition: all 0.3s ease; }
  a:hover { color: var(--accent); }
  
  /* ------------------ HEADERS ------------------ */
  header.hero {
    padding: 9rem 2rem 7rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(-45deg, #0b1120, #0f172a, #1e3a8a20, #0c1421);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
  }
  
  header.hero-small {
    padding: 6rem 2rem 3rem;
    text-align: center;
    background: linear-gradient(-45deg, #0b1120, #0f172a, #1e3a8a20, #0c1421);
    background-size: 400% 400%;
    border-bottom: 1px solid var(--border-color);
  }
  header.hero-small h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0; color: white; }
  header.hero-small h1 span { color: var(--primary); }
  header.hero-small p { color: var(--text-soft); font-family: 'Roboto Mono', monospace; margin-top: 0.5rem; }
  
  @keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  .hero-avatar {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem auto;
    border: 4px solid var(--primary);
    box-shadow: 0 0 0 8px rgba(56,189,248,0.1), 0 0 40px rgba(56,189,248,0.3);
    transition: transform 0.4s ease;
  }
  .hero-avatar:hover { transform: scale(1.08) rotate(3deg); }
  
  .hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 0.5rem 0;
    font-weight: 800;
    line-height: 1.2;
    color: white; 
  }
  
  .hero p.subtitle {
    color: var(--text-soft);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 1rem auto 2.5rem;
  }
  
  .hero-buttons { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
  .cta-button {
    display: inline-block;
    background: var(--primary);
    color: var(--bg);
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
  }
  .cta-button:hover { background: transparent; color: var(--primary); transform: translateY(-3px); }
  .cta-button.outline { background: transparent; color: var(--primary); }
  .cta-button.outline:hover { background: var(--primary); color: var(--bg); }
  
  .social-icons { margin-top: 3.5rem; display: flex; justify-content: center; gap: 2rem; font-size: 1.8rem; }
  .social-icons a {
    color: var(--text-soft);
    background: rgba(255,255,255,0.05);
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 1px solid var(--border-color);
    transition: all 0.3s ease;
  }
  .social-icons a:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-5px); }
  
  .typing-effect::after { content: '|'; animation: blink-caret .75s step-end infinite; color: var(--primary); }
  @keyframes blink-caret { 50% { opacity: 0; } }
  
  /* ------------------ NAV ------------------ */
  nav {
    display: flex; justify-content: center; gap: 0.5rem; padding: 1rem;
    background: var(--glass-bg); backdrop-filter: blur(12px);
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05); flex-wrap: wrap;
  }
  nav a { font-size: 0.95rem; font-weight: 500; padding: 0.6rem 1.2rem; border-radius: 8px; color: var(--text-soft); }
  nav a:hover { background: rgba(255,255,255,0.05); color: var(--primary); }
  nav a.active { background: var(--primary); color: var(--bg); font-weight: 600; }
  
  /* ------------------ SECTIONS ------------------ */
  main { max-width: 1100px; margin: 0 auto; padding: 0 2rem; min-height: 60vh; }
  .section { margin: 6rem 0; scroll-margin-top: 100px; }
  h2 { font-size: 2.5rem; margin-bottom: 3rem; font-weight: 700; text-align: center; color: var(--text); }
  h2 span { color: var(--primary); }
  h2::after { content: ''; display: block; width: 60px; height: 4px; background: var(--primary); margin: 1rem auto 0; border-radius: 50px; }
  
  /* ------------------ CARDS ------------------ */
  .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
  .card {
    background: var(--bg-card); padding: 2.5rem; border-radius: var(--radius);
    border: 1px solid var(--border-color); transition: all 0.3s ease;
  }
  .card:hover { transform: translateY(-8px); border-color: rgba(56,189,248,0.4); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
  .card h3 { margin-top: 0; color: white; font-size: 1.4rem; display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
  .card h3 i { color: var(--primary); font-size: 1.8rem; }
  .card ul { list-style: none; padding: 0; margin: 0; }
  .card ul li { margin-bottom: 0.8rem; padding-left: 1.5rem; position: relative; color: var(--text-soft); }
  .card ul li::before { content: '▹'; color: var(--primary); position: absolute; left: 0; }
  
  .timeline-card { background: var(--bg-card); padding: 2.5rem; border-radius: var(--radius); border: 1px solid var(--border-color); margin-bottom: 2rem; transition: all .3s ease; }
  .timeline-card:hover { border-color: var(--primary); transform: translateY(-5px); }
  .timeline-card h3 { color: white; font-size: 1.5rem; margin: 0 0 0.5rem 0; }
  .timeline-date { color: var(--primary); font-size: 0.9rem; font-weight: 600; font-family: 'Roboto Mono', monospace; display: block; margin-bottom: 1rem; }
  .timeline-card p { color: var(--text-soft); }
  .timeline-card ul { list-style: none; padding: 0; color: var(--text-soft); }
  .timeline-card ul li { margin-bottom: 0.8rem; padding-left: 1.5rem; position: relative; }
  .timeline-card ul li::before { content: '→'; color: var(--accent); position: absolute; left: 0; font-weight: bold; }
  
  .tag-container { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
  .tag { background: rgba(56,189,248,0.1); color: var(--primary); font-size: 0.8rem; font-family: 'Roboto Mono', monospace; padding: 0.4rem 1rem; border-radius: 20px; border: 1px solid rgba(56,189,248,0.2); }
  
  /* ------------------ CERTS ------------------ */
  .cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
  .cert-box {
    background: var(--bg-card); padding: 2rem; border-radius: var(--radius);
    border: 1px solid var(--border-color); display: flex; flex-direction: column; align-items: center; text-align: center; transition: all .3s ease;
  }
  .link-box:hover { border-color: #10b981; transform: translateY(-5px); background: rgba(16, 185, 129, 0.05); }
  .cert-logo { font-size: 3.5rem; margin-bottom: 1.2rem; }
  .cert-name { font-weight: 600; font-size: 1.1rem; color: white; margin-bottom: 0.5rem; }
  .cert-status { font-size: 0.9rem; font-weight: 500; }
  .cert-pending { color: #fcd34d; }
  
  /* ------------------ CONTACT FORM ------------------ */
  .contact-form { max-width: 600px; margin: 0 auto; background: var(--bg-card); padding: 3rem; border-radius: var(--radius); border: 1px solid var(--border-color); }
  .form-group { margin-bottom: 1.5rem; }
  .form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-soft); }
  .form-group input, .form-group textarea { width: 100%; padding: 1rem; border-radius: 8px; background: var(--bg); border: 1px solid var(--border-color); color: white; font-family: 'Montserrat', sans-serif; }
  .form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
  .submit-btn { width: 100%; background: var(--primary); color: var(--bg); border: none; padding: 1rem; border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.3s ease; }
  .submit-btn:hover { background: var(--accent); }
  
  #form-status { margin-top: 1.5rem; padding: 1rem; border-radius: 8px; text-align: center; font-weight: 600; display: none; animation: fadeIn 0.3s ease; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
  .status-success { background-color: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
  .status-error { background-color: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
  
  /* ------------------ SCROLL TOP BTN & FOOTER ------------------ */
  #scrollTopBtn { position: fixed; bottom: 30px; right: 30px; background: var(--primary); color: var(--bg); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 100; cursor: pointer; }
  #scrollTopBtn.show { opacity: 1; visibility: visible; }
  #scrollTopBtn:hover { transform: translateY(-5px); background: var(--accent); }
  
  footer { text-align: center; padding: 3rem; margin-top: 5rem; background: #0f172a; color: var(--text-soft); border-top: 1px solid var(--border-color); font-size: 0.9rem; }