/* styles.css - DevDaahir portfolio
   Main adjustments:
   - Dark theme: bg black, text blue
   - Light theme: bg blue, text white
   - Primary color variable: --blue
   Modify --blue to change primary color.
*/

/* VARIABLES */
:root{
  --blue: #0b66ff; /* primary blue */
  --white: #ffffff;
  --black: #010101;
  --bg: var(--black);
  --text: var(--blue);
  --muted: rgba(255,255,255,0.75);
  --radius: 10px;
  --transition: 300ms cubic-bezier(.2,.9,.2,1);
  --max-width: 1000px;
}

/* THEMES
   - theme-dark => background black, text blue (per your instruction)
   - theme-light => background blue, text white
*/
.theme-dark {
  --bg: var(--black);
  --text: var(--blue);
  --muted: rgba(255,255,255,0.6);
}
.theme-light {
  --bg: var(--blue);
  --text: var(--white);
  --muted: rgba(255,255,255,0.9);
}

/* Basic reset */
* { box-sizing: border-box; }
html,body { height:100%; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  transition: background var(--transition), color var(--transition);
  cursor: none; /* using custom cursor */
  line-height:1.45;
}

/* container */
.container{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
}

/* Accessibility focus outlines */
:focus { outline: 3px solid rgba(255,255,255,0.08); outline-offset: 2px; }
.theme-dark :focus { outline-color: rgba(255,255,255,0.12); }
.theme-light :focus { outline-color: rgba(0,0,0,0.12); }

/* Header / nav */
.site-header{
  position: sticky;
  top:0;
  z-index: 50;
  background: transparent;
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding: .75rem 1rem;
}
.logo{
  font-weight:700;
  color: var(--text);
  text-decoration:none;
  font-size:1.1rem;
}

/* Nav links */
.nav-links{
  display:flex;
  gap:1rem;
  list-style:none;
  margin:0;
  padding:0;
}
.nav-links a{
  color: var(--text);
  text-decoration:none;
  padding: .5rem;
  border-radius:6px;
  transition: background var(--transition), transform var(--transition);
}
.nav-links a:hover,
.nav-links a:focus{
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
}

/* Controls */
.controls{ display:flex; gap:.5rem; align-items:center; }
.btn, .btn-outline, .btn-primary{
  padding: .5rem .9rem;
  border-radius: 8px;
  border: none;
  font-weight:600;
  cursor: pointer;
  text-decoration: none;
  display:inline-flex;
  align-items:center;
  gap:.5rem;
}
.btn:focus { outline-offset: 3px; }
.btn-primary{
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 6px 18px rgba(2,8,23,0.08);
}
.btn-outline{
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(255,255,255,0.12);
}

/* Hamburger */
.nav-toggle{
  display:none;
  background:transparent;
  border:none;
  cursor:pointer;
  padding:.25rem;
  margin-right: .25rem;
}
.burger{
  width:22px;
  height:2px;
  background: var(--text);
  position:relative;
  display:block;
}
.burger::before,.burger::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  height:2px;
  background: var(--text);
}
.burger::before{ top:-6px; }
.burger::after{ top:6px; }

/* Hero */
.hero{
  min-height: 56vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:2rem 1rem;
}
.hero-inner{ max-width:780px; margin:0 auto; }
.name{ font-size:2.2rem; margin:.25rem 0; letter-spacing:.5px; }
.role{ color: var(--muted); margin: .5rem 0 1rem; font-weight:600; }
.lead{ color: var(--muted); margin-bottom:1rem; }

/* Portrait */
.portrait{ margin-top:1rem; display:flex; justify-content:center; }
.portrait img{ border-radius:50%; border:4px solid rgba(255,255,255,0.06); }

/* Skills */
.skills{ padding:2rem 0; }
.skills-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:1rem;
  margin-top:1rem;
}
.skill{
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: .75rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.theme-light .skill{
  background: rgba(0,0,0,0.04);
}
.skill:focus-within, .skill:hover{
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(2,8,23,0.08);
}
.skill-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:.5rem;
  font-weight:600;
}
.skill-name{ font-size:0.95rem; }
.skill-percent{ font-size:0.95rem; opacity:0.95; }

/* Bars */
.skill-bar{
  width:100%;
  height:12px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow:hidden;
}
.skill-bar-fill{
  width:0%;
  height:100%;
  transform-origin:left center;
  transition: width 900ms cubic-bezier(.2,.9,.2,1);
  position:relative;
}
.skill-bar-fill::after{
  content:"";
  position:absolute;
  inset:0;
  background: var(--text);
  opacity: .95;
  mix-blend-mode: normal;
}

/* About / Contact */
.about, .contact{ padding:2rem 0; }

/* Contact form */
.contact-form { display:flex; flex-direction:column; gap:.5rem; max-width:640px; }
.contact-form label{ font-weight:600; }
.contact-form input, .contact-form textarea{
  padding:.6rem;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.06);
  background: transparent;
  color: var(--text);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.45); }
.form-actions{ margin-top:.5rem; }

/* Footer */
.site-footer{
  padding:1.25rem;
  text-align:center;
  color: var(--muted);
}

/* Custom cursor & robot */
#custom-cursor{
  position:fixed;
  pointer-events:none;
  z-index:9999;
  width:14px;
  height:14px;
  border-radius:50%;
  background: var(--text);
  transform: translate(-50%,-50%) scale(1);
  transition: transform 160ms ease, background 160ms ease, opacity 200ms linear;
  box-shadow: 0 6px 18px rgba(2,6,23,0.12);
}
#robot{
  position:fixed;
  pointer-events:none;
  z-index:9998;
  width:48px;
  height:48px;
  transform: translate(-50%,-50%) scale(0.85);
  transition: transform 220ms cubic-bezier(.2,.9,.2,1), opacity 180ms linear;
  opacity: .95;
  color: var(--text);
}

/* Hover/active states when over interactive */
.cursor--hover { transform: translate(-50%,-50%) scale(1.8); }
.robot--hover { transform: translate(-50%,-50%) scale(1.12) rotate(-6deg); }

/* Section in-view animation */
section{
  opacity:0;
  transform: translateY(12px);
  transition: opacity 520ms ease, transform 520ms ease;
}
section.in-view{ opacity:1; transform: translateY(0); }

/* Responsive nav */
@media (max-width:900px){
  .nav-links{ display:none; position:absolute; right:1rem; top:64px; background: rgba(255,255,255,0.03); border-radius:10px; padding:.5rem; flex-direction:column; min-width:160px; }
  .nav-links.show{ display:flex; }
  .nav-toggle{ display:inline-block; }
}

/* Small screens adjustments */
@media (max-width:600px){
  .name{ font-size:1.7rem; }
  .hero{ padding:1.25rem 0; }
  .controls{ gap:.25rem; }
  #custom-cursor{ display:none; } /* hide on touch devices */
  #robot{ display:none; }
}
.Row{ display:flex; justify-content:center; align-items:center; padding:2.25rem 1rem; }
.Column{ max-width:980px; width:100%; }
.Row .Column{ text-align:center; }

.social-icons {
  display: flex;
  gap: 14px;
  margin: 8px auto 0;
  align-items: center;
  justify-content: center;
}

/* Clean, theme-aware social icons using currentColor */
.social {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 20px;
  transition: all 240ms var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.06);
  padding: 0 8px;
}

.theme-light .social{ border-color: rgba(0,0,0,0.07); }

.social svg{ width: 22px; height: 22px; display:block; transition: transform 220ms ease, opacity 220ms ease, filter 220ms ease; transform-origin:center; }

/* Animated label that appears when icon expands on hover/focus */
.social::after{
  /* Label sits to the right and is revealed on hover/focus. */
  content: attr(data-name);
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  white-space: nowrap;
  opacity: 0;
  transition: transform 200ms cubic-bezier(.2,.9,.2,1), opacity 200ms linear;
  font-size: 14px;
  pointer-events: none;
  color: var(--text);
  background: transparent;
  padding: 0 6px;
  border-radius: 6px;
}

.social:hover, .social:focus{
  min-width: 140px;
  padding-left: 16px;
  padding-right: 18px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(2,6,23,0.12);
}

.social:hover svg, .social:focus svg{ transform: translateX(-8px) scale(1.06); opacity: .98; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.12)); }

.social:hover::after, .social:focus::after{
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  color: var(--bg);
  /* subtle backdrop for label so text is readable on any background */
  background: rgba(255,255,255,0.06);
}

/* Small screens: keep a tighter layout */
@media (max-width:520px){
  .Row{ padding:1.25rem 0.75rem; }
  .social { width:44px; height:44px; }
  /* On small screens keep icons compact — no expanding label */
  .social::after { display:none; }
}

/* Keyboard users: show clear focus ring */
.social:focus-visible{ box-shadow: 0 0 0 4px rgba(11,102,255,0.14), 0 8px 28px rgba(2,6,23,0.12); outline: none; transform: translateY(-3px); }

/* Title styling inside the Row/Column */
.Row .Column h2{ margin:0 0 .55rem; font-size:1.5rem; color: var(--text); font-weight:700; }
.Row .Column p { color: var(--muted); margin:0 0 .75rem; font-size:0.95rem; }

/* End of styles.css */