/* Bootstrap Studio Portfolio Template Styles */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  width: 100%;
}

body {
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

/* Main content area */
.page {
  flex: 1;
  display: block;
  min-height: calc(100vh - 200px); /* Account for navbar and footer */
}

/* Normal container behavior */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Navbar container - edge to edge */
.navbar .container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.navbar-brand {
  padding-left: 1rem !important;
}

.navbar-nav {
  padding-right: 1rem !important;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.5rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* Navigation */
.navbar {
  background: #f8f9fa !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  padding: 0.5rem 0 !important;
  border-bottom: 1px solid #dee2e6 !important;
  margin: 0 !important;
}

.navbar .container {
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  position: relative !important;
  padding: 0.5rem 0 !important;
  margin: 0 !important;
}

.navbar-brand {
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  color: #333 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-right: 1rem !important;
}

.navbar-brand:hover {
  color: #007bff !important;
  transform: translateY(-1px) !important;
}

.navbar-avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid rgba(0, 123, 255, 0.2) !important;
  transition: all 0.3s ease !important;
  margin-right: 0.75rem !important;
}

.navbar-brand:hover .navbar-avatar {
  border-color: #007bff !important;
  transform: scale(1.05) !important;
}

/* Desktop: horizontal nav - only on large screens */
@media (min-width: 992px) {
  .navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    margin: 0 !important;
    gap: 0.5rem !important;
  }

  /* Desktop: ensure collapse is visible */
  .navbar-collapse {
    display: flex !important;
  }
}

.navbar-nav .nav-link {
  color: #333 !important;
  font-weight: 500 !important;
  padding: 0.35rem 1rem !important;
  transition: color 0.3s ease !important;
  margin: 0 0.25rem !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #007bff !important;
}

/* Navbar Toggler Styling */
.navbar-toggler {
  display: none !important;
  border: 2px solid rgba(0, 0, 0, 0.2) !important;
  border-radius: 6px !important;
  padding: 0.5rem 0.75rem !important;
  background: rgba(255, 255, 255, 0.9) !important;
  min-width: 44px !important;
  min-height: 44px !important;
  transition: all var(--transition-duration, 0.3s) ease !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.navbar-toggler:focus {
  outline: 2px solid #007bff !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

.navbar-toggler:hover {
  background: rgba(255, 255, 255, 1) !important;
  border-color: rgba(0, 0, 0, 0.3) !important;
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 33, 33, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

/* Keyboard navigation support */
.navbar-nav .nav-link:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5) !important;
  outline-offset: 2px !important;
  border-radius: 4px !important;
}

/* Mobile responsive - show toggle and make collapsible */
@media (max-width: 991px) {
  .navbar {
    padding: 0.5rem 0 !important;
  }

  .navbar .container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Ensure brand and toggler stay in same row - force horizontal */
  .navbar-brand {
    flex: 0 1 auto !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    max-width: calc(100% - 60px) !important;
    order: 1 !important;
  }

  .navbar-brand span {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .navbar-toggler {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    margin-top: 0 !important;
    width: 44px !important;
    height: 44px !important;
    order: 2 !important;
  }

  /* Hide collapse by default - Bootstrap will show it */
  .navbar-collapse:not(.show) {
    display: none !important;
  }

  /* Let Bootstrap handle collapse completely */
  .navbar-collapse {
    width: 100% !important;
    flex-basis: 100% !important;
    flex-grow: 1 !important;
    flex-shrink: 1 !important;
    margin-top: 1rem !important;
    clear: both !important;
    order: 3 !important;
  }

  /* Bootstrap will handle show/hide - just ensure proper display when shown */
  .navbar-collapse.show {
    display: block !important;
  }

  .navbar-nav {
    flex-direction: column !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 !important;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0 !important;
    text-align: center !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #007bff;
  color: white;
}

.btn-primary:hover {
  background-color: #0056b3;
  color: white;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #545b62;
  color: white;
}

/* Cards */
.card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 2rem;
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem 0.5rem 0 0;
}

.card-body {
  padding: 1.5rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Layout - Override for better centering */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
}

.col {
  flex: 1;
  padding: 0 0.75rem;
}

.col-md-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.col-md-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

.col-lg-5 {
  flex: 0 0 41.666667%;
  max-width: 41.666667%;
}

.offset-lg-1 {
  margin-left: 8.333333%;
}

@media (max-width: 768px) {
  .col-md-4,
  .col-md-6,
  .col-lg-5 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .offset-lg-1 {
    margin-left: 0;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: #f8f9fa;
}

/* Footer */
.page-footer,
.footer {
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
  color: #212529;
  margin: 0 !important;
  margin-top: auto !important; /* Push footer to bottom */
  width: 100%;
  padding: 1rem 0 !important;
  border-top: 1px solid #dee2e6;
}

/* Footer flag banner - hidden by default, shown in pride theme */
.footer-flag-banner {
  display: none;
}

.footer-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.75rem;
  padding: 0 1rem;
  box-sizing: border-box;
}

.footer-row:last-child {
  margin-bottom: 0;
}

.footer-copyright {
  text-align: center;
  margin: 0;
  font-size: 0.9rem;
}

.page-footer .text-body-secondary {
  color: #6c757d !important;
}

.page-footer a {
  transition: color 0.2s ease;
}

.page-footer a:hover {
  color: #212529 !important;
}

.footer-badge-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-badge-link {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-badge {
  height: auto;
  max-width: 180px;
  width: 100%;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.85;
  display: block;
}

.footer-badge-link:hover .footer-badge,
.footer-badge-link:focus .footer-badge {
  transform: scale(1.05);
  opacity: 1;
}

.footer-badge-link.always-enabled {
  cursor: default;
  opacity: 0.9;
}

.footer-badge-link.always-enabled:hover .footer-badge {
  transform: none;
  opacity: 0.9;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  flex-wrap: wrap;
  padding: 0 1rem;
  box-sizing: border-box;
}

.footer-nav-link {
  color: #6c757d !important;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s ease;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.footer-nav-link:hover {
  color: #212529 !important;
}

.footer-nav-link.active {
  color: #212529 !important;
  font-weight: 600;
}

.footer p {
  margin: 0;
}

/* Utilities */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.mb-4 {
  margin-bottom: 2rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}

.mt-4 {
  margin-top: 2rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-2 {
  margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .navbar {
    padding: 0.75rem 0;
  }

  .navbar-brand {
    font-size: 1.5rem;
  }

  .navbar-nav {
    flex-direction: column;
    margin-top: 1rem;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    text-align: center;
    border-radius: 15px;
  }

  .navbar-toggler {
    margin-top: 0 !important;
  }
  
  .footer-row {
    margin-bottom: 1rem;
    padding: 0 0.75rem;
  }
  
  .footer-nav {
    gap: 0.5rem;
    padding: 0 0.5rem;
    justify-content: center;
  }
  
  .footer-nav-link {
    font-size: 0.85rem;
    padding: 0.2rem 0.4rem;
    white-space: normal;
    word-break: break-word;
    text-align: center;
  }
  
  .footer-badge {
    max-width: 150px;
  }
  
  .footer-nav-migration {
    padding: 0 0.5rem;
  }
  
  .footer-nav-link-migration {
    white-space: normal;
    word-break: break-word;
    text-align: center;
  }
}

/* Bootstrap Studio Portfolio Template Styles */

/* Portfolio Block Styles */
.portfolio-block {
  padding: 60px 0;
  position: relative;
  width: 100%;
}

/* Home page specific styles */
.block-intro {
  padding: 80px 0 60px 0;
  text-align: center;
}

.block-intro .avatar {
  margin: 0 auto 2rem auto;
  display: block;
}

.block-intro .about-me {
  max-width: 800px;
  margin: 0 auto;
}

.block-intro .about-me p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.skills {
  background-color: #f8f9fa;
  padding: 80px 0;
}

.skills .heading {
  text-align: center;
  margin-bottom: 3rem;
}

.skills .heading h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.skills .heading span {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  display: block;
}

.website {
  padding: 80px 0;
}

.portfolio-block.block-intro {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.portfolio-block.block-intro .avatar {
  margin: 0 auto 30px;
  display: block;
  border-radius: 50%;
  width: 200px;
  height: 200px;
  background-size: cover;
  background-position: center;
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-block.block-intro .about-me {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  line-height: 1.8;
  padding: 0 20px;
}

.portfolio-block.block-intro .about-me p {
  margin-bottom: 30px;
}

.portfolio-block.skills {
  background-color: #f8f9fa;
}

.portfolio-block.skills .heading {
  text-align: center;
  margin-bottom: 60px;
  padding: 0 20px;
}

.portfolio-block.skills .heading h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: #333;
  font-weight: 700;
}

.portfolio-block.skills .heading span {
  font-size: 1.2rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  display: block;
  line-height: 1.6;
}

.portfolio-block.website {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.portfolio-block.website.gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Special Skill Items */
.special-skill-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.special-skill-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: rgba(102, 126, 234, 0.2);
}

.special-skill-item .card-header {
  background: transparent;
  border: none;
  padding: 0 0 1.5rem 0;
  flex-shrink: 0;
}

.special-skill-item .card-header i {
  font-size: 2.5rem;
  color: #667eea;
  margin-bottom: 0;
}

.special-skill-item .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.special-skill-item .card-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #333;
  font-weight: 600;
}

.special-skill-item .card-text {
  color: #666;
  line-height: 1.6;
  font-size: 1rem;
  flex-grow: 1;
}

/* Portfolio Laptop Mockup */
.portfolio-laptop-mockup {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
}

.portfolio-laptop-mockup .screen {
  background: #333;
  border-radius: 10px 10px 0 0;
  padding: 20px;
  position: relative;
}

.portfolio-laptop-mockup .screen-content {
  background-size: cover;
  background-position: center;
  height: 250px;
  border-radius: 5px;
}

.portfolio-laptop-mockup .keyboard {
  background: #333;
  height: 20px;
  border-radius: 0 0 10px 10px;
  margin-top: -5px;
}

/* Buttons */
.btn-outline-primary {
  color: white;
  border-color: white;
  border-width: 2px;
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: white;
  color: #667eea;
  transform: translateY(-2px);
}

.btn-outline-secondary {
  color: white;
  border-color: white;
  border-width: 2px;
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  background-color: white;
  color: #667eea;
  transform: translateY(-2px);
}

/* Website Section */
.portfolio-block.website .text {
  padding: 0 20px;
}

.portfolio-block.website .text h3 {
  font-size: 2.8rem;
  margin-bottom: 25px;
  font-weight: 700;
}

.portfolio-block.website .text p {
  font-size: 1.3rem;
  margin-bottom: 35px;
  opacity: 0.95;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .portfolio-block {
    padding: 60px 0;
  }

  .portfolio-block.block-intro .avatar {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
  }

  .portfolio-block.block-intro .about-me {
    font-size: 1rem;
    padding: 0 15px;
  }

  .portfolio-block.skills .heading {
    margin-bottom: 40px;
    padding: 0 15px;
  }

  .portfolio-block.skills .heading h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

  .portfolio-block.skills .heading span {
    font-size: 1rem;
  }

  .portfolio-block.website .text {
    padding: 0 15px;
    text-align: center;
  }

  .portfolio-block.website .text h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
  }

  .portfolio-block.website .text p {
    font-size: 1.1rem;
    margin-bottom: 25px;
  }

  .special-skill-item {
    margin-bottom: 15px;
    padding: 20px 15px;
  }

  .special-skill-item .card-header i {
    font-size: 2rem;
  }

  .special-skill-item .card-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }

  .special-skill-item .card-text {
    font-size: 0.9rem;
  }

  .btn-outline-primary,
  .btn-outline-secondary {
    padding: 10px 25px;
    font-size: 0.9rem;
  }

  .portfolio-laptop-mockup {
    max-width: 300px;
    margin-top: 30px;
  }

  .portfolio-laptop-mockup .screen-content {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .portfolio-block {
    padding: 40px 0;
  }

  .portfolio-block.block-intro .avatar {
    width: 120px;
    height: 120px;
  }

  .portfolio-block.skills .heading h2 {
    font-size: 1.8rem;
  }

  .portfolio-block.website .text h3 {
    font-size: 1.8rem;
  }

  .special-skill-item {
    padding: 25px 15px;
  }
}
