/* ========================================
   CUSTOM STYLES FOR PORTFOLIO
   Clean, Professional Design
   ======================================== */

/* === CLEAN LANDING PAGE === */
#header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  position: relative;
}

/* Subtle overlay */
#header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(18, 214, 64, 0.05) 0%, transparent 70%);
}

/* Clean Hero Text */
#header h1 {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #ffffff;
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
}

#header h1 a {
  color: #ffffff;
  transition: color 0.3s ease;
}

#header h1 a:hover {
  color: #12D640;
}

#header h2 {
  font-size: 24px;
  font-weight: 300;
  color: #cbd5e1;
  position: relative;
  z-index: 2;
}

#header h2 .typing {
  font-weight: 500;
  color: #12D640;
}

/* === CLEAN CARDS === */
.icon-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
}

.icon-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(18, 214, 64, 0.15);
  border-color: rgba(18, 214, 64, 0.3);
}

/* === SECTION TITLES === */
.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  position: relative;
  padding-bottom: 20px;
  color: #ffffff;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #12D640;
  border-radius: 2px;
}

/* === STICKY NAVIGATION === */
.sticky-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(15px);
  padding: 15px 0;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(18, 214, 64, 0.2);
}

.sticky-nav .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.sticky-nav .nav-menu {
  float: none !important;
  text-align: center;
  margin: 0 !important;
}

.sticky-nav .nav-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sticky-nav .nav-menu ul li {
  display: inline-block;
  margin: 0 20px;
}

.sticky-nav .nav-menu ul li a {
  color: #fff !important;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.sticky-nav .nav-menu ul li a span {
  color: #fff !important;
}

.sticky-nav .nav-menu ul li a:hover,
.sticky-nav .nav-menu ul li a:hover span,
.sticky-nav .nav-menu ul li.active a,
.sticky-nav .nav-menu ul li.active a span {
  color: #12D640 !important;
}

/* === NAVIGATION === */
.nav-menu ul li a {
  transition: color 0.3s ease;
}

.nav-menu ul li a:hover {
  color: #12D640 !important;
}

/* === SOCIAL LINKS === */
.social-links a {
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: rgba(18, 214, 64, 0.2);
  border-color: #12D640;
  transform: translateY(-3px);
}

/* === PROJECT CARDS === */
.portfolio-wrap {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.portfolio-wrap:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(18, 214, 64, 0.2);
}

.portfolio-wrap img {
  transition: transform 0.5s ease;
}

.portfolio-wrap:hover img {
  transform: scale(1.05);
}

/* === SKILLS SECTION === */
.services .icon-box img {
  transition: all 0.3s ease;
  filter: grayscale(0.2);
}

.services .icon-box:hover img {
  filter: grayscale(0);
  transform: scale(1.05);
}

/* === EXPERIENCE TIMELINE === */
#experience .icon-box {
  position: relative;
  padding-left: 30px;
}

#experience .icon-box::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #12D640;
  border-radius: 2px;
}

/* === CONTACT SECTION === */
.contact .info-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s ease;
}

.contact .info-box h3 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
}

.contact .info-box p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 5px;
}

.contact .info-box:hover {
  transform: translateY(-3px);
  border-color: rgba(18, 214, 64, 0.3);
  box-shadow: 0 10px 25px rgba(18, 214, 64, 0.1);
}

.contact .info-box i {
  font-size: 32px;
  color: #12D640;
  transition: transform 0.3s ease;
}

.contact .info-box:hover i {
  transform: scale(1.1);
}

/* === SMOOTH SCROLL === */
html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 80px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  #header h1 {
    font-size: 36px;
  }
  
  #header h2 {
    font-size: 18px;
  }
  
  .section-title h2 {
    font-size: 28px;
  }
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #12D640;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0ea832;
}

/* === BADGE STYLES === */
.badge-new {
  display: inline-block;
  background: #12D640;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 10px;
}

/* === ARTICLE CARDS === */
#articles .icon-box {
  border-left: 3px solid #12D640;
}

/* === SPEAKING SECTION === */
#speaking .icon-box {
  background: rgba(18, 214, 64, 0.05);
  border: 1px solid rgba(18, 214, 64, 0.2);
}

#speaking .icon-box:hover {
  background: rgba(18, 214, 64, 0.08);
  border-color: #12D640;
}

/* === FIX: Section Spacing & Header Overlap === */
/* Increase top offset so content isn't hidden behind the fixed header */
section.section-show {
  top: 120px !important;
}

@media (max-width: 768px) {
  section.section-show {
    top: 100px !important;
  }
}

/* === FIX: Navbar Sizing === */
/* Reduce nav link font size to prevent wrapping */
.nav-menu a {
  font-size: 15px !important;
}

/* Ensure social links are right-aligned */
.header-social-links {
  text-align: right;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* === FIX: Hide Hero Content on Non-Home Pages === */
/* When header shrinks (non-home pages), hide everything except the name and nav */
#header.header-top .hero-cta,
#header.header-top .hero-stats,
#header.header-top h2,
#header.header-top p {
  display: none !important;
}

/* Ensure the name stays visible and properly sized */
#header.header-top h1 {
  display: block !important;
  margin: 0;
  font-size: 28px; /* Adjusted size for smaller header */
  line-height: 90px; /* Vertically center in 90px header */
}

/* === FIX: Clean Minimalism on Non-Home Pages === */
/* Hide Name and Social Icons when scrolling or on other pages */
#header.header-top h1,
#header.header-top .header-social-links {
  display: none !important;
}

/* Ensure Nav takes full width or aligns right */
#header.header-top .nav-menu {
  float: right; /* Or flex-end */
  width: 100%;
  margin: 0;
}
#header.header-top .col-lg-6 {
  /* The nav container column needs to span full width if name is gone */
  flex: 0 0 100%;
  max-width: 100%;
}

/* === FIX: Single Nav Bar on Scroll === */
/* Hide the entire Left Column (Name/Intro) when header is compressed */
#header.header-top .container .row > .col-lg-6:first-child {
  display: none !important;
}

/* Expand the Right Column (Nav) to full width */
#header.header-top .container .row > .col-lg-6:last-child {
  flex: 0 0 100%;
  max-width: 100%;
  text-align: center; /* Center the nav if desired, or keep right */
}

/* Ensure Nav is centered or right-aligned as per preference */
/* Current nav style is flex-end (right). If user wants it centered, un-comment line below: */
/* #header.header-top #mainNavigation { justify-content: center !important; } */

/* Hide Social Links specifically */
#header.header-top .header-social-links {
  display: none !important;
}
