/* =========================================
   1. GLOBAL VARIABLES (COLORS & THEME)
   ========================================= */
:root {
    /* Main Theme Colors */
    --primary-color: #ff0055;
    --primary-hover: #ff4757;
    --secondary-accent: #0abde3;
    
    /* Backgrounds */
    --bg-dark: #0d0d0d;
    --container-bg: #161b22;
    --border-color: #30363d;
    --text-color: #c9d1d9;
    --input-bg: #0d1117;
    
    /* Footer Specific Colors (GLOW এর জন্য এগুলো জরুরি) */
    --footer-bg-dark: #090c10;
    --footer-text-muted: #8b949e;
    --accent-color: #00e5ff;       /* Cyan Glow */
    --accent-secondary: #d124ff;   /* Purple Glow */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: 1px solid rgba(0, 229, 255, 0.2);
}

/* =========================================
   2. BASIC SETUP & HEADER
   ========================================= */
body { 
    background-color: var(--bg-dark); 
    color: var(--text-color); 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    min-height: 100vh; 
    margin: 0; 
    padding: 0;
    padding-top: 80px; /* Header Height Fix */
}

/* Header Styles */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; height: 70px;
    background: rgba(9, 12, 16, 0.95); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4); z-index: 1000;
    display: flex; align-items: center; justify-content: center;
}
.header-content { max-width: 950px; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.header-logo { font-size: 24px; font-weight: 800; color: var(--text-color); text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; text-decoration: none;}
.header-logo span { color: var(--accent-secondary); }
.header-logo i { color: var(--primary-color); }
.home-btn { text-decoration: none; color: var(--accent-color); border: 1px solid var(--accent-color); padding: 8px 20px; border-radius: 6px; font-weight: 600; font-size: 14px; transition: all 0.3s ease; display: flex; align-items: center; gap: 8px; background: rgba(0, 229, 255, 0.05); }
.home-btn:hover { background: rgba(0, 229, 255, 0.2); box-shadow: 0 0 15px rgba(0, 229, 255, 0.3); transform: translateY(-2px); color: white; }

/* =========================================
   3. CYBER FOOTER (GLOW EFFECT FIXED)
   ========================================= */
.cyber-footer {
    background-color: var(--footer-bg-dark);
    padding: 60px 20px 30px;
    margin-top: auto;
    width: 100%;
    font-family: 'Segoe UI', Roboto, sans-serif;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 229, 255, 0.1);
    box-sizing: border-box;
}

.relative-z { position: relative; z-index: 2; }

/* Background Grid & Glow */
.footer-bg-grid {
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(0, 229, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(to bottom, transparent, black 80%);
    z-index: 0; pointer-events: none; opacity: 0.6;
}

.footer-glow-point {
    position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(0,229,255,0.2) 0%, rgba(0,0,0,0) 70%);
    filter: blur(50px); z-index: 0; pointer-events: none;
}

/* Moving Border Animation */
.cyber-footer::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), var(--accent-secondary), transparent);
    animation: border-flow 5s linear infinite; background-size: 200% 100%;
}
@keyframes border-flow { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.footer-container { max-width: 950px; margin: 0 auto; display: flex; flex-direction: column; gap: 35px; }

/* Brand */
.footer-brand {
    font-size: 1.8rem; font-weight: 800; color: white; margin-bottom: 8px;
    display: flex; align-items: center; justify-content: center; gap: 12px; text-transform: uppercase; letter-spacing: 1px;
}
.brand-icon { color: var(--accent-color); filter: drop-shadow(0 0 10px var(--accent-color)); }
.brand-name .highlight { color: var(--accent-color); }
.footer-tagline { font-size: 1rem; color: var(--footer-text-muted); margin: 0; letter-spacing: 0.5px; }

/* --- GLASS PANEL (Links Container) --- */
.glass-nav-panel {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    padding: 18px 25px; border-radius: 50px;
    border: var(--glass-border);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5), inset 0 0 20px rgba(0, 229, 255, 0.05);
    position: relative; overflow: hidden;
}
.glass-nav-panel::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(to bottom right, transparent, transparent, rgba(255,255,255,0.1), transparent, transparent);
    transform: rotate(45deg); animation: glass-shine 6s infinite linear; pointer-events: none;
}
@keyframes glass-shine { 0% { transform: translateX(-100%) rotate(45deg); } 100% { transform: translateX(100%) rotate(45deg); } }

/* --- FOOTER LINKS GLOW (Here is the fix) --- */
/* --- FOOTER LINKS STYLE --- */
.f-link {
    color: #e6edf3; 
    text-decoration: none; 
    font-size: 0.9rem; 
    font-weight: 600;
    padding: 8px 16px; 
    border-radius: 30px; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; 
    align-items: center; 
    gap: 8px; 
    
    /* আগে transparent ছিল, এখন হালকা কালার দিলাম যাতে বর্ডার সবসময় দেখা যায় */
    border: 1px solid rgba(255, 255, 255, 0.15); 
    background: rgba(0,0,0,0.2);
}

 /* Smooth Transition */
    display: flex; 
    align-items: center; 
    gap: 8px; 
    border: 1px solid transparent;
    background: rgba(0,0,0,0.2);
}
.f-link i { font-size: 0.8rem; color: var(--accent-color); transition: 0.3s; }

/* The Hover Glow Effect */
.f-link:hover {
    background: var(--accent-color); /* Cyan Background */
    color: #090c10; /* Black Text */
    box-shadow: 0 0 25px var(--accent-color); /* STRONG GLOW */
    border-color: var(--accent-color); 
    transform: translateY(-3px) scale(1.05);
}
.f-link:hover i { color: #090c10; }

/* Copyright Section */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05); padding-top: 25px;
    display: flex; flex-direction: column; gap: 15px; align-items: center;
    font-size: 0.9rem; color: var(--footer-text-muted);
}
.copyright strong { color: white; }

/* Developer Link Glow */
.developer-badge {
    background: rgba(0,0,0,0.3); padding: 8px 20px; border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05); display: inline-flex; align-items: center; gap: 8px;
}
.dev-link.glow-effect {
    color: var(--accent-secondary); 
    text-decoration: none; 
    font-weight: 800; 
    letter-spacing: 0.5px;
    text-shadow: 0 0 10px rgba(209, 36, 255, 0.5); 
    transition: 0.3s;
}
.dev-link.glow-effect:hover { 
    text-shadow: 0 0 25px var(--accent-secondary); /* Purple Glow Stronger */
    color: white; 
}

/* =========================================
   4. FLOATING BUTTONS
   ========================================= */
.floating-contact {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
    background: linear-gradient(135deg, #0088cc, #00aaff);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 28px; z-index: 9999; text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 136, 204, 0.5);
    transition: all 0.3s; border: 2px solid rgba(255,255,255,0.1);
}
.pulse-ring {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%;
    border: 2px solid #00aaff; animation: pulse-animation 2s infinite; z-index: -1;
}
@keyframes pulse-animation { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }

.floating-contact:hover {
    transform: translateY(-5px) scale(1.1); background: var(--accent-secondary);
    box-shadow: 0 15px 35px rgba(209, 36, 255, 0.6); border-color: transparent;
}
.floating-contact:hover .pulse-ring { animation: none; }

.tooltip {
    position: absolute; right: 75px; top: 50%; transform: translateY(-50%) translateX(20px);
    background: rgba(22, 27, 34, 0.95); backdrop-filter: blur(5px); padding: 8px 16px;
    border-radius: 12px; font-size: 0.85rem; font-weight: 700; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: 0.4s;
    border: 1px solid var(--accent-color); color: var(--accent-color);
    box-shadow: 0 5px 20px rgba(0, 229, 255, 0.2);
}
.floating-contact:hover .tooltip { opacity: 1; transform: translateY(-50%) translateX(0); }

.floating-contact.fb-pos { bottom: 110px !important; background: linear-gradient(135deg, #1877F2, #3b5998) !important; z-index: 9999; }
.floating-contact.theme-pos { bottom: 190px !important; background: linear-gradient(135deg, #f39c12, #d35400) !important; z-index: 9999; cursor: pointer; }

/* =========================================
   5. LIGHT MODE & ANIMATIONS
   ========================================= */
body.light-mode { 
    --bg-dark: #f4f6f8; 
    --container-bg: #ffffff; 
    --text-color: #2d3436; 
    --border-color: #dfe6e9; 
    --input-bg: #ffffff; 
    --footer-bg-dark: #dfe6e9; 
    --footer-text-muted: #636e72; 
    --glass-bg: rgba(0, 0, 0, 0.05); 
}
body.light-mode .site-header { background: rgba(255, 255, 255, 0.95); box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
body.light-mode .header-logo { color: #2d3436; }
body.light-mode .cyber-footer { background-color: #dfe6e9; border-top: 1px solid #b2bec3; }
body.light-mode .footer-bg-grid { background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px); }
body.light-mode .footer-brand, body.light-mode .copyright strong { color: #2d3436; }
body.light-mode .f-link { color: #2d3436; background: rgba(0,0,0,0.05); }
body.light-mode .f-link:hover { color: #000; background: var(--accent-color); }
body.light-mode .floating-contact.theme-pos { background: linear-gradient(135deg, #2c3e50, #4ca1af) !important; }

.animated-entry { opacity: 0; transform: translateY(20px); animation: fadeUp 0.6s forwards ease-out; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* --- MOBILE RESPONSIVE FIX (Line by Line Style) --- */
@media (max-width: 600px) {
    /* গ্লাস প্যানেলকে নিচে নিচে সাজানো (Vertical) */
    .glass-nav-panel {
        flex-direction: column !important; /* নিচে নিচে আনার জন্য */
        padding: 20px 15px; 
        gap: 10px; /* প্রতিটি লিংকের মাঝে গ্যাপ */
        border-radius: 20px;
    }

    /* লিংক বাটনগুলোর সাইজ ঠিক করা */
    .f-link {
        width: 100%; /* পুরো স্ক্রিন জুড়ে (Full Width) */
        justify-content: center; /* লেখা মাঝখানে থাকবে */
        padding: 12px; /* বাটন একটু মোটা হবে */
        font-size: 0.95rem;
        margin: 0; /* বাড়তি মার্জিন রিমুভ */
        box-sizing: border-box; /* বর্ডারসহ সাইজ কাউন্ট হবে */
    }

    /* ফ্লোটিং বাটনগুলোর অবস্থান ঠিক করা */
    .floating-contact { width: 50px; height: 50px; font-size: 24px; bottom: 20px; right: 20px; }
    .header-logo { font-size: 18px; }
    .home-btn { font-size: 12px; padding: 6px 12px; }
    
    /* বাটনগুলো একে অপরের উপরে যেন না উঠে যায় */
    .floating-contact.fb-pos { bottom: 85px !important; }
    .floating-contact.theme-pos { bottom: 150px !important; }
}



/* হোম পেজ ছাড়া অন্য সব পেজে হিরো সেকশন বা অ্যানিমেশন লুকানো */
body:not(.home-page) .hero-wrapper, 
body:not(.home-page) .floating-icons,
body:not(.home-page) .animation-container {
    display: none !important;
}
