/* =================================================================
   RESPONSIVE UTILITIES AND LAYOUT
   ================================================================= */

/* Container and Grid System */
.container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

.row {
  margin-left: -15px;
  margin-right: -15px;
}

.col-xs-1,
.col-sm-1,
.col-md-1,
.col-lg-1,
.col-xs-2,
.col-sm-2,
.col-md-2,
.col-lg-2,
.col-xs-3,
.col-sm-3,
.col-md-3,
.col-lg-3,
.col-xs-4,
.col-sm-4,
.col-md-4,
.col-lg-4,
.col-xs-5,
.col-sm-5,
.col-md-5,
.col-lg-5,
.col-xs-6,
.col-sm-6,
.col-md-6,
.col-lg-6,
.col-xs-7,
.col-sm-7,
.col-md-7,
.col-lg-7,
.col-xs-8,
.col-sm-8,
.col-md-8,
.col-lg-8,
.col-xs-9,
.col-sm-9,
.col-md-9,
.col-lg-9,
.col-xs-10,
.col-sm-10,
.col-md-10,
.col-lg-10,
.col-xs-11,
.col-sm-11,
.col-md-11,
.col-lg-11,
.col-xs-12,
.col-sm-12,
.col-md-12,
.col-lg-12 {
  padding-left: 15px;
  padding-right: 15px;
}

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

.site-navbar {
  transition: all 0.3s ease;
}

@media (max-width: 991px) {
  .site-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .site-navbar .navbar-nav {
    margin-top: 10px;
  }

  .site-navbar .navbar-nav > li > a {
    padding: 10px 20px !important;
    color: #333 !important;
  }
}

@media (max-width: 768px) {
  .site-navbar .navbar-nav > li > a {
    padding: 8px 15px !important;
    font-size: 14px;
  }
}

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

.site-hero {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

@media (max-width: 991px) {
  .site-hero {
    background-attachment: scroll;
    padding-top: 80px;
    min-height: 80vh;
  }
}

@media (max-width: 768px) {
  .site-hero {
    padding-top: 60px;
    min-height: 70vh;
  }

  .site-hero .site-heading {
    font-size: 2.5rem !important;
  }

  .site-hero .text-uppercase {
    font-size: 0.9rem !important;
  }
}

@media (max-width: 480px) {
  .site-hero .site-heading {
    font-size: 2rem !important;
  }

  .site-hero .text-uppercase {
    font-size: 0.8rem !important;
  }
}

/* =================================================================
   SECTION SPACING RESPONSIVE
   ================================================================= */

.site-section {
  padding: 80px 0;
}

@media (max-width: 991px) {
  .site-section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .site-section {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  .site-section {
    padding: 30px 0;
  }
}

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

.filters ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.filters ul li {
  padding: 8px 20px;
  margin: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .filters ul li {
    padding: 6px 15px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .filters ul li {
    padding: 5px 12px;
    font-size: 12px;
  }
}

/* Portfolio Grid */
.single-portfolio {
  margin-bottom: 30px;
}

@media (max-width: 991px) {
  .single-portfolio.col-sm-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 768px) {
  .single-portfolio.col-sm-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 576px) {
  .single-portfolio.col-sm-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.3;
}

h2 {
  font-size: 2.5rem;
}

@media (max-width: 991px) {
  h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1.8rem;
  }
}

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

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}

table,
th,
td {
  border: 1px solid white;
}

th,
td {
  padding: 15px;
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(255, 255, 255, 0.1);
  font-weight: 500;
}

@media (max-width: 768px) {
  table {
    font-size: 14px;
  }

  th,
  td {
    padding: 8px !important;
  }
}

@media (max-width: 480px) {
  table {
    font-size: 12px;
  }

  th,
  td {
    padding: 6px !important;
  }
}

/* =================================================================
   RESUME SECTION RESPONSIVE
   ================================================================= */

.resume-item {
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 4px solid #bac964;
}

@media (max-width: 768px) {
  .resume-item {
    padding: 15px;
    margin-bottom: 20px;
  }

  .resume-item h3 {
    font-size: 1.2rem;
  }

  .resume-item .date {
    font-size: 0.9rem;
  }
}

/* =================================================================
   UTILITY CLASSES
   ================================================================= */

.text-center-mobile {
  text-align: left;
}

@media (max-width: 768px) {
  .text-center-mobile {
    text-align: center;
  }
}

.hide-mobile {
  display: block;
}

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

.show-mobile {
  display: none;
}

@media (max-width: 768px) {
  .show-mobile {
    display: block;
  }
}

/* =================================================================
   LOADING AND ANIMATIONS
   ================================================================= */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =================================================================
   PRINT STYLES
   ================================================================= */

@media print {
  .site-navbar,
  .github-info,
  #section-contact {
    display: none !important;
  }

  .site-section {
    padding: 20px 0 !important;
  }

  body {
    background: white !important;
    color: black !important;
  }
}
