/* Custom styles for Bhargav Parmar's Portfolio */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* Root variables */
:root {
  --primary-color: #3273dc;
  --secondary-color: #363636;
  --text-color: #4a4a4a;
  --light-bg: #f8f9fa;
  --border-color: #e1e5e9;
}

/* Global styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

/* Typography */
.is-family-secondary {
  font-family: 'Playfair Display', Georgia, serif !important;
}

/* Kubestronaut logo styling */
.kubestronaut-logo {
  height: 1em;
  width: auto;
  margin-left: 0.2rem;
  vertical-align: middle;
  display: inline-block;
}

/* Navbar customization */
.navbar {
  background-color: #fff;
  box-shadow: none;
  border: none;
  border-bottom: 1px solid var(--border-color);
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
}

/* Add top margin to main content to account for fixed navbar */
.section.container {
  margin-top: 0px;
}

.navbar-brand .navbar-item {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

.navbar-brand .navbar-item:hover {
  color: var(--primary-color);
}

.navbar-menu .navbar-item {
  font-weight: 500;
  color: var(--text-color);
  transition: color 0.3s ease;
  position: relative;
}

.navbar-menu .navbar-item:hover {
  color: var(--primary-color);
}

.navbar-menu .navbar-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-menu .navbar-item:hover::after {
  width: 80%;
}

/* Hero section */
.title.is-size-2 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.title.is-size-4 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.content p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.content a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.content a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Buttons */
.button {
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.button.is-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.button.is-primary:hover {
  background-color: #2366d1;
  border-color: #2366d1;
}

/* Image styling */
.image img {
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.image img:hover {
  transform: scale(1.02);
}

/* Content sections */
.is-size-5 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.content ul li {
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

.content ul li a {
  color: var(--text-color);
  transition: color 0.3s ease;
}

.content ul li a:hover {
  color: var(--primary-color);
}

.is-family-monospace {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-size: 0.9rem;
}

/* Footer */
.section[style*="background-color: hsl(0, 0%, 96%)"] {
  background-color: var(--light-bg) !important;
  border-top: 1px solid var(--border-color);
}

.footer-section .column p a {
  color: var(--text-color);
  transition: color 0.3s ease;
}

.footer-section .column p a:hover {
  color: var(--primary-color);
}

/* Newsletter section */
.has-text-primary {
  color: var(--primary-color) !important;
}

/* Mobile navbar improvements */
@media screen and (max-width: 1023px) {
  .navbar-menu {
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 0 0 8px 8px;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
  }
  
  .navbar-menu.is-active {
    display: block !important;
  }
  
  .navbar-menu .navbar-end {
    flex-direction: column;
    align-items: stretch;
  }
  
  .navbar-menu .navbar-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
  }
  
  .navbar-menu .navbar-item:last-child {
    border-bottom: none;
  }
  
  .navbar-menu .navbar-item:hover {
    background-color: #f8f9fa;
  }
  
  /* Burger animation */
  .navbar-burger.is-active span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }
  
  .navbar-burger.is-active span:nth-child(2) {
    opacity: 0;
  }
  
  .navbar-burger.is-active span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .title.is-size-2 {
    font-size: 2.5rem;
  }
  
  .title.is-size-4 {
    font-size: 1.25rem;
  }
  
  .content p {
    font-size: 1rem;
  }
  
  .navbar-brand .navbar-item {
    font-size: 1.25rem;
  }
  
  /* Mobile hero section adjustments */
  .columns.is-vcentered {
    flex-direction: column;
  }
  
  .column.is-7 {
    order: 2;
    margin-top: 1rem;
  }
  
  .column.is-4.is-hidden-mobile {
    order: 1;
    display: block !important;
  }
  
  .column.is-5.is-hidden-tablet {
    display: none !important;
  }
  
  /* Mobile image sizing */
  .image.is-256x256 img {
    width: 250px !important;
    height: 250px !important;
  }
  
  /* Mobile buttons */
  .buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .buttons .button {
    margin-bottom: 0.5rem;
    justify-content: center;
  }
}

@media screen and (max-width: 480px) {
  .title.is-size-2 {
    font-size: 2rem;
  }
  
  .buttons .button {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
  
  /* Extra small mobile adjustments */
  .navbar-brand .navbar-item {
    font-size: 1.1rem;
  }
  
  .image.is-256x256 img {
    width: 200px !important;
    height: 200px !important;
  }
  
  .content p {
    font-size: 0.95rem;
  }
  
  /* Mobile content sections */
  .columns.is-multiline .column.is-6 {
    margin-bottom: 2rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  animation: fadeInUp 0.6s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2366d1;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .navbar,
  .buttons,
  .section[style*="background-color: hsl(0, 0%, 96%)"] {
    display: none;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .title {
    page-break-after: avoid;
  }
}

.skill-list {
  list-style: none;
  padding-left: 0;
  margin-top: 0.25rem;
  /* margin-left: -12px; */
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;               /* space between logo and text */
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.skill-logo {
  height: 18px;              /* consistent small logo size */
  width: auto;
  vertical-align: middle;
  display: inline-block;
}

/* Make the anchor text slightly larger & inherit Bulma sizing if needed */
.skill-item a, .skill-item span {
  font-size: 0.95rem;
  color: inherit;
  text-decoration: none;
}

/* On very small screens increase gap a bit for touch */
@media (max-width: 480px) {
  .skill-item { gap: 0.5rem; }
  .skill-logo { height: 16px; }
}

.cert-list {
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0;
}
.cert-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.cert-logo {
  height: 20px;
  width: auto;
  vertical-align: middle;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;            /* more space between logo and text */
  margin-bottom: 0.8rem;
}

.skill-logo {
  height: 28px;           /* bigger logos */
  width: auto;
  vertical-align: middle;
}

.skill-item a,
.skill-item span {
  font-size: 1.05rem;     /* bigger text */
  font-weight: 500;       /* make text a little bolder */
  color: inherit;
  text-decoration: none;
}

.skill-item a:hover {
  text-decoration: underline; /* optional: underline on hover */
}


/* ensure button group stays centered */
.buttons.is-centered { justify-content: center; }

/* make buttons a bit tighter and visually balanced */
.buttons .button { margin: 0 0.4rem; }

/* smooth scroll for in-page anchors */
html { scroll-behavior: smooth; }

/* prevent anchor overlap if you have fixed navbar (adjust height if needed) */
html { scroll-padding-top: 72px; }