@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap');

/* Define CSS variables for easier color changes */
:root {
    --background-color: #f0f2f5;
    --card-color: #ffffff;
    --text-color: #333;
    --text-color-light: #555;
    --border-color: #eee;
    --whatsapp-color: #25D366;
    --facebook-color: #1877F2;
    --instagram-gradient: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    /* REMOVED: vCard color is gone */
}

/* Base styles and setting the new font */
body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top */
    padding: 20px;
    min-height: 100vh;
    box-sizing: border-box; /* Ensures padding doesn't add to width */
}

.card {
    background-color: var(--card-color);
    width: 100%;
    max-width: 450px; /* Optimized width for mobile card */
    padding: 30px;
    border-radius: 20px; /* Softer radius */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); /* Softer shadow */
    text-align: center;
    box-sizing: border-box;
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--border-color);
}

h1 {
    margin: 10px 0 5px 0;
    font-size: 2rem; /* Larger heading */
    color: var(--text-color);
}

p {
    font-size: 1.2rem;
    color: var(--text-color-light);
    margin-bottom: 25px;
}

/* NEW: Contact Details Styles */
.contact-details {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between items */
    margin-bottom: 25px;
    flex-wrap: wrap; /* Allows items to wrap on very small screens */
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
    text-decoration: none;
    font-size: 1rem;
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 25px; /* Pill shape */
    background-color: #f0f2f5;
    transition: background-color 0.2s;
}

.contact-item:hover {
    background-color: #e4e6eb; /* Light hover effect */
}

.contact-item i {
    color: var(--text-color-light);
}

/* Main Social Links */
.links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.link-button {
    display: flex; /* Use flex to align icon and text */
    align-items: center;
    justify-content: center; /* Center content */
    padding: 16px;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 12px; /* Softer radius */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.link-button:hover {
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.link-button i {
    /* FIXED: This margin-right now works correctly 
      because the parent <a> tag is set to dir="ltr".
    */
    margin-right: 12px; /* Space between icon and text */
    font-size: 1.2rem;
}

/* Button Colors */
.whatsapp { background-color: var(--whatsapp-color); }
.facebook { background-color: var(--facebook-color); }
.instagram { background: var(--instagram-gradient); }

/* REMOVED: vCard style is gone */


/* NEW: CSS-Only Slider Styles */
.gallery-title {
    font-size: 1.5rem;
    color: var(--text-color);
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    margin-bottom: 20px;
}

.slider-container {
    width: 100%;
    overflow: hidden; /* This hides the other slides */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.slider {
    display: flex;
    /* We have 4 slides (3 + 1 copy for looping) 
      So we set width to 400%
    */
    width: 400%;
    animation: slide 15s infinite; /* 15s total duration for 3 slides */
}

.slide {
    width: 25%; /* Each slide is 1/4 of the total slider width */
    flex-shrink: 0;
}

.slide img {
    width: 100%;
    height: 300px; /* Taller image for better view */
    object-fit: cover;
    display: block; /* Removes any bottom spacing */
}

/* Animation keyframes for the slider */
@keyframes slide {
    0% { margin-left: 0; }
    25% { margin-left: 0; } /* Hold on 1st image */
    33% { margin-left: -100%; } /* Slide to 2nd image */
    58% { margin-left: -100%; } /* Hold on 2nd image */
    66% { margin-left: -200%; } /* Slide to 3rd image */
    92% { margin-left: -200%; } /* Hold on 3rd image */
    100% { margin-left: -300%; } /* Slide back to the "copy" 1st image */
}

/* On smaller screens, reduce padding slightly 
  This is a 'media query' for responsiveness
*/
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .card {
        padding: 20px;
    }

    .slide img {
        height: 250px; /* Slightly shorter slides on small phones */
    }

    .contact-item {
        width: 100%; /* Make contact buttons full-width */
        justify-content: center;
    }
}

