﻿/* ============================
   EMERGENCY - REMOVE 300x100 PLACEHOLDER
============================ */

/* Kill ANY element showing 300x100 text or image placeholder */
*:before,
*:after {
    content: none !important;
}

body *[src*="300"],
body *[alt*="300"],
img[src*="placehold"],
img[alt*="placehold"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
}

/* Hide ALL for-icon labels completely */
.for-icon,
label.for-icon,
.contact-form-area .for-icon,
.form-group .for-icon {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
}

/* ============================
   MOBILE HERO FIXES
============================ */
@media (max-width: 768px) {
    body {
        font-size: 15px;
        line-height: 1.5;
    }

    .container,
    .container-inner {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Hero section */
    .main-hero-area {
        padding-top: 70px !important;
        padding-bottom: 40px !important;
        min-height: calc(100vh - 80px);
    }

    .hero-content {
        padding: 40px 16px 30px !important;
        text-align: center !important;
    }

    .hero-content h1 {
        font-size: 34px !important;
        line-height: 1.1 !important;
        margin: 4px 0 !important;
        letter-spacing: 0.08em;
    }

    .hero-content h1 span {
        -webkit-text-stroke-width: 1px;
    }

    .hero-content .job {
        margin-top: 14px !important;
        padding: 16px 18px !important;
        display: inline-block;
        border-radius: 10px;
        background-color: #f5f5f5;
    }

    .hero-content .job span {
        font-size: 16px !important;
        line-height: 1.3 !important;
        display: block;
    }

    .hero-content .job span::after {
        display: none !important;
    }

    .main-hero-area .container-inner {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        border-radius: 18px !important;
    }

    /* Header/Navigation */
    .main-header .header-upper {
        padding: 10px 0 !important;
    }

    .main-header .logo img {
        width: 60px !important;
    }

    /* Section spacing */
    .section-title {
        margin-bottom: 40px !important;
    }

    .section-title h2 {
        font-size: 26px !important;
        line-height: 1.25 !important;
    }

    .section-title p {
        font-size: 13px !important;
        letter-spacing: 0.12em;
    }

    section {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }

    /* Contact form */
    .contact-area {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    .contact-content-part {
        padding: 30px 20px !important;
        margin-bottom: 30px !important;
    }

    .single-contact {
        padding-bottom: 30px !important;
        text-align: center !important;
    }

    .single-contact h2 {
        font-size: 18px !important;
        text-align: center !important;
    }

    .single-contact p {
        text-align: center !important;
        font-size: 14px !important;
    }

    .contact-icon {
        text-align: center !important;
    }

    .contact-form-area {
        padding: 25px 20px !important;
        border-radius: 10px !important;
    }

    .contact-form-area .form-group {
        margin-bottom: 20px !important;
        position: relative !important;
    }

    .contact-form-area .form-group label {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }

    .contact-form-area .form-group .form-control {
        font-size: 14px !important;
        padding: 15px !important;
        padding-right: 15px !important;
        padding-left: 15px !important;
        border-radius: 8px !important;
    }

    .contact-form-area .form-group textarea {
        min-height: 120px !important;
        padding-right: 15px !important;
    }

    .theme-btn {
        width: 100% !important;
        padding: 15px 20px !important;
        font-size: 16px !important;
        display: block !important;
        text-align: center !important;
    }

    .input-success,
    .input-error {
        font-size: 14px !important;
        padding: 10px !important;
        margin-top: 15px !important;
        border-radius: 5px !important;
    }

    /* About section */
    .about-content-part h2 {
        font-size: 32px !important;
        line-height: 1.3 !important;
    }

    /* Resume section */
    .resume-item {
        flex-direction: column !important;
        text-align: center !important;
    }

    .resume-item .icon {
        margin-right: 0 !important;
        margin-bottom: 15px !important;
    }

    /* Portfolio section */
    .project-item.style-two {
        margin-bottom: 20px !important;
    }

    /* Testimonials section */
    .testimonial-item {
        min-width: 280px !important;
        padding: 20px !important;
    }

    .main-menu .navbar-collapse {
        max-height: 400px !important;
        overflow-y: auto !important;
    }
}

/* Very small phones */
@media (max-width: 480px) {
    .hero-content {
        padding-top: 30px !important;
    }

    .hero-content h1 {
        font-size: 28px !important;
    }

    .hero-content .job {
        padding: 14px 14px !important;
    }

    .hero-content .job span {
        font-size: 15px !important;
    }

    .contact-area .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .contact-form-area {
        padding: 20px 15px !important;
    }

    .contact-content-part {
        padding: 20px 15px !important;
    }

    .section-title h2 {
        font-size: 28px !important;
    }

    .single-contact h2 {
        font-size: 16px !important;
    }

    .theme-btn {
        padding: 14px 18px !important;
        font-size: 15px !important;
    }

    .contact-icon i {
        font-size: 18px !important;
    }
}

/* Landscape orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .contact-area {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .section-title {
        margin-bottom: 40px !important;
    }
}

/* Portfolio grid fixes */
.project-masonry-active {
    margin-top: 1rem;
}

.project-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.project-item.style-two {
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(10, 20, 40, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.project-item.style-two:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 50px rgba(10, 20, 40, .16);
}

.project-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform .35s ease;
}

.project-item.style-two:hover .project-image img {
    transform: scale(1.05);
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 100%);
    opacity: 0;
    transition: opacity .25s ease;
}

.project-item.style-two:hover .project-image::after {
    opacity: 1;
}

.project-content {
    padding: 14px 16px 16px;
}

.project-content .sub-title {
    display: inline-block;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .75;
    margin-bottom: 6px;
}

.project-content h3 {
    font-size: 18px;
    line-height: 1.25;
    margin: 0;
}

.popup-image {
    cursor: zoom-in;
}

/* Viewport fixes */
body {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

input,
textarea,
button {
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
a:not([href]), a[href=""] { display: none !important; }

.testimonials-area {
  padding: 80px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  position: relative;
  overflow: hidden;
}

.testimonials-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-wrap {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 20px 50px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.testimonials-wrap::-webkit-scrollbar {
  display: none;
}

.testimonial-item {
  flex: 0 0 380px;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-item:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.testimonial-item img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-item p {
  color: #555;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-item h5 {
  color: #1a1a1a;
  font-size: 22px;
  margin-bottom: 8px;
  font-weight: 700;
}

.testimonial-item span {
  color: #e74c3c;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.slider-btn:hover {
  background: #e74c3c;
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.prev {
  left: 0;
}

.next {
  right: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .testimonial-item {
    flex: 0 0 300px;
    padding: 30px 20px;
  }
  
  .testimonials-wrap {
    padding: 20px 40px;
    gap: 20px;
  }
  
  .slider-btn {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(145deg, #fff, #f0f0f0);
  border: 2px solid #e74c3c;
  width: 65px !important;
  height: 65px !important;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  color: #e74c3c;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 
    0 10px 30px rgba(231, 76, 60, 0.3),
    inset 0 2px 5px rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
}

.slider-btn:hover {
  transform: translateY(-50%) scale(1.15) rotate(5deg);
  background: linear-gradient(145deg, #e74c3c, #c0392b);
  color: white !important;
  box-shadow: 
    0 20px 50px rgba(231, 76, 60, 0.5),
    inset 0 2px 10px rgba(255,255,255,0.9);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 20px 50px rgba(231, 76, 60, 0.5); }
  50% { box-shadow: 0 25px 60px rgba(231, 76, 60, 0.7); }
}

.prev { left: 10px; }
.next { right: 10px; }
