/* ================================================
   PORTFOLIO CSS — Full Stack Java Developer
   ================================================ */

:root {
  --bg: #050a0e;
  --surface: #0c1419;
  --surface2: #121c23;
  --accent: #00c9ff;
  --accent2: #0066ff;
  --text: #e8f4f8;
  --muted: #6b8a9a;
  --border: #1a2e3a;
  --glow: rgba(0, 201, 255, 0.15);
}

/* ===================== RESET & BASE ===================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ===================== NAV ===================== */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  padding: 1.2rem 0; transition: all 0.4s ease;
}
nav.scrolled {
  background: rgba(5, 10, 14, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.4rem;
  background: linear-gradient(135deg, #00c9ff, #0066ff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em; text-decoration: none;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  color: var(--muted); font-size: 0.9rem; font-weight: 500;
  text-decoration: none; letter-spacing: 0.05em; text-transform: uppercase;
  transition: color 0.3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px; background: var(--accent); transition: width 0.3s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); transition: all 0.3s; }

/* ===================== MOBILE MENU ===================== */
.mobile-menu {
  display: none; position: fixed; top: 0; right: 0; bottom: 0; width: 280px;
  background: var(--surface); border-left: 1px solid var(--border);
  padding: 5rem 2rem 2rem; flex-direction: column; gap: 0.5rem;
  z-index: 99; transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  padding: 0.9rem 1rem; color: var(--muted); text-decoration: none;
  font-weight: 500; border-radius: 8px; transition: all 0.3s; font-size: 1rem;
}
.mobile-menu a:hover { background: var(--surface2); color: var(--accent); }
.menu-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6); z-index: 98; backdrop-filter: blur(4px);
}
.menu-overlay.open { display: block; }

/* ===================== HERO ===================== */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(0,102,255,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(0,201,255,0.08) 0%, transparent 60%);
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,201,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,201,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 1rem 2rem 0;
  position: relative; z-index: 2;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem; border: 1px solid rgba(0,201,255,0.3); border-radius: 100px;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 2rem; background: rgba(0,201,255,0.05);
  opacity: 0; transform: translateY(20px);
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s infinite;
}
.hero-name {
  font-size: clamp(2rem, 6vw, 5.5rem); font-weight: 800; line-height: 1;
  letter-spacing: -0.03em; color: var(--text); opacity: 0; transform: translateY(30px);
}
.hero-title {
  font-size: clamp(1.2rem, 3vw, 1.8rem); font-weight: 600; color: var(--accent);
  margin: 1rem 0 1.5rem; opacity: 0; transform: translateY(30px);
}
.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.15rem); color: var(--muted); max-width: 540px;
  font-weight: 300; line-height: 1.8; opacity: 0; transform: translateY(30px);
}
.hero-cta {
  display: flex; gap: 1rem; margin-top: 3rem; flex-wrap: wrap;
  opacity: 0; transform: translateY(30px);
}
.btn-primary {
  padding: 0.85rem 2rem; background: linear-gradient(135deg, #00c9ff, #0066ff);
  color: white; font-weight: 600; border: none; border-radius: 8px; cursor: pointer;
  font-family: 'Syne', sans-serif; font-size: 0.9rem; letter-spacing: 0.03em;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
  transition: all 0.3s; box-shadow: 0 8px 30px rgba(0,201,255,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,201,255,0.4); }
.btn-outline {
  padding: 0.85rem 2rem; background: transparent; color: var(--text); font-weight: 600;
  border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
  font-family: 'Syne', sans-serif; font-size: 0.9rem; letter-spacing: 0.03em;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
  transition: all 0.3s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.hero-stats {
  display: flex; gap: 3rem; margin-top: 5rem; opacity: 0; transform: translateY(20px);
}
.stat-num {
  font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 800;
  background: linear-gradient(135deg, #00c9ff, #0066ff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--muted); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  animation: floatAnim 2.5s ease-in-out infinite;
}
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--accent), transparent); }

/* ===================== SECTIONS ===================== */
section { padding: 7rem 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-label {
  font-size: 1.5rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-label::before { content: ''; display: block; width: 30px; height: 1px; background: var(--accent); }
.section-title {
  font-size: clamp(3rem, 3vw, 3.5rem); font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 1rem; color: var(--text);
}
.section-sub { color: var(--muted); max-width: 500px; }

/* ===================== ABOUT ===================== */
#about { background: var(--surface); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-image-wrap { position: relative; }
.about-img-placeholder {
  width: 70%; aspect-ratio: 4/5; background: var(--surface2);
  border-radius: 16px; border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; color: var(--muted); font-size: 1.9rem; position: relative; overflow: hidden;
}
.about-img-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(0,201,255,0.08), transparent 60%);
}
.avatar-icon { font-size: 5rem; opacity: 0.3; }
.about-corner {
  position: absolute; bottom: -16px; right: -16px;
  padding: 1.2rem 1.5rem; background: var(--bg);
  border: 1px solid var(--border); border-radius: 12px; text-align: center;
}
.about-corner .num { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; color: var(--accent); }
.about-corner .lbl { font-size: 0.75rem; color: var(--muted); }
.about-text p { color: var(--muted); margin-bottom: 1.2rem; font-size: 1.05rem; line-height: 1.9; }
.tech-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.chip {
  padding: 0.4rem 0.9rem; border: 1px solid var(--border); border-radius: 100px;
  font-size: 0.8rem; color: var(--muted); background: var(--surface2); transition: all 0.3s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* ===================== SKILLS ===================== */
.skills-categories {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; margin-top: 3.5rem;
}
.skill-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem; transition: all 0.4s; position: relative; overflow: hidden;
}
.skill-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.skill-card:hover { border-color: rgba(0,201,255,0.3); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.skill-card:hover::before { opacity: 1; }
.skill-cat-icon { font-size: 2rem; margin-bottom: 1rem; }
.skill-cat-title {
  font-family: 'Syne', sans-serif; font-weight: 700; margin-bottom: 1.5rem;
  color: var(--text); letter-spacing: 0.03em; text-transform: uppercase; font-size: 0.85rem;
}
.skill-items { display: flex; flex-direction: column; gap: 0.9rem; }
.skill-row { display: flex; justify-content: space-between; margin-bottom: 0.4rem; }
.skill-name { font-size: 0.9rem; color: var(--text); }
.skill-pct { font-size: 0.8rem; color: var(--accent); font-weight: 600; }
.skill-bar { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; }
.skill-fill {
  height: 100%; border-radius: 2px; background: linear-gradient(90deg, #00c9ff, #0066ff);
  width: 0; transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================== PROJECTS ===================== */
#projects { background: var(--surface); }
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem; margin-top: 3.5rem;
}
.project-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; transition: all 0.4s;
  display: flex; flex-direction: column;
}
.project-card:hover { border-color: rgba(0,201,255,0.3); transform: translateY(-6px); box-shadow: 0 25px 70px rgba(0,0,0,0.5); }
.project-thumb {
  height: 200px; position: relative; overflow: hidden; background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
}
.proj-icon { font-size: 4rem; opacity: 0.3; position: relative; z-index: 1; }
.proj-gradient { position: absolute; inset: 0; }
.proj-overlay {
  position: absolute; inset: 0; background: rgba(5,10,14,0.75);
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; opacity: 0; transition: opacity 0.3s; z-index: 2;
}
.project-card:hover .proj-overlay { opacity: 1; }
.proj-link {
  padding: 0.6rem 1.2rem; border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px; color: white; text-decoration: none;
  font-size: 0.8rem; font-weight: 600; transition: all 0.3s; backdrop-filter: blur(10px);
}
.proj-link:hover { background: var(--accent); border-color: var(--accent); }
.project-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.project-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.1rem; margin-bottom: 0.6rem; color: var(--text); }
.project-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.7; flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.2rem; }
.tag {
  padding: 0.25rem 0.65rem; background: rgba(0,201,255,0.08);
  border: 1px solid rgba(0,201,255,0.2); border-radius: 4px; font-size: 0.75rem; color: var(--accent);
}
.project-links { display: flex; gap: 0.75rem; margin-top: 1.2rem; }
.proj-btn {
  flex: 1; padding: 0.65rem; text-align: center; font-size: 0.82rem; font-weight: 600;
  border-radius: 8px; text-decoration: none; transition: all 0.3s;
  font-family: 'Syne', sans-serif; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
}
.proj-btn.primary {
  background: linear-gradient(135deg, rgba(0,201,255,0.15), rgba(0,102,255,0.15));
  color: var(--accent); border: 1px solid rgba(0,201,255,0.3);
}
.proj-btn.primary:hover { background: linear-gradient(135deg, #00c9ff, #0066ff); color: white; }
.proj-btn.ghost { border: 1px solid var(--border); color: var(--muted); }
.proj-btn.ghost:hover { border-color: var(--muted); color: var(--text); }

/* ===================== EXPERIENCE ===================== */
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.timeline { margin-top: 3.5rem; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 1px; background: linear-gradient(to bottom, var(--accent), transparent);
}
.timeline-item { padding: 0 0 3.5rem 3rem; position: relative; }
.timeline-dot {
  position: absolute; left: -6px; top: 4px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 12px rgba(0,201,255,0.4);
}
.timeline-date { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.timeline-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--text); margin-bottom: 0.25rem; }
.timeline-org { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.8rem; }
.timeline-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.8; }
.timeline-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.timeline-chip {
  padding: 0.25rem 0.7rem; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 100px; font-size: 0.75rem; color: var(--muted);
}

/* Achievement Cards */
.achievement-cards { display: flex; flex-direction: column; gap: 1rem; margin-top: 3.5rem; }
.achievement-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.4rem 1.5rem; display: flex; align-items: center; gap: 1.2rem;
  transition: all 0.4s; position: relative; overflow: hidden;
}
.achievement-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.achievement-card:hover { border-color: rgba(0,201,255,0.3); transform: translateY(-3px); box-shadow: 0 15px 40px rgba(0,0,0,0.35); }
.achievement-card:hover::before { opacity: 1; }
.ach-icon { font-size: 1.8rem; flex-shrink: 0; }
.ach-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem; margin-bottom: 0.25rem; }
.ach-desc { font-size: 0.85rem; color: var(--muted); }

/* ===================== CONTACT ===================== */
#contact { background: var(--surface); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 5rem; margin-top: 3.5rem; }
.contact-info h3 { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; }
.contact-info p { color: var(--muted); line-height: 1.8; margin-bottom: 2.5rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.contact-icon {
  width: 42px; height: 42px; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.contact-val { font-size: 0.9rem; color: var(--muted); }
.contact-val a { color: inherit; text-decoration: none; transition: color 0.3s; }
.contact-val a:hover { color: var(--accent); }
.social-links { display: flex; gap: 0.75rem; margin-top: 2rem; }
.social-btn {
  width: 42px; height: 42px; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 1rem; color: var(--muted); transition: all 0.3s;
}
.social-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }
.form-group input,
.form-group textarea {
  padding: 0.9rem 1.1rem; background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem; transition: all 0.3s; outline: none; resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,201,255,0.08); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-submit {
  padding: 1rem 2rem; background: linear-gradient(135deg, #00c9ff, #0066ff); color: white;
  font-weight: 700; font-family: 'Syne', sans-serif; font-size: 0.95rem; letter-spacing: 0.03em;
  border: none; border-radius: 10px; cursor: pointer; transition: all 0.3s;
  box-shadow: 0 8px 30px rgba(0,201,255,0.25);
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,201,255,0.4); }

/* ===================== FOOTER ===================== */
footer { padding: 2.5rem 0; border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: 0.85rem; color: var(--muted); }
.footer-copy span { color: var(--accent); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.85rem; color: var(--muted); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent); }
.footer-socials { display: flex; gap: 0.75rem; }
.footer-social-btn {
  width: 34px; height: 34px; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--muted); transition: all 0.3s;
}
.footer-social-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ===================== ANIMATIONS ===================== */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
@keyframes floatAnim {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}
.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-delay-1 { transition-delay: 0.1s; }
.fade-delay-2 { transition-delay: 0.2s; }
.fade-delay-3 { transition-delay: 0.3s; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .exp-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-stats { gap: 2rem; flex-wrap: wrap; }
  .form-row { grid-template-columns: 1fr; }
  .about-image-wrap { max-width: 400px; margin: 0 auto; }
}
@media (max-width: 600px) {
  section { padding: 5rem 0; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-categories { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
