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

:root {
    --color-black: #111111;
    --color-white: #f5f5f5;
    --color-dark: #1a1a1a;
    --color-gray: #333333;
    --color-light-gray: #cccccc;
    --color-mid-gray: #888888;
    --color-accent: #e67021;
    --color-accent-dark: #d85600;
    --font-main: 'Cairo', sans-serif;
    --shadow-strong: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: #0d0d0d;
    color: var(--color-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ===== HEADER ===== */
.site-header {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background-color: var(--color-dark);
    border-bottom: 2px solid var(--color-gray);
    position: relative;
}

.tutorial-link {
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--color-accent);
    color: var(--color-black);
    font-weight: 800;
    font-size: 18px;
    padding: 6px 20px;
    text-decoration: none;
    border: 2px solid var(--color-accent-dark);
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(212, 160, 23, 0.3);
    animation: attentionShake 4s infinite;
    transition: background-color 0.2s, color 0.2s;
    z-index: 10;
}

.tutorial-link:hover {
    background-color: var(--color-accent-dark);
    color: var(--color-white);
    animation: none;
}

@keyframes attentionShake {

    0%,
    100% {
        transform: translate(-50%, -50%);
    }

    2% {
        transform: translate(calc(-50% - 3px), calc(-50% + 1px)) rotate(-2deg);
    }

    4% {
        transform: translate(calc(-50% + 3px), calc(-50% - 1px)) rotate(2deg);
    }

    6% {
        transform: translate(calc(-50% - 3px), calc(-50% + 1px)) rotate(-2deg);
    }

    8% {
        transform: translate(calc(-50% + 3px), calc(-50% - 1px)) rotate(2deg);
    }

    10% {
        transform: translate(-50%, -50%);
    }
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 150px;
    width: auto;
    transition: transform 0.2s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.site-name {
    font-size: 28px;
    font-weight: 900;
    color: var(--color-accent);
    letter-spacing: 2px;
}

.sponsor-text {
    font-size: 14px;
    color: var(--color-mid-gray);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===== MAIN CONTAINER ===== */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 24px;
}

.page-title {
    font-size: 42px;
    font-weight: 900;
    color: var(--color-white);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

.fakha {
    color: var(--color-accent);
}

.page-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--color-accent);
    margin: 16px auto 0;
}

.page-subtitle {
    font-size: 18px;
    color: var(--color-mid-gray);
    margin-bottom: 60px;
    text-align: center;
}

/* ===== BUTTONS CONTAINER ===== */
.buttons-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 800px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 280px;
    text-decoration: none;
    border: 3px solid;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.4s ease;
    z-index: 0;
}

.action-btn:hover::before {
    left: 0;
}

.action-btn>* {
    position: relative;
    z-index: 1;
}

/* Encrypt Button - White bg, dark text */
.encrypt-btn {
    background-color: var(--color-white);
    border-color: var(--color-light-gray);
    color: var(--color-black);
}

.encrypt-btn::before {
    background-color: rgba(0, 0, 0, 0.05);
}

.encrypt-btn:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-strong);
    transform: translateY(-4px);
}

/* Decrypt Button - Dark bg, white text */
.decrypt-btn {
    background-color: var(--color-dark);
    border-color: var(--color-gray);
    color: var(--color-white);
}

.decrypt-btn::before {
    background-color: rgba(255, 255, 255, 0.05);
}

.decrypt-btn:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-strong);
    transform: translateY(-4px);
}

.btn-icon-box {
    margin-bottom: 16px;
}

.btn-text {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 2px;
}

.btn-desc {
    font-size: 14px;
    margin-top: 8px;
    opacity: 0.7;
    font-weight: 400;
}

/* ===== HIDDEN ===== */
.hidden {
    display: none !important;
}

/* ===== DOCTOR MESSAGE SECTION ===== */
.dr-message-section {
    margin-top: 60px;
    width: 100%;
    max-width: 800px;
}

.dr-message-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.dr-quote-icon {
    color: var(--color-accent);
    opacity: 0.6;
}

.dr-message-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dr-visit-date {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    padding: 10px 20px;
    background-color: rgba(230, 112, 33, 0.08);
    border: 1px solid rgba(230, 112, 33, 0.2);
    letter-spacing: 0.5px;
}

.dr-message-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 32px;
    background-color: var(--color-dark);
    border: 2px solid var(--color-gray);
    position: relative;
    overflow: hidden;
}

.dr-message-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-accent), #f0c040, var(--color-accent));
    animation: gradientSlide 3s ease-in-out infinite;
}

@keyframes gradientSlide {

    0%,
    100% {
        background-position: 0 0;
    }

    50% {
        background-position: 0 100%;
    }
}

.dr-message-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.dr-message-avatar {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border: 3px solid var(--color-accent);
}

.dr-avatar-glow {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--color-accent);
    opacity: 0.4;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.dr-message-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dr-message-name {
    font-size: 20px;
    font-weight: 900;
    color: var(--color-accent);
}

.dr-message-role {
    font-size: 13px;
    color: var(--color-mid-gray);
    font-weight: 600;
    margin-bottom: 12px;
}

.dr-message-text {
    font-size: 16px;
    line-height: 2;
    color: var(--color-light-gray);
    font-weight: 600;
    padding: 16px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-gray);
    border-right: 3px solid var(--color-accent);
    position: relative;
}

.dr-message-text::before {
    content: '"';
    font-size: 48px;
    font-weight: 900;
    color: var(--color-accent);
    opacity: 0.3;
    position: absolute;
    top: -10px;
    right: 12px;
    line-height: 1;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--color-dark);
    border-top: 2px solid var(--color-gray);
    padding: 20px 32px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-rights,
.footer-sponsor {
    font-size: 14px;
    color: var(--color-mid-gray);
}

.footer-sponsor {
    display: flex;
    align-items: center;
    gap: 8px;
}

.swm-footer-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--color-accent);
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.swm-footer-link:hover {
    opacity: 0.8;
}

.swm-footer-logo {
    height: 32px;
    width: auto;
}

.footer-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.footer-link:hover {
    border-bottom-color: var(--color-accent);
}

/* ===== AI BANNER - SIDE RIBBON ===== */
.ai-banner {
    /* position: fixed; */
    position: absolute;
    top: 120px;
    left: 0;
    z-index: 999;
    /* Golden ratio rectangle - compact */
    width: 100%;
    height: 35px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1000 0%, #2a1800 30%, #1a0f00 60%, #0d0d0d 100%);
    border-top: none;
    border-left: none;
    border-right: none;
    animation: ribbonSlideIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    box-shadow: 4px 4px 30px rgba(230, 112, 33, 0.2), 0 0 60px rgba(230, 112, 33, 0.05);
}

@keyframes ribbonSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animated glowing border overlay */
.ai-banner-border-anim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}


/* Background glow pulse */
.ai-banner-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(230, 112, 33, 0.18) 0%, transparent 70%);
    animation: glowBreath 3s ease-in-out infinite;
}

@keyframes glowBreath {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

/* Floating particles */
.ai-banner-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.ai-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--color-accent);
    opacity: 0;
    animation: particleFloat 6s ease-in-out infinite;
}

.ai-particle:nth-child(1) {
    left: 12%;
    bottom: -5%;
    animation-delay: 0s;
    animation-duration: 5s;
}

.ai-particle:nth-child(2) {
    left: 30%;
    bottom: -5%;
    animation-delay: 0.8s;
    animation-duration: 6.5s;
}

.ai-particle:nth-child(3) {
    left: 50%;
    bottom: -5%;
    animation-delay: 1.6s;
    animation-duration: 5.5s;
}

.ai-particle:nth-child(4) {
    left: 65%;
    bottom: -5%;
    animation-delay: 2.4s;
    animation-duration: 7s;
}

.ai-particle:nth-child(5) {
    left: 80%;
    bottom: -5%;
    animation-delay: 0.4s;
    animation-duration: 6s;
}

.ai-particle:nth-child(6) {
    left: 45%;
    bottom: -5%;
    animation-delay: 1.2s;
    animation-duration: 5.8s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
        transform: translateY(-15px) scale(1);
    }

    50% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-200px) scale(0);
        opacity: 0;
    }
}

/* Text with shimmer */
.ai-banner-text {
    position: relative;
    z-index: 2;
    font-size: 15px;
    font-weight: 700;
    line-height: 2;
    padding: 20px 28px;
    text-align: center;
    text-shadow: 0 0 20px rgba(230, 112, 33, 0.4);
    animation: textShimmer 3s ease-in-out infinite;
    background: linear-gradient(90deg,
            var(--color-white) 0%,
            #f0c040 25%,
            var(--color-accent) 50%,
            #f0c040 75%,
            var(--color-white) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes textShimmer {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 200% center;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
    .page-title {
        font-size: 28px;
    }

    .buttons-container {
        gap: 24px;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .action-btn {
        width: 50%;
        text-align: center;
        /* width: 260px; */
        height: 240px;
    }

    .btn-text {
        font-size: 26px;
    }

    .site-header {
        padding: 12px 16px;
    }

    .tutorial-link {
        font-size: 14px;
        padding: 4px 12px;
    }

    .logo-img {
        height: 110px;
    }

    .site-name {
        font-size: 20px;
    }

    .swm-footer-logo {
        height: 24px;
    }

    .dr-message-section {
        margin-top: 40px;
    }

    .dr-message-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 16px;
    }

    .dr-message-content {
        align-items: center;
    }

    .dr-message-text {
        text-align: right;
    }

    .dr-message-title {
        font-size: 20px;
    }

    .ai-banner {
        width: 100%;
        height: 80px;
        top: 110px;
    }

    .ai-banner-text {
        font-size: 12px;
        line-height: 1.8;
        padding: 14px 18px;
    }
}