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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

/* ============================================
   CUSTOM FONTS FROM assets/fonts/
   ============================================ */

/* === VAZIRMATN BOLD (for h1) === */
@font-face {
    font-family: 'VazirmatnBold';
    src: url('assets/fonts/Vazirmatn-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* === VAZIRMATN MEDIUM (for p and other text) === */
@font-face {
    font-family: 'VazirmatnMedium';
    src: url('assets/fonts/Vazirmatn-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* === VAZIRMATN REGULAR (for body/fallback) === */
@font-face {
    font-family: 'VazirmatnRegular';
    src: url('assets/fonts/Vazirmatn-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   APPLY FONTS
   ============================================ */

/* Base body font (English fallback) */
body {
    font-family: 'VazirmatnMedium', 'VazirmatnRegular', 'Inter', sans-serif;
    height: 100vh;
    overflow: hidden;
    background: #0a0a0a;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: none;
    transition: background 1s ease;
}

/* RTL body - uses Vazirmatn fonts */
body.rtl {
    font-family: 'VazirmatnMedium', 'VazirmatnRegular', 'Inter', sans-serif;
    direction: rtl;
}

body.rtl .intro-container {
    direction: rtl;
}

.intro-container h1, p{
    padding: 0.5rem;
}

/* === H1 - Vazirmatn Bold === */
body.rtl h1 {
    font-family: 'VazirmatnBold', 'VazirmatnMedium', 'Inter', sans-serif;
    font-weight: 700;
}

/* === P (message, timeDisplay) - Vazirmatn Medium === */
body.rtl p,
body.rtl #message,
body.rtl #timeDisplay {
    font-family: 'VazirmatnMedium', 'VazirmatnRegular', 'Inter', sans-serif;
    font-weight: 500;
    color: white;
}

/* === Buttons - Vazirmatn Medium === */
body.rtl #contactBtn,
body.rtl .lang-btn,
body.rtl .close-popup {
    font-family: 'VazirmatnMedium', 'VazirmatnRegular', 'Inter', sans-serif;
    font-weight: 500;
}

/* === Contact Popup Title - Vazirmatn Bold === */
body.rtl .contact-content h3 {
    font-family: 'VazirmatnBold', 'VazirmatnMedium', 'Inter', sans-serif;
    font-weight: 700;
}

/* ============================================
   CANVAS LAYERS
   ============================================ */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
}

#burstCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: block;
    pointer-events: none;
}

/* ============================================
   LANGUAGE TOGGLE - EN/FA
   ============================================ */
.lang-toggle {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 10;
}

body.rtl .lang-toggle {
    right: auto;
    left: 1.5rem;
}

.lang-btn {
    padding: 0.3rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.4);
    background: transparent;
    border: none;
    border-radius: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-transform: uppercase;
}

body.rtl .lang-btn {
    font-family: 'VazirmatnMedium', 'Inter', sans-serif;
    font-weight: 500;
}

.lang-btn:hover {
    color: rgba(255, 255, 255, 0.7);
}

.lang-btn.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Theme-specific language button colors */
.theme-morning .lang-btn.active {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.theme-afternoon .lang-btn.active {
    background: rgba(79, 195, 247, 0.2);
    color: #4fc3f7;
}

.theme-night .lang-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ============================================
   INTRO CONTAINER - LIQ-GLASS EFFECT (Apple Style)
   ============================================ */
.intro-container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3.5rem 4.5rem;
    border-radius: 1.5rem;
    animation: fadeInUp 1.2s ease;
    max-width: 600px;
    width: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 1s ease;
    
    /* === LIQ-GLASS EFFECT === */
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.rtl .intro-container {
    text-align: center;
}

/* ============================================
   THEME: NIGHT (Default - Dark) 
   ============================================ */
.theme-night .intro-container {
    background: rgba(10, 10, 26, 0.25);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.theme-night h1 {
    color: #ffffff;
}

.theme-night p {
    color: #ffffff;
    opacity: 0.5;
}

.theme-night #contactBtn {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

.theme-night #contactBtn:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.theme-night .logo {
    filter: brightness(1);
}

/* ============================================
   THEME: MORNING (Warm Golden/Amber)
   ============================================ */
.theme-morning {
    background: linear-gradient(135deg, #1a0f00 0%, #2d1a00 50%, #1a0f00 100%);
}

.theme-morning .intro-container {
    background: rgba(255, 200, 100, 0.06);
    backdrop-filter: blur(10px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 215, 0, 0.08);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 215, 0, 0.04);
}

.theme-morning h1 {
    color: white;
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.1);
}

.theme-morning p {
    color: #ffd700;
    opacity: 0.6;
}

.theme-morning #contactBtn {
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.2);
}

.theme-morning #contactBtn:hover {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1);
}

.theme-morning .logo {
    filter: brightness(1.1) saturate(1.2);
}

/* ============================================
   THEME: AFTERNOON (Cool Blue/Teal)
   ============================================ */
.theme-afternoon {
    background: linear-gradient(135deg, #001220 0%, #002244 50%, #001220 100%);
}

.theme-afternoon .intro-container {
    background: rgba(100, 200, 255, 0.05);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(79, 195, 247, 0.06);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(79, 195, 247, 0.03);
}

.theme-afternoon h1 {
    color: #4fc3f7;
    text-shadow: 0 0 40px rgba(79, 195, 247, 0.1);
}

.theme-afternoon p {
    color: #4fc3f7;
    opacity: 0.6;
}

.theme-afternoon #contactBtn {
    color: #4fc3f7;
    border-color: rgba(79, 195, 247, 0.2);
}

.theme-afternoon #contactBtn:hover {
    border-color: rgba(79, 195, 247, 0.5);
    box-shadow: 0 10px 30px rgba(79, 195, 247, 0.1);
}

.theme-afternoon .logo {
    filter: brightness(1.05) saturate(0.9) hue-rotate(-5deg);
}

/* ============================================
   LOGO - NO BOX
   ============================================ */
.logo-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    width: 160px;
    height: 160px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease, filter 0.5s ease;
    cursor: pointer;
}

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

/* Logo burst animation */
.logo-burst {
    animation: logoBurst 0.6s ease forwards;
}

@keyframes logoBurst {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.15);
    }
    60% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1 {
    font-size: 4.5rem;
    font-weight: 200;
    letter-spacing: -2px;
    margin-bottom: 0.2rem;
    line-height: 1.1;
    word-break: break-word;
    transition: color 0.8s ease, text-shadow 0.8s ease;
}

body.rtl h1 {
    letter-spacing: 0;
    font-weight: 700;
    /* Uses Vazirmatn-Bold from @font-face */
}

#timeDisplay {
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    opacity: 0.4;
    transition: color 0.8s ease;
}

body.rtl #timeDisplay {
    letter-spacing: 1px;
    font-weight: 500;
    /* Uses Vazirmatn-Medium from @font-face */
}

#message {
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.5;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    transition: opacity 0.3s ease, color 0.8s ease;
}

body.rtl #message {
    letter-spacing: 0.5px;
    font-weight: 500;
    /* Uses Vazirmatn-Medium from @font-face */
}

/* ============================================
   CONTACT BUTTON
   ============================================ */
#contactBtn {
    padding: 0.7rem 2.8rem;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

body.rtl #contactBtn {
    letter-spacing: 0.5px;
    font-weight: 500;
}

#contactBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    transition: left 0.4s ease;
    pointer-events: none;
}

#contactBtn:hover::before {
    left: 0;
}

#contactBtn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}

#contactBtn:active {
    transform: scale(0.97);
}

/* ============================================
   CONTACT POPUP
   ============================================ */
.contact-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.contact-popup.active {
    display: flex;
}

.contact-content {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    padding: 2.5rem 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 8px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    max-width: 480px;
    width: 92%;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
    animation: scaleIn 0.3s ease;
}

/* Custom scrollbar */
.contact-content::-webkit-scrollbar {
    width: 3px;
}

.contact-content::-webkit-scrollbar-track {
    background: transparent;
}

.contact-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

body.rtl .contact-content {
    direction: rtl;
}

.contact-content h3 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: #fff;
}

body.rtl .contact-content h3 {
    letter-spacing: 0.5px;
    font-weight: 700;
}

/* ============================================
   CONTACT SECTIONS
   ============================================ */
.contact-section {
    margin-bottom: 1.5rem;
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.4;
    margin-bottom: 0.8rem;
    text-align: left;
    color: #fff;
}

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

/* ============================================
   CONTACT ITEMS
   ============================================ */
.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.contact-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
}

.contact-value {
    font-size: 0.85rem;
    font-weight: 400;
    color: #fff;
    flex: 1;
    text-align: left;
    word-break: break-word;
    direction: ltr !important;
}

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

/* ============================================
   COPY BUTTON
   ============================================ */
.copy-btn {
    padding: 0.2rem 0.7rem;
    font-size: 0.6rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.copy-btn.copied {
    background: rgba(46, 204, 113, 0.2);
    border-color: rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

/* ============================================
   SOCIAL ICONS
   ============================================ */
.social-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

/* ============================================
   SOCIAL ICON COLORS - TELEGRAM & WHATSAPP
   ============================================ */

/* Telegram Icon - Blue */
.telegram-icon svg {
    fill: #26A5E4;
    transition: fill 0.3s ease;
}

.telegram-icon:hover svg {
    fill: #1e8bc3;
}

/* WhatsApp Icon - Green */
.whatsapp-icon svg {
    fill: #25D366;
    transition: fill 0.3s ease;
}

.whatsapp-icon:hover svg {
    fill: #1ebe5e;
}

.instagram-icon svg {
    fill: #E4405F;
}

.linkedin-icon svg {
    fill: #0A66C2;
}

.social-item .contact-value {
    font-weight: 500;
}

.social-link-btn {
    color: #fff;
    text-decoration: none;
    font-size: 0.65rem;
    padding: 0.25rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.social-link-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   CLOSE BUTTON
   ============================================ */
.contact-content .close-popup {
    padding: 0.6rem 2rem;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    margin-top: 0.5rem;
}

body.rtl .contact-content .close-popup {
    letter-spacing: 0.5px;
    font-weight: 500;
}

.contact-content .close-popup:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 380px) {
    .intro-container {
        padding: 1.5rem 1rem;
        border-radius: 0.8rem;
        width: 92%;
        max-width: 100%;
    }
    
    .lang-toggle {
        top: 0.8rem;
        right: 0.8rem;
        padding: 0.15rem;
    }
    
    body.rtl .lang-toggle {
        right: auto;
        left: 0.8rem;
    }
    
    .lang-btn {
        font-size: 0.6rem;
        padding: 0.2rem 0.6rem;
    }
    
    .logo {
        width: 90px;
        height: 90px;
    }
    
    h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }
    
    body.rtl h1 {
        font-size: 2rem;
    }
    
    #message {
        font-size: 0.6rem;
        letter-spacing: 1.5px;
        margin-bottom: 1.5rem;
    }
    
    #contactBtn {
        padding: 0.5rem 1.5rem;
        font-size: 0.7rem;
    }
    
    .contact-content {
        padding: 1.2rem 1rem;
        max-height: 85vh;
    }
    
    .contact-value {
        font-size: 0.7rem;
    }
}

@media (min-width: 381px) and (max-width: 480px) {
    .intro-container {
        padding: 2rem 1.5rem;
        border-radius: 1rem;
        width: 92%;
        max-width: 100%;
    }
    
    .lang-toggle {
        top: 1rem;
        right: 1rem;
    }
    
    body.rtl .lang-toggle {
        right: auto;
        left: 1rem;
    }
    
    .lang-btn {
        font-size: 0.65rem;
        padding: 0.25rem 0.8rem;
    }
    
    .logo {
        width: 130px;
        height: 130px;
    }
    
    h1 {
        font-size: 2.8rem;
        letter-spacing: -1.5px;
    }
    
    body.rtl h1 {
        font-size: 2.5rem;
    }
    
    #message {
        font-size: 0.7rem;
        letter-spacing: 1.8px;
        margin-bottom: 1.8rem;
    }
    
    #contactBtn {
        padding: 0.6rem 2rem;
        font-size: 0.75rem;
    }
    
    .contact-content {
        padding: 1.5rem 1.2rem;
        max-width: 95%;
    }
    
    .contact-item {
        padding: 0.6rem 0.8rem;
        flex-wrap: wrap;
        gap: 0.4rem;
    }
    
    .contact-value {
        font-size: 0.75rem;
        width: 100%;
        order: 2;
        text-align: center;
        flex: 1 1 100%;
    }
    
    .contact-icon {
        order: 1;
    }
    
    .copy-btn {
        order: 3;
        width: 100%;
        text-align: center;
        padding: 0.3rem;
    }
    
    .social-link-btn {
        order: 3;
        width: 100%;
        text-align: center;
    }
    
    .contact-content h3 {
        font-size: 1.2rem;
    }
    
    .contact-label {
        font-size: 0.6rem;
    }
}

@media (min-width: 481px) and (max-width: 600px) {
    .intro-container {
        padding: 2.5rem 2.5rem;
        border-radius: 1.2rem;
        max-width: 500px;
    }
    
    .lang-toggle {
        top: 1.2rem;
        right: 1.2rem;
    }
    
    body.rtl .lang-toggle {
        right: auto;
        left: 1.2rem;
    }
    
    .logo {
        width: 170px;
        height: 170px;
    }
    
    h1 {
        font-size: 3.5rem;
    }
    
    body.rtl h1 {
        font-size: 3.2rem;
    }
    
    #message {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }
}

@media (min-width: 601px) and (max-width: 1024px) {
    .intro-container {
        padding: 3.5rem 4rem;
        max-width: 550px;
        border-radius: 1.5rem;
    }
    
    .lang-toggle {
        top: 1.5rem;
        right: 1.5rem;
    }
    
    body.rtl .lang-toggle {
        right: auto;
        left: 1.5rem;
    }
    
    .logo {
        width: 200px;
        height: 200px;
    }
    
    h1 {
        font-size: 4rem;
    }
    
    body.rtl h1 {
        font-size: 3.8rem;
    }
    
    #message {
        font-size: 0.85rem;
        margin-bottom: 2.5rem;
    }
    
    #contactBtn {
        padding: 0.7rem 2.8rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    .intro-container {
        padding: 4rem 5rem;
        max-width: 600px;
        border-radius: 2rem;
    }
    
    .lang-toggle {
        top: 1.5rem;
        right: 1.5rem;
    }
    
    body.rtl .lang-toggle {
        right: auto;
        left: 1.5rem;
    }
    
    .logo {
        width: 210px;
        height: 210px;
    }
    
    h1 {
        font-size: 4.8rem;
    }
    
    body.rtl h1 {
        font-size: 4.5rem;
    }
    
    #message {
        font-size: 0.9rem;
        letter-spacing: 2.5px;
    }
    
    #contactBtn {
        padding: 0.8rem 3.2rem;
        font-size: 1rem;
    }
}

@media (min-width: 1441px) {
    .intro-container {
        padding: 5rem 3rem;
        max-width: 700px;
        border-radius: 2.2rem;
    }
    
    .lang-toggle {
        top: 2rem;
        right: 2rem;
    }
    
    body.rtl .lang-toggle {
        right: auto;
        left: 2rem;
    }
    
    .logo {
        width: 230px;
        height: 230px;
    }
    
    h1 {
        font-size: 5.5rem;
        letter-spacing: -3px;
    }
    
    body.rtl h1 {
        font-size: 5rem;
        letter-spacing: 0;
    }
    
    #message {
        font-size: 1rem;
        letter-spacing: 3px;
        margin-bottom: 3rem;
    }
    
    #contactBtn {
        padding: 0.9rem 3.5rem;
        font-size: 1.05rem;
        letter-spacing: 2.5px;
    }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    #contactBtn {
        padding: 0.8rem 3rem;
        min-height: 48px;
        min-width: 120px;
    }
    
    #contactBtn:hover {
        transform: none;
    }
    
    #contactBtn:active {
        transform: scale(0.95);
    }
    
    .logo {
        cursor: default;
    }
    
    .contact-item:hover {
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.06);
    }
}

/* Light mode */
@media (prefers-color-scheme: light) {
    body {
        background: #f5f5f5;
    }
    
    .intro-container {
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
    
    h1 {
        color: white;
    }
    
    #message {
        color: white;
        opacity: 0.4;
    }
    
    #contactBtn {
        color: white;
        border-color: rgba(0, 0, 0, 0.1);
    }
    
    #contactBtn::before {
        background: rgba(0, 0, 0, 0.03);
    }
    
    #contactBtn:hover {
        border-color: rgba(0, 0, 0, 0.3);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }
    
    .contact-content {
        background: rgba(255, 255, 255, 0.3);
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
    
    .contact-content h3 {
        color: white;
    }
    
    .contact-label {
        color: #white;
    }
    
    .contact-value {
        color: #white;
    }
    
    .contact-item {
        background: rgba(0, 0, 0, 0.02);
        border-color: rgba(0, 0, 0, 0.06);
    }
    
    .contact-item:hover {
        background: rgba(0, 0, 0, 0.04);
        border-color: rgba(0, 0, 0, 0.1);
    }
    
    .copy-btn {
        color: rgba(0, 0, 0, 0.4);
        background: rgba(0, 0, 0, 0.03);
        border-color: rgba(0, 0, 0, 0.06);
    }
    
    .copy-btn:hover {
        background: rgba(0, 0, 0, 0.06);
        color: #1a1a1a;
    }
    
    .social-link-btn {
        color: #1a1a1a;
        border-color: rgba(0, 0, 0, 0.08);
    }
    
    .social-link-btn:hover {
        background: rgba(0, 0, 0, 0.03);
        border-color: rgba(0, 0, 0, 0.15);
    }
    
    .contact-content .close-popup {
        color: #1a1a1a;
        background: rgba(0, 0, 0, 0.03);
        border-color: rgba(0, 0, 0, 0.06);
    }
    
    .contact-content .close-popup:hover {
        background: rgba(0, 0, 0, 0.06);
        border-color: rgba(0, 0, 0, 0.12);
    }
    
    .lang-btn {
        color: rgba(0, 0, 0, 0.4);
    }
    
    .lang-btn:hover {
        color: rgba(0, 0, 0, 0.7);
    }
    
    .lang-btn.active {
        color: #white;
        background: rgba(0, 0, 0, 0.05);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .intro-container {
        animation: none;
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    
    #contactBtn {
        transition: none;
    }
    
    #contactBtn::before {
        display: none;
    }
    
    .contact-popup {
        animation: none;
    }
    
    .contact-content {
        animation: none;
    }
    
    .logo-burst {
        animation: none;
    }
}

@media print {
    #bgCanvas, #burstCanvas {
        display: none;
    }
    
    .intro-container {
        position: static;
        transform: none;
        margin: 2rem auto;
        background: white;
        color: black;
        box-shadow: none;
        border: 1px solid #ddd;
        backdrop-filter: none;
    }
    
    h1 {
        color: black;
    }
    
    #message {
        color: black;
        opacity: 0.6;
    }
    
    #contactBtn {
        display: none;
    }
    
    .lang-toggle {
        display: none;
    }
    
    .contact-popup {
        display: none !important;
    }
}