/* Main Stylesheet for Metal Scrap Buyer in Dammam */

/* Tailwind CSS Import */
@import 'https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css';

/* Custom Text Size for Extra Extra Small Text */
.text-xxs {
    font-size: 0.625rem; /* 10px */
    line-height: 0.75rem; /* 12px */
}

/* Custom Breakpoint for Extra Small Devices */
@media (min-width: 480px) {
    .xs\:flex-row {
        flex-direction: row;
    }
    .xs\:h-auto {
        height: auto;
    }
    .xs\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
    .xs\:mb-0 {
        margin-bottom: 0;
    }
    .xs\:mr-3 {
        margin-right: 0.75rem;
    }
    .xs\:text-left {
        text-align: left;
    }
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Custom Color Variables */
:root {
    --primary-button-color: #2563EB; /* Blue */
    --secondary-button-color: #10B981; /* Green */
    --floating-button-color: #a985cf;
    --hover-color: #1D4ED8; /* Darker Blue */
    --secondary-hover-color: #059669; /* Darker Green */
    --accent-color: #F59E0B; /* Yellow/Gold for accents */
    --text-color: #333;
    --bg-color: #fff;
    --card-bg: #fff;
    --card-border: #eee;
    --card-shadow: rgba(0,0,0,0.1);
    --header-bg: #fff;
    --body-bg: #f9fafb;
    --tooltip-bg: #333;
    --tooltip-color: #fff;
}

/* Header/Navigation */
header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 4px var(--card-shadow);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* Dark mode specific styles */
[data-theme="dark"] .bg-white {
    background-color: var(--header-bg);
}

[data-theme="dark"] .bg-gray-50 {
    background-color: var(--body-bg);
}

[data-theme="dark"] .text-gray-600 {
    color: #9ca3af;
}

[data-theme="dark"] .text-gray-500 {
    color: #d1d5db;
}

/* Custom Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--body-bg);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-top: 70px; /* Add padding to account for fixed header */
    font-weight: 300;
    letter-spacing: 0.2px;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

.text-3xl {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.font-bold {
    font-weight: 600;
}

.text-xl {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.hero-section {
    background-image: url('../images/bg.png');
    background-size: cover;
    background-position: center;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px; /* Add padding to account for fixed header */
    text-align: center;
}

/* Make the hero content centered on all screen sizes */
.hero-section .container {
    display: flex;
    justify-content: center;
}

.btn-primary {
    background-color: var(--primary-button-color);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: var(--secondary-button-color);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.service-card {
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 20px;
    background-color: var(--card-bg);
    transition: all 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 5px 15px var(--card-shadow);
    transform: translateY(-5px);
}

.process-step {
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50px;
    width: 50px;
    height: 2px;
    background-color: var(--primary-button-color);
}

/* Prevent process step connectors from causing overflow on mobile */
@media (max-width: 767px) {
    .process-step::after {
        display: none;
    }
}

.process-step:last-child::after {
    display: none;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.contact-form button {
    background-color: var(--primary-button-color);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background-color: var(--hover-color);
}

/* Blog Styles */
.blog-card {
    border: 1px solid var(--card-border);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--card-bg);
    transition: all 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0 5px 15px var(--card-shadow);
    transform: translateY(-5px);
}

.blog-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

.blog-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Enhanced Typography */
p {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    line-height: 1.7;
}

.text-base {
    font-size: 1rem;
    line-height: 1.6;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.5;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1.4;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.7;
}

/* Add elegant transitions */
a {
    transition: all 0.3s ease;
}

/* Improve section titles with subtle text shadow */
.text-3xl.font-bold {
    text-shadow: 1px 1px 1px rgba(0,0,0,0.05);
}

/* Floating Action Buttons */
.floating-action-buttons {
    position: fixed;
    bottom: 20px;
    right: 16px; /* Adjusted for better thumb reach */
    z-index: 999;
    transition: all 0.3s ease;
}

.floating-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.9rem;
}

.floating-btn-main {
    background-color: var(--floating-button-color);
    z-index: 2;
}

.floating-btn-option {
    background-color: var(--secondary-button-color);
    position: absolute;
    bottom: 0;
    right: 0;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.floating-btn-phone {
    background-color: #2563EB; /* Blue color for phone button */
}

.floating-btn-option.active {
    opacity: 1;
    transform: scale(1);
}

.floating-btn-phone.active {
    bottom: 60px;
    right: 0;
}

.floating-btn-whatsapp.active {
    bottom: 120px;
    right: 0;
}

.floating-btn:hover {
    transform: translateY(-3px);
}

.floating-btn-whatsapp:hover {
    transform: translateY(-3px);
}

.floating-btn .tooltip {
    position: absolute;
    right: 55px;
    background-color: var(--tooltip-bg);
    color: var(--tooltip-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.floating-btn:hover .tooltip {
    opacity: 1;
}

/* Responsive styles for floating buttons */
/* Medium screens */
@media (min-width: 481px) and (max-width: 767px) {
    .floating-action-buttons {
        bottom: 20px;
        right: 16px;
        transform: translateX(-4px); /* Slight adjustment for medium screens */
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 0.95rem;
    }
    
    .floating-btn-phone.active {
        bottom: 70px;
        right: 0;
    }
    
    .floating-btn-whatsapp.active {
        bottom: 140px;
        right: 0;
    }
    
    .floating-btn .tooltip {
        right: 60px;
        padding: 4px 8px;
        font-size: 13px;
    }
}

/* Large screens */
@media (min-width: 768px) {
    .floating-action-buttons {
        bottom: 30px;
        right: 30px;
        transform: none; /* No adjustment needed for large screens */
    }
    
    .floating-btn {
        width: 60px;
        height: 60px;
        font-size: 1rem;
    }
    
    .floating-btn-phone.active {
        bottom: 80px;
    }
    
    .floating-btn-whatsapp.active {
        bottom: 160px;
    }
    
    .floating-btn:hover {
        transform: translateY(-5px);
    }
    
    .floating-btn .tooltip {
        right: 70px;
        padding: 5px 10px;
        font-size: 14px;
    }
}

/* Adjustments for very small screens */
@media (max-width: 480px) {
    .floating-action-buttons {
        bottom: 15px;
        right: 16px;
        transform: translateX(-8px); /* Pull button slightly left to ensure full visibility */
    }
    
    .floating-btn {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
    
    .floating-btn-phone.active {
        bottom: 50px;
        right: 0;
    }
    
    .floating-btn-whatsapp.active {
        bottom: 100px;
        right: 0;
    }
    
    .floating-btn .tooltip {
        right: 50px;
        font-size: 11px;
        padding: 3px 6px;
    }
}