/* --- Global Reset & Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&family=Orbitron:wght@700;900&display=swap');

:root {
    --deep-purple: #4a00e0; /* Original deep purple */
    --vibrant-fuchsia: #8e2de2; /* A bridge color, vibrant fuchsia/magenta */
    --electric-turquoise: #00c6ff; /* Original vibrant turquoise */
    --glow-cyan: #00f2ff;
    --dark-bg: #1a002e; /* Very dark purple for depth */
    --light-text: #f0f8ff; /* Alice blue, for soft light text */
    --accent-shadow: rgba(0, 242, 255, 0.5); /* Cyan shadow for glow */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--dark-bg);
    background-image: 
        radial-gradient(circle at 10% 20%, var(--deep-purple) 0%, transparent 50%),
        radial-gradient(circle at 80% 90%, var(--electric-turquoise) 0%, transparent 50%),
        linear-gradient(160deg, var(--dark-bg) 30%, var(--deep-purple) 60%, var(--vibrant-fuchsia) 100%);
    background-attachment: fixed;
    color: var(--light-text);
    line-height: 1.7;
    overflow-x: hidden; /* Prevent horizontal scroll from bold elements */
    direction: rtl; /* For Arabic content */
}

/* --- Main Container --- */
.artistic-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative; /* For potential pseudo-element effects */
}

/* --- Header --- */
.main-header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 40px;
    border-bottom: 2px solid;
    border-image: linear-gradient(to left, var(--electric-turquoise), var(--vibrant-fuchsia)) 1;
    position: relative;
}

.main-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 900;
    color: var(--light-text);
    text-shadow: 
        0 0 5px var(--glow-cyan),
        0 0 10px var(--glow-cyan),
        0 0 15px var(--vibrant-fuchsia),
        0 0 20px var(--vibrant-fuchsia);
    letter-spacing: 1px;
    line-height: 1.3;
}

.main-header h1 .highlight-text {
    display: block; /* Or inline-block for different effect */
    font-size: 0.8em; /* Slightly smaller */
    color: var(--electric-turquoise);
    text-shadow: 
        0 0 3px var(--deep-purple),
        0 0 5px var(--deep-purple);
}

/* --- Content Core --- */
.content-core {
    background: rgba(26, 0, 46, 0.6); /* Semi-transparent dark-bg */
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%); /* Safari */
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), 
                inset 0 0 0 1px rgba(255,255,255,0.1); /* Subtle inner border */
}

/* --- Article Sections --- */
.article-body section {
    margin-bottom: 50px;
    padding: 25px;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(74, 0, 224, 0.1), rgba(142, 45, 226, 0.15)); /* Subtle gradient background for sections */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.article-body section:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 10px 25px var(--accent-shadow);
}

.article-body h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--electric-turquoise);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--vibrant-fuchsia);
    text-shadow: 0 0 8px var(--vibrant-fuchsia);
}

.article-body p {
    font-size: 1.1rem;
    color: #e0e8ef; /* Slightly off-white for readability */
    margin-bottom: 15px;
}

.intro-section p, .conclusion-section p {
    font-size: 1.15rem;
    line-height: 1.8;
}

.conclusion-section h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--vibrant-fuchsia);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

/* --- Before & After Gallery --- */
.before-after-gallery {
    display: flex;
    gap: 20px;
    justify-content: space-around;
    margin-bottom: 25px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.image-card {
    flex: 1;
    min-width: 250px; /* Minimum width before wrapping */
    max-width: 350px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px var(--accent-shadow);
}

.image-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin-bottom: 8px;
}

.image-caption {
    font-size: 0.9rem;
    color: var(--electric-turquoise);
    font-weight: 500;
}

/* --- 3D Call to Action Buttons --- */
.cta-button {
    display: inline-flex; /* For aligning icon and text */
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--light-text);
    background: linear-gradient(145deg, var(--vibrant-fuchsia), var(--deep-purple));
    border: none;
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.2s ease-out,
                background 0.3s ease;
    box-shadow: 
        0 4px 0 darken(var(--deep-purple), 10%), /* Bottom edge for 3D */
        0 6px 12px rgba(0,0,0,0.3); /* Drop shadow */
}

.cta-button .button-icon {
    width: 20px;
    height: 20px;
}

.cta-button:hover {
    background: linear-gradient(145deg, var(--electric-turquoise), var(--vibrant-fuchsia));
    transform: translateY(-3px) scale(1.03);
    box-shadow: 
        0 6px 0 darken(var(--vibrant-fuchsia), 10%),
        0 10px 20px var(--accent-shadow);
}

.cta-button:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 
        0 2px 0 darken(var(--vibrant-fuchsia), 15%),
        0 4px 8px rgba(0,0,0,0.4);
}

/* For a more pronounced 3D effect with perspective (add to threedee-button class) */
.threedee-button {
    perspective: 500px;
}
.threedee-button span {
    display: block;
    transform-style: preserve-3d;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.threedee-button:hover span {
    transform: translateZ(10px) rotateX(-5deg);
}


/* --- Footer --- */
.main-footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    border-top: 1px solid;
    border-image: linear-gradient(to right, var(--electric-turquoise), var(--vibrant-fuchsia)) 1;
    font-size: 0.9rem;
    color: #b0c4de; /* Light steel blue */
}

/* --- Scrollbar Styling (Optional, WebKit only) --- */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--deep-purple), var(--electric-turquoise));
    border-radius: 10px;
    border: 2px solid var(--dark-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--electric-turquoise), var(--deep-purple));
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .main-header h1 {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
    }
    .article-body h2 {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }
    .content-core {
        padding: 20px;
    }
    .article-body section {
        padding: 20px;
    }
    .before-after-gallery {
        flex-direction: column;
        align-items: center;
    }
    .image-card {
        width: 90%; /* Full width on smaller screens within gallery */
        max-width: none;
    }
    .cta-button {
        padding: 10px 22px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .artistic-container {
        padding: 10px;
    }
    .main-header {
        padding: 25px 10px;
    }
    .main-header h1 {
        letter-spacing: 0;
    }
}