/*
Theme Name: Aurora Portfolio
Theme URI: https://example.com/aurora-portfolio
Author: Aurora Portfolio Theme
Author URI: https://example.com
Description: A standalone single-page portfolio theme with an animated aurora background, glassmorphism, scroll reveal, and project modal. Built from the Aurora CV HTML and fully editable via the WordPress admin. No standard header/footer/sidebar markup is used. Supports an Arabic/English language switcher and a Slick-powered image carousel inside the project modal.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aurora-portfolio
Tags: portfolio, one-page, custom-colors, custom-menu, translation-ready
*/

/* ===================================================================
   IMPORTANT: The CSS below is taken verbatim from the source HTML.
   Do not introduce box-shadow on UI elements — the source uses
   box-shadow ONLY on the aurora glow orbs (.colour-1, .colour-2,
   .colour-3) and that is intentional.
   =================================================================== */

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

:root {
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.6);
    --primary: #00b9ff;
    --secondary: #7a2cff;
    --accent: #ff6b9d;
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-bg-hover: rgba(255, 255, 255, 0.10);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-hover: rgba(255, 255, 255, 0.25);
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    background: #05081a;
}

/* ===== AURORA ANIMATED BACKGROUND ===== */
.aurora-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -2;
    background:
        radial-gradient(1200px 900px at 12% 88%, rgba(122,44,255,.22), transparent 60%),
        radial-gradient(1200px 900px at 85% 35%, rgba(0,185,255,.14), transparent 62%),
        linear-gradient(120deg, #05081a, #06143a 45%, #05081a);
}

.aurora-bg > div {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 1;
    will-change: transform;
}

@keyframes orbitA {
    0%   { transform: translate3d(0,0,0) rotate(0deg)   translateX(6vw) scale(1.05); }
    50%  { transform: translate3d(0,0,0) rotate(180deg) translateX(6vw) scale(1.10); }
    100% { transform: translate3d(0,0,0) rotate(360deg) translateX(6vw) scale(1.05); }
}

@keyframes orbitB {
    0%   { transform: translate3d(0,0,0) rotate(0deg)   translateX(9vw) scale(1.08); }
    50%  { transform: translate3d(0,0,0) rotate(180deg) translateX(9vw) scale(1.03); }
    100% { transform: translate3d(0,0,0) rotate(360deg) translateX(9vw) scale(1.08); }
}

@keyframes orbitC {
    0%   { transform: translate3d(0,0,0) rotate(0deg)   translateX(7vw) scale(1.06); }
    50%  { transform: translate3d(0,0,0) rotate(180deg) translateX(7vw) scale(1.12); }
    100% { transform: translate3d(0,0,0) rotate(360deg) translateX(7vw) scale(1.06); }
}

.colour-1 {
    top: 82vh; left: 14vw;
    transform-origin: 10vw 10vh;
    /* using box-shadow purely as a glow source for the aurora, not a UI shadow */
    box-shadow: 0 0 34vmax 34vmax rgba(122, 44, 255, .55);
    animation: orbitA 18s linear infinite;
}

.colour-2 {
    top: 46vh; left: 72vw;
    transform-origin: 14vw 12vh;
    box-shadow: 0 0 36vmax 36vmax rgba(18, 86, 210, .40);
    animation: orbitB 24s linear infinite reverse;
}

.colour-3 {
    top: 18vh; left: 86vw;
    transform-origin: 12vw 10vh;
    box-shadow: 0 0 30vmax 30vmax rgba(0, 185, 255, .28);
    animation: orbitC 20s linear infinite;
}

.aurora-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1400px 1000px at 50% 50%, rgba(0,0,0,0) 52%, rgba(0,0,0,.70) 100%),
        linear-gradient(120deg, rgba(0,0,0,.25), rgba(0,0,0,.15));
    pointer-events: none;
}

.aurora-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .08;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

@media (prefers-reduced-motion: reduce) {
    .aurora-bg > div { animation: none; }
}

/* ===== HEADER ===== */
.header {
    padding: 100px 40px 80px;
    position: relative;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.header-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    color: var(--primary);
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease-out;
}

.header-badge::before {
    content: "●";
    color: var(--primary);
    margin-right: 8px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.title {
    font-family: 'Quicksand', sans-serif;
    font-size: 64px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -1px;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out 0.1s backwards;
    background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 50%, #67e8f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-family: 'Quicksand', sans-serif;
    font-size: 22px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.header-summary {
    font-size: 17px;
    line-height: 1.8;
    max-width: 820px;
    color: var(--text-secondary);
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.contact-info {
    margin-top: 44px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.contact-badge {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-badge:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 40px 60px;
}

.section {
    margin-bottom: 100px;
}

.section-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 700px;
}

/* ===== GLASS CARD BASE ===== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-4px);
}

/* ===== SKILLS GRID ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.skill-category {
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-category:hover::before {
    opacity: 1;
}

.skill-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 185, 255, 0.2), rgba(122, 44, 255, 0.2));
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.skill-icon svg {
    width: 24px;
    height: 24px;
}

.skill-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.skill-category h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.skill-category p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    transition: all 0.2s ease;
}

.skill-tag:hover {
    color: var(--primary);
    border-color: rgba(0, 185, 255, 0.4);
    background: rgba(0, 185, 255, 0.08);
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 50%, transparent 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    padding: 32px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 38px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #05081a;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -42px;
    top: 34px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(0, 185, 255, 0.2);
    animation: ping 2s ease-out infinite;
}

@keyframes ping {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

.timeline-company {
    font-family: 'Quicksand', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.timeline-role {
    font-size: 17px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 6px;
}

.timeline-period {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
}

.timeline-description ul {
    margin-left: 0;
    margin-top: 15px;
    list-style: none;
}

.timeline-description li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.timeline-description li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* ===== PROJECT CARDS (clickable) ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.project-card {
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.project-card-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(122, 44, 255, 0.3), rgba(0, 185, 255, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.project-card:hover .project-card-image::before {
    left: 100%;
}

.project-card-image-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
}

.project-emoji {
    font-size: 48px;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.project-card-body {
    padding: 28px;
}

.project-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(0, 185, 255, 0.1);
    border: 1px solid rgba(0, 185, 255, 0.3);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.project-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.project-short-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 14px;
    margin-bottom: 20px;
}

.project-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
    transition: gap 0.3s ease;
}

.project-card:hover .project-view-btn {
    gap: 14px;
}

/* ===== GALLERY GRID (mini-cards, also clickable for modal) ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    padding: 0;
}

.gallery-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.gallery-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
    z-index: 2;
}

.gallery-item:hover .gallery-image::before {
    left: 100%;
}

.gallery-image.grad-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.gallery-image.grad-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.gallery-image.grad-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.gallery-image.grad-4 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.gallery-image.grad-5 { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }
.gallery-image.grad-6 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); color: #1a1a2e; }
.gallery-image.grad-7 { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); color: #1a1a2e; }
.gallery-image.grad-8 { background: linear-gradient(135deg, #5ee7df 0%, #b490ca 100%); }
.gallery-image.grad-9 { background: linear-gradient(135deg, #c471f5 0%, #fa71cd 100%); }

.gallery-image-label {
    position: relative;
    z-index: 1;
    padding: 20px;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.gallery-caption {
    padding: 22px;
}

.gallery-caption h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.gallery-caption p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: rgba(10, 14, 40, 0.85);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 0;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: rotate(90deg);
}

.modal-header-image {
    width: 100%;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Quicksand', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: white;
    border-radius: 24px 24px 0 0;
    position: relative;
    overflow: hidden;
}

.modal-header-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 40, 0.4) 100%);
    pointer-events: none;
}

.modal-body {
    padding: 40px;
}

.modal-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(0, 185, 255, 0.1);
    border: 1px solid rgba(0, 185, 255, 0.3);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.modal-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.modal-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 28px;
}

.modal-section-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    margin-top: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-highlights {
    list-style: none;
    margin-bottom: 24px;
}

.modal-highlights li {
    padding: 12px 0 12px 28px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.7;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-highlights li:last-child {
    border-bottom: none;
}

.modal-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--primary);
    font-weight: bold;
    width: 20px;
    height: 20px;
    background: rgba(0, 185, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.modal-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.modal-tech-tag {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
}

/* ===== CERTIFICATION GRID ===== */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.cert-item {
    padding: 20px 24px;
    border-radius: 14px;
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.cert-item:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateX(4px);
}

.cert-check {
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.cert-item strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* ===== PHILOSOPHY BOX ===== */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.philosophy-item {
    padding: 28px;
}

.philosophy-number {
    font-family: 'Quicksand', sans-serif;
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.5;
}

.philosophy-item h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.philosophy-item p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 14px;
}

/* ===== FOOTER ===== */
.footer {
    padding: 60px 40px 40px;
    text-align: center;
    position: relative;
}

.footer-inner {
    max-width: 700px;
    margin: 0 auto;
    padding: 50px;
}

.footer h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 50%, #67e8f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
}

.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-cta:hover {
    transform: translateY(-2px) scale(1.02);
    gap: 14px;
}

.footer-copyright {
    margin-top: 30px;
    color: var(--text-muted);
    font-size: 13px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .title { font-size: 40px; }
    .subtitle { font-size: 18px; }
    .section-title { font-size: 32px; }
    .container { padding: 20px; }
    .header { padding: 60px 20px 40px; }
    .contact-info { flex-direction: column; gap: 10px; }
    .skills-grid, .gallery-grid, .cert-grid, .projects-grid { grid-template-columns: 1fr; }
    .timeline { padding-left: 28px; }
    .timeline-item::before { left: -26px; }
    .timeline-item::after { left: -30px; }
    .modal-body { padding: 24px; }
    .modal-title { font-size: 24px; }
    .footer-inner { padding: 30px 20px; }
}

/* ===================================================================
   ADDITIONS (theme-only — not in original HTML)
   1. Language switcher (top-right floating, glass style)
   2. Slick slider overrides inside .modal-header-image
   3. RTL adjustments for Arabic
   These follow the same glass-aesthetic and zero-UI-shadow rules.
   =================================================================== */

/* Language switcher */
.lang-switcher {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 60;
    display: flex;
    gap: 6px;
    padding: 6px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
}

.lang-switcher a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.lang-switcher a:hover {
    color: var(--text-primary);
    background: var(--glass-bg-hover);
}

.lang-switcher a.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

@media (max-width: 768px) {
    .lang-switcher {
        top: 14px;
        right: 14px;
        padding: 4px;
    }
    .lang-switcher a {
        padding: 5px 10px;
        font-size: 11px;
    }
}

/* RTL flow for Arabic */
html[dir="rtl"] body {
    direction: rtl;
}
html[dir="rtl"] .timeline {
    padding-left: 0;
    padding-right: 40px;
}
html[dir="rtl"] .timeline::before {
    left: auto;
    right: 8px;
}
html[dir="rtl"] .timeline-item::before {
    left: auto;
    right: -38px;
}
html[dir="rtl"] .timeline-item::after {
    left: auto;
    right: -42px;
}
html[dir="rtl"] .timeline-description li {
    padding-left: 0;
    padding-right: 20px;
}
html[dir="rtl"] .timeline-description li::before {
    left: auto;
    right: 0;
    content: '←';
}
html[dir="rtl"] .modal-highlights li {
    padding-left: 0;
    padding-right: 28px;
}
html[dir="rtl"] .modal-highlights li::before {
    left: auto;
    right: 0;
}
html[dir="rtl"] .lang-switcher {
    right: auto;
    left: 24px;
}

/* Slick slider inside modal header image */
.modal-header-slider {
    width: 100%;
    height: 240px;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    position: relative;
}

.modal-header-slider .slick-list,
.modal-header-slider .slick-track {
    height: 240px;
}

.modal-header-slider .slick-slide > div {
    height: 240px;
    line-height: 0;
}

.modal-header-slider .slick-slide img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

/* Glassy translucent arrows */
.modal-header-slider .slick-prev,
.modal-header-slider .slick-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    z-index: 5;
    transition: all 0.2s ease;
}

.modal-header-slider .slick-prev { left: 16px; }
.modal-header-slider .slick-next { right: 16px; }

.modal-header-slider .slick-prev:hover,
.modal-header-slider .slick-next:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
}

.modal-header-slider .slick-prev:before,
.modal-header-slider .slick-next:before {
    font-family: 'slick';
    font-size: 18px;
    line-height: 1;
    color: #fff;
    opacity: 0.95;
}

/* Glassy dots */
.modal-header-slider .slick-dots {
    bottom: 12px;
    z-index: 5;
}

.modal-header-slider .slick-dots li button:before {
    color: #fff;
    opacity: 0.5;
    font-size: 8px;
}

.modal-header-slider .slick-dots li.slick-active button:before {
    color: var(--primary);
    opacity: 1;
}

/* Make sure the after-overlay gradient doesn't cover slider controls */
.modal-header-slider::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 40, 0.4) 100%);
    pointer-events: none;
    z-index: 1;
}

/* =====================================================================
 * v2 additions — see README "What's new" section
 * ================================================================== */

/* ---------- Hero name (above gradient title) ---------- */
/* The name takes over as the dominant heading: gradient text, fadeInUp
 * animation, and slightly larger than the title. The title scales down
 * proportionally so the visual hierarchy reads Name → Title → Subtitle. */
.header-content .hero-name {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(40px, 8vw, 64px);
    font-weight: 700;
    margin: 0 0 8px 0;
    letter-spacing: -1.2px;
    line-height: 1.05;
    
    /* Same gradient + clip technique as .title */
    background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 50%, #67e8f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* fallback if -webkit-text-fill-color isn't supported */
    /* Slightly earlier delay than .title so it visibly leads the cascade */
    animation: fadeInUp 0.8s ease-out 0.05s backwards;
}

/* When the hero name is present, shrink the title a touch so the name
 * is unambiguously the lead element. */
.header-content .hero-name + .title {
    font-size: clamp(28px, 5.5vw, 45px);
    margin-top: 4px;
}

/* ---------- Contact badges with icon support ---------- */
.contact-badge.has-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.contact-badge .contact-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    line-height: 1;
}
.contact-badge .contact-badge-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    stroke: currentColor;
}
.contact-badge .contact-badge-text {
    line-height: 1;
}
/* Reset native button look when the contact "badge" is a <button> */
button.contact-badge {
    border: 1px solid var(--glass-border, rgba(255,255,255,0.2));
    background: var(--glass-bg, rgba(255,255,255,0.05));
    color: inherit;
    font: inherit;
    cursor: pointer;
}

/* ---------- Project / Work card featured-image fallback ---------- */
/* When the card uses a featured image as its background, hide the
 * gradient-tuned overlays so the image reads cleanly. */
.project-card.has-featured-image .project-card-image {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.gallery-image.has-featured-image {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
/* Optional emoji overlay on a work item card (only shown when admin
 * set both an emoji AND a gradient — feature image overrides emoji). */
.gallery-image-emoji {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    z-index: 1;
    pointer-events: none;
}

/* ---------- Certificate tile: eye indicator + button-as-tile ---------- */
.cert-item {
    position: relative;
}
/* When the entire tile is the trigger, reset native <button> chrome so it
 * looks identical to the regular .cert-item div. */
button.cert-item {
    width: 100%;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.cert-item.has-images {
    padding-right: 56px; /* room for the eye indicator */
    cursor: pointer;
}
.cert-item .cert-view-indicator {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--glass-border, rgba(255,255,255,0.18));
    background: var(--glass-bg, rgba(255,255,255,0.06));
    color: var(--primary, #b8a4ff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    flex-shrink: 0;
    pointer-events: none; /* whole tile is the trigger; pass clicks through */
}
.cert-item.has-images:hover .cert-view-indicator {
    color: #fff;
    background: var(--primary, #b8a4ff);
    border-color: var(--primary, #b8a4ff);
    transform: translateY(-50%) scale(1.1);
}
.cert-item .cert-view-indicator svg {
    width: 18px;
    height: 18px;
}

/* ---------- Modal mode classes ---------- */
/* Hide bits that don't belong in certificate / page modes. */
.modal--certificate .modal-tag,
.modal--certificate .modal-description,
.modal--certificate .modal-section-title,
.modal--certificate .modal-highlights,
.modal--certificate .modal-tech-tags,
.modal--certificate .modal-page-content {
    display: none !important;
}
.modal--certificate .modal-title {
    margin-top: 0;
}

.modal--page .modal-header-image,
.modal--page .modal-tag,
.modal--page .modal-description,
.modal--page .modal-section-title,
.modal--page .modal-highlights,
.modal--page .modal-tech-tags {
    display: none !important;
}
.modal--page .modal-page-content {
    display: block;
    padding-top: 8px;
}

/* Page-mode body: render WP page content readably. */
.modal-page-content {
    display: none;
}
.modal-page-content p { margin: 0 0 1em; line-height: 1.6; }
.modal-page-content h1,
.modal-page-content h2,
.modal-page-content h3,
.modal-page-content h4 { margin: 1.2em 0 0.5em; line-height: 1.25; }
.modal-page-content ul,
.modal-page-content ol { margin: 0 0 1em; padding-left: 1.4em; }
.modal-page-content a  { color: var(--primary, #b8a4ff); text-decoration: underline; }
.modal-page-content img { max-width: 100%; height: auto; }

/* ---------- Slick slider fade-mode fixes ---------- */
/* When the slider is mounted, the .modal-header-image's own gradient ::after
 * overlay would obscure dots/arrows. Suppress it. (See base styles where
 * .modal-header-image::after is defined.) */
.modal-header-image.has-slider::after {
    display: none !important;
}

/* Direct <img> children — Slick wraps these in its own .slick-slide div.
 * Force them to the carousel height so fade mode has matching dimensions. */
.modal-header-slider {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}
.modal-header-slider img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}
.modal-header-slider .slick-list,
.modal-header-slider .slick-track {
    height: 240px;
}
/* In fade mode Slick stacks slides with absolute positioning; make sure
 * non-active slides are fully hidden, not just opacity 0 mid-transition. */
.modal-header-slider.slick-slider {
    width: 100%;
}
.modal-header-slider .slick-slide {
    height: 240px;
}
.modal-header-slider .slick-slide > div,
.modal-header-slider .slick-slide > div > img {
    height: 240px;
    line-height: 0;
}
.modal-header-slider .slick-slide img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

/* Custom prevArrow / nextArrow rendering — uses ‹ › characters directly
 * so we don't depend on the slick icon font loading. */
.modal-header-slider .slick-prev,
.modal-header-slider .slick-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.modal-header-slider .slick-prev { left: 12px; }
.modal-header-slider .slick-next { right: 12px; }
.modal-header-slider .slick-prev:hover,
.modal-header-slider .slick-next:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.08);
}
/* The Slick base CSS sets `:before` content using its icon font — that
 * would overlay our text character. Suppress it. */
.modal-header-slider .slick-prev:before,
.modal-header-slider .slick-next:before {
    content: '' !important;
    display: none !important;
}

/* Make sure the dots sit above any future ::after overlay too. */
.modal-header-slider .slick-dots {
    z-index: 6;
}

/* ---------- Footer CTA with optional icon ---------- */
.footer-cta.has-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.footer-cta .footer-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}
.footer-cta .footer-cta-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    stroke: currentColor;
}


/* ---------- Aurora fluid cursor canvas ---------- */
#aurora-fluid {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: screen;
}

