/* Root variables */
:root {
  --primary-accent: #F15C35;
  --secondary-accent: #EECDC1;
  --dark-bg: #1C1A17;
  --dark-bg-alt: #3B2C24;
  --text-primary: #FFFFFF;
  --text-secondary: #EECDBE;
  --glassmorphism-bg: rgba(255, 255, 255, 0.08);
  --glassmorphism-border: rgba(255, 255, 255, 0.15);
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  --transition: all 0.3s ease;
}

/* ============================================
   GLOBAL STYLES & VARIABLES
   ============================================ */

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html, body {
  width: 100%;
  overflow-x: hidden;
  height: 100%;
}

body {
  background: linear-gradient(180deg, #1C1A17 0%, #3B2C24 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-secondary);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(180deg, var(--dark-bg) 0%, rgba(28, 26, 23, 0.95) 100%);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--glassmorphism-border);
  padding: 12px 20px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: relative;
}

.nav-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-branding img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  transition: var(--transition);
  cursor: pointer;
}

.nav-branding img:hover {
  transform: scale(1.2);
  box-shadow: 0 0 20px rgba(241, 92, 53, 0.5);
}

.nav-branding > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-accent);
  font-family: var(--font-primary);
  letter-spacing: 0.5px;
}

.nav-slogan {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-style: italic;
  margin: 0;
  letter-spacing: 0.3px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 24px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-accent);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-accent);
  border-radius: 1px;
}

.nav-profile {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--primary-accent);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

main {
  padding: 120px 20px 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

@media (max-width: 968px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.hero-name {
  background: linear-gradient(135deg, var(--text-primary), var(--secondary-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: 1.3rem;
  color: var(--primary-accent);
  font-weight: 600;
  margin-bottom: 4px;
}

.hero-slogan {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 16px;
}

.hero-bio {
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 20px 0;
  font-size: 0.95rem;
  text-align: justify;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--primary-accent);
  color: #fff;
  box-shadow: 0 0 12px rgba(241, 92, 53, 0.5);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 24px rgba(241, 92, 53, 0.7);
  background: color-mix(in srgb, var(--primary-accent) 90%, black 10%);
}

.btn-secondary {
  background: var(--glassmorphism-bg);
  border: 1px solid var(--glassmorphism-border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--primary-accent);
  border-color: var(--primary-accent);
}

.hero-image {
  display: flex;
  justify-content: center;
}

.profile-circle {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-accent);
  box-shadow: 0 0 30px rgba(241, 92, 53, 0.3);
}

.profile-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 60px 0 80px;
}

@media (max-width: 768px) {
  .stats-container {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--glassmorphism-bg);
  border: 1px solid var(--glassmorphism-border);
  backdrop-filter: blur(12px);
  padding: 28px;
  border-radius: 14px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-accent);
  transform: translateY(-4px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-accent);
  margin: 0 0 8px 0;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 500;
}

/* ============================================
   EXPERIENCE SECTION
   ============================================ */

.experience {
  margin: 80px 0;
}

.experience h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.experience h2::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
  border-radius: 2px;
  margin-top: 12px;
}

.experience-card {
  background: var(--glassmorphism-bg);
  border: 1px solid var(--glassmorphism-border);
  backdrop-filter: blur(12px);
  padding: 28px;
  border-radius: 14px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.experience-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-accent);
  transform: translateX(8px);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  gap: 16px;
}

@media (max-width: 640px) {
  .experience-header {
    flex-direction: column;
    gap: 4px;
  }
}

.experience-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.experience-date {
  font-size: 0.85rem;
  color: var(--primary-accent);
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
}

.company {
  font-size: 0.95rem;
  color: var(--secondary-accent);
  font-weight: 600;
  margin: 0 0 12px 0;
}

.experience-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.experience-list li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.experience-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary-accent);
  font-weight: bold;
}

/* ============================================
   PORTFOLIO BOOKMARK
   ============================================ */

.portfolio-bookmark {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
}

.bookmark-icon {
  width: 70px;
  height: 70px;
  border-radius: 14px 0 0 14px;
  overflow: hidden;
  border: 2px solid var(--primary-accent);
  cursor: pointer;
  background: var(--primary-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: -4px 8px 24px rgba(241, 92, 53, 0.3);
}

.bookmark-icon:hover {
  transform: scale(1.05);
  box-shadow: -4px 12px 32px rgba(241, 92, 53, 0.5);
}

.bookmark-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-popup {
  display: none;
  position: absolute;
  right: 75px;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  padding: 16px;
  border-radius: 14px;
  background: var(--glassmorphism-bg);
  border: 1px solid var(--glassmorphism-border);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  visibility: hidden;
  box-shadow: -8px 12px 40px rgba(0, 0, 0, 0.4);
}

.portfolio-popup.active {
  display: block;
  opacity: 1;
  visibility: visible;
}

.portfolio-bookmark:hover .portfolio-popup {
  display: block;
  opacity: 1;
  visibility: visible;
}

/* ============================================
   FLOATING BUTTONS
   ============================================ */

.getquote-float {
  position: fixed;
  left: 30px;
  bottom: 30px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--primary-accent);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(241, 92, 53, 0.6);
  font-weight: 700;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  transition: var(--transition);
  outline: none;
  text-align: center;
  padding: 0.5rem;
}

.getquote-float:hover,
.getquote-float:focus {
  transform: scale(1.12);
  box-shadow: 0 0 32px rgba(241, 92, 53, 0.8);
  background: color-mix(in srgb, var(--primary-accent) 85%, black 15%);
  text-decoration: none;
}

.whatsapp-float {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.6);
  font-weight: 700;
  transition: var(--transition);
  outline: none;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  transform: scale(1.12);
  box-shadow: 0 0 32px rgba(37, 211, 102, 0.8);
  text-decoration: none;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-bg-alt) 100%);
  color: var(--text-secondary);
  padding: 60px 20px 20px;
  border-top: 1px solid var(--glassmorphism-border);
  margin-top: 80px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 30px;
}

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand .logo {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-brand .logo img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  transition: var(--transition);
  cursor: pointer;
}

.footer-brand .logo img:hover {
  transform: scale(1.2);
  box-shadow: 0 0 20px rgba(241, 92, 53, 0.4);
}

.footer-brand .logo > div {
  display: flex;
  flex-direction: column;
}

.footer-brand .logo div > div:first-child {
  font-weight: 700;
  color: var(--text-primary);
}

.tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--primary-accent);
  transform: scale(1.1);
}

.footer-socials svg {
  width: 20px;
  height: 20px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-nav h4 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1rem;
  position: relative;
  padding-bottom: 8px;
}

.footer-nav h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 3px;
  background: var(--primary-accent);
  border-radius: 2px;
}

.nav-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-grid a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.nav-grid a:hover {
  color: var(--primary-accent);
  padding-left: 4px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact h4 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1rem;
  position: relative;
  padding-bottom: 8px;
}

.footer-contact h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 3px;
  background: var(--primary-accent);
  border-radius: 2px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.9rem;
}

.contact-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: var(--primary-accent);
}

.contact-item a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--primary-accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-secondary);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

/* ============================================
   GLASS CARDS
   ============================================ */

.glass-card {
  background: var(--glassmorphism-bg);
  border: 1px solid var(--glassmorphism-border);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 20px;
}

/* ============================================
   PAGE TITLE & SECTIONS
   ============================================ */

.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 16px 0 12px 0;
  color: var(--text-primary);
}

.underline-accent {
  height: 4px;
  width: 120px;
  background: linear-gradient(90deg, var(--primary-accent), var(--secondary-accent));
  border-radius: 2px;
}

/* ============================================
   AVAILABILITY INDICATOR
   ============================================ */

.availability-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--glassmorphism-bg);
  border: 1px solid var(--glassmorphism-border);
  border-radius: 20px;
  width: fit-content;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-accent);
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 49% {
    opacity: 1;
    box-shadow: 0 0 8px rgba(241, 92, 53, 0.8);
  }
  50%, 100% {
    opacity: 0.4;
    box-shadow: 0 0 4px rgba(241, 92, 53, 0.4);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  body.nav-open .nav-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-bg);
    padding: 20px;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border-top: 1px solid var(--glassmorphism-border);
  }

  body.nav-open .nav-menu li {
    text-align: center;
  }

  body.nav-open .nav-menu .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  body.nav-open .nav-menu .nav-link:last-child {
    border-bottom: none;
  }

  /* Hamburger animation to X */
  body.nav-open .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

  body.nav-open .hamburger span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .portfolio-bookmark {
    right: -20px;
  }

  .bookmark-icon {
    width: 60px;
    height: 60px;
  }

  .portfolio-popup {
    right: 65px;
    width: 280px;
  }

  .getquote-float,
  .whatsapp-float {
    width: 60px;
    height: 60px;
    font-size: 0.7rem;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .stats-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .nav-slogan {
    display: none;
  }

  .portfolio-bookmark {
    display: none;
  }

  .getquote-float {
    left: 12px;
    width: 56px;
    height: 56px;
    bottom: 80px;
  }

  .whatsapp-float {
    right: 12px;
    width: 56px;
    height: 56px;
    bottom: 20px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* About page slogan styling */
.about-slogan {
  color: var(--primary-accent);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Ensure header + footer logos always enlarge smoothly (strong specificity) */
.nav-branding img,
.footer-brand .logo img {
  transform-origin: center;
  will-change: transform, box-shadow;
  transition: transform 220ms cubic-bezier(.2,.9,.2,1), box-shadow 220ms cubic-bezier(.2,.9,.2,1);
  display: inline-block;
}

/* Hover / focus (mouse + keyboard) */
.nav-branding img:hover,
.nav-branding img:focus,
.nav-branding img:focus-visible,
.footer-brand .logo img:hover,
.footer-brand .logo img:focus,
.footer-brand .logo img:focus-visible {
  transform: scale(1.18) !important;
  box-shadow: 0 10px 30px rgba(241, 92, 53, 0.45) !important;
}

/* Slightly smaller when pressed */
.nav-branding img:active,
.footer-brand .logo img:active {
  transform: scale(1.12) !important;
}

/* Visible focus ring for keyboard users */
.nav-branding img:focus-visible,
.footer-brand .logo img:focus-visible {
  outline: 3px solid rgba(241,92,53,0.12);
  outline-offset: 4px;
  border-radius: 8px;
}

/* Hide any stray images below footer */
main ~ img,
footer ~ img,
footer ~ div > img {
  display: none !important;
}

/* Ensure footer is the last visible element */
footer {
  margin-bottom: 0;
  padding-bottom: 20px;
}