/* Complete Portfolio CSS - Amzy Constructions Theme - Part 1 */

:root {
    --primary-color: #ff4500;
    --secondary-color: #ff4500;
    --text-color: #333;
    --background-color: #f4f7f6;
    --heading-color: #1a2b3c;
    --transition-speed: 0.3s;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Hero Area Styling */
.hero-area {
    position: relative;
    background-color: #1a1a1a;
    color: #fff;
    padding: 150px 0;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../img/portfolio/hero-bg.jpg');
}

.hero-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6));
    z-index: 1;
}

.hero-contentt {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-contentt h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.hero-contentt h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.hero-contentt h1:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hero-subtitlee {
    font-size: 22px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: transparent;
    color: #fff;
    text-decoration: none;
    border: 2px solid var(--secondary-color);
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
    z-index: -1;
}

.hero-btn:hover {
    color: #fff;
}

.hero-btn:hover::before {
    left: 0;
}

/* Stats Area Styling - Improved */
.stats-area {
    background-color: #f4f4f4;
    padding: 40px 0;
    position: relative;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.stats-item {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 200px;
}

.stats-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.stats-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1;
    display: block;
}

.stats-text {
    font-size: 16px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
    display: block;
}

.stats-item .stats-number::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
    transition: width 0.3s ease;
}

.stats-item:hover .stats-number::after {
    width: 80px;
}

/* Responsive Adjustments for Part 1 */
@media (max-width: 768px) {
    .hero-contentt {
        padding: 0 15px;
    }

    .hero-contentt h1 {
        font-size: 36px;
    }

    .hero-subtitlee {
        font-size: 18px;
    }

    .stats-container {
        gap: 15px;
        padding: 0 15px;
    }

    .stats-item {
        padding: 25px 15px;
        min-height: 180px;
    }

    .stats-number {
        font-size: 36px;
        margin-bottom: 10px;
    }

    .stats-text {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .hero-contentt h1 {
        font-size: 32px;
    }

    .hero-btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .stats-item {
        min-height: 160px;
    }
}
/* Portfolio Section Styling - Part 2 */

.portfolio-heading {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.portfolio-heading h2 {
    font-size: 40px;
    font-weight: 800;
    color: var(--heading-color);
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.portfolio-heading h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 4px;
    background-color: var(--secondary-color);
    transition: width 0.5s ease;
}

.portfolio-heading h2:hover::after {
    width: 100%;
}

.portfolio-heading p {
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.6;
}

/* Portfolio Grid and Filter */
.portfolio-container {
    padding: 0 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.category-filter {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 15px 20px;
}

.category-filter .case-study-btn {
    display: inline-block;
    padding: 12px 25px;
    color: var(--primary-color);
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.category-filter .case-study-btn:hover,
.category-filter .case-study-btn.active {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
}

/* Portfolio Grid Improvements */
.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.case-study-single-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    background: #fff;
    transition: all var(--transition-speed) ease;
}

.case-study-single-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.case-study-thumb2 {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}


.case-study-thumb2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-study-single-box:hover .case-study-thumb2 img {
    transform: scale(1.1);
}

.case-study-contents {
    opacity: 0;
    transition: opacity 0.3s ease;
}


.case-study-single-box:hover .case-study-contents {
    opacity: 1;
    background: rgba(0, 0, 0, 0.7);
}


.case-study-title.style2 h3 a {
    color: #fff;
    text-decoration: none;
}


.case-study-title.style2 h3 a:hover {
    color: var(--secondary-color);
}
.btn-primary {
    background: #F16722;
    border-color: #F16722;
}
.btn-primary:hover {
    background: #173969;
    border-color: #173969;
}

.case-study-title.style2 p {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin: 0;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 60px;
}

#load-more {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    transition: all var(--transition-speed) ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

#load-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.4);
}

#load-more:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive Adjustments for Part 2 */
@media (max-width: 992px) {
    .case-study-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .portfolio-heading h2 {
        font-size: 32px;
    }

    .portfolio-heading p {
        font-size: 16px;
    }

    .category-filter .case-study-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .case-study-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .case-study-thumb2 {
        aspect-ratio: 3/4;
    }

    .case-study-contents {
        padding: 20px;
    }

    .case-study-title.style2 h3 a {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .portfolio-container {
        padding: 0 15px;
    }

    .case-study-grid {
        grid-template-columns: 1fr;
    }

    .category-filter {
        padding: 10px;
        gap: 10px;
    }
}
/* Load More Button Styles */
.btn-load-more {
    background-color: #F16722; /* Your theme's primary orange color */
    color: #ffffff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-load-more:hover {
    background-color: #173969; /* Your theme's blue color */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-load-more:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-load-more.loading {
    position: relative;
    color: transparent;
}

.btn-load-more.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/**
 * Portfolio Call-to-Action Button Styles
 * Add this to your stylesheet
 */

 .portfolio-cta-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 1.5rem 0 2.5rem;
    position: relative;
    z-index: 1;
  }
  
  .portfolio-cta-button {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #ff6a00 0%, #ee0979 100%);
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    box-shadow: 0 8px 20px rgba(238, 9, 121, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .portfolio-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.7s ease;
  }
  
  .portfolio-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(238, 9, 121, 0.3);
    color: #fff;
  }
  
  .portfolio-cta-button:hover::before {
    left: 100%;
  }
  
  .portfolio-cta-button:active {
    transform: translateY(1px);
    box-shadow: 0 5px 15px rgba(238, 9, 121, 0.2);
  }
  
  .cta-icon {
    margin-right: 12px;
    display: flex;
    align-items: center;
  }
  
  .cta-text {
    position: relative;
    z-index: 1;
  }
  
  .cta-arrow {
    margin-left: 12px;
    font-size: 20px;
    transition: transform 0.3s ease;
  }
  
  .portfolio-cta-button:hover .cta-arrow {
    transform: translateX(5px);
  }
  
  /* Floating animation */
  @keyframes float {
    0% {
      transform: translateY(0px);
    }
    50% {
      transform: translateY(-5px);
    }
    100% {
      transform: translateY(0px);
    }
  }
  
  .portfolio-cta-button {
    animation: float 3s ease-in-out infinite;
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .portfolio-cta-button {
      padding: 12px 24px;
      font-size: 16px;
    }
    
    .cta-icon svg {
      width: 20px;
      height: 20px;
    }
  }
  
  /* Alternative CTA for higher contrast if needed */
  .portfolio-cta-button.alt {
    background: linear-gradient(135deg, #ff5a00 0%, #ee0979 100%);
  }