/* 
  Premium Professional Personal Portfolio
  Theme: Slate / Electric Blue / Clean Tech
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg-color: #0f172a;        /* Slate 900 */
  --surface-color: #1e293b;   /* Slate 800 */
  --surface-color-light: #334155; /* Slate 700 */
  --text-primary: #f8fafc;    /* Slate 50 */
  --text-secondary: #94a3b8;  /* Slate 400 */
  
  --accent-primary: #0ea5e9;  /* Sky Blue */
  --accent-secondary: #3b82f6; /* Blue */
  --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

/* Background Noise/Grid for Tech Vibe */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: linear-gradient(var(--border-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

/* Navbar */
.navbar-custom {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 1.1rem 0;
  transition: all 0.3s ease;
}

.brand-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #f8fafc 30%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-logo span {
  -webkit-text-fill-color: transparent;
}

.nav-link-custom {
  color: var(--text-secondary) !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  transition: all 0.25s ease;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: var(--text-primary) !important;
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
  transform: scaleX(1);
}

/* Buttons */
.btn-primary-custom {
  background: var(--accent-gradient);
  color: #fff !important;
  border: none;
  padding: 0.75rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(14, 165, 233, 0.4);
}

.btn-outline-custom {
  background: transparent;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.8rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-outline-custom:hover {
  background: var(--surface-color);
  border-color: var(--text-secondary);
}

/* Hero Section */
.hero {
  min-height: 95vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

/* Floating ambient orbs behind hero */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
  animation: float-orb 8s ease-in-out infinite alternate;
}

.hero::before {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(14,165,233,0.18) 0%, transparent 70%);
  top: -120px; left: -100px;
}

.hero::after {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
  bottom: -100px; right: -80px;
  animation-duration: 10s;
  animation-direction: alternate-reverse;
}

.hero .container {
  position: relative;
  z-index: 1;
}

@keyframes float-orb {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.08); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.25);
  color: var(--accent-primary);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2rem;
  animation: badge-fade-in 0.8s ease forwards;
}

@keyframes badge-fade-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge i {
  font-size: 0.55rem;
  color: #22c55e;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title span {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 500;
}

/* Blinking cursor after the hero title */
.hero-title::after {
  content: '|';
  font-weight: 300;
  color: var(--accent-primary);
  animation: blink 1.1s step-end infinite;
  -webkit-text-fill-color: var(--accent-primary);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* General Sections */
section {
  padding: 6rem 0;
}

.section-header {
  margin-bottom: 3rem;
}

.section-number {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  margin-right: 15px;
  font-size: 1.2rem;
}

.section-title {
  display: flex;
  align-items: center;
  font-size: 2rem;
}

.section-title::after {
  content: "";
  display: block;
  height: 1px;
  width: 200px;
  background: var(--border-color);
  margin-left: 20px;
}

/* About Section */
.about-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.about-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

.about-image-wrapper:hover .about-img {
  filter: grayscale(0%);
}

/* Skills/Toolkit */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  align-items: stretch;
  max-width: 900px;
  margin: 0 auto;
}

.skill-card {
  flex: 0 0 160px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  background: var(--surface-color-light);
  box-shadow: 0 10px 20px -5px rgba(14, 165, 233, 0.3);
}

.skill-icon {
  font-size: 2.2rem;
  color: var(--text-primary);
  line-height: 1;
}

.skill-name {
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
}

/* Projects */
.project-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(14, 165, 233, 0.3);
}

.project-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.project-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.project-tech-item {
  font-size: 0.75rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--accent-primary);
  font-weight: 600;
  letter-spacing: 0.05em;
  background: rgba(14, 165, 233, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  color: var(--text-primary);
  font-size: 1.2rem;
  transition: color 0.2s ease;
}

.project-link:hover {
  color: var(--accent-primary);
}

/* Resume CTA */
.resume-cta {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.resume-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: var(--accent-gradient);
}

/* Footer / Contact */
.contact-section {
  padding-bottom: 2rem;
}

.contact-text {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 500px;
  margin-bottom: 2rem;
}

.contact-email {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff !important;
  background: var(--accent-gradient);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 3rem;
  border-radius: 50px;
  margin-bottom: 3rem;
  box-shadow: 0 4px 20px -3px rgba(14, 165, 233, 0.45);
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.contact-email:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 30px -5px rgba(14, 165, 233, 0.65);
  color: #fff;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: var(--text-secondary);
  font-size: 1.5rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
  color: var(--text-primary);
  transform: translateY(-3px);
}

footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.quick-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.quick-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  font-weight: 500;
}

.quick-links a:hover {
  color: var(--accent-primary);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .section-title::after { width: 80px; }
  .skill-card { flex: 0 0 140px; }
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.6);
  color: #fff;
}

/* ==========================================
   SHIMMER EFFECT ON SKILL CARDS
   ========================================== */
.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.06), transparent);
  transition: left 0.5s ease;
}

.skill-card:hover::before {
  left: 160%;
}

/* ==========================================
   GRADIENT TOP BORDER ON NAV WHEN SCROLLED
   ========================================== */
.navbar-custom.scrolled {
  border-bottom: 1px solid rgba(14, 165, 233, 0.2);
  box-shadow: 0 1px 30px rgba(14, 165, 233, 0.08);
}

/* ==========================================
   STAGGER REVEAL DELAYS FOR POLISH
   ========================================== */
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.15s; }
.reveal:nth-child(4) { transition-delay: 0.2s; }

