/* Import Fonts */
@font-face {
    font-family: 'Estedad-Black';
    src: url('fonts/Estedad-Black.eot');
    src: url('fonts/Estedad-Black.eot?#iefix') format('embedded-opentype'),
         url('fonts/Estedad-Black.woff2') format('woff2'),
         url('fonts/Estedad-Black.woff') format('woff'),
         url('fonts/Estedad-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Estedad-Medium';
    src: url('fonts/Estedad-Medium.eot');
    src: url('fonts/Estedad-Medium.eot?#iefix') format('embedded-opentype'),
         url('fonts/Estedad-Medium.woff2') format('woff2'),
         url('fonts/Estedad-Medium.woff') format('woff'),
         url('fonts/Estedad-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

/* Variables & Reset */
:root {
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-color: #ffffff;
    --accent-color: #00d2ff;
    --dark-bg: #0f172a;
    --insta-grad: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: 'Estedad-Medium', Tahoma, sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100vh;
    direction: rtl;
}

/* Animated Background Blobs */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: move 20s infinite alternate;
}

.blob-1 { width: 400px; height: 400px; background: #4a00e0; top: -100px; left: -100px; }
.blob-2 { width: 500px; height: 500px; background: #8e2de2; bottom: -150px; right: -150px; animation-delay: -5s; }
.blob-3 { width: 300px; height: 300px; background: #00d2ff; top: 40%; left: 40%; animation-delay: -10s; }

@keyframes move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Glassmorphism Utilities */
.glass-panel, .glass-card, .glass-btn, .glass-modal, .glass-input, .glass-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-radius: 16px;
}

/* Header & Hero */
.hero-section {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.glass-container {
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
    width: 100%;
}

.profile-img-container {
    margin-bottom: 20px;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform 0.5s;
}

.profile-img:hover {
    transform: scale(1.05) rotate(2deg);
}

.main-title {
    font-family: 'Estedad-Black', sans-serif;
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.sub-title {
    font-size: 100%;
    color: #cccccc;
    margin-bottom: 30px;
}

/* Liquid Social Buttons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.liquid-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    z-index: 1;
}

.liquid-btn::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transition: top 0.4s cubic-bezier(0.3, 1.5, 0.5, 1);
    z-index: -1;
    border-radius: 50%;
}

.liquid-btn.instagram::before { background: var(--insta-grad); }
.liquid-btn.youtube::before { background: #ff0000; }
.liquid-btn.whatsapp::before { background: #25d366; }
.liquid-btn.phone::before { background: #3498db; }

.liquid-btn:hover::before {
    top: 0;
}

.liquid-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.2);
}

/* Tooltips */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    pointer-events: none;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Main Layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 100px 20px;
}

.section {
    margin-bottom: 40px;
    opacity: 0; /* For scroll animation */
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.glass-card {
    padding: 30px;
    color: #e0e0e0;
}

.section-title {
    font-family: 'Estedad-Black';
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
    display: inline-block;
}

.resume-list {
    list-style: none;
}

.resume-list li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.resume-list li::before {
    content: '🔹';
    position: absolute;
    right: 0;
    top: 2px;
    font-size: 0.8rem;
}

/* Grid for Mini Boxes */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.grid-item {
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    transition: background 0.3s;
    cursor: default;
}

.grid-item:hover {
    background: rgba(255,255,255,0.1);
}

/* Floating Widgets */
.time-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 10px 15px;
    font-size: 0.9rem;
    text-align: center;
    z-index: 100;
    font-family: 'Estedad-Black';
    pointer-events: none; /* Click through */
    opacity: 0.8;
}

.feedback-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 101;
    transition: transform 0.3s;
}

.feedback-btn:hover {
    transform: scale(1.1) rotate(15deg);
    background: rgba(255, 255, 255, 0.15);
}

.lang-switch {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 102;
}

#lang-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 8px 15px;
    font-family: 'Estedad-Black';
    cursor: pointer;
    font-size: 1rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: #1e1e1e;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white;
}

.modal.show .modal-content {
    transform: scale(1);
}

/* Insta Modal specific */
.insta-theme {
    text-align: center;
    border-top: 5px solid #d62976;
}

.insta-icon {
    font-size: 60px;
    margin-bottom: 15px;
    background: var(--insta-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.insta-follow-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 25px;
    background: var(--insta-grad);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
}

/* Form Modal */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
}

.close-red {
    background: #ff4757;
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.close-red:hover { background: #ff6b81; }

.form-group { margin-bottom: 15px; text-align: right; }
.form-group label { display: block; margin-bottom: 5px; font-size: 0.9rem; }
.required { color: #ff4757; }

.glass-input {
    width: 100%;
    padding: 12px;
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    font-family: inherit;
}

.glass-input:focus {
    border-color: var(--accent-color);
    background: rgba(0,0,0,0.4);
}

.submit-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: var(--accent-color);
    color: #000;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.submit-btn:hover { background: white; }

#form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-size: 0.9rem;
}
.msg-success { background: rgba(39, 174, 96, 0.4); color: #2ecc71; border: 1px solid #2ecc71; }
.msg-error { background: rgba(192, 57, 43, 0.4); color: #e74c3c; border: 1px solid #e74c3c; }
.hidden { display: none; }

/* Footer */
.glass-footer {
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    font-size: 0.9rem;
    color: #bbb;
}

.hamid-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    position: relative;
}

.hamid-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    right: 0; /* RTL specific */
    background: var(--accent-color);
    transition: width 0.3s;
}

.hamid-link:hover::after { width: 100%; }

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-title { font-size: 2rem; }
    .hero-section { min-height: 60vh; }
    .glass-container { padding: 20px; }
    
    .time-widget {
        bottom: 10px;
        left: 10px;
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    .feedback-btn {
        bottom: 10px;
        right: 10px;
        width: 50px;
        height: 50px;
    }
    
    .modal-content { width: 95%; margin: 10px; }
}