/* ===================================================
   AAJLAN.NET — Premium Portfolio
   Design System & Complete Styles
   =================================================== */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Color Palette */
    --bg-primary: #060a13;
    --bg-secondary: #0a0e1a;
    --bg-tertiary: #0f1526;
    --bg-card: rgba(15, 21, 38, 0.6);
    --bg-glass: rgba(15, 21, 38, 0.4);
    --border-glass: rgba(212, 168, 67, 0.12);
    --border-glass-hover: rgba(212, 168, 67, 0.3);

    --gold: #d4a843;
    --gold-light: #e8c96d;
    --gold-dim: rgba(212, 168, 67, 0.15);
    --gold-glow: rgba(212, 168, 67, 0.4);

    --text-primary: #e8e6e3;
    --text-secondary: rgba(232, 230, 227, 0.7);
    --text-muted: rgba(232, 230, 227, 0.45);

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1200px;
    --card-radius: 16px;
    --card-radius-sm: 10px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.2s var(--ease-out);
    --transition-medium: 0.4s var(--ease-out);
    --transition-slow: 0.8s var(--ease-out);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--gold-light);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* ===== GLASS CARD UTILITY ===== */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--card-radius);
    transition: border-color var(--transition-medium),
                box-shadow var(--transition-medium),
                transform var(--transition-medium);
}

.glass-card:hover {
    border-color: var(--border-glass-hover);
    box-shadow: 0 8px 40px rgba(212, 168, 67, 0.07),
                inset 0 0 30px rgba(212, 168, 67, 0.03);
}

/* ===== SCROLL ANIMATION BASE ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out),
                transform 0.8s var(--ease-out);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-medium);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(6, 10, 19, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-weight: 700;
}

.nav-logo:hover {
    color: var(--text-primary);
}

.logo-monogram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--bg-primary);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    border-radius: 10px;
    letter-spacing: 1px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 3px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--transition-fast);
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--gold);
    background: var(--gold-dim);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger .bar {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 0%, rgba(212, 168, 67, 0.06) 0%, transparent 60%),
                var(--bg-primary);
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
}

.hero-monogram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    margin-bottom: 32px;
    animation: breathe 4s ease-in-out infinite;
    box-shadow: 0 0 60px var(--gold-glow),
                0 0 120px rgba(212, 168, 67, 0.15);
}

.hero-monogram span {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--bg-primary);
    letter-spacing: 3px;
}

@keyframes breathe {
    0%, 100% {
        box-shadow: 0 0 60px var(--gold-glow),
                    0 0 120px rgba(212, 168, 67, 0.15);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 80px var(--gold-glow),
                    0 0 160px rgba(212, 168, 67, 0.25);
        transform: scale(1.05);
    }
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: 4px;
}

.name-first {
    display: block;
    color: var(--text-primary);
}

.name-last {
    display: block;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-titles {
    margin-bottom: 20px;
}

.hero-title-main {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.hero-title-sub {
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 1.5px;
}

.hero-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hero-location i {
    color: var(--gold);
}

.hero-tag {
    display: inline-block;
    padding: 3px 12px;
    background: var(--gold-dim);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(212, 168, 67, 0.2);
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-medium);
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(212, 168, 67, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 168, 67, 0.45);
    color: var(--bg-primary);
}

.btn-secondary {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    color: var(--gold);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 4px 20px rgba(212, 168, 67, 0.15);
    color: var(--gold-light);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    animation: bounce 2.5s ease-in-out infinite;
    color: var(--text-muted);
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(12px); opacity: 1; }
}

/* ===== SECTIONS COMMON ===== */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--gold-dim);
    color: var(--gold);
    border-radius: 14px;
    font-size: 1.2rem;
    border: 1px solid rgba(212, 168, 67, 0.15);
}

/* ===== ABOUT SECTION ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-text strong {
    color: var(--gold);
    font-weight: 600;
}

.about-target {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 24px;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-target i {
    color: var(--gold);
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.about-target strong {
    color: var(--gold-light);
}

/* Stats */
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    padding: 28px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    display: inline;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-light);
    display: inline;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ===== CAREER TIMELINE ===== */
.career {
    background: var(--bg-secondary);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), var(--border-glass), transparent);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 60px;
}

.timeline-item.left {
    left: 0;
    padding-right: 60px;
}

.timeline-item.right {
    left: 50%;
    padding-left: 60px;
}

.timeline-dot {
    position: absolute;
    top: 20px;
    width: 44px;
    height: 44px;
    background: var(--bg-secondary);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    color: var(--gold);
    font-size: 0.9rem;
    box-shadow: 0 0 20px var(--gold-glow);
    animation: breathe-dot 3s ease-in-out infinite;
}

.timeline-item.left .timeline-dot {
    right: -22px;
}

.timeline-item.right .timeline-dot {
    left: -22px;
}

@keyframes breathe-dot {
    0%, 100% { box-shadow: 0 0 20px var(--gold-glow); }
    50% { box-shadow: 0 0 35px var(--gold-glow); }
}

.timeline-card {
    padding: 32px;
    position: relative;
}

.timeline-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.timeline-company {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 600;
    padding: 4px 14px;
    background: var(--gold-dim);
    border-radius: 20px;
    white-space: nowrap;
    border: 1px solid rgba(212, 168, 67, 0.15);
}

.timeline-role {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 6px;
}

.timeline-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.timeline-location i {
    color: var(--gold);
    margin-right: 6px;
}

.timeline-overview {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.timeline-overview strong {
    color: var(--gold);
}

.timeline-achievements {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-achievements li {
    padding: 14px 18px;
    background: rgba(212, 168, 67, 0.04);
    border-left: 3px solid var(--gold);
    border-radius: 0 8px 8px 0;
    transition: all var(--transition-medium);
}

.timeline-achievements li:hover {
    background: rgba(212, 168, 67, 0.08);
    transform: translateX(4px);
}

.ach-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}

.ach-text {
    display: block;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Education card in timeline */
.education-card .timeline-role {
    font-size: 1.05rem;
}

.education-card .timeline-location i {
    margin-right: 8px;
}

/* ===== COMPETENCIES ===== */
.competencies-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.comp-tag {
    padding: 12px 24px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--card-radius-sm);
    cursor: default;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.comp-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 67, 0.08), transparent);
    transition: left 0.6s ease;
}

.comp-tag:hover::before {
    left: 100%;
}

.comp-tag:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 168, 67, 0.12);
}

/* Subsection title */
.subsection-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.subsection-title i {
    color: var(--gold);
    margin-right: 10px;
}

/* Languages */
.languages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.lang-card {
    padding: 20px;
    text-align: center;
    transition: all var(--transition-medium);
}

.lang-card:hover {
    transform: translateY(-4px);
}

.lang-name {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.lang-level-text {
    display: block;
    font-size: 0.75rem;
    color: var(--gold);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.lang-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(232, 230, 227, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.lang-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 4px;
    transition: width 1.5s var(--ease-out);
}

.lang-bar-fill.animated {
    width: var(--fill-width);
}

/* ===== CERTIFICATIONS ===== */
.certifications {
    background: var(--bg-secondary);
}

.certs-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.cert-card {
    padding: 0;
    overflow: hidden;
    transition: all var(--transition-medium);
}

.cert-card:hover {
    transform: translateY(-6px);
}

.cert-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px 28px;
    background: rgba(212, 168, 67, 0.04);
    border-bottom: 1px solid var(--border-glass);
}

.cert-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-dim);
    color: var(--gold);
    border-radius: 12px;
    font-size: 1.1rem;
    flex-shrink: 0;
    border: 1px solid rgba(212, 168, 67, 0.15);
}

.cert-card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.cert-card-body {
    padding: 20px 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cert-entry {
    padding-left: 14px;
    border-left: 2px solid rgba(212, 168, 67, 0.2);
    transition: border-color var(--transition-fast);
}

.cert-entry:hover {
    border-left-color: var(--gold);
}

.cert-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.cert-org {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ===== HONORS & AWARDS ===== */
.honors-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: -40px;
    margin-bottom: 50px;
    font-style: italic;
}

.honors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.honor-card {
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-medium);
}

.honor-card:hover {
    transform: translateY(-6px);
}

.honor-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(212, 168, 67, 0.06) 60deg,
        transparent 120deg
    );
    animation: shimmer 6s linear infinite;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.honor-card:hover::before {
    opacity: 1;
}

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

.honor-icon {
    position: relative;
    z-index: 1;
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px var(--gold-glow));
}

.honor-name {
    position: relative;
    z-index: 1;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.honor-arabic {
    position: relative;
    z-index: 1;
    font-size: 0.9rem;
    color: var(--gold-light);
    font-style: italic;
}

/* ===== CONTACT ===== */
.contact {
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--gold);
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Contact Form */
.contact-form {
    padding: 36px;
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(232, 230, 227, 0.04);
    border: 1px solid rgba(232, 230, 227, 0.1);
    border-radius: var(--card-radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
    background: rgba(212, 168, 67, 0.03);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 1rem;
}

.btn-submit .btn-loading,
.btn-submit .btn-success {
    display: none;
}

.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .btn-loading { display: inline-flex; gap: 10px; align-items: center; }
.btn-submit.success .btn-text { display: none; }
.btn-submit.success .btn-loading { display: none; }
.btn-submit.success .btn-success { display: inline-flex; gap: 10px; align-items: center; }
.btn-submit.success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

/* ===== FOOTER ===== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-glass);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand .logo-monogram {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
    border-radius: 8px;
}

.footer-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-wolf {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .certs-showcase {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    /* Mobile Nav */
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(6, 10, 19, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 40px 40px;
        transition: right 0.4s var(--ease-out);
        border-left: 1px solid var(--border-glass);
        gap: 4px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-link {
        font-size: 1rem;
        padding: 14px 20px;
    }

    /* Timeline */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding: 0 0 40px 60px !important;
    }

    .timeline-dot {
        left: -2px !important;
        right: auto !important;
    }

    .timeline-card {
        padding: 24px;
    }

    .timeline-header {
        flex-direction: column;
    }

    /* About Stats */
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    /* Languages */
    .languages-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    /* Honors */
    .honors-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    /* Hero */
    .hero-monogram {
        width: 80px;
        height: 80px;
    }

    .hero-monogram span {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }

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

    .stat-card {
        padding: 20px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== LANGUAGE TOGGLE ===== */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    background: var(--gold-dim);
    border: 1px solid rgba(212, 168, 67, 0.25);
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-medium);
    margin-left: 8px;
}

.lang-toggle:hover {
    background: rgba(212, 168, 67, 0.25);
    border-color: var(--gold);
    transform: translateY(-1px);
}

.lang-toggle-text {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.5px;
}

/* ===== RTL SUPPORT ===== */
body.rtl {
    font-family: 'Noto Sans Arabic', 'Inter', 'Segoe UI', Tahoma, sans-serif;
    direction: rtl;
    text-align: right;
}

/* Arabic Heading Font — Amiri (mirrors Playfair Display) */
body.rtl .section-title,
body.rtl .hero-name,
body.rtl .hero-title,
body.rtl .timeline-role,
body.rtl .about-title,
body.rtl h1, body.rtl h2, body.rtl h3 {
    font-family: 'Amiri', 'Playfair Display', Georgia, serif;
    font-weight: 700;
}

body.rtl .nav-container {
    flex-direction: row-reverse;
}

body.rtl .nav-links {
    flex-direction: row-reverse;
}

body.rtl .lang-toggle {
    margin-left: 0;
    margin-right: 8px;
}

body.rtl .hero-content {
    text-align: center;
}

body.rtl .hero-location {
    flex-direction: row-reverse;
}

body.rtl .section-title {
    flex-direction: row-reverse;
}

body.rtl .about-target {
    flex-direction: row-reverse;
    text-align: right;
}

/* Timeline RTL */
body.rtl .timeline::before {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

body.rtl .timeline-item.left {
    left: auto;
    right: 0;
    padding-right: 0;
    padding-left: 60px;
}

body.rtl .timeline-item.right {
    left: auto;
    right: 50%;
    padding-left: 0;
    padding-right: 60px;
}

body.rtl .timeline-item.left .timeline-dot {
    right: auto;
    left: -22px;
}

body.rtl .timeline-item.right .timeline-dot {
    left: auto;
    right: -22px;
}

body.rtl .timeline-header {
    flex-direction: row-reverse;
}

body.rtl .timeline-location i {
    margin-right: 0;
    margin-left: 6px;
}

body.rtl .timeline-achievements li {
    border-left: none;
    border-right: 3px solid var(--gold);
    border-radius: 8px 0 0 8px;
}

body.rtl .timeline-achievements li:hover {
    transform: translateX(-4px);
}

/* Contact RTL */
body.rtl .contact-item {
    flex-direction: row-reverse;
    text-align: right;
}

body.rtl .contact-form label {
    text-align: right;
}

body.rtl .contact-form input,
body.rtl .contact-form textarea {
    text-align: right;
    direction: rtl;
}

/* Footer RTL */
body.rtl .footer-content {
    flex-direction: row-reverse;
}

body.rtl .footer-brand {
    flex-direction: row-reverse;
}

/* Cert entry RTL */
body.rtl .cert-entry {
    flex-direction: row-reverse;
    text-align: right;
}

body.rtl .cert-icon {
    margin-right: 0;
    margin-left: 14px;
}

/* Honor card RTL */
body.rtl .honor-card {
    text-align: center;
}

/* Mobile RTL adjustments */
@media (max-width: 768px) {
    body.rtl .nav-links {
        flex-direction: column;
        text-align: right;
    }

    body.rtl .nav-links.active {
        right: auto;
        left: 0;
    }

    body.rtl .timeline::before {
        left: auto;
        right: 20px;
    }

    body.rtl .timeline-item {
        left: auto !important;
        right: 0 !important;
        padding: 0 60px 40px 0 !important;
    }

    body.rtl .timeline-dot {
        left: auto !important;
        right: -2px !important;
    }

    body.rtl .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== SELECTION STYLE ===== */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: var(--text-primary);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(212, 168, 67, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}
