
/* ===========================
   Portfolio Styles (styles.css)
   Advanced CSS: variables, grid, flex, animations, dark mode, glassy cards, responsive nav
   =========================== */

:root{
  --bg: #0f1226;
  --bg-soft: #151939;
  --text: #e6e8ff;
  --muted: #aab0ff;
  --accent: #7c5cff;
  --accent-2: #00d2d3;
  --card: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.14);
  --shadow: 0 10px 30px rgba(0,0,0,0.25);
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1120px;
}

@media (prefers-color-scheme: light){
  :root{
    --bg: radial-gradient(
    rgba(211, 246, 244, 0.331) 50%,
    rgba(45, 162, 235, 0.329) 100%
  );
    --bg-soft: #eef0ff;
    --text: #21244d;
    --muted: #5a60c4;
    --card: rgba(0,0,0,0.04);
    --border: rgba(0,0,0,0.12);
  }
}

*{ box-sizing: border-box; }
html, body{
  padding: 0; margin: 0; background: var(--bg); color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }

.container{ width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ====== NAVBAR ====== */
.nav{
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
  background: linear-gradient(to right, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border-bottom: 1px solid var(--border);
}
.nav-inner{
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}
.brand{
  display:flex; align-items:center; gap:12px; font-weight: 800; letter-spacing: .3px;
}
.brand .dot{
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px rgba(124,92,255,.25);
}
.menu{ display:flex; align-items:center; gap: 18px; }
.menu > li{ list-style: none; position: relative; }
.menu a{ padding: 10px 12px; border-radius: 12px; transition: transform .2s ease, background .2s ease; }
.menu a:hover{ background: var(--card); transform: translateY(-1px); }

/* Dropdown (mega) */
.menu .dropdown:hover .dropdown-panel{ opacity:1; visibility:visible; transform: translateY(0); }
.dropdown-panel{
  position: absolute; top: 48px; left: 0;
  background: var(--bg-soft); border:1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px; min-width: 560px;
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  opacity:0; visibility:hidden; transform: translateY(6px);
  transition: all .18s ease;
}

/* Sub items */
.sub{
  display:flex; flex-direction: column; gap: 10px;
}
.sub h4{
  margin:0; font-size: 14px; letter-spacing:.4px; color: var(--muted); font-weight: 700; text-transform: uppercase;
}
.sub a{
  padding: 10px 12px; border-radius: 12px; background: transparent; border:1px solid transparent;
}
.sub a:hover{ background: var(--card); border-color: var(--border); }

/* ====== HERO ====== */
.hero{
  display:grid; gap: 28px; grid-template-columns: 1.1fr .9fr; align-items: center;
  padding: 48px 0 32px;
}
.tag{
  display:inline-flex; align-items:center; gap:8px; font-size: 14px; color: var(--muted);
  background: var(--card); padding: 8px 12px; border-radius: 999px; border:1px solid var(--border);
}
.tag .pill{ width:10px; height:10px; border-radius:999px; background:linear-gradient(135deg,var(--accent),var(--accent-2)); }
.hero h1{ font-size: clamp(32px, 4.5vw, 54px); line-height: 1.05; margin: 14px 0; }
.hero p{ color: var(--muted); font-size: clamp(16px, 2vw, 18px); }

.actions{ display:flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.btn{
  padding: 12px 16px; border-radius: 14px; border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  cursor: pointer; font-weight: 600; letter-spacing:.2px;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover{ transform: translateY(-1px); background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05)); }
.btn.primary{ background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: white; }
.btn.ghost{ background: transparent; }

/* Profile image (big round) */
.avatar-wrap{
  place-self: center; width: 360px; height: 360px; border-radius: 50%;
  border: 6px solid rgba(255,255,255,0.14);
  padding: 12px; background: linear-gradient(135deg, rgba(124,92,255,.25), rgba(0,210,211,.25));
  display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.avatar{
  width: 100%; height:100%; border-radius:50%; overflow:hidden; border: 2px solid var(--border);
}

/* ====== SECTIONS ====== */
.section{ padding: 40px 0; }
.section .head{
  display:flex; align-items:baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px;
}
.section h2{ margin:0; font-size: clamp(22px, 3vw, 30px); }
.muted{ color: var(--muted); font-size: 14px; }

.grid{
  display:grid; gap: 16px;
  grid-template-columns: repeat(12, 1fr);
}
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease;
}

.contact-details p {
  margin: 12px 0;        /* space between each detail */
  font-size: 16px;
  display: flex;
  align-items: center;
}

.contact-details i {
  margin-right: 10px;    /* space between icon and text */
  color: #0077b5;        /* default accent color (blue for LinkedIn-like look) */
}

.contact-details a {
  color: #0077b5;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.card:hover{ transform: translateY(-2px); border-color: rgba(124,92,255,.45); }

/* Project cards */
.project{ grid-column: span 4; min-height: 160px; display:flex; flex-direction:column; gap:8px; }
.badges{ display:flex; gap:8px; flex-wrap:wrap; }
.badge{
  font-size: 12px; padding: 6px 10px; border-radius:999px; border:1px solid var(--border); color: var(--muted);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
}

.kpis{ display:grid; grid-template-columns: repeat(4, 1fr); gap:12px; }
.kpi{ text-align:center; padding: 16px; border-radius: var(--radius-sm); background: var(--card); border:1px solid var(--border); }
.kpi .n{ font-weight:800; font-size: 24px; }
.kpi .l{ color: var(--muted); font-size: 12px; letter-spacing:.4px; text-transform: uppercase; }

/* ====== CONTACT ====== */
.form{
  display:grid; gap:12px; grid-template-columns: repeat(2, 1fr);
}
.form .full{ grid-column: 1 / -1; }
.input, textarea{
  width: 100%; border-radius: 14px; border:1px solid var(--border);
  padding: 12px 14px; background: rgba(0,0,0,0.06); color: var(--text);
}
textarea{ min-height: 120px; resize: vertical; }

/* ====== FOOTER ====== */
.footer{
  padding: 28px 0; border-top:1px solid var(--border); color: var(--muted); font-size: 14px;
  display:flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
  .avatar-wrap{ width: 300px; height: 300px; }
  .project{ grid-column: span 6; }
  .dropdown-panel{ min-width: 90vw; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px){
  .menu{ display: none; } /* keep it simple: desktop nav only; could add mobile menu later */
  .project{ grid-column: 1 / -1; }
  .kpis{ grid-template-columns: repeat(2, 1fr); }
}
