/* =====================================
   SOLARMAN Portfolio v3.0
   Professional – Fixed Mobile Issues
===================================== */

/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus {
    position: fixed;
    left: 10px;
    top: 10px;
    width: auto;
    height: auto;
    padding: 8px 12px;
    background: #0057B8;
    color: #fff;
    border-radius: 4px;
    z-index: 10000;
    text-decoration: none;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: #f5f7fa;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---------- Header ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, .08);
    z-index: 999;
    transition: box-shadow 0.3s ease;
}

.nav {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.logo h2 {
    color: #0057B8;
    font-size: 28px;
}

/* ---------- Navigation ---------- */
nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.3s;
    font-size: 0.95rem;
}

nav a:hover,
nav a.active {
    color: #F7931E;
}

nav .nav-quote-btn {
    background: #F7931E;
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

nav .nav-quote-btn:hover {
    background: #0057B8;
    color: #fff !important;
}

/* ---------- Hamburger ---------- */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1000;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #0057B8;
    border-radius: 3px;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url("images/hero.jpg") center center / cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 87, 184, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    color: #fff;
}

.hero-tag {
    display: inline-block;
    background: #F7931E;
    color: #fff;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.hero h1 span {
    color: #F7931E;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    font-weight: 300;
    margin-bottom: 20px;
    color: #ddd;
}

.hero-subtitle .dot {
    margin: 0 12px;
    color: #F7931E;
}

.hero-skills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0 30px;
}

.hero-skills span {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-skills i {
    margin-right: 6px;
    color: #F7931E;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    text-decoration: none;
    padding: 14px 35px;
    border-radius: 40px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
}

.btn-primary {
    background: #F7931E;
    color: #fff;
}
.btn-primary:hover {
    background: #0057B8;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 87, 184, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}
.btn-secondary:hover {
    background: #fff;
    color: #0057B8;
    border-color: #fff;
    transform: translateY(-3px);
}

.btn-success {
    background: #25D366;
    color: #fff;
}
.btn-success:hover {
    background: #1da851;
    transform: translateY(-3px);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.hero-buttons .btn {
    padding: 14px 30px;
    font-size: 0.95rem;
}

/* ---------- Sections ---------- */
section {
    padding: 90px 0;
}

section h2 {
    text-align: center;
    color: #0057B8;
    font-size: clamp(2rem, 3vw, 2.4rem);
    margin-bottom: 10px;
}

.section-text {
    text-align: center;
    max-width: 700px;
    margin: -5px auto 40px;
    color: #666;
    font-size: 1.05rem;
}

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 30px;
    align-items: center;
}

.about-text p {
    text-align: left;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin: 25px 0;
}

.about-stats div {
    text-align: center;
}

.about-stats span {
    font-size: 2rem;
    font-weight: 700;
    color: #0057B8;
    display: block;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ---------- Cards ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.card {
    background: #fff;
    border-radius: 15px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card i {
    font-size: 45px;
    color: #F7931E;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 10px;
    color: #0057B8;
}

.card p {
    font-size: 0.95rem;
    color: #555;
}

/* ---------- Projects ---------- */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    background: #eaeef3;
    border: none;
    padding: 8px 24px;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    color: #333;
    font-size: 0.9rem;
}

.filter-btn.active,
.filter-btn:hover {
    background: #0057B8;
    color: #fff;
}

.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.project:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.project img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    color: #0057B8;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.project-info p {
    text-align: left;
    font-size: 0.9rem;
    color: #555;
    margin: 4px 0;
}

.project-info .project-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 20px;
    background: #F7931E;
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: 0.3s;
}

.project-info .project-btn:hover {
    background: #0057B8;
    transform: translateY(-2px);
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.testimonial {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.testimonial .stars {
    color: #F7931E;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.testimonial p {
    font-size: 0.95rem;
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
}

.testimonial h4 {
    color: #0057B8;
    margin-top: 10px;
    margin-bottom: 0;
}

.testimonial span {
    font-size: 0.85rem;
    color: #888;
}

/* ---------- Contact ---------- */
#contact {
    background: #0057B8;
    color: #fff;
}

#contact h2 {
    color: #fff;
}

#contact .section-text {
    color: #dbeafe;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 15px;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #cbd5e1;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #F7931E;
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(247, 147, 30, 0.2);
}

.contact-form select option {
    color: #333;
    background: #fff;
}

.contact-form .btn {
    width: 100%;
}

.contact-info {
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

.contact-info div {
    margin: 15px 0;
    font-size: 1rem;
}

.contact-info i {
    width: 30px;
    color: #F7931E;
}

.contact-info .btn {
    width: 100%;
    text-align: center;
}

/* ---------- Footer ---------- */
footer {
    background: #111827;
    color: #fff;
    text-align: center;
    padding: 30px;
}

/* ---------- Floating Contact ---------- */
.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-contact a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0057B8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    text-decoration: none;
}

.floating-contact a:hover {
    transform: scale(1.1);
    background: #F7931E;
}

.floating-contact a:first-child {
    background: #25D366;
}

/* ---------- Back to Top ---------- */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #F7931E;
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(247, 147, 30, 0.4);
    transition: 0.3s;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-3px);
    background: #0057B8;
}

/* ---------- Scroll Animation ---------- */
.hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* ========== PRODUCTS / SHOP ========== */
#shop {
    background: #fff;
}

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

.product-filters .filter-btn {
    background: #eaeef3;
    border: none;
    padding: 8px 22px;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    color: #333;
    font-size: 0.85rem;
}

.product-filters .filter-btn.active,
.product-filters .filter-btn:hover {
    background: #0057B8;
    color: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 10px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid #eaeef3;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.10);
}

.product-card .product-image-wrapper {
    width: 100%;
    height: 220px;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-card .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card .product-image-wrapper .no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    width: 100%;
    height: 100%;
    text-align: center;
    padding: 20px;
}

.product-card .product-image-wrapper .no-image i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.product-card .product-body {
    padding: 15px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .product-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #F7931E;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-card .product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e2a3a;
    margin-bottom: 6px;
    line-height: 1.3;
}

.product-card .product-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0057B8;
    margin: 6px 0 8px;
}

.product-card .product-specs {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 12px;
}

.product-card .product-specs span {
    display: inline-block;
    background: #f5f7fa;
    padding: 2px 10px;
    border-radius: 20px;
    margin: 2px 4px 2px 0;
}

.product-card .action-buttons {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.product-card .action-buttons .btn-action {
    flex: 1;
    padding: 7px 0;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.78rem;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.product-card .action-buttons .btn-datasheet {
    background: #e9ecef;
    color: #333;
    border: 1px solid #ced4da;
}

.product-card .action-buttons .btn-datasheet:hover {
    background: #dee2e6;
}

.product-card .action-buttons .btn-buynow {
    background: #25D366;
    color: #fff;
}

.product-card .action-buttons .btn-buynow:hover {
    background: #1da851;
    transform: translateY(-2px);
}

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #fff;
    max-width: 650px;
    width: 90%;
    border-radius: 20px;
    padding: 25px 30px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: 700;
    color: #aaa;
    cursor: pointer;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    margin-top: 10px;
}

.modal-body img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 10px;
    background: #f5f7fa;
}

.modal-body .modal-category {
    display: inline-block;
    background: #F7931E;
    color: #fff;
    padding: 2px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.modal-body h2 {
    color: #0057B8;
    margin-bottom: 6px;
}

.modal-body .modal-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0057B8;
    margin: 10px 0;
}

.modal-body .modal-specs p {
    margin: 4px 0;
    font-size: 0.95rem;
}

.modal-body .btn-whatsapp-modal {
    background: #25D366;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 15px;
    display: inline-block;
    text-decoration: none;
}

.modal-body .btn-whatsapp-modal:hover {
    transform: scale(1.03);
    background: #1da851;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .projects {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .about-image {
        order: -1;
    }
    .about-image img {
        max-height: 400px;
        object-fit: cover;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile Header */
    .nav {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 0;
        position: relative;
    }
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #fff;
        padding: 20px 0 15px;
        gap: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        position: absolute;
        top: 100%;
        left: 0;
