/* ============================================================
   JUWEL RANA PORTFOLIO — style.css
   Color tone matched to clyroo.com: Deep navy + electric blue
   ============================================================ */

:root {
  --bg-primary:    #080c14;
  --bg-secondary:  #0d1420;
  --bg-card:       #111827;
  --bg-card-hover: #151f2e;
  --accent:        #2563eb;
  --accent-light:  #3b82f6;
  --accent-glow:   rgba(37, 99, 235, 0.35);
  --accent2:       #06b6d4;
  --gradient:      linear-gradient(135deg, #2563eb, #06b6d4);
  --text-primary:  #f0f4ff;
  --text-secondary:#94a3b8;
  --text-muted:    #4b5563;
  --border:        rgba(255,255,255,0.07);
  --border-accent: rgba(37,99,235,0.4);
  --radius:        14px;
  --radius-sm:     8px;
  --shadow:        0 4px 24px rgba(0,0,0,0.5);
  --shadow-accent: 0 0 40px rgba(37,99,235,0.2);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

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

.mono { font-family: 'JetBrains Mono', monospace; }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hidden { display: none !important; }
.w-full { width: 100%; }

/* CONTAINER */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── NAV ─────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: rgba(8,12,20,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 1.4rem; font-weight: 900; letter-spacing: -1px;
  color: var(--text-primary);
}
.nav-logo .dot { color: var(--accent-light); }
.nav-links {
  display: flex; align-items: center; gap: 2rem; list-style: none;
}
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  background: var(--gradient) !important;
  color: #fff !important;
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.85; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: 0.3s;
}

/* ── BUTTONS ─────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gradient);
  color: #fff; font-weight: 600; font-size: 0.95rem;
  padding: 0.75rem 1.8rem; border-radius: 10px; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent;
  color: var(--text-secondary); font-weight: 500; font-size: 0.95rem;
  padding: 0.75rem 1.8rem; border-radius: 10px;
  border: 1px solid var(--border-accent);
  transition: all 0.2s; cursor: pointer;
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--accent-light); background: rgba(37,99,235,0.08); }

/* ── HERO ─────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: space-between;
  padding: 6rem 1.5rem 3rem;
  max-width: 1100px; margin: 0 auto;
  gap: 3rem; position: relative; overflow: hidden;
}
.hero-bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(37,99,235,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-orb {
  position: fixed; border-radius: 50%; filter: blur(80px); z-index: -1; pointer-events: none;
}
.orb1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(37,99,235,0.15), transparent 70%);
  top: -100px; right: -100px;
}
.orb2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(6,182,212,0.1), transparent 70%);
  bottom: 100px; left: -100px;
}
.hero-content { flex: 1; max-width: 560px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(37,99,235,0.12); border: 1px solid var(--border-accent);
  color: var(--accent-light); font-size: 0.8rem; font-weight: 600;
  padding: 0.35rem 0.9rem; border-radius: 100px; margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.2); }
  50%      { box-shadow: 0 0 0 6px rgba(34,197,94,0.05); }
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900; line-height: 1.1; letter-spacing: -2px;
  margin-bottom: 0.8rem;
}
.hero-subtitle {
  font-size: 1.15rem; color: var(--text-secondary); font-weight: 500;
  margin-bottom: 1rem;
}
.hero-desc {
  font-size: 1rem; color: var(--text-secondary); line-height: 1.8;
  margin-bottom: 2rem;
}
.hero-desc strong { color: var(--text-primary); }
.clyroo-link { color: var(--accent-light); font-weight: 600; transition: color 0.2s; }
.clyroo-link:hover { color: var(--accent2); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; align-items: center; gap: 1.5rem; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.8rem; font-weight: 800; line-height: 1; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

.hero-image-wrap {
  flex-shrink: 0; position: relative; width: 340px;
}
.hero-image-glow {
  position: absolute; inset: -20px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.25), transparent 70%);
  filter: blur(30px); z-index: 0;
  animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.05); }
}
.hero-photo {
  width: 100%; border-radius: 24px; position: relative; z-index: 1;
  border: 2px solid var(--border-accent);
  box-shadow: var(--shadow-accent), var(--shadow);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.hero-image-tag {
  position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%);
  background: var(--bg-card); border: 1px solid var(--border-accent);
  padding: 0.4rem 1rem; border-radius: 8px; z-index: 2;
  font-size: 0.8rem; color: var(--accent-light); white-space: nowrap;
}

/* ── SECTION COMMONS ─────────────────── */
section { padding: 6rem 0; }
.section-label {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--accent-light);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800;
  letter-spacing: -1px; margin-bottom: 1rem;
}
.section-desc {
  color: var(--text-secondary); font-size: 1.05rem; max-width: 620px;
  margin-bottom: 3rem; line-height: 1.8;
}

/* ── ABOUT ───────────────────────────── */
#about { background: var(--bg-secondary); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-top: 1rem; }
.about-images { position: relative; }
.about-img { border-radius: var(--radius); box-shadow: var(--shadow); }
.main-img { width: 100%; border: 2px solid var(--border-accent); }
.side-img {
  position: absolute; bottom: -40px; right: -30px;
  width: 55%; border: 3px solid var(--bg-secondary);
  box-shadow: var(--shadow-accent), var(--shadow);
  border-radius: var(--radius);
}
.about-img-badge {
  position: absolute; top: -18px; left: -18px;
  background: var(--gradient); color: #fff;
  font-size: 0.8rem; font-weight: 700;
  padding: 0.5rem 1rem; border-radius: 10px;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.about-text h2 { font-size: clamp(1.5rem,3vw,2.1rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 1.2rem; line-height: 1.25; }
.about-text p { color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.8; }
.about-details { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.detail-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.95rem; color: var(--text-secondary); }
.detail-icon { font-size: 1.1rem; }

/* ── SKILLS ──────────────────────────── */
#skills { background: var(--bg-primary); }
.skills-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin-top: 1.5rem; }
.skill-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.skill-card:hover {
  transform: translateY(-4px); border-color: var(--border-accent);
  box-shadow: var(--shadow-accent);
}
.skill-icon { font-size: 2rem; margin-bottom: 1rem; }
.skill-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.skill-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 1rem; }
.skill-bar { height: 4px; background: var(--border); border-radius: 99px; overflow: hidden; }
.skill-fill {
  height: 100%; width: var(--pct);
  background: var(--gradient); border-radius: 99px;
  animation: fill-bar 1.5s ease forwards;
  transform-origin: left; transform: scaleX(0);
}
@keyframes fill-bar { to { transform: scaleX(1); } }

/* ── EXPERIENCE ──────────────────────── */
#experience { background: var(--bg-secondary); }
.timeline { position: relative; margin-top: 2rem; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--accent), var(--accent2), transparent);
}
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-dot {
  position: absolute; left: -2.45rem; top: 1.5rem;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-secondary); border: 2px solid var(--text-muted);
}
.timeline-dot.current {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.timeline-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.timeline-card:hover { border-color: var(--border-accent); box-shadow: var(--shadow-accent); }
.timeline-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; flex-wrap: wrap; gap: 0.5rem; }
.timeline-company { font-weight: 700; color: var(--accent-light); font-size: 0.9rem; }
.timeline-date { font-size: 0.8rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.timeline-role { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.timeline-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.75; margin-bottom: 1rem; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.7rem;
  background: rgba(37,99,235,0.12); border: 1px solid var(--border-accent);
  color: var(--accent-light); border-radius: 100px;
}

/* ── SERVICES ─────────────────────────── */
#services { background: var(--bg-primary); }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin-top: 1.5rem; }
.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient); opacity: 0; transition: opacity 0.3s;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--border-accent); box-shadow: var(--shadow-accent); }
.service-card:hover::before { opacity: 1; }
.service-card.featured { border-color: var(--border-accent); background: linear-gradient(135deg, rgba(37,99,235,0.1), var(--bg-card)); }
.service-card.featured::before { opacity: 1; }
.service-number { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.service-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; }
.service-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }

/* ── TEAM ─────────────────────────────── */
#team { background: var(--bg-secondary); }
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; margin-top: 1.5rem; }
.team-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem; text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}
.team-card:hover { transform: translateY(-4px); border-color: var(--border-accent); }
.team-flag { font-size: 2.5rem; margin-bottom: 0.75rem; }
.team-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.25rem; }
.team-count { font-size: 1.4rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: block; margin-bottom: 0.4rem; }
.team-card p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }

/* ── CLIENTS ──────────────────────────── */
#clients { background: var(--bg-primary); }
.clients-grid { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.client-card {
  display: flex; flex-direction: column; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem 2rem; gap: 0.4rem;
  transition: transform 0.3s, border-color 0.3s; flex: 1; min-width: 150px;
}
.client-card:hover { transform: translateY(-3px); border-color: var(--border-accent); }
.client-flag { font-size: 2.2rem; }
.client-country { font-weight: 700; font-size: 0.95rem; }
.client-note { font-size: 0.75rem; color: var(--text-muted); }

.workspace-section { margin-top: 2rem; }
.workspace-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.5rem; }
.workspace-imgs.single { grid-template-columns: 1fr; max-width: 700px; margin-left: auto; margin-right: auto; }
.workspace-img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s; }
.workspace-img:hover { transform: scale(1.02); box-shadow: var(--shadow-accent), var(--shadow); }
.featured-workspace {
  border: 2px solid var(--border-accent);
  box-shadow: var(--shadow-accent), 0 20px 60px rgba(0,0,0,0.7);
  border-radius: 20px;
  object-fit: cover;
}

/* ── CONTACT ──────────────────────────── */
#contact { background: var(--bg-secondary); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; margin-top: 1.5rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-item strong { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 0.25rem; }
.contact-item p { font-size: 0.875rem; color: var(--text-secondary); }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.75rem 1rem;
  color: var(--text-primary); font-family: 'Inter', sans-serif; font-size: 0.9rem;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.form-group select option { background: var(--bg-card); }
.form-success {
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3);
  color: #86efac; border-radius: var(--radius-sm); padding: 0.75rem 1rem;
  font-size: 0.875rem; text-align: center;
}

/* ── FOOTER ───────────────────────────── */
footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem;
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center;
}
.footer-left p { font-size: 0.875rem; color: var(--text-secondary); margin-top: 0.4rem; }
.footer-location { font-size: 0.8rem !important; color: var(--text-muted) !important; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.footer-links a { font-size: 0.875rem; color: var(--text-secondary); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-light); }
.footer-copy { font-size: 0.78rem; color: var(--text-muted); }

/* ── SCROLL ANIMATIONS ───────────────── */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ───────────────────────── */
@media (max-width: 900px) {
  #hero { flex-direction: column; text-align: center; padding-top: 7rem; }
  .hero-content { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image-wrap { width: 280px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-images { max-width: 400px; margin: 0 auto 5rem; }
  .skills-grid { grid-template-columns: repeat(2,1fr); }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-primary); border-bottom: 1px solid var(--border); padding: 1rem 1.5rem; gap: 1rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .skills-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .workspace-imgs { grid-template-columns: 1fr; }
}
