/**
 * Main CSS - CV Sinergi Imaji Teknokreasi
 * Comprehensive styles including mobile responsive design
 */

/* ============================================
   BASE STYLES
   ============================================ */

:root {
    --primary-color: #ffc451;
    --primary-gradient: linear-gradient(135deg, #ffc451 0%, #ffb347 100%);
    --secondary-color: #151515;
    --text-color: #444;
    --heading-color: #151515;
    --bg-color: #fff;
    --font-primary: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-heading: "Poppins", sans-serif;
    --premium-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    letter-spacing: -0.5px;
}

/* ============================================
   SECTION STYLES
   ============================================ */

.section {
    padding: 60px 0;
    overflow: hidden;
}

.section-title {
    text-align: center;
    padding-bottom: 60px;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    color: var(--secondary-color);
    background-color: var(--primary-color);
    font-size: 24px;
    cursor: pointer;
    display: none;
    line-height: 0;
    transition: 0.5s;
    z-index: 9999;
    padding: 8px;
    border-radius: 5px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 1199px) {

  /* Toggle button */
  .mobile-nav-toggle {
    display: block;
    position: fixed;
    top: 18px;
    right: 16px;
    z-index: 10001;
    background: var(--primary-color);
    color: #000;
    padding: 8px;
    border-radius: 6px;
  }

  /* Sidebar */
  .navmenu {
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    height: 100vh;
    background: #1a1a1a;
    padding: 80px 20px 20px;
    z-index: 10000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  body.mobile-nav-active .navmenu {
    transform: translateX(0);
  }

  .navmenu ul {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .navmenu li {
    border-bottom: 1px solid rgba(255,255,255,.1);
  }

  .navmenu a {
    color: #fff;
    padding: 14px 10px;
    font-size: 16px;
  }

  /* Overlay */
  body::before {
    content: none !important;
  }

  body.mobile-nav-active::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 9999;
  }
body.mobile-nav-active {
  touch-action: none;
}


}



.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    color: var(--heading-color);
}

.section-title p {
    margin-bottom: 0;
    color: #6c757d;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about .content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.about .content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 15px;
}

.about .content ul {
    list-style: none;
    padding: 0;
}

.about .content ul li {
    padding: 10px 0;
    display: flex;
    align-items: flex-start;
}

.about .content ul li i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 3px;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features .features-item {
    display: flex;
    gap: 20px;
}

.features .features-item i {
    font-size: 48px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.features .features-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.features .features-item p {
    margin-bottom: 0;
    color: #6c757d;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services .service-item {
    background: var(--glass-bg);
    border: var(--glass-border);
    box-shadow: var(--premium-shadow);
    padding: 40px 30px;
    border-radius: 15px;
    height: 100%;
    transition: all 0.4s ease;
    border-top: 4px solid transparent;
}

.services .service-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
    border-top-color: var(--primary-color);
}

.services .service-item .icon {
    margin-bottom: 20px;
}

.services .service-item .icon i {
    font-size: 48px;
    color: var(--primary-color);
}

.services .service-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.services .service-item p {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ============================================
   CALL TO ACTION SECTION
   ============================================ */

.call-to-action {
    padding: 80px 0;
    position: relative;
}

.call-to-action::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.call-to-action>picture,
.call-to-action>picture>img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.call-to-action h2 {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.call-to-action p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 30px;
}

.call-to-action .cta-btn {
    display: inline-block;
    background: var(--primary-gradient);
    color: #312f2f;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 196, 81, 0.4);
    border: none;
}

.call-to-action .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 196, 81, 0.6);
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */

.portfolio .portfolio-filters {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.portfolio .portfolio-filters li {
    cursor: pointer;
    padding: 10px 25px;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    transition: all 0.3s;
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
    background: var(--primary-color);
    color: #312f2f;
    border-color: var(--primary-color);
}

.portfolio .portfolio-item {
    margin-bottom: 30px;
}

.portfolio .portfolio-item figure {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin: 0;
}

.portfolio .portfolio-item img {
    transition: transform 0.5s;
    width: 100%;
}

.portfolio .portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio .portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 25px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio .portfolio-item:hover .portfolio-info {
    opacity: 1;
}

.portfolio .portfolio-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.portfolio .portfolio-info p {
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.portfolio .portfolio-info .preview-link {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #312f2f;
    border-radius: 50%;
    font-size: 18px;
    transition: background 0.3s;
}

.portfolio .portfolio-info .preview-link:hover {
    background: #ffcf70;
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats .stats-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.stats .stats-item i {
    font-size: 44px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.stats .stats-item .purecounter {
    font-size: 40px;
    font-weight: 700;
    color: var(--heading-color);
    display: block;
}

.stats .stats-item p {
    margin: 0;
}

.stats .stats-item p strong {
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}

.stats .stats-item p span {
    color: #6c757d;
    font-size: 14px;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials {
    padding: 80px 0;
    position: relative;
}

.testimonials .testimonials-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.testimonials::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.testimonials .testimonial-item {
    text-align: center;
    color: #fff;
    padding: 40px 30px;
}

.testimonials .testimonial-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    margin: 0 auto 20px;
}

.testimonials .testimonial-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.testimonials .testimonial-item h4 {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.testimonials .stars {
    margin-bottom: 20px;
}

.testimonials .stars i {
    color: var(--primary-color);
    font-size: 18px;
}

.testimonials blockquote {
    font-size: 16px;
    font-style: italic;
    line-height: 1.8;
    margin: 0;
}

.testimonials .quote-icon-left,
.testimonials .quote-icon-right {
    color: rgba(255, 255, 255, 0.3);
    font-size: 24px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact .info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact .info-item i {
    font-size: 32px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact .info-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.contact .info-item p {
    margin: 0;
    color: #6c757d;
}

.contact .info-item p a {
    color: var(--primary-color);
    transition: color 0.3s;
}

.contact .info-item p a:hover {
    color: #ffcf70;
}

.contact .btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    margin-top: 10px;
    transition: background 0.3s;
}

.contact .btn-whatsapp:hover {
    background: #128C7E;
    color: #fff;
}

.contact .php-email-form {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 12px 15px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.contact .php-email-form button {
    background: var(--primary-gradient);
    color: #312f2f;
    border: none;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 196, 81, 0.3);
}

.contact .php-email-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 196, 81, 0.5);
}

.contact .php-email-form .loading,
.contact .php-email-form .error-message,
.contact .php-email-form .sent-message {
    display: none;
    text-align: center;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 5px;
}

.contact .php-email-form .loading {
    background: #f8f9fa;
    display: none;
}

.contact .php-email-form .error-message {
    background: #fee2e2;
    color: #dc2626;
}

.contact .php-email-form .sent-message {
    background: #d1fae5;
    color: #059669;
}

/* ============================================
   FOOTER SECTION
   ============================================ */

.footer {
    background: #151515;
    color: rgba(255, 255, 255, 0.8);
}

.footer-top {
    padding: 60px 0;
}

.footer-about .logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-about .logo .sitename {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact a {
    color: var(--primary-color);
}

.footer .social-links {
    display: flex;
    gap: 10px;
}

.footer .social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: background 0.3s;
}

.footer .social-links a:hover {
    background: var(--primary-color);
    color: #312f2f;
}

.footer-links h4,
.footer-newsletter h4 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    padding: 8px 0;
    display: flex;
    align-items: center;
}

.footer-links ul li i {
    font-size: 12px;
    color: var(--primary-color);
    margin-right: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-newsletter p {
    margin-bottom: 20px;
}

.footer-newsletter .newsletter-form {
    display: flex;
    gap: 10px;
}

.footer-newsletter .newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
}

.footer-newsletter .newsletter-form input[type="submit"] {
    background: var(--primary-color);
    color: #312f2f;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.footer-newsletter .newsletter-form input[type="submit"]:hover {
    background: #ffcf70;
}

.footer .copyright {
    background: #0d0d0d;
    padding: 25px 0;
    text-align: center;
}

.footer .credits {
    color: rgba(255, 255, 255, 0.5);
    margin-top: 10px;
    font-size: 13px;
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 576px) {
    .section {
        padding: 40px 0;
    }

    .section-title {
        padding-bottom: 30px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    /* About */
    .about .content h2 {
        font-size: 22px;
    }

    .about .content h3 {
        font-size: 18px;
    }

    /* Features */
    .features .features-item {
        flex-direction: column;
        gap: 15px;
    }

    .features .features-item i {
        font-size: 36px;
    }

    .features .features-item h3 {
        font-size: 18px;
    }

    /* Services */
    .services .service-item {
        padding: 25px 20px;
    }

    .services .service-item .icon i {
        font-size: 36px;
    }

    .services .service-item h3 {
        font-size: 18px;
    }

    /* Call to Action */
    .call-to-action {
        padding: 50px 0;
    }

    .call-to-action h2 {
        font-size: 24px;
    }

    .call-to-action p {
        font-size: 15px;
    }

    .call-to-action .cta-btn {
        padding: 12px 30px;
        font-size: 14px;
    }

    /* Portfolio */
    .portfolio .portfolio-filters li {
        padding: 8px 16px;
        font-size: 13px;
    }

    .portfolio .portfolio-info h3 {
        font-size: 16px;
    }

    .portfolio .portfolio-info p {
        font-size: 13px;
    }

    /* Stats */
    .stats .stats-item .purecounter {
        font-size: 32px;
    }

    .stats .stats-item i {
        font-size: 36px;
    }

    .stats .stats-item p strong {
        font-size: 16px;
    }

    /* Testimonials */
    .testimonials {
        padding: 50px 0;
    }

    .testimonials .testimonial-item {
        padding: 30px 20px;
    }

    .testimonials .testimonial-img {
        width: 80px;
        height: 80px;
    }

    .testimonials .testimonial-item h3 {
        font-size: 18px;
    }

    .testimonials blockquote {
        font-size: 14px;
    }

    /* Contact */
    .contact .info-item i {
        font-size: 28px;
    }

    .contact .php-email-form {
        padding: 20px;
    }

    .contact .php-email-form button {
        width: 100%;
        padding: 12px;
    }

    /* Footer */
    .footer-top {
        padding: 40px 0;
    }

    .footer-links h4,
    .footer-newsletter h4 {
        font-size: 16px;
    }

    .footer-newsletter .newsletter-form {
        flex-direction: column;
    }

    .footer-newsletter .newsletter-form input[type="submit"] {
        width: 100%;
    }
}

/* Small to Medium Devices (576px to 768px) */
@media (min-width: 576px) and (max-width: 768px) {
    .section-title h2 {
        font-size: 28px;
    }

    .services .service-item {
        padding: 30px 25px;
    }

    .call-to-action h2 {
        font-size: 28px;
    }
}

/* Tablet Devices (768px to 992px) */
@media (min-width: 768px) and (max-width: 992px) {
    .section {
        padding: 50px 0;
    }

    .services .service-item h3 {
        font-size: 18px;
    }

    .portfolio .portfolio-info h3 {
        font-size: 16px;
    }

    .footer .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 30px;
    }

    .footer .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Touch-friendly improvements */
@media (max-width: 991px) {

    a,
    button,
    input[type="submit"],
    .portfolio-filters li {
        min-height: 44px;
    }

    /* Prevent horizontal overflow */
    html,
    body {
        overflow-x: hidden;
    }
}