/* styles.css — REVERTED TO STABLE DEEP BLUE DESIGN */

/* Root colors */
:root{
  --bg:#03030a; /* Very dark background */
  --panel: rgba(255,255,255,0.04);
  --accent:#0f4fe8; /* DEEP BLUE */
  --accent-2:#5fb4ff; /* Light Blue */
  --muted: rgba(255,255,255,0.78);
  --glass: rgba(255,255,255,0.03);
  --radius:14px;
}

/* Reset */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Cairo", sans-serif;
  background: linear-gradient(180deg, #02020a 0%, #060617 60%);
  color:#fff; -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
  position: relative; 
  overflow-x: hidden; 
  z-index: 1; 
}

/* HERO */
.hero{
  min-height:86vh; 
  display:flex;
  align-items:center;
  position:relative;
  overflow:hidden;
  padding:60px 20px;
}

.hero-inner{
  width:100%;
  max-width:1100px;
  margin:0 auto;
  display:flex;
  gap:40px;
  align-items:center;
  transition: transform 1s cubic-bezier(.2,.9,.3,1), opacity .8s ease;
  opacity:0; transform: translateY(28px);
  z-index: 10;
}
.hero-inner.entered { opacity:1; transform:translateY(0); }

.left{flex:1; min-width:300px}
.right{width:360px; display:flex; justify-content:center}

/* badge */
.badge{
  display:inline-block;
  background:linear-gradient(90deg,var(--accent), #5fb4ff);
  color:#fff; padding:8px 12px; border-radius:999px;
  font-weight:600; font-size:13px; margin-bottom:16px;
  box-shadow: 0 8px 30px rgba(15,79,232,0.12);
}

/* name */
.name{font-family: "Share Tech Mono", monospace; font-size:56px; line-height:1; margin-bottom:10px; letter-spacing:0.6px;}
.accent{color:var(--accent); text-shadow:0 6px 18px rgba(15,79,232,0.12)}

/* lead */
.lead{color:var(--muted); margin-bottom:20px; font-size:17px; max-width:58%}

/* CTAs */
.ctas{margin:18px 0 28px; display:flex; gap:12px; flex-wrap:wrap}
.btn{display:inline-block;padding:12px 18px;border-radius:10px;text-decoration:none;font-weight:700;transition:all .22s ease}
.btn-primary{background:linear-gradient(90deg,var(--accent),#4aa7ff);color:#fff;box-shadow:0 10px 30px rgba(15,79,232,0.12)}
.btn-primary:hover{transform:translateY(-4px);box-shadow:0 18px 44px rgba(15,79,232,0.18)}
.btn-ghost{background:transparent;border:1px solid rgba(255,255,255,0.06);color:var(--muted)}
.btn-outline{background:transparent;color:var(--accent);border:1px solid rgba(15,79,232,0.1)}

/* PDF Download Button - Adjusted for blue theme */
.btn-download {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--muted);
    margin-top: 10px;
    font-size: 14px;
    padding: 10px 18px;
    font-weight: 600;
}
.btn-download:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* meta / langs - Reverting to simple bar style */
.meta{margin-top:18px}
.langs{display:flex;flex-direction:column;gap:10px;margin-top:8px;max-width:420px}
.lang{display:flex;align-items:center;gap:12px}
.lang-name{width:110px;font-weight:600}
.bar{flex:1;height:10px;background:rgba(255,255,255,0.06);border-radius:999px;overflow:hidden}
.bar .fill{height:100%;background:linear-gradient(90deg,var(--accent),var(--accent-2));border-radius:999px;transition:width .9s cubic-bezier(.2,.9,.3,1)}
.percent{width:48px;text-align:right;font-weight:700;color:var(--muted);font-size:13px}

/* portrait */
.portrait{width:320px;height:420px;border-radius:20px;background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));position:relative;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,0.6);border:1px solid rgba(255,255,255,0.04)}
.portrait img{width:100%;height:100%;object-fit:cover;display:block;filter:grayscale(.03) contrast(.95)}
.portrait-overlay{position:absolute;inset:0;background:linear-gradient(135deg, rgba(15,79,232,0.06), transparent); mix-blend-mode:overlay}

/* subtle decorative blob - REMOVED AS REQUESTED */
.blob{display:none !important;}


/* containers and cards */
main { position: relative; z-index: 5; }
.container{
    max-width:1100px;
    margin:0 auto;
    padding:70px 20px;
    position: relative; 
    z-index: 5;
}

.section-grid{display:grid;grid-template-columns:1fr 420px;gap:22px;align-items:start}

/* cards */
.card{
  background:var(--panel);
  padding:22px;
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,0.035);
  box-shadow:0 10px 40px rgba(0,0,0,0.45);
  /* Reverting to standard transition/no glassmorphism */
  transition: all 0.3s ease;
  cursor: default;
  z-index: 5;
}

/* Card Hover Effect */
.card:hover:not(.contact-card) {
    transform: translateY(-4px); 
    border: 1px solid var(--accent); 
    box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 12px rgba(15,79,232,0.4);
}
.contact-card:hover {
    transform: none; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.45); 
    border: 1px solid rgba(255,255,255,0.035);
}

/* Contact Card Link Styling (Blue Accent) */
.contact-card a {
    color: var(--accent); 
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-card a:hover {
    color: var(--accent-2); 
    text-decoration: underline;
}

/* H2 Title Enhancement (Reverting to simpler look) */
h2{
  font-family: "Share Tech Mono", monospace;
  font-size:32px;
  margin-bottom:25px; 
  position: relative; 
  padding-bottom: 10px;
}
h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px; 
    height: 3px;
    background: linear-gradient(90deg, var(--accent-2), transparent);
    box-shadow: 0 0 8px rgba(15,79,232,0.3); 
    border-radius: 999px;
}

h3{font-size:20px;margin-bottom:6px; color:var(--accent)}

/* timeline */
.timeline{display:flex;flex-direction:column;gap:14px}
.timeline-item{
  display:flex;
  gap:18px;
  align-items:flex-start;
  padding:12px 12px 12px 18px;
  border-radius:10px;
  transition:all .3s ease;
  border-left: 4px solid rgba(255,255,255,0.05);
}
.timeline-item:hover{
  transform:translateY(-6px);
  border-left: 4px solid var(--accent);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 12px rgba(15,79,232,0.4);
}

.ti-left time{display:block;color:var(--muted);font-weight:700;margin-bottom:6px; font-family: Inter, system-ui;}


/* grids */
.cards-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
@media (max-width:900px){ .hero-inner{flex-direction:column-reverse; gap: 40px;} .section-grid{grid-template-columns:1fr} .portrait{width:260px;height:320px} .lead{max-width:100%} .name{font-size:48px} .cards-grid{grid-template-columns:repeat(2,1fr)} .container{padding: 40px 20px;} }
@media (max-width:700px){.cards-grid{grid-template-columns:1fr} }

/* --- MOBILE SPECIFIC FIXES (Retained) --- */
@media (max-width:480px) {
    .name{font-size:38px; letter-spacing: 0;}
    .hero-inner{gap: 30px;}
    .ctas{
        flex-direction: column;
        gap: 8px;
    }
    .ctas .btn{
        width: 100%; 
        text-align: center;
        padding: 12px;
    }
    .btn-download {
        width: 100%; 
    }
    .hero{
        padding: 50px 15px;
    }
}
/* --- END MOBILE FIXES --- */


/* small helpers */
.muted{color:var(--muted)}
.small{font-size:13px;opacity:0.9}

/* footer */
.site-footer{padding:30px 20px;text-align:center;color:rgba(255,255,255,0.6);font-size:14px}

/* subtle entrance animations for language bars */
.hero .fill{animation:grow .9s cubic-bezier(.2,.9,.3,1) forwards}
@keyframes grow {from{width:0} to{width:var(--final)}}

/* --- PRINT STYLES (Retained and Critically Fixed) --- */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
        font-family: Arial, sans-serif !important;
    }
    
    /* CRITICAL FIX: Ensure all light/muted text is black for legibility */
    .muted, .small, .lead { 
        color: #000 !important; 
        opacity: 1 !important; 
    }

    .blob,
    .ctas, 
    .btn-download, 
    .site-footer,
    .meta-item strong {
        display: none !important;
    }

    .hero {
        padding: 20px !important;
        min-height: auto !important;
        background: none !important;
        color: #000 !important;
    }
    .hero-inner {
        flex-direction: column !important;
        opacity: 1 !important;
        transform: none !important;
        gap: 10px !important;
    }
    .right {
        order: -1; 
        width: 150px !important;
        height: 150px !important;
    }
    .portrait {
        width: 150px !important;
        height: 150px !important;
        border-radius: 50% !important;
        border: 2px solid #000 !important;
        box-shadow: none !important;
        background: #eee !important;
    }
    .portrait img { filter: grayscale(1) !important; }
    .name {
        font-size: 24pt !important;
        color: #000 !important;
        text-shadow: none !important;
        margin-bottom: 5px !important;
    }
    .accent { color: #555 !important; }
    .lead { font-size: 12pt !important; color: #333 !important; max-width: 100% !important; margin-bottom: 15px !important; }
    .badge { background: #eee !important; color: #000 !important; box-shadow: none !important; font-weight: bold !important; }

    .container { padding: 20px 0 !important; }
    .section-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
    .cards-grid { grid-template-columns: 1fr !important; gap: 10px !important; }

    .card {
        background: #fff !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transform: none !important;
        padding: 15px !important;
        margin-bottom: 10px !important;
    }

    .langs { display: block !important; margin-top: 10px !important; }
    .lang { margin-bottom: 5px; }
    .bar { background: #eee !important; height: 8px !important; }
    .bar .fill { background: #333 !important; box-shadow: none !important; }
    .percent, .lang-name { color: #000 !important; font-family: Arial, sans-serif !important; }

    .timeline-item { border-left: 2px solid #333 !important; box-shadow: none !important; transform: none !important; padding-left: 15px !important; }
    .ti-left time, h3 { color: #000 !important; font-family: Arial, sans-serif !important; }
    h2 { color: #000 !important; font-family: Arial, sans-serif !important; font-size: 18pt !important; padding-bottom: 5px !important; margin-bottom: 15px !important;}
    h2::after { content: none !important; } 
}