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

/* Body Styles */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #ddd;
    /* Light text for dark background */
    background: #121212;
    /* Dark background */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Ensure body stretches to full height of the viewport */
}

/* Header & Navigation Styles */
header {
    background: rgba(31, 31, 31, 0.95);
    padding: 2rem 0 1rem 0;
    border-bottom: 1px solid rgba(118, 199, 192, 0.2);
    text-align: center;
    position: relative;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

nav {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #76c7c0;
}

/* Enhanced Mobile Styles */
@media (max-width: 768px) {
    header {
        padding: 1rem 0;
    }

    header h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    nav ul li a {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
        border-radius: 15px;
        background: rgba(118, 199, 192, 0.1);
        transition: all 0.3s ease;
    }

    nav ul li a:hover,
    nav ul li a.active {
        background: #76c7c0;
        color: #121212;
    }

    /* Mobile-first contact form */
    .contact-form {
        padding: 1rem;
        margin: 0 1rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        font-size: 16px;
        /* Prevents zoom on iOS */
        padding: 1rem;
    }

    /* Touch-friendly buttons */
    .btn {
        min-height: 44px;
        /* Apple's recommended touch target */
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }

    /* Calculator mobile improvements */
    .calculator-container {
        margin: 1rem;
        padding: 1rem;
    }

    .metal-card {
        padding: 0.75rem;
        min-height: 80px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .metal-card h4 {
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }

    .metal-price {
        font-size: 0.9rem;
    }

    /* Booking form mobile */
    .booking-container {
        margin: 1rem;
        padding: 1rem;
    }

    .booking-steps {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .booking-steps::before {
        display: none;
    }

    .step {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        text-align: left;
    }

    .step-number {
        margin-bottom: 0;
    }

    /* Gallery mobile */
    .gallery-container {
        padding: 1rem;
    }

    .gallery-filters {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    /* Service area mobile */
    .service-map-container {
        padding: 1rem;
    }

    .zip-input-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .check-btn {
        width: 100%;
    }

    /* Improved touch targets */
    .service-zone {
        min-width: 44px;
        min-height: 44px;
    }

    /* Better spacing for mobile */
    .welcome-section,
    .about-section {
        padding: 1rem;
        margin: 1rem 0;
    }

    /* Mobile navigation improvements */
    .back-to-top {
        bottom: 80px;
        /* Above mobile keyboards */
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    nav ul {
        gap: 0.25rem;
    }

    nav ul li a {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }

    header h1 {
        font-size: 1.3rem;
    }

    .total-amount {
        font-size: 1.8rem;
    }

    .calculator-grid,
    .booking-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    /* Smaller modals on tiny screens */
    .modal {
        padding: 0.5rem;
    }

    .modal-content {
        border-radius: 8px;
    }
}

/* Landscape phone orientation */
@media (max-width: 768px) and (orientation: landscape) {
    header {
        padding: 0.5rem 0;
    }

    header h1 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    main {
        padding: 1rem;
    }

    .map-placeholder {
        height: 200px;
    }

    .modal-image-container {
        height: 180px;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {

    .service-card:hover,
    .metal-card:hover,
    .gallery-item:hover {
        transform: none;
        /* Disable hover animations on touch */
    }

    .btn:hover {
        transform: none;
    }

    /* Larger touch targets */
    .time-slot {
        min-height: 44px;
        padding: 1rem;
    }

    .service-card {
        min-height: 120px;
    }
}

/* ===== ADMIN BOOKING MANAGEMENT STYLES ===== */

.bookings-container {
    max-height: 600px;
    overflow-y: auto;
    margin-top: 1rem;
}

.booking-card {
    background: #121212;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.booking-card:hover {
    border-color: #76c7c0;
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 0.5rem;
}

.booking-header h4 {
    margin: 0;
    color: #76c7c0;
}

.booking-status {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #ffc107;
    color: #000;
}

.status-confirmed {
    background: #28a745;
    color: #fff;
}

.status-progress {
    background: #17a2b8;
    color: #fff;
}

.status-completed {
    background: #6c757d;
    color: #fff;
}

.status-cancelled {
    background: #dc3545;
    color: #fff;
}

.booking-details {
    margin-bottom: 1rem;
}

.booking-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.booking-row span {
    color: #ddd;
    font-size: 0.9rem;
}

.booking-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.status-select {
    background: #1a1a1a;
    color: #ddd;
    border: 1px solid #2a2a2a;
    padding: 0.5rem;
    border-radius: 4px;
}

.btn-info {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-info:hover {
    background: #138496;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-primary {
    background: #76c7c0;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #5fb3ac;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-success {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: #218838;
}

.btn-warning {
    background: #ffc107;
    color: #000;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-remove {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.btn-remove:hover {
    background: #c82333;
}

/* Availability Management */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.time-slot-item {
    background: #121212;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
}

.time-label {
    display: block;
    color: #76c7c0;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.slot-toggle {
    color: #ddd;
    font-size: 0.9rem;
}

.slot-toggle input {
    margin-right: 0.5rem;
}

/* Weekly Schedule */
.days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.day-schedule {
    background: #121212;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 1rem;
}

.day-schedule h5 {
    margin: 0 0 0.5rem 0;
    color: #76c7c0;
}

.day-schedule label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ddd;
}

.day-times {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.day-times input[type="time"] {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #ddd;
    padding: 0.25rem;
    border-radius: 4px;
    flex: 1;
}

.day-times span {
    color: #888;
    font-size: 0.9rem;
}

/* Blocked Dates */
.add-block {
    background: #121212;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.blocked-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.block-info {
    color: #ddd;
    flex: 1;
}

/* Admin Messages */
.admin-message {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: none;
}

.admin-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.admin-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.admin-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.no-bookings,
.no-blocks {
    text-align: center;
    color: #888;
    padding: 2rem;
    font-style: italic;
}

/* Mobile optimizations for admin */
@media (max-width: 768px) {
    .booking-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .booking-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .booking-actions select,
    .booking-actions button {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .days-grid {
        grid-template-columns: 1fr;
    }

    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .day-times {
        flex-direction: column;
        gap: 0.25rem;
    }

    .day-times input[type="time"] {
        width: 100%;
    }

    .blocked-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
}

/* Main Content */
main {
    flex: 1;
    /* Allows the main content to stretch and push footer to the bottom */
    padding: 2rem;
    max-width: 1200px;
    /* Restrict main content width for better readability */
    margin: 0 auto;
    background: #1a1a1a;
    /* Dark background */
    border-radius: 8px;
    /* Smooth edges */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    /* Subtle shadow for depth */
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    padding: 2rem;
    background: #1f1f1f;
    /* Slightly lighter for contrast */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    /* Light shadow for depth */
    margin: 2rem auto;
    max-width: 800px;
    /* Restrict the width for readability */
    line-height: 1.8;
    color: #ddd;
    /* Light text */
}

.welcome-section h2 {
    font-size: 2rem;
    color: #76c7c0;
    /* Accent color */
    margin-bottom: 1rem;
}

.welcome-section p {
    font-size: 1.1rem;
    color: #bbb;
    /* Light gray text */
    margin-bottom: 1.5rem;
}

.welcome-section strong {
    color: #76c7c0;
    /* Accent highlight */
}

.welcome-section blockquote {
    font-style: italic;
    color: #76c7c0;
    background: #2a2a2a;
    /* Subtle background for blockquote */
    border-left: 4px solid #76c7c0;
    padding: 1rem;
    margin: 2rem 0;
    border-radius: 4px;
}

/* About Section */
.about-section {
    padding: 2rem;
    background: #1f1f1f;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin: 2rem auto;
    max-width: 800px;
    line-height: 1.8;
    color: #ddd;
}

.about-section h2 {
    font-size: 2rem;
    color: #76c7c0;
    margin-bottom: 1rem;
}

.about-section p {
    font-size: 1.1rem;
    color: #bbb;
    margin-bottom: 1.5rem;
}

.about-section ul.about-list {
    list-style-type: disc;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.about-section ul.about-list li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: #bbb;
}

.about-section strong {
    color: #76c7c0;
}

.about-section blockquote {
    font-style: italic;
    color: #76c7c0;
    background: #2a2a2a;
    border-left: 4px solid #76c7c0;
    padding: 1rem;
    margin: 2rem 0;
    border-radius: 4px;
    text-align: center;
}

/* Services Section */
.services {
    display: flex;
    flex-wrap: wrap;
    /* Allows the cards to wrap to the next line if needed */
    justify-content: space-around;
    /* Evenly distribute cards */
    gap: 1.5rem;
    /* Spacing between cards */
    padding: 2rem;
}

.service {
    max-width: 300px;
    /* Adjust card size for consistency */
    border: 1px solid #2a2a2a;
    /* Dark border for the dark theme */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    /* Subtle shadow */
    overflow: hidden;
    text-align: center;
    background: #1f1f1f;
    /* Match dark theme */
    padding: 1.5rem;
    color: #ddd;
    /* Light text */
}

.service img {
    width: 100%;
    height: 200px;
    /* Uniform height for images */
    object-fit: cover;
    /* Ensures images scale and crop properly */
    border-bottom: 1px solid #333;
    margin-bottom: 1rem;
}

.service h2 {
    font-size: 1.4rem;
    color: #76c7c0;
    /* Accent color for headings */
    margin-bottom: 0.5rem;
}

.service p {
    font-size: 1rem;
    color: #bbb;
    /* Lighter gray for descriptions */
    line-height: 1.6;
}

/* Footer */
footer {
    background: #1f1f1f;
    color: #bbb;
    padding: 1rem;
    text-align: center;
    margin-top: auto;
}

footer .call {
    display: block;
    margin-top: 0.5rem;
    color: #76c7c0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

footer .call:hover {
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }

    .services {
        flex-direction: column;
        align-items: center;
        /* Center the stacked cards */
    }

    main {
        padding: 1rem;
    }

    .welcome-section,
    .about-section {
        padding: 1rem;
    }
}

/* Enhanced Service Cards */
.service {
    position: relative;
    background: linear-gradient(145deg, #1f1f1f, #1a1a1a);
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 2px;
    background: linear-gradient(45deg, transparent, rgba(118, 199, 192, 0.3), transparent);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.service:hover::before {
    opacity: 1;
}

/* Enhanced Sections */
.welcome-section,
.about-section {
    position: relative;
    background: linear-gradient(145deg, #1f1f1f, #1a1a1a);
    transition: all 0.3s ease;
}

.welcome-section:hover,
.about-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Custom Button Style */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(45deg, #76c7c0, #5fb3ac);
    color: #fff;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(118, 199, 192, 0.4);
}

/* Contact Form Enhancement */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #76c7c0;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    background: #121212;
    border: 1px solid #2a2a2a;
    padding: 12px;
    border-radius: 6px;
    color: #ddd;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: #76c7c0;
    box-shadow: 0 0 0 2px rgba(118, 199, 192, 0.2);
    outline: none;
    background: #1a1a1a;
}

.form-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 12px;
    color: #888;
    font-style: italic;
}

.estimated-value-display {
    background: linear-gradient(135deg, #76c7c0, #5fb3ac);
    color: white;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    margin: 1rem 0;
    animation: slideIn 0.3s ease;
}

.estimated-value-display h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.btn-submit {
    width: 100%;
    position: relative;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.success-message {
    background: #0f5132;
    color: #d1eddd;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #198754;
    margin-top: 1rem;
}

.error-message {
    background: #58151c;
    color: #f8d7da;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #dc3545;
    margin-top: 1rem;
}

.success-message h4,
.error-message h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.contact-info {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #76c7c0;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animated gradient background for body */
body {
    background: linear-gradient(-45deg, #121212, #1a1a1a, #1f1f1f, #242424);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

/* Modern Navigation */
nav {
    background: rgba(51, 51, 51, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

nav ul li a:hover {
    background: rgba(118, 199, 192, 0.1);
    box-shadow: 0 0 20px rgba(118, 199, 192, 0.2);
}

/* Enhanced Service Cards */
.service {
    background: rgba(31, 31, 31, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(118, 199, 192, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(118, 199, 192, 0.3);
}

.service img {
    transition: all 0.5s ease;
}

.service:hover img {
    transform: scale(1.1);
}

/* Add these new animations */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Modern Button Style */
.btn {
    background: linear-gradient(45deg, #76c7c0, #5fb3ac);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

/* Enhanced Section Styles */
.welcome-section,
.about-section {
    background: rgba(31, 31, 31, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(118, 199, 192, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Add this cool text gradient effect to headings */
h1,
h2 {
    background: linear-gradient(45deg, #76c7c0, #5fb3ac);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

/* Add subtle hover effects to links */
a {
    position: relative;
    text-decoration: none;
    color: #76c7c0;
    transition: all 0.3s ease;
}

a:hover {
    color: #5fb3ac;
    text-shadow: 0 0 8px rgba(118, 199, 192, 0.5);
}

/* Add this to your existing media queries */
@media (max-width: 768px) {
    header {
        padding: 2rem 0;
    }

    .service:hover {
        transform: translateY(-8px) scale(1.01);
    }
}

/* Contact Form Styles */
.contact-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.contact-info {
    background: rgba(31, 31, 31, 0.8);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(118, 199, 192, 0.1);
}

.contact-form {
    background: rgba(31, 31, 31, 0.8);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(118, 199, 192, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(118, 199, 192, 0.2);
    border-radius: 5px;
    background: #1a1a1a;
    color: #fff;
    font-size: 16px;
    /* Prevents iOS zoom on focus */
    -webkit-appearance: none;
    /* Removes iOS default styles */
    appearance: none;
}

/* Custom select arrow */
.form-group select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2376c7c0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

/* Improve touch targets */
button {
    min-height: 44px;
    padding: 12px 24px;
}

.phone-link {
    color: #76c7c0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.phone-link:hover {
    color: #5fb3ac;
    text-shadow: 0 0 8px rgba(118, 199, 192, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {

    /* Header */
    header h1 {
        font-size: 1.8rem;
        padding: 0 1rem;
    }

    /* Navigation */
    nav {
        padding: 0.5rem;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    nav ul li a {
        display: block;
        padding: 0.8rem 1rem;
        width: 100%;
        text-align: center;
    }

    /* Services Grid */
    .services {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .service {
        margin-bottom: 1.5rem;
    }

    /* Text Sizing */
    p,
    li {
        font-size: 0.95rem;
    }

    /* Spacing */
    .welcome-section,
    .about-section {
        padding: 1.5rem;
    }

    /* Images */
    .service img {
        height: 180px;
    }

    /* Footer */
    footer {
        padding: 1rem;
        text-align: center;
    }

    footer .call {
        display: block;
        margin-top: 0.5rem;
        padding: 0.8rem;
    }
}

/* Small phones */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    .contact-container {
        padding: 0.5rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px;
    }
}

/* Landscape orientation */
@media (max-height: 500px) and (orientation: landscape) {
    header {
        padding: 1rem 0;
    }

    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* Hover Effects for Service Boxes */
.service {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service:hover {
    transform: translateY(-5px);
    /* Slight lift effect */
    box-shadow: 0 8px 20px rgba(118, 199, 192, 0.3);
    /* Glowing shadow */
}

/* Image Hover Effects */
.service img {
    transition: all 0.3s ease;
}

.service:hover img {
    transform: scale(1.05);
    /* Slight zoom effect */
    filter: brightness(1.1);
    /* Slightly brighter */
}

/* Glow Overlay Effect */
.service::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(118, 199, 192, 0.1);
    /* Your theme color with transparency */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service:hover::after {
    opacity: 1;
}

/* Add hover effects to other content boxes */
.welcome-section:hover,
.about-section:hover,
.contact-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(118, 199, 192, 0.2);
    transition: all 0.3s ease;
}

.loading-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #121212;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid #76c7c0;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #76c7c0;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
}

.impact-counter {
    background: rgba(31, 31, 31, 0.95);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impact-counter:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(118, 199, 192, 0.2);
}

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

.counter-item {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.counter {
    font-size: 2.5rem;
    font-weight: bold;
    color: #76c7c0;
    margin-bottom: 0.25rem;
}

.impact-explanation {
    font-size: 0.85rem;
    color: #a8a8a8;
    margin-top: 0.5rem;
    display: block;
    line-height: 1.4;
    padding: 0 1rem;
}

.admin-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(31, 31, 31, 0.95);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    color: #fff;
    max-width: 300px;
}

.admin-panel h3 {
    margin-bottom: 15px;
    color: #76c7c0;
}

.admin-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-group label {
    font-size: 0.9rem;
    color: #ddd;
}

.input-group input {
    padding: 8px;
    border: 1px solid #76c7c0;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
}

.admin-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.update-btn,
.logout-btn,
.admin-login-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.update-btn {
    background: #76c7c0;
    color: #fff;
}

.logout-btn {
    background: #ff4444;
    color: #fff;
}

.admin-login-btn {
    background: transparent;
    border: 1px solid #76c7c0;
    color: #76c7c0;
    margin-left: 15px;
}

.last-updated {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #999;
}

.update-btn:hover,
.admin-login-btn:hover {
    opacity: 0.9;
}

.logout-btn:hover {
    background: #ff0000;
}

/* Admin Dashboard Styles */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.nav-btn {
    padding: 10px 20px;
    margin: 0 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #f0f0f0;
    transition: all 0.3s ease;
}

.nav-btn.active {
    background: #76c7c0;
    color: white;
}

.admin-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.update-btn {
    background: #76c7c0;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.update-btn:hover {
    background: #5fb3ac;
}

.services-list {
    margin-bottom: 20px;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.service-item:last-child {
    border-bottom: none;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block !important;
}

/* Make sure the initial active section is visible */
#stats-section.active {
    display: block;
}

.nav-btn {
    padding: 10px 20px;
    margin: 0 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #f0f0f0;
    transition: all 0.3s ease;
}

.nav-btn.active {
    background: #76c7c0;
    color: white;
}

.service-info {
    flex: 1;
}

.service-info h4 {
    margin: 0 0 5px 0;
    color: #333;
}

.service-info p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

.service-actions {
    display: flex;
    gap: 10px;
}

.edit-btn,
.delete-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.edit-btn {
    background: #76c7c0;
    color: white;
}

.delete-btn {
    background: #ff4444;
    color: white;
}

.edit-btn:hover {
    background: #5fb3ac;
}

.delete-btn:hover {
    background: #ff0000;
}

.current-value {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
    padding: 5px;
    background: #f5f5f5;
    border-radius: 4px;
}

.input-group {
    margin-bottom: 20px;
}

/* --- NAVIGATION BAR ENHANCEMENTS --- */
nav {
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #181b1c;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    border-radius: 0;
    margin-bottom: 2rem;
    padding: 0.5rem 0;
    position: relative;
    top: 0;
    z-index: 100;
    border-bottom: 1.5px solid #232b2d;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    flex-wrap: nowrap;
    max-width: 100vw;
    overflow-x: auto;
}

nav ul li {
    display: flex;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    position: relative;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

nav ul li a:hover,
nav ul li a:focus {
    background: #232b2d;
    color: #76c7c0;
    box-shadow: 0 2px 8px rgba(118, 199, 192, 0.08);
}

nav ul li a.active,
nav ul li a[aria-current="page"] {
    background: #76c7c0;
    color: #181b1c;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(118, 199, 192, 0.15);
}

@media (max-width: 900px) {
    nav ul {
        gap: 0.5rem;
    }

    nav ul li a {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 600px) {
    nav {
        border-radius: 0;
        margin-bottom: 1rem;
        padding: 0.25rem 0;
    }

    nav ul {
        gap: 0.25rem;
        padding: 0 0.5rem;
    }

    nav ul li a {
        font-size: 0.95rem;
        padding: 0.5rem 0.7rem;
        border-radius: 6px;
    }
}