/* 
    Abanoub Portfolio / BeboGrow
    Theme: Petrol Green + Dark Glassmorphism CV Style
    100% Fully Responsive Update
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Tajawal:wght@400;500;700;800&display=swap');

:root {
    /* Colors - Petrol Green Theme */
    --bg-dark: #041212; 
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --primary: #00a896; 
    --secondary: #02c39a; 
    --accent: #028090; 

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(0, 168, 150, 0.15); 
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    
    /* Fonts */
    --font-en: 'Outfit', sans-serif;
    --font-ar: 'Tajawal', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

/* Typography & Directionality */
[lang="ar"] { font-family: var(--font-ar); }
[lang="en"] { font-family: var(--font-en); }

[lang="en"] .ar { display: none !important; }
[lang="ar"] .en { display: none !important; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.4; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.gradient-text {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
[dir="rtl"] .gradient-text {
    background: linear-gradient(to left, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-start { text-align: left; }
[dir="rtl"] .text-start { text-align: right; }
.text-center { text-align: center; }

/* Fluid Image Fix */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Background Blobs */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(130px);
    z-index: -1;
    opacity: 0.35;
    animation: float 10s infinite alternate ease-in-out;
}
.blob-1 { top: -10%; left: -10%; width: 40vw; height: 40vw; max-width: 400px; max-height: 400px; background: var(--primary); }
.blob-2 { bottom: 20%; right: -10%; width: 30vw; height: 30vw; max-width: 300px; max-height: 300px; background: var(--accent); animation-delay: -5s; }
.blob-3 { top: 40%; left: 40%; width: 25vw; height: 25vw; max-width: 250px; max-height: 250px; background: var(--secondary); opacity: 0.2; }

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(50px) scale(1.1); }
}

/* Container & Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}
.section { padding: 100px 0; }

/* Glass Components */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: 0.4s ease;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 24px; border-radius: 12px; font-size: 1rem; font-weight: 600;
    cursor: pointer; border: none; transition: 0.3s; text-align: center;
    width: fit-content;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white; box-shadow: 0 4px 15px rgba(0, 168, 150, 0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 168, 150, 0.6); }
.btn-glass {
    background: rgba(0, 168, 150, 0.05); border: 1px solid var(--primary);
    color: white; backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(0, 168, 150, 0.15); transform: translateY(-3px); }

/* Navbar */
.glass-nav {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 15px 0; background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border); transition: 0.4s;
}
.nav-container {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1200px; margin: 0 auto; padding: 0 5%;
}

.logo { 
    display: flex; 
    align-items: center; 
}

/* 🟢 تصغير صارم للوجو في الشريط العلوي */
.nav-logo-img {
    height: 28px; /* حجم صغير جداً يوازي حجم النص */
    max-height: 28px;
    width: auto;
    max-width: 120px; /* لضمان عدم التمدد العرضي المبالغ فيه */
    object-fit: contain;
    transition: 0.3s ease;
    display: block;
}
.nav-logo-img:hover {
    transform: scale(1.05);
}

.nav-links { display: flex; gap: 30px; }
.nav-item { font-weight: 500; color: var(--text-muted); position: relative; }
.nav-item:hover { color: var(--text-main); }
.nav-item::after {
    content: ''; position: absolute; bottom: -5px; left: 0;
    width: 0; height: 2px; background: var(--primary); transition: 0.3s;
}
.nav-item:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 15px; }
.lang-btn {
    background: transparent; border: 1px solid var(--glass-border); color: white;
    padding: 8px 15px; border-radius: 8px; cursor: pointer;
    display: flex; align-items: center; gap: 8px;
}
.cta-btn {
    background: rgba(0,168,150,0.1); padding: 8px 20px; border-radius: 8px;
    font-weight: 600; border: 1px solid var(--primary); white-space: nowrap;
}
.cta-btn:hover { background: var(--primary); color: white; }
.mobile-menu-btn { display: none; background: transparent; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* Hero Section */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 80px; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px; border-radius: 30px; font-size: 0.9rem;
    color: var(--primary); margin-bottom: 25px; border: 1px solid var(--primary);
}
.hero-title { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 20px; }
.hero-subtitle { font-size: clamp(1rem, 1.5vw, 1.1rem); color: var(--text-muted); margin-bottom: 40px; max-width: 500px; line-height: 1.8; }
.hero-btns { display: flex; gap: 15px; flex-wrap: wrap; }

/* Fully Responsive Professional CV Portrait */
.profile-image-container { display: flex; justify-content: center; position: relative; padding: 20px 0; width: 100%; }
.profile-card {
    padding: 12px; border-radius: 20px; 
    width: 100%; max-width: 380px; 
    aspect-ratio: 3 / 4;
    display: flex; align-items: center; justify-content: center; position: relative;
    box-shadow: 0 15px 45px rgba(0, 168, 150, 0.2);
}
.profile-img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }

/* Social Icons Container on Image */
.social-floating {
    position: absolute; bottom: -20px; 
    padding: 12px 20px; display: flex; gap: 15px; border-radius: 20px;
    font-size: 1.2rem; z-index: 5; background: rgba(4, 18, 18, 0.9);
    border: 1px solid var(--primary); flex-wrap: wrap; justify-content: center;
}
.social-floating a { color: var(--text-muted); transition: 0.3s; }
.social-floating a:hover { color: var(--primary); transform: translateY(-3px) scale(1.1); }

/* About Section */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.image-card { padding: 10px; border-radius: 24px; overflow: hidden; width: 100%; aspect-ratio: 4/3; }
.about-img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.about-desc { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 20px; line-height: 1.8; }
.about-desc strong { color: var(--primary); font-weight: 700; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 15px; margin-top: 30px; }
.stat-card { padding: 20px 10px; text-align: center; border: 1px solid rgba(0, 168, 150, 0.2); }
.stat-number { font-size: 2rem; margin-bottom: 8px; }
.stat-label { color: var(--text-main); font-size: 0.9rem; font-weight: 600; white-space: nowrap; }

/* Services */
.section-header { margin-bottom: 60px; }
.section-title { font-size: clamp(2rem, 3.5vw, 2.5rem); margin-bottom: 15px; }
.section-desc { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1.1rem; line-height: 1.6; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
.service-card { padding: 40px 25px; text-align: center; height: 100%; display: flex; flex-direction: column; justify-content: flex-start; }
.service-card:hover {
    transform: translateY(-10px); border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 168, 150, 0.15);
}
.service-icon {
    width: 70px; height: 70px; margin: 0 auto 25px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; background: linear-gradient(135deg, rgba(0, 168, 150, 0.2), rgba(2, 128, 144, 0.2));
    border-radius: 20px; color: var(--primary); flex-shrink: 0;
}
.service-title { font-size: 1.25rem; margin-bottom: 15px; }
.service-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-top: auto; }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.portfolio-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; border: 1px solid rgba(0, 168, 150, 0.1); height: 100%; }
.portfolio-card:hover { transform: translateY(-10px); border-color: var(--primary); }
.portfolio-img {
    height: 220px; width: 100%; background-size: cover; background-position: center;
    position: relative; border-bottom: 1px solid var(--glass-border); flex-shrink: 0;
}
.portfolio-img .overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(0, 168, 150, 0.6); display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: white; opacity: 0; transition: 0.3s;
}
.portfolio-card:hover .overlay { opacity: 1; backdrop-filter: blur(3px); }
.portfolio-info { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.category { font-size: 0.8rem; color: var(--secondary); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 5px; }
.project-title { font-size: 1.25rem; margin-bottom: 10px; }
.project-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-top: auto; }

/* Contact */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 50px 5%; border-color: rgba(0, 168, 150, 0.3); }
.contact-desc { color: var(--text-muted); margin: 20px 0 30px; font-size: 1.05rem; line-height: 1.6; }
.method { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; font-size: 1.05rem; word-break: break-word; }
.icon-box {
    width: 45px; height: 45px; background: rgba(0, 168, 150, 0.1);
    border: 1px solid var(--primary); border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.2rem;
}

.contact-form { display: flex; flex-direction: column; gap: 15px; width: 100%; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.95rem; }
.glass-input {
    width: 100%; background: rgba(0,0,0,0.3); border: 1px solid var(--glass-border);
    color: white; padding: 14px 20px; border-radius: 12px; font-family: inherit; font-size: 1rem; transition: 0.3s;
}
.glass-input:focus { outline: none; border-color: var(--primary); background: rgba(0,0,0,0.6); box-shadow: 0 0 10px rgba(0, 168, 150, 0.2); }
select.glass-input option { background: var(--bg-dark); color: white; }
textarea.glass-input { resize: vertical; min-height: 100px; }
.w-100 { width: 100%; }

/* Footer */
.glass-footer { border-top: 1px solid var(--glass-border); padding: 40px 5% 20px; text-align: center; margin-top: 50px; }

/* 🟢 تصغير صارم للوجو في الفوتر */
.footer-logo { 
    margin-bottom: 25px; 
    display: flex;
    justify-content: center;
}
.footer-logo-img {
    height: 40px; /* حجم صغير ومناسب للفوتر */
    max-height: 40px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transition: 0.3s ease;
}
.footer-logo-img:hover {
    transform: translateY(-3px);
}

.social-links-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 25px; }
.social-links-footer a {
    width: 42px; height: 42px; border-radius: 50%; background: var(--glass-bg); border: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center; color: var(--text-main); font-size: 1.2rem; transition: 0.3s;
}
.social-links-footer a:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-4px); box-shadow: 0 5px 15px rgba(0, 168, 150, 0.4); }
.copyright { color: var(--text-muted); font-size: 0.9rem; }

/* Responsive Breakpoints */

/* Tablet & Smaller Desktops */
@media (max-width: 992px) {
    .hero .container, .about-grid, .contact-wrapper { grid-template-columns: 1fr; text-align: center; }
    .text-start, [dir="rtl"] .text-start { text-align: center; }
    .hero-subtitle { margin: 0 auto 30px; }
    .hero-btns, .social-floating, .contact-methods { justify-content: center; }
    .method { justify-content: center; }
    
    .profile-image-container { max-width: 80%; margin: 0 auto; }
    .social-floating { position: relative; bottom: auto; margin-top: -25px; display: inline-flex; }
    .about-visual { order: 2; margin-top: 30px; }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .section { padding: 60px 0; }
    .hero { padding-top: 100px; }
    
    .nav-links, .cta-btn { display: none; }
    .mobile-menu-btn { display: block; }
    .nav-links.active {
        display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%;
        background: rgba(4, 18, 18, 0.98); backdrop-filter: blur(20px); padding: 20px; border-bottom: 1px solid var(--primary);
    }
    .nav-item::after { display: none; }
    .nav-item { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); text-align: center; width: 100%; }
    
    .contact-wrapper { padding: 30px 20px; }
    .hero-btns { flex-direction: column; width: 100%; }
    .hero-btns .btn { width: 100%; justify-content: center; }
    
    .profile-image-container { max-width: 100%; }
    .stats-grid { grid-template-columns: 1fr; }
    
    /* تصغير إضافي للوجو في الموبايل */
    .nav-logo-img { height: 24px; max-height: 24px; }
}

/* Very Small Mobile Phones */
@media (max-width: 480px) {
    .container { padding: 0 20px; }
    .section-title { font-size: 1.8rem; }
    .social-floating { gap: 10px; padding: 10px 15px; }
    .social-floating a { font-size: 1.1rem; }
}
