/* Common Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-gray: #f5f6fa;
    --dark-gray: #2d3436;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--dark-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    font-size: 1.5rem;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Hero Section */
.hero {
    background-color: var(--light-gray);
    padding: 4rem 0;
    text-align: center;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.service-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

/* Footer Contact Links */
.contact-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Reduce vertical spacing on mobile */
    .section {
        padding: 1.5rem 0;
    }
    
    .section-title {
        margin-bottom: 0.75rem;
        font-size: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .search-section {
        padding: 1.5rem 0;
    }
    
    .quick-access {
        margin: 0.75rem 0;
        gap: 0.5rem;
    }
    
    .quick-access-btn {
        min-width: calc(50% - 0.25rem);  /* Exactly 2 cards with small gap */
        flex: 0 0 calc(50% - 0.25rem);
        padding: 0.5rem;
        margin: 0;
    }
    
    .quick-access-btn i {
        font-size: 1.25rem;  /* Smaller icon */
        margin-bottom: 0.25rem;
    }
    
    .quick-access-btn span {
        font-size: 0.85rem;  /* Smaller text */
    }
    
    .auto-scroll .quick-access {
        display: flex;
        overflow: visible;
        width: 100%;
        transition: transform 0.5s ease;
        gap: 0.5rem;  /* Reduced gap */
        padding: 0 0.25rem;  /* Small padding to avoid edge bleeding */
    }
    
    .auto-scroll .quick-access-btn {
        min-width: calc(50% - 0.25rem);  /* Exactly 2 cards */
        flex: 0 0 calc(50% - 0.25rem);
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .service-card .icon {
        margin-bottom: 0.5rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    footer {
        padding: 1.5rem 0;
        margin-top: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        width: 100%;
    }
    
    .footer-grid > div {
        width: 100%;
        min-width: 0;
        padding: 0 0.5rem;
        overflow: hidden; /* Prevent content overflow */
    }
    
    .footer h3 {
        font-size: 0.95rem;
        margin-bottom: 0.375rem;
        white-space: nowrap;
    }
    
    .footer p, 
    .footer li {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
        line-height: 1.4;
        word-wrap: break-word; /* Enable word wrapping */
        overflow-wrap: break-word; /* Handle very long words */
        white-space: normal; /* Allow text to wrap */
        max-width: 100%; /* Ensure text stays within container */
    }

    .footer p[class*="email"] { /* Target email specifically */
        font-size: 0.8rem; /* Slightly smaller font for email */
        word-break: break-all; /* Break email if necessary */
    }
    
    .footer-bottom {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 0.8rem;
        text-align: center;
        width: 100%;
    }
    
    .quick-links {
        padding-left: 0;  /* Remove default list padding */
    }
    
    .quick-links li {
        margin-bottom: 0.25rem;  /* Reduce spacing between links */
    }

    .contact-link {
        display: inline-block;  /* Makes the entire area clickable */
        padding: 0.2rem 0;  /* Adds some vertical padding for better touch target */
    }
}

/* Quick Links */
.quick-links {
    list-style: none;
}

.quick-links li {
    margin-bottom: 0.5rem;
}

.quick-links a {
    color: white;
    text-decoration: none;
}

/* Cards and Sections */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Price Tags */
.price-tag {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Icons */
.icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Status Indicators */
.status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
}

.status-open {
    background-color: #2ecc71;
    color: white;
}

.status-busy {
    background-color: #f1c40f;
    color: white;
}

/* Search Bar */
.search-bar {
    width: 100%;
    max-width: 500px;
    padding: 0.8rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 25px;
    margin: 1rem 0;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.p-2 { padding: 2rem; }

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.mobile-nav-toggle:hover {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    nav h1 {
        font-size: 1.2rem;
    }

    .mobile-nav-toggle {
        display: block;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
        width: 100%;
        text-align: center;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 5px;
    }
}

/* Horizontal Scrolling Cards for Mobile */
.scroll-cards {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    position: relative;
}

.scroll-cards .service-card {
    min-width: 280px;
    scroll-snap-align: start;
}

.scroll-cards::-webkit-scrollbar {
    height: 8px;
}

.scroll-cards::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 4px;
}

.scroll-cards::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

/* Auto-scrolling carousel for mobile */
@media (max-width: 768px) {
    .auto-scroll {
        overflow: hidden;
        position: relative;
        padding: 0.5rem 0;
    }

    .auto-scroll .scroll-cards {
        overflow: visible;
        width: 100%;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: auto;
        transition: transform 0.5s ease;
        scroll-snap-type: none;
    }
    
    .auto-scroll .quick-access {
        display: flex;
        overflow: visible;
        width: 100%;
        transition: transform 0.5s ease;
        gap: 1rem;
    }
    
    .auto-scroll .quick-access-btn {
        min-width: calc(50% - 0.5rem);
        flex: 0 0 calc(50% - 0.5rem);
    }

    .auto-scroll .service-card {
        min-width: calc(50% - 0.5rem);
        flex: 0 0 calc(50% - 0.5rem);
        margin: 0;
    }
    
    /* Single item display for Tech Shop and Digital Services */
    .shop-carousel .service-card,
    .services-carousel .service-card {
        min-width: calc(100% - 1rem);
        flex: 0 0 calc(100% - 1rem);
        margin: 0 0.5rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        padding: 1rem;
    }
    
    .shop-carousel .service-card .icon,
    .services-carousel .service-card .icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .shop-carousel .service-card h3,
    .services-carousel .service-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .shop-carousel .service-card ul,
    .services-carousel .service-card ul {
        margin: 0.5rem 0;
        padding-left: 1.25rem;
    }
    
    .shop-carousel .service-card .btn,
    .services-carousel .service-card .btn {
        align-self: flex-start;
        margin-top: auto;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Remove the indicators section entirely */
    .carousel-indicators {
        display: none;
    }
    
    /* Hide scrollbar for the infinite carousel */
    .auto-scroll .scroll-cards::-webkit-scrollbar,
    .auto-scroll .quick-access::-webkit-scrollbar {
        display: none;
    }
    
    .auto-scroll .scroll-cards,
    .auto-scroll .quick-access {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    
    /* Calculator spacing */
    .calculator-form {
        gap: 0.75rem;
    }
    
    .calculator-form select,
    .calculator-form input {
        padding: 0.6rem;
    }
    
    .calculator-result {
        margin-top: 0.75rem;
        padding: 0.75rem;
    }
}

/* Price Calculator Styles */
.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calculator-form select,
.calculator-form input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--light-gray);
    border-radius: 5px;
    font-size: 1rem;
    background-color: white;
}

.calculator-form select:focus,
.calculator-form input:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.calculator-form .btn {
    width: 100%;
    margin-top: 0.5rem;
}

.calculator-result {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 5px;
    text-align: center;
}

.calculator-result strong {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.calculator-result small {
    display: block;
    color: var(--dark-gray);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* WhatsApp Button Styles */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #25D366;
    color: white;
    width: 100%;  /* Make button full width */
    margin-top: 0.5rem;
    border: none;
    padding: 1rem;  /* Increased padding */
    border-radius: 8px;  /* Slightly more rounded corners */
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;  /* Slightly larger text */
    text-transform: uppercase;  /* Make text uppercase */
    letter-spacing: 0.5px;  /* Add letter spacing */
    box-shadow: 0 2px 4px rgba(37, 211, 102, 0.2);  /* Subtle shadow */
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);  /* Slight lift effect */
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);  /* Enhanced shadow on hover */
}

.btn-whatsapp i {
    font-size: 1.3rem;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .calculator-form {
        gap: 0.75rem;
    }
    
    .calculator-form select,
    .calculator-form input {
        padding: 0.6rem;
        font-size: 0.95rem;
    }
    
    .calculator-result {
        margin-top: 0.75rem;
        padding: 0.75rem;
    }
    
    .calculator-result strong {
        font-size: 1rem;
    }
    
    .calculator-result small {
        font-size: 0.8rem;
        margin-top: 0.25rem;
    }

    .btn-whatsapp {
        padding: 0.875rem;
        font-size: 1rem;
    }
    
    .btn-whatsapp i {
        font-size: 1.2rem;
    }
}

/* Search Section Enhancement */
.search-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 3rem 0;
}

.search-container {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 2rem auto;
}

@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
        gap: 0.5rem;  /* Reduced from 1rem */
        margin: 0.5rem auto;  /* Reduced from 2rem */
    }
    
    .search-bar {
        margin: 0;
        padding: 0.5rem 1rem;  /* Reduced from 0.8rem */
    }

    .search-section {
        padding: 0.75rem 0;  /* Reduced from 1.5rem */
    }
    
    .quick-access {
        margin: 0.375rem 0;  /* Reduced from 0.75rem */
        gap: 0.25rem;  /* Reduced from 0.5rem */
    }
    
    .quick-access-btn {
        padding: 0.25rem;  /* Reduced from 0.5rem */
    }
    
    .quick-access-btn i {
        font-size: 1.125rem;  /* Slightly reduced from 1.25rem */
        margin-bottom: 0.125rem;  /* Reduced from 0.25rem */
    }
    
    .quick-access-btn span {
        font-size: 0.75rem;  /* Slightly reduced from 0.85rem */
        line-height: 1.2;  /* Added to reduce text height */
    }
    
    .auto-scroll {
        padding: 0.25rem 0;  /* Reduced from 0.5rem */
    }
    
    .auto-scroll .quick-access {
        gap: 0.25rem;  /* Reduced from 0.5rem */
        padding: 0 0.125rem;  /* Reduced from 0.25rem */
    }
}

/* Service Status Enhancement */
.status-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: var(--light-gray);
    border-radius: 5px;
}

/* Quick Access Buttons */
.quick-access {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.quick-access-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-decoration: none;
    color: var(--dark-gray);
}

.quick-access-btn i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

/* Selected Services Styles */
.selected-services {
    margin-top: 1rem;
}

.selected-services-list {
    border-top: 2px solid var(--light-gray);
    margin-top: 1rem;
    padding-top: 1rem;
}

.selected-service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.service-info {
    flex: 1;
}

.service-info strong {
    color: var(--primary-color);
    font-size: 1rem;
}

.service-info small {
    color: var(--dark-gray);
    font-size: 0.85rem;
}

.service-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.btn-remove {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.btn-remove:hover {
    transform: scale(1.1);
}

.total-price {
    border-top: 2px solid var(--light-gray);
    margin-top: 1rem;
    padding-top: 1rem;
    text-align: right;
}

.total-price strong {
    display: block;
    color: #e53935;  /* Bright red color */
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .selected-service-item {
        padding: 0.5rem;
        margin-bottom: 0.375rem;
    }
    
    .service-info strong {
        font-size: 0.9rem;
    }
    
    .service-info small {
        font-size: 0.8rem;
    }
    
    .service-price {
        font-size: 0.9rem;
    }
    
    .btn-remove {
        font-size: 0.9rem;
    }
    
    .total-price {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }
    
    .total-price strong {
        font-size: 1.3rem;  /* Slightly larger on mobile */
        margin-bottom: 0.75rem;
    }
} 