/* Global Styles */
:root {
    --primary-color: #930122;
    /* Deep Red/Burgundy */
    --secondary-color: #f1c40f;
    /* Gold/Yellow for 'Bright Sun' accent */
    --dark-color: #333;
    --light-color: #f4f4f4;
    --white: #ffffff;
    --text-color: #000;
    --font-primary: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Offsets the fixed header height */
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* Reusable Classes */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 40px 0;
}

.bg-light {
    background-color: var(--light-color);
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.underline {
    height: 3px;
    width: 70px;
    background-color: var(--secondary-color);
    margin: 0 auto;
}

.section-desc {
    margin-top: 15px;
    font-size: 1.1rem;
    color: #000;
}

/* Header & Navigation */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    backdrop-filter: blur(5px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1250px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo-img {
    max-height: 60px;
    width: auto;
    display: block;
}

.logo-text .highlight {
    color: #d35400;
    /* Slightly darker orange for better contrast on white */
}

.nav-list {
    display: flex;
}

.nav-list li {
    margin-left: 25px;
}

.nav-list a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--dark-color);
}

.nav-list a:hover {
    color: var(--primary-color);
}

.btn-contact {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 4px;
}

.btn-contact:hover {
    background-color: #7a001b;
    /* Darker shade of primary */
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--dark-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(37, 17, 17, 0.75), rgba(58, 20, 20, 0.75)), url('images/hero.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    width: 100%;
    position: relative;
    padding-top: 80px;
    /* Compensate for fixed header */
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.highlight-text {
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #e0e0e0;
}

.cta-group .btn {
    margin: 0 10px;
}

.btn-primary i {
    margin-left: 8px;
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    padding: 10px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

/* About Section */
.about-section {
    background-color: var(--white);
    padding: 60px 0;
    overflow: hidden;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.about-info {
    flex: 1;
    min-width: 300px;
    padding-left: 20px;
    text-align: left;
}

.about-title-wrapper {
    margin-bottom: 25px;
    display: inline-block;
}

.about-subtitle {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    padding-bottom: 8px;
}

.title-underline {
    display: flex;
    height: 3px;
    width: 100%;
}

.title-underline .line-yellow {
    width: 50%;
    background-color: var(--secondary-color);
}

.title-underline .line-grey {
    width: 50%;
    background-color: #707070;
}

.about-title {
    font-size: 48px;
    letter-spacing: -1.04px;
    color: #404040;
    margin-top: 0;
    margin-bottom: 30px;
    line-height: 1.35;
    font-weight: 600;
    opacity: 0.9;
}

.about-desc p {
    color: #000;
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 25px;
}

.about-desc p:last-child {
    margin-bottom: 0;
}

.about-desc strong {
    color: #000;
    font-weight: 600;
}

/* What We Do */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -15px;
}

.col-md-6 {
    width: 50%;
    padding: 15px;
}

.box {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.box:hover {
    transform: translateY(-5px);
}

.box h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.box p {
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-color);
    font-weight: bold;
    display: inline-flex;
    align-items: center;
}

.read-more i {
    margin-left: 5px;
    transition: margin-left 0.3s;
}

.read-more:hover i {
    margin-left: 10px;
}

/* Brands Section */
.brands-section {
    background: linear-gradient(135deg, #f9f9f9 0%, #f0e8ec 40%, #f5f0e6 70%, #f9f9f9 100%);
    position: relative;
    overflow: hidden;
}

.brands-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 50%;
    background: linear-gradient(135deg, rgba(147, 1, 34, 0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.brands-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 50%;
    background: linear-gradient(315deg, rgba(241, 196, 15, 0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.brands-premium-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px 30px;
    padding: 40px 10px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.brands-premium-grid::-webkit-scrollbar {
    display: none;
}

.brand-card {
    flex: 0 0 calc(25% - 30px);
    min-width: 160px;
    background: transparent;
    border-radius: 0;
    padding: 10px;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);

    /* Animation initial state */
    opacity: 0;
    transform: translateY(40px);
}

.brand-card.animate-fade-up {
    opacity: 1;
    transform: translateY(0);
}

.brand-card:hover {
    transform: translateY(-8px) scale(1.05);
    z-index: 10;
}

.brand-card img {
    max-width: 80%;
    max-height: 65px;
    object-fit: contain;
    filter: grayscale(0%);
    opacity: 1;
    transition: all 0.4s ease;
}

.brand-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.konica-minolta-logo {
    max-height: 120px !important;
    max-width: 140% !important;
    transform: scale(1.35);
}

/* Premium Products Section */
.products-section {
    background-color: var(--light-color);
}

.products-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 40px;
    padding: 0 60px;
}

.products-premium-grid {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 25px;
    padding: 20px 5px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.products-premium-grid::-webkit-scrollbar {
    display: none;
}

.premium-product-card {
    min-width: calc((100% - 75px) / 4);
    max-width: calc((100% - 75px) / 4);
    flex: 0 0 auto;
    scroll-snap-align: start;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.premium-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.card-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
    z-index: 1;
}

.premium-product-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.08) 100%);
    z-index: 2;
    pointer-events: none;
    transition: background 0.4s ease;
}

.premium-product-card:hover .img-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.2) 100%);
}

.card-content {
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.brand-desc {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1;
}

.btn-explore {
    align-self: flex-start;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn-explore:hover {
    color: #7a001b;
    gap: 14px;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    color: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.prev-btn {
    left: 5px;
}

.next-btn {
    right: 5px;
}

@media (max-width: 1024px) {
    .premium-product-card {
        min-width: calc((100% - 50px) / 3);
        max-width: calc((100% - 50px) / 3);
    }
}

@media (max-width: 768px) {
    .products-carousel-wrapper {
        padding: 0 45px;
    }

    .premium-product-card {
        min-width: calc((100% - 25px) / 2);
        max-width: calc((100% - 25px) / 2);
    }

    .prev-btn {
        left: 0;
    }

    .next-btn {
        right: 0;
    }
}

@media (max-width: 480px) {
    .products-carousel-wrapper {
        padding: 0 20px;
    }

    .premium-product-card {
        min-width: 100%;
        max-width: 100%;
    }
}

.special-features {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.special-features h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.features-list {
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.feature {
    flex: 1;
    padding: 0 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.feature:last-child {
    border-right: none;
}

.feature h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.center-btn {
    text-align: center;
}

/* Services Section */
.intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-card {
    background: var(--white);
    padding: 0 0 35px 0;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    margin-bottom: 25px;
    width: 100%;
}

.service-icon img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0 25px;
}

.service-card p {
    font-size: 0.95rem;
    color: #000;
    line-height: 1.6;
    margin-bottom: 0;
    padding: 0 25px;
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    gap: 40px;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
    background: var(--light-color);
    padding: 30px;
    border-radius: 8px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
    margin-right: 20px;
}

.info-item h4 {
    margin-bottom: 5px;
    color: var(--dark-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: #333333; /* Updated background color */
    color: var(--white);
    padding: 40px 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: start;
}

.footer-social p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-content {
    text-align: center;
    justify-self: center;
    grid-column: 2 / 3;
}

.footer-content p {
    margin: 0;
    line-height: 1.4;
    font-size: 0.9rem;
}

.footer-spacer {
    grid-column: 3 / 4;
}

@media (max-width: 768px) {
    .footer-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    
    .footer-social {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .footer-content {
        text-align: center;
    }
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-list {
        position: fixed;
        left: -100%;
        top: 90px;
        /* Aligned with header height: 60px logo + 30px padding */
        gap: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        height: auto;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        padding-bottom: 20px;
        z-index: 999;
        visibility: hidden;
        opacity: 0;
    }

    .nav-list.active {
        left: 0;
        visibility: visible;
        opacity: 1;
    }

    .nav-list li {
        margin: 16px 0;
    }

    /* Hero */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-desc {
        font-size: 0.95rem;
    }

    /* About Section */
    .about-section {
        padding: 60px 0;
    }

    .about-container {
        flex-direction: column;
        gap: 30px;
    }

    .about-image {
        min-width: 100%;
    }

    .about-info {
        min-width: 100%;
        padding-left: 0;
        text-align: left;
    }

    .about-title {
        font-size: 34px;
        line-height: 1.3;
        margin-bottom: 20px;
    }

    .about-desc p {
        text-align: justify;
    }

    /* Services */
    .service-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .col-md-6 {
        width: 100%;
    }

    .features-list {
        flex-direction: column;
        gap: 20px;
    }

    .feature {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 20px;
    }

    .feature:last-child {
        border-bottom: none;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .info-item {
        display: flex;
        align-items: center;
        text-align: left;
        width: 100%;
    }

    .info-item i {
        width: 25px;
        text-align: center;
        margin-right: 15px;
    }

    /* Brands */
    .brand-card {
        flex: 0 0 calc(50% - 30px);
        height: 70px;
    }

    .brand-card img {
        max-height: 35px;
    }

    .brand-card .konica-minolta-logo {
        max-height: 90px !important;
        transform: scale(1.4);
    }

    /* Section spacing */
    .section {
        padding: 30px 0;
    }
}

@media (max-width: 480px) {

    /* Hero */
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .cta-group .btn {
        width: 100%;
        margin: 0;
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 1.5rem;
    }

    /* About */
    .about-title {
        font-size: 28px;
    }

    .about-section {
        padding: 40px 0;
    }

    /* Services & Features */
    .features-grid {
        grid-template-columns: 1fr;
    }

    .service-cards {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
    }

    /* Brands */
    .brand-card {
        flex: 0 0 calc(50% - 15px);
        min-width: 120px;
    }

    .brands-premium-grid {
        gap: 20px 15px;
    }

    /* Footer */
    .footer {
        padding: 30px 0;
    }
}

/* Mobile View Enhancements */
@media (max-width: 576px) {

    .section-subtitle,
    .canon-subtitle {
        text-align: justify;
    }

    /* Increase space below site header */
    .canon-products-section,
    .epson-products-section,
    .hp-products-section,
    .konica-minolta-products-section,
    .kyocera-products-section,
    .ricoh-products-section,
    .sharp-products-section {
        padding-top: 150px !important;
    }

    /* Increase space below page title/header area */
    .section-header,
    .canon-header {
        margin-bottom: 70px !important;
    }
}