/* PJ Vapour Blasting - Complete Styles */

/* ===== CSS VARIABLES ===== */
:root {
    --primary-color: #2c5282;
    --primary-light: #4a90b8;
    --accent-color: #ffffff;
    --accent-hover: #f0f8ff;
    --text-dark: #333;
    --text-light: white;
    --background-light: #f8f9fa;
    --background-dark: #1a1a1a;
    --border-radius: 8px;
    --border-radius-large: 12px;
    --transition: all 0.3s ease;
    --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.15);
    --shadow-large: 0 8px 25px rgba(0, 0, 0, 0.2);
    --blue-gradient: linear-gradient(135deg, #2c5282 0%, #4a90b8 100%);
}

/* ===== BASIC RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

html {
    scroll-padding-top: 120px; /* Account for sticky header height */
    /* Remove any scroll behavior that might conflict */
}

/* Performance optimizations */
* {
    will-change: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
header {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-small);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

header.scrolled {
    padding: 0.5rem 0;
    background: rgba(44, 82, 130, 0.95);
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(15px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light);
    text-decoration: none;
}

.logo img {
    height: 100px;
    width: auto;
    filter: brightness(1.2) contrast(1.2) saturate(1.1);
    transition: var(--transition);
    border-radius: var(--border-radius);
    padding: 5px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-small);
}

header.scrolled .logo img {
    height: 70px;
    filter: brightness(1.1) contrast(1.1) saturate(1.0);
}

.logo:hover img {
    filter: brightness(1.3) contrast(1.3) saturate(1.2);
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-medium);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    position: relative;
    --underline-left: 0px;
    --underline-width: 0px;
}

nav ul::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: var(--underline-left);
    width: var(--underline-width);
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
    border-radius: 1px;
    opacity: 0;
}

nav ul.has-active::after {
    opacity: 1;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    transition: all 0.4s ease;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    border-radius: 4px;
}

.hamburger:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: var(--transition);
    border-radius: 2px;
}

.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(7px, -6px);
}

/* Mobile menu overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(rgba(44, 82, 130, 0.7), rgba(44, 82, 130, 0.7)), url('../images/headers-before-and-after.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
    padding: 8rem 0 4rem 0;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6);
    font-weight: bold;
    opacity: 0;
    transform: translateY(50px) scale(0.8);
    animation: heroTitleAnimation 1.5s ease-out 0.3s forwards;
}

@keyframes heroTitleAnimation {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroSubtitleAnimation {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    60% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: heroSubtitleAnimation 2s ease-out;
}

.button {
    background: var(--blue-gradient);
    color: var(--text-light);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: bold;
    display: inline-block;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(44, 82, 130, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
}

.button:hover {
    background: var(--text-light);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 82, 130, 0.4);
}

.facebook-button {
    background: #1877F2 !important;
    color: white !important;
    border: 2px solid #1877F2 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    padding: 1rem 2rem;
    font-size: 1rem;
}

.facebook-button:hover {
    background: #166FE5 !important;
    color: white !important;
    border: 2px solid #166FE5 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(24, 119, 242, 0.4) !important;
}

.facebook-button svg {
    flex-shrink: 0;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 4rem 0;
    background: var(--text-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.service-card {
    background: var(--background-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-small);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.service-image {
    width: 100%;
    height: 200px;
    background: #e9ecef;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 4rem 0;
    background: var(--background-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 2px;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-image {
    width: 100%;
    height: 300px;
    background: #e9ecef;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-small);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* ===== GALLERY SECTION ===== */
.gallery {
    padding: 4rem 0;
    background: var(--text-light);
    overflow: hidden;
}

.gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
}

.gallery h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 2px;
}

.gallery-container {
    position: relative;
    margin-top: 3rem;
}

.gallery-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1.5rem 0 2rem 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) rgba(0,0,0,0.1);
}

.gallery-scroll::-webkit-scrollbar {
    height: 8px;
}

.gallery-scroll::-webkit-scrollbar-track {
    background: rgba(44, 82, 130, 0.1);
    border-radius: 4px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

.gallery-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.gallery-loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.1rem;
    color: var(--text-dark);
    opacity: 0.7;
}

.gallery-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.gallery-item {
    flex: 0 0 auto;
    width: 500px;
    height: 350px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-small);
    transition: all 0.4s ease;
    position: relative;
    cursor: pointer;
    background: var(--background-light);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    transform: translateX(100%);
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-large);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2vh;
}

.modal-content {
    max-width: 35vw;
    max-height: 45vh;
    width: auto;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-large);
    animation: scaleIn 0.3s ease;
    position: relative;
    margin: 20px;
}

.modal-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--text-light);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-light);
    transform: scale(1.1);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-light);
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 1002;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    color: var(--primary-light);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 4rem 0;
    background: var(--primary-color);
    color: var(--text-light);
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--text-light);
    border-radius: 2px;
}

.contact p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 992px) {
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.contact-item h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: bold;
}

.contact-item p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

.contact-item a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* ===== SOCIAL SECTION ===== */
.social {
    padding: 4rem 0;
    background: var(--text-light);
    text-align: center;
}

.social h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
}

.social h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-light);
    border-radius: 2px;
}

.facebook-embed {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);
    overflow: hidden;
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 1.5rem 0;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-content h3 {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
}

.footer-left {
    flex: 1;
    text-align: left;
}

.footer-right {
    flex-shrink: 0;
}

.footer-bottom {
    max-width: 800px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    text-align: center;
}

/* ===== FADE IN ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--primary-color);
        transition: right 0.3s ease;
        padding-top: 80px;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        align-items: center;
        padding: 2rem 1rem;
    }

    nav li {
        width: 100%;
        text-align: center;
    }

    nav a {
        display: block;
        padding: 1.2rem 1.5rem;
        font-size: 1.1rem;
        font-weight: 500;
        border-radius: 8px;
        margin-bottom: 0.5rem;
        width: 100%;
        transition: var(--transition);
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.05);
    }

    nav a:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
    }

    nav a:focus {
        outline: 2px solid rgba(255, 255, 255, 0.8);
        outline-offset: 2px;
        background: rgba(255, 255, 255, 0.15);
    }

    /* Hide underline animation on mobile */
    nav ul::after {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-left {
        text-align: center;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .contact-item {
        padding: 1.5rem;
    }

    .contact-item h3 {
        font-size: 1.2rem;
    }

    .contact-item p {
        font-size: 1rem;
    }

    .gallery-item {
        width: 380px;
        height: 280px;
    }

    .gallery-scroll {
        gap: 1.5rem;
    }

    /* Fix for horizontal overflow */
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* Additional mobile fix for very small screens */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .gallery-item {
        width: 340px;
        height: 250px;
    }
}
